Skip to content

Update static-module to the latest version 🚀#11

Open
greenkeeper[bot] wants to merge 1 commit intomasterfrom
greenkeeper/static-module-3.0.0
Open

Update static-module to the latest version 🚀#11
greenkeeper[bot] wants to merge 1 commit intomasterfrom
greenkeeper/static-module-3.0.0

Conversation

@greenkeeper
Copy link
Copy Markdown
Contributor

@greenkeeper greenkeeper bot commented Jun 2, 2018

Version 3.0.0 of static-module was just published.

Dependency static-module
Current Version 2.2.5
Type dependency

The version 3.0.0 is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

It might be worth looking into these changes and trying to get this project onto the latest version of static-module.

If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.


Release Notes v3.0.0

Implement scope tracking.

The core idea is this:

var fs = require('fs')
fs.readFileSync('./a.txt') // refers to require('fs'), is replaced
function whatever (fs) {
  fs.readFileSync() // different fs variable, is _not_ replaced
}

Additionally, the require call for a module will be kept if some of its uses in the file could not be replaced. For example, with fs:

var fs = require('fs')
fs.readFileSync(__filename)

Here, require('fs') will be removed because the fs.readFileSync call is statically evaluated and replaced.

var fs = require('fs')
fs.readFileSync(__filename)
fs.readFile(someUserInput)

Here, the fs.readFileSync() call is statically evaluated and replaced, but the fs.readFile call is not because it requires a runtime value someUserInput. In this case, the require('fs') call is kept.

Commits

The new version differs by 14 commits.

  • 08da918 3.0.0
  • 8394005 Merge pull request #43 from browserify/scope-tracking
  • f395d29 Remove falafel source() call
  • fd20bf4 Add npm run bench
  • 1b989d2 Update scope-analyzer to remove a hack
  • 979e598 Only run block scope tests if let is supported by runtime
  • cb9b764 Add benchmark
  • 14cce56 Add scope tracking test
  • 4978dae scope-analyzer@2
  • f7b70c2 remove unused variables
  • 51dc5c6 remove unused deps
  • 2b64d5a use scope-analyzer es5 branch
  • fc16bd6 Add tests for keeping used imports
  • d25af63 Scope tracking

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 🌴

greenkeeper bot added a commit that referenced this pull request Feb 15, 2019
@greenkeeper
Copy link
Copy Markdown
Contributor Author

greenkeeper bot commented Feb 15, 2019

Update to this version instead 🚀

Commits

The new version differs by 3 commits.

  • ce55928 3.0.1
  • 99c2cd0 Merge pull request #49 from browserify/static-eval2
  • b9ae923 shut the security warning up

See the full diff

greenkeeper bot added a commit that referenced this pull request Feb 18, 2019
@greenkeeper
Copy link
Copy Markdown
Contributor Author

greenkeeper bot commented Feb 18, 2019

Update to this version instead 🚀

Commits

The new version differs by 3 commits.

  • 339fb92 3.0.2
  • 86b7b12 Merge pull request #50 from jagonzalr/pr/update/static-val-dependency
  • 1595160 Use npm module static-eval instead of static-eval2

See the full diff

greenkeeper bot added a commit that referenced this pull request Apr 12, 2019
@greenkeeper
Copy link
Copy Markdown
Contributor Author

greenkeeper bot commented Apr 12, 2019

Update to this version instead 🚀

Release Notes for v3.0.3

Fix npm audit warning, thanks @jimmywarting!

Commits

The new version differs by 3 commits.

See the full diff

greenkeeper bot added a commit that referenced this pull request Apr 26, 2020
@greenkeeper
Copy link
Copy Markdown
Contributor Author

greenkeeper bot commented Apr 26, 2020

Update to this version instead 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants