Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade brfs from 1.6.1 to 2.0.2 #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snyk-bot
Copy link

Snyk has created this PR to upgrade brfs from 1.6.1 to 2.0.2.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


Warning: This is a major version upgrade, and may be a breaking change.

  • The recommended version is 3 versions ahead of your current version.
  • The recommended version was released 4 years ago, on 2019-02-19.
Release notes
Package name: brfs
  • 2.0.2 - 2019-02-19
  • 2.0.1 - 2018-08-22
  • 2.0.0 - 2018-06-22

    Update to static-module 3. This adds scope tracking, and keeps fs requires around if they are still used.

    Scope tracking

    Previously the below:

    var fs = require('fs')
    function x (fs) { return fs.readFileSync(__filename) }
    x({ readFileSync: function () { return 10 } })

    would compile the fs.readFileSync() call, even though it's not actually referring to the fs module. This may seem contrived but it can happen easily if a file was minified before being passed to brfs, and a million different variables are all named e.

    Retain used requires

    Previously the below:

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

    would compile to:

    fs.readFileSync(someDynamicValue())
    Buffer('...', 'base64')

    But now it compiles to:

    var fs = require('fs')
    fs.readFileSync(someDynamicValue())
    Buffer('...', 'base64')

    This is primarily helpful when bundling for node or electron.

  • 1.6.1 - 2018-04-11

    Update tests so they work with the latest Browserify.

from brfs GitHub release notes
Commit messages
Package name: brfs

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant