Skip to content

Commit 1524413

Browse files
chore(release): 6.0.0
Diff: 5.2.0...6.0.0
1 parent c656192 commit 1524413

11 files changed

+2466
-389
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,38 @@
1+
# [6.0.0](https://github.com/socketio/engine.io-client/compare/5.2.0...6.0.0) (2021-10-08)
2+
3+
This major release contains three important changes:
4+
5+
- the codebase was migrated to TypeScript ([7245b80](https://github.com/socketio/engine.io-client/commit/7245b803e0c8d57cfc1f1cd8b8c8d598e8397967))
6+
- rollup is now used instead of webpack to create the bundles ([27de300](https://github.com/socketio/engine.io-client/commit/27de300de42420ab59a02ec7a3445e636cbcc78e))
7+
- code that provided support for ancient browsers (think IE8) was removed ([c656192](https://github.com/socketio/engine.io-client/commit/c6561928be628084fd2f5e7a70943c8e5c582873) and [b2c7381](https://github.com/socketio/engine.io-client/commit/b2c73812e978489b5dfbe516a26b6b8fd628856d))
8+
9+
There is now three distinct builds (in the build/ directory):
10+
11+
- CommonJS
12+
- ESM with debug
13+
- ESM without debug (rationale here: [00d7e7d](https://github.com/socketio/engine.io-client/commit/00d7e7d7ee85b4cfa6f9f547203cc692083ac61c))
14+
15+
And three bundles (in the dist/ directory) :
16+
17+
- `engine.io.js`: unminified UMD bundle
18+
- `engine.io.min.js`: minified UMD bundle
19+
- `engine.io.esm.min.js`: ESM bundle
20+
21+
Please note that the communication protocol was not updated, so a v5 client will be able to reach a v6 server (and vice-versa).
22+
23+
Reference: https://github.com/socketio/engine.io-protocol
24+
25+
### Features
26+
27+
* provide an ESM build without debug ([00d7e7d](https://github.com/socketio/engine.io-client/commit/00d7e7d7ee85b4cfa6f9f547203cc692083ac61c))
28+
29+
### BREAKING CHANGES
30+
31+
* the enableXDR option is removed ([c656192](https://github.com/socketio/engine.io-client/commit/c6561928be628084fd2f5e7a70943c8e5c582873))
32+
* the jsonp and forceJSONP options are removed ([b2c7381](https://github.com/socketio/engine.io-client/commit/b2c73812e978489b5dfbe516a26b6b8fd628856d))
33+
34+
`ws` version: `~8.2.3`
35+
136
# [5.2.0](https://github.com/socketio/engine.io-client/compare/5.1.2...5.2.0) (2021-08-29)
237

338

dist/engine.io.esm.min.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/engine.io.esm.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/engine.io.js

Lines changed: 2393 additions & 377 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/engine.io.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/engine.io.min.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/engine.io.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "engine.io-client",
33
"description": "Client for the realtime Engine",
44
"license": "MIT",
5-
"version": "5.2.0",
5+
"version": "6.0.0",
66
"main": "./build/cjs/index.js",
77
"module": "./build/esm/index.js",
88
"exports": {
@@ -35,7 +35,7 @@
3535
"dependencies": {
3636
"@socket.io/component-emitter": "~2.0.0",
3737
"debug": "~4.3.1",
38-
"engine.io-parser": "^5.0.0",
38+
"engine.io-parser": "~5.0.0",
3939
"has-cors": "1.1.0",
4040
"parseqs": "0.0.6",
4141
"parseuri": "0.0.6",
@@ -79,7 +79,8 @@
7979
"test:browser": "zuul test/index.js",
8080
"build": "rollup -c support/rollup.config.umd.js && rollup -c support/rollup.config.esm.js",
8181
"format:check": "prettier --check 'lib/**/*.ts' 'test/**/*.js' 'support/**/*.js'",
82-
"format:fix": "prettier --write 'lib/**/*.ts' 'test/**/*.js' 'support/**/*.js'"
82+
"format:fix": "prettier --write 'lib/**/*.ts' 'test/**/*.js' 'support/**/*.js'",
83+
"prepack": "npm run compile"
8384
},
8485
"browser": {
8586
"./test/node.js": false
@@ -91,8 +92,5 @@
9192
"files": [
9293
"build/",
9394
"dist/"
94-
],
95-
"browserslist": [
96-
"IE 9"
9795
]
9896
}

support/rollup.config.esm.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@ const { nodeResolve } = require("@rollup/plugin-node-resolve");
22
const commonjs = require("@rollup/plugin-commonjs");
33
const { terser } = require("rollup-plugin-terser");
44

5+
const version = require("../package.json").version;
6+
const banner = `/*!
7+
* Engine.IO v${version}
8+
* (c) 2014-${new Date().getFullYear()} Guillermo Rauch
9+
* Released under the MIT License.
10+
*/`;
11+
512
module.exports = {
613
input: "./build/esm/index.js",
714
output: {
815
file: "./dist/engine.io.esm.min.js",
916
format: "esm",
1017
sourcemap: true,
11-
plugins: [terser()]
18+
plugins: [terser()],
19+
banner
1220
},
1321
plugins: [
1422
nodeResolve({

support/rollup.config.umd.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,30 @@ const commonjs = require("@rollup/plugin-commonjs");
33
const { babel } = require("@rollup/plugin-babel");
44
const { terser } = require("rollup-plugin-terser");
55

6+
const version = require("../package.json").version;
7+
const banner = `/*!
8+
* Engine.IO v${version}
9+
* (c) 2014-${new Date().getFullYear()} Guillermo Rauch
10+
* Released under the MIT License.
11+
*/`;
12+
613
module.exports = {
714
input: "./build/esm/browser-entrypoint.js",
815
output: [
916
{
1017
file: "./dist/engine.io.js",
1118
format: "umd",
1219
name: "eio",
13-
sourcemap: true
20+
sourcemap: true,
21+
banner
1422
},
1523
{
1624
file: "./dist/engine.io.min.js",
1725
format: "umd",
1826
name: "eio",
1927
sourcemap: true,
20-
plugins: [terser()]
28+
plugins: [terser()],
29+
banner
2130
}
2231
],
2332
plugins: [

0 commit comments

Comments
 (0)