Skip to content

Releases: socketio/engine.io-parser

5.0.1

16 Oct 00:03
fa6d4f6
Compare
Choose a tag to compare

Bug Fixes

Links

5.0.0

04 Oct 09:12
965a567
Compare
Choose a tag to compare

This release includes the migration to TypeScript. The major bump is due to the new "exports" field in the package.json file.

See also: https://nodejs.org/api/packages.html#packages_package_entry_points

Links

4.0.3

29 Aug 05:57
412bcc4
Compare
Choose a tag to compare

Bug Fixes

  • respect the offset and length of TypedArray objects (6d7dd76)

Links

4.0.2

07 Dec 09:16
88799da
Compare
Choose a tag to compare

Bug Fixes

  • add base64-arraybuffer as prod dependency (2ccdeb2)

Links

2.2.1

30 Sep 01:12
68c22c3
Compare
Choose a tag to compare

Links

4.0.1

30 Sep 01:12
851c117
Compare
Choose a tag to compare

Links

4.0.0

08 Sep 21:22
ebf6e8c
Compare
Choose a tag to compare

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.

Encoding changes between v3 and v4:

  • encodePacket with string

    • input: { type: "message", data: "hello" }
    • output in v3: "4hello"
    • output in v4: "4hello"
  • encodePacket with binary

    • input: { type: 'message', data: <Buffer 01 02 03> }
    • output in v3: <Buffer 04 01 02 03>
    • output in v4: <Buffer 01 02 03>
  • encodePayload with strings

    • input: [ { type: 'message', data: 'hello' }, { type: 'message', data: '€€€' } ]
    • output in v3: "6:4hello4:4€€€"
    • output in v4: "4hello\x1e4€€€"
  • encodePayload with string and binary

    • input: [ { type: 'message', data: 'hello' }, { type: 'message', data: <Buffer 01 02 03> } ]
    • output in v3: <Buffer 00 06 ff 34 68 65 6c 6c 6f 01 04 ff 04 01 02 03>
    • output in v4: "4hello\x1ebAQID"

Please note that the parser is now dependency-free! This should help reduce the size of the browser bundle.

Bug Fixes

  • keep track of the buffer initial length (8edf2d1)

Features

  • restore the upgrade mechanism (6efedfa)

Links

v4.0.0-alpha.1

08 Sep 21:20
3dd2a0e
Compare
Choose a tag to compare
v4.0.0-alpha.1 Pre-release
Pre-release

Features

  • implement the version 4 of the protocol (cab7db0)

Links

v4.0.0-alpha.0

08 Sep 21:18
7f5a903
Compare
Choose a tag to compare
v4.0.0-alpha.0 Pre-release
Pre-release

Bug Fixes

  • properly decode binary packets (5085373)

Features

  • remove packet type when encoding binary packets (a947ae5)

BREAKING CHANGES

  • the packet containing binary data will now be sent without any transformation

Protocol v3: { type: 'message', data: <Buffer 01 02 03> } => <Buffer 04 01 02 03>
Protocol v4: { type: 'message', data: <Buffer 01 02 03> } => <Buffer 01 02 03>

Links

Release 2.2.0

13 Sep 09:13
f1ce1ab
Compare
Choose a tag to compare

Performance enhancements

We now use Buffer.allocUnsafe() and Buffer.from() methods instead of manually creating the buffer instances. (#104 & #108)

Thus support for Node.js 4 is dropped (since Buffer.allocUnsafe was added in v5.10.0).

Diff: 2.1.3...2.2.0