Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
Based on #45, we update the dependencies to the most recent version.
Some modules, however, can not be updated to the most recent version because there was a breaking change:

## `buffer`

The current `buffer` implementation uses feross/buffer@4.x because feross/buffer@5.x relies on [typed arrays](feross/buffer@5daca86#commitcomment-19698936).
This will be dropped as soon as IE9 is not a typical browser target anymore.

## `punycode`

The current `punycode` implementation uses bestiejs/punycode.js@1.x because bestiejs/punycode.js@2.x requires modern JS engines that understand `const` and `let`.
It will be removed someday since it has already been [deprecated from the node API](https://nodejs.org/api/punycode.html).

## `crypto`

We locked `crypto-browserify` at `3.3.0` because `3.4.x` introduced a breaking change by requiring JSON files. We will not upgrade this module
for webpack 1 anymore since it will introduce a breaking change for all users that don't have the [json-loader](https://github.com/webpack/json-loader) configured.
You can, however, use a newer crypto-browserify version by configuring a [`resolve.alias`](http://webpack.github.io/docs/configuration.html#resolve-alias) and using the json-loader.
  • Loading branch information
jhnns committed Nov 24, 2016
1 parent c853a6f commit ee37c22
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 15 deletions.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,26 @@ Some modules have mocks in the `mock` directory. These are replacements with min
| url | [defunctzombie/node-url](https://github.com/defunctzombie/node-url) | --- |
| util | [defunctzombie/node-util](https://github.com/defunctzombie/node-util) | --- |
| vm | [substack/vm-browserify](https://github.com/substack/vm-browserify) | --- |
| zlib | [devongovett/browserify-zlib](https://github.com/devongovett/browserify-zlib) | --- |
| zlib | [devongovett/browserify-zlib](https://github.com/devongovett/browserify-zlib) | --- |

## Outdated versions

### `buffer`

The current `buffer` implementation uses feross/buffer@4.x because feross/buffer@5.x relies on [typed arrays](https://github.com/feross/buffer/commit/5daca86b7cd5d2b8ccb167534d47421029f639e9#commitcomment-19698936).
This will be dropped as soon as IE9 is not a typical browser target anymore.

### `punycode`

The current `punycode` implementation uses bestiejs/punycode.js@1.x because bestiejs/punycode.js@2.x requires modern JS engines that understand `const` and `let`.
It will be removed someday since it has already been [deprecated from the node API](https://nodejs.org/api/punycode.html).

### `crypto`

We locked `crypto-browserify` at `3.3.0` because `3.4.x` introduced a breaking change by requiring JSON files. We will not upgrade this module
for webpack 1 anymore since it will introduce a breaking change for all users that don't have the [json-loader](https://github.com/webpack/json-loader) configured.
You can, however, use a newer crypto-browserify version by configuring a [`resolve.alias`](http://webpack.github.io/docs/configuration.html#resolve-alias) and using the json-loader.

## License

MIT
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports.dns = null;
exports.domain = require.resolve('domain-browser');
exports.events = require.resolve('events/');
exports.fs = null;
exports.http = require.resolve('http-browserify');
exports.http = require.resolve('stream-http');
exports.https = require.resolve('https-browserify');
exports.module = null;
exports.net = null;
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@
},
"dependencies": {
"assert": "^1.1.1",
"browserify-zlib": "~0.1.4",
"browserify-zlib": "^0.1.4",
"buffer": "^4.9.0",
"console-browserify": "^1.1.0",
"constants-browserify": "0.0.1",
"crypto-browserify": "~3.2.6",
"constants-browserify": "^1.0.0",
"crypto-browserify": "3.3.0",
"domain-browser": "^1.1.1",
"events": "^1.0.0",
"http-browserify": "^1.3.2",
"https-browserify": "0.0.0",
"os-browserify": "~0.1.2",
"https-browserify": "0.0.1",
"os-browserify": "^0.2.0",
"path-browserify": "0.0.0",
"process": "^0.11.0",
"punycode": "^1.2.4",
"querystring-es3": "~0.2.0",
"readable-stream": "^1.1.13",
"stream-browserify": "^1.0.0",
"string_decoder": "~0.10.25",
"timers-browserify": "^1.0.1",
"querystring-es3": "^0.2.0",
"readable-stream": "^2.0.5",
"stream-browserify": "^2.0.1",
"stream-http": "^2.3.1",
"string_decoder": "^0.10.25",
"timers-browserify": "^2.0.2",
"tty-browserify": "0.0.0",
"url": "~0.10.1",
"util": "~0.10.3",
"url": "^0.11.0",
"util": "^0.10.3",
"vm-browserify": "0.0.4"
},
"homepage": "http://github.com/webpack/node-libs-browser",
Expand Down

0 comments on commit ee37c22

Please sign in to comment.