1 | ## [5.0.2](https://github.com/socketio/engine.io-parser/compare/5.0.1...5.0.2) (2021-11-14)
|
---|
2 |
|
---|
3 |
|
---|
4 | ### Bug Fixes
|
---|
5 |
|
---|
6 | * add package name in nested package.json ([7e27159](https://github.com/socketio/engine.io-parser/commit/7e271596c3305fb4e4a9fbdcc7fd442e8ff71200))
|
---|
7 | * fix vite build for CommonJS users ([5f22ed0](https://github.com/socketio/engine.io-parser/commit/5f22ed0527cc80aa0cac415dfd12db2f94f0a855))
|
---|
8 |
|
---|
9 |
|
---|
10 |
|
---|
11 | ## [5.0.1](https://github.com/socketio/engine.io-parser/compare/5.0.0...5.0.1) (2021-10-15)
|
---|
12 |
|
---|
13 |
|
---|
14 | ### Bug Fixes
|
---|
15 |
|
---|
16 | * fix vite build ([900346e](https://github.com/socketio/engine.io-parser/commit/900346ea34ddc178d80eaabc8ea516d929457855))
|
---|
17 |
|
---|
18 |
|
---|
19 |
|
---|
20 | # [5.0.0](https://github.com/socketio/engine.io-parser/compare/4.0.3...5.0.0) (2021-10-04)
|
---|
21 |
|
---|
22 | This release includes the migration to TypeScript. The major bump is due to the new "exports" field in the package.json file.
|
---|
23 |
|
---|
24 | See also: https://nodejs.org/api/packages.html#packages_package_entry_points
|
---|
25 |
|
---|
26 | ## [4.0.3](https://github.com/socketio/engine.io-parser/compare/4.0.2...4.0.3) (2021-08-29)
|
---|
27 |
|
---|
28 |
|
---|
29 | ### Bug Fixes
|
---|
30 |
|
---|
31 | * respect the offset and length of TypedArray objects ([6d7dd76](https://github.com/socketio/engine.io-parser/commit/6d7dd76130690afda6c214d5c04305d2bbc4eb4d))
|
---|
32 |
|
---|
33 |
|
---|
34 | ## [4.0.2](https://github.com/socketio/engine.io-parser/compare/4.0.1...4.0.2) (2020-12-07)
|
---|
35 |
|
---|
36 |
|
---|
37 | ### Bug Fixes
|
---|
38 |
|
---|
39 | * add base64-arraybuffer as prod dependency ([2ccdeb2](https://github.com/socketio/engine.io-parser/commit/2ccdeb277955bed8742a29f2dcbbf57ca95eb12a))
|
---|
40 |
|
---|
41 |
|
---|
42 | ## [2.2.1](https://github.com/socketio/engine.io-parser/compare/2.2.0...2.2.1) (2020-09-30)
|
---|
43 |
|
---|
44 |
|
---|
45 | ## [4.0.1](https://github.com/socketio/engine.io-parser/compare/4.0.0...4.0.1) (2020-09-10)
|
---|
46 |
|
---|
47 |
|
---|
48 | ### Bug Fixes
|
---|
49 |
|
---|
50 | * use a terser-compatible representation of the separator ([886f9ea](https://github.com/socketio/engine.io-parser/commit/886f9ea7c4e717573152c31320f6fb6c6664061b))
|
---|
51 |
|
---|
52 |
|
---|
53 | # [4.0.0](https://github.com/socketio/engine.io-parser/compare/v4.0.0-alpha.1...4.0.0) (2020-09-08)
|
---|
54 |
|
---|
55 | This major release contains the necessary changes for the version 4 of the Engine.IO protocol. More information about the new version can be found [there](https://github.com/socketio/engine.io-protocol#difference-between-v3-and-v4).
|
---|
56 |
|
---|
57 | Encoding changes between v3 and v4:
|
---|
58 |
|
---|
59 | - encodePacket with string
|
---|
60 | - input: `{ type: "message", data: "hello" }`
|
---|
61 | - output in v3: `"4hello"`
|
---|
62 | - output in v4: `"4hello"`
|
---|
63 |
|
---|
64 | - encodePacket with binary
|
---|
65 | - input: `{ type: 'message', data: <Buffer 01 02 03> }`
|
---|
66 | - output in v3: `<Buffer 04 01 02 03>`
|
---|
67 | - output in v4: `<Buffer 01 02 03>`
|
---|
68 |
|
---|
69 | - encodePayload with strings
|
---|
70 | - input: `[ { type: 'message', data: 'hello' }, { type: 'message', data: '€€€' } ]`
|
---|
71 | - output in v3: `"6:4hello4:4€€€"`
|
---|
72 | - output in v4: `"4hello\x1e4€€€"`
|
---|
73 |
|
---|
74 | - encodePayload with string and binary
|
---|
75 | - input: `[ { type: 'message', data: 'hello' }, { type: 'message', data: <Buffer 01 02 03> } ]`
|
---|
76 | - output in v3: `<Buffer 00 06 ff 34 68 65 6c 6c 6f 01 04 ff 04 01 02 03>`
|
---|
77 | - output in v4: `"4hello\x1ebAQID"`
|
---|
78 |
|
---|
79 | Please note that the parser is now dependency-free! This should help reduce the size of the browser bundle.
|
---|
80 |
|
---|
81 | ### Bug Fixes
|
---|
82 |
|
---|
83 | * keep track of the buffer initial length ([8edf2d1](https://github.com/socketio/engine.io-parser/commit/8edf2d1478026da442f519c2d2521af43ba01832))
|
---|
84 |
|
---|
85 |
|
---|
86 | ### Features
|
---|
87 |
|
---|
88 | * restore the upgrade mechanism ([6efedfa](https://github.com/socketio/engine.io-parser/commit/6efedfa0f3048506a4ba99e70674ddf4c0732e0c))
|
---|
89 |
|
---|
90 |
|
---|
91 |
|
---|
92 | # [4.0.0-alpha.1](https://github.com/socketio/engine.io-parser/compare/v4.0.0-alpha.0...v4.0.0-alpha.1) (2020-05-19)
|
---|
93 |
|
---|
94 |
|
---|
95 | ### Features
|
---|
96 |
|
---|
97 | * implement the version 4 of the protocol ([cab7db0](https://github.com/socketio/engine.io-parser/commit/cab7db0404e0a69f86a05ececd62c8c31f4d97d5))
|
---|
98 |
|
---|
99 |
|
---|
100 |
|
---|
101 | # [4.0.0-alpha.0](https://github.com/socketio/engine.io-parser/compare/2.2.0...v4.0.0-alpha.0) (2020-02-04)
|
---|
102 |
|
---|
103 |
|
---|
104 | ### Bug Fixes
|
---|
105 |
|
---|
106 | * properly decode binary packets ([5085373](https://github.com/socketio/engine.io-parser/commit/50853738e0c6c16f9cee0d7887651155f4b78240))
|
---|
107 |
|
---|
108 |
|
---|
109 | ### Features
|
---|
110 |
|
---|
111 | * remove packet type when encoding binary packets ([a947ae5](https://github.com/socketio/engine.io-parser/commit/a947ae59a2844e4041db58ff36b270d1528b3bee))
|
---|
112 |
|
---|
113 |
|
---|
114 | ### BREAKING CHANGES
|
---|
115 |
|
---|
116 | * the packet containing binary data will now be sent without any transformation
|
---|
117 |
|
---|
118 | Protocol v3: { type: 'message', data: <Buffer 01 02 03> } => <Buffer 04 01 02 03>
|
---|
119 | Protocol v4: { type: 'message', data: <Buffer 01 02 03> } => <Buffer 01 02 03>
|
---|
120 |
|
---|
121 |
|
---|
122 |
|
---|
123 | # [2.2.0](https://github.com/socketio/engine.io-parser/compare/2.1.3...2.2.0) (2019-09-13)
|
---|
124 |
|
---|
125 |
|
---|
126 | * [refactor] Use `Buffer.allocUnsafe` instead of `new Buffer` (#104) ([aedf8eb](https://github.com/socketio/engine.io-parser/commit/aedf8eb29e8bf6aeb5c6cc68965d986c4c958ae2)), closes [#104](https://github.com/socketio/engine.io-parser/issues/104)
|
---|
127 |
|
---|
128 |
|
---|
129 | ### BREAKING CHANGES
|
---|
130 |
|
---|
131 | * drop support for Node.js 4 (since Buffer.allocUnsafe was added in v5.10.0)
|
---|
132 |
|
---|
133 | Reference: https://nodejs.org/docs/latest/api/buffer.html#buffer_class_method_buffer_allocunsafe_size
|
---|