Skip to content

Releases: browserify/brfs

v2.0.2

13 Nov 09:55
660f6d8
Compare
Choose a tag to compare

v2.0.1

22 Aug 10:05
f84ecf0
Compare
Choose a tag to compare

v2.0.0

22 Jun 11:12
7e13064
Compare
Choose a tag to compare

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.

v1.6.1

11 Apr 08:01
548b566
Compare
Choose a tag to compare

Update tests so they work with the latest Browserify.

v1.6.0

11 Apr 07:52
dd37668
Compare
Choose a tag to compare

Allow setting of parser opts. (#88)

v1.5.0

28 Feb 15:43
f747f65
Compare
Choose a tag to compare

the brfs transform now generates source maps in --debug mode.

v1.4.4

30 Jan 10:08
5bad47b
Compare
Choose a tag to compare

Update static-module to v2, which fixes a security vulnerability

#83