Update static-module to the latest version 🚀#11
Open
greenkeeper[bot] wants to merge 1 commit intomasterfrom
Open
Update static-module to the latest version 🚀#11greenkeeper[bot] wants to merge 1 commit intomasterfrom
greenkeeper[bot] wants to merge 1 commit intomasterfrom
Conversation
Contributor
Author
|
Contributor
Author
|
Contributor
Author
Update to this version instead 🚀 Release Notes for v3.0.3Fix npm audit warning, thanks @jimmywarting! |
Contributor
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Version 3.0.0 of static-module was just published.
static-moduleThe 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.0Implement scope tracking.
The core idea is this:
Additionally, the
requirecall for a module will be kept if some of its uses in the file could not be replaced. For example, withfs:Here,
require('fs')will be removed because thefs.readFileSynccall is statically evaluated and replaced.Here, the
fs.readFileSync()call is statically evaluated and replaced, but thefs.readFilecall is not because it requires a runtime valuesomeUserInput. In this case, therequire('fs')call is kept.Commits
The new version differs by 14 commits.
08da9183.0.08394005Merge pull request #43 from browserify/scope-trackingf395d29Remove falafel source() callfd20bf4Add npm run bench1b989d2Update scope-analyzer to remove a hack979e598Only run block scope tests ifletis supported by runtimecb9b764Add benchmark14cce56Add scope tracking test4978daescope-analyzer@2f7b70c2remove unused variables51dc5c6remove unused deps2b64d5ause scope-analyzer es5 branchfc16bd6Add tests for keeping used importsd25af63Scope trackingSee 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 🌴