Commit Graph

158 Commits

Author SHA1 Message Date
Damien Arrachequesne
ebdf467371 [test] Add a basic test for UTF-8 encoding/decoding (#106) 2018-11-01 06:26:13 +01:00
Damien Arrachequesne
e184cac0fa [chore] Pin zuul version
The CI fails with the new version: https://travis-ci.org/socketio/engine.io-parser/jobs/448690970

> /home/travis/build/[secure]io/engine.io-parser/node_modules/zuul/bin/zuul:332
>             throw err.message;
>             ^
> internet explorer@8: [eval("(window.zuul_msg_bus ? window.zuul_msg_bus.splice(0, 1000) : []);")] Not JSON response
2018-10-31 07:50:51 +01:00
Damien Arrachequesne
d848f0fc82 [refactor] Remove any reference to the global variable (#103)
Related #99
2018-10-31 06:23:32 +01:00
Damien Arrachequesne
3bc16f5938 [refactor] Remove custom exports from utf8.js file (#102)
AMD and browser exports are useless here.
2018-10-31 06:23:08 +01:00
Damien Arrachequesne
ecf0c1465c [test] Update travis configuration (#101) 2018-10-31 06:02:03 +01:00
Damien Arrachequesne
916e4bbc45 [chore] Bump dev dependencies (#100) 2018-10-31 06:01:29 +01:00
Damien Arrachequesne
25c4dd115d [test] Update travis configuration 2018-02-27 21:29:29 +01:00
Damien Arrachequesne
e867117708 [chore] Release 2.1.2 2017-12-28 23:05:40 +01:00
Damien Arrachequesne
eeb0653ebb [refactor] Remove useless entry point (#98) 2017-12-28 22:50:15 +01:00
Damien Arrachequesne
275a9cbdb7 [test] Cache node_modules directory (#97) 2017-12-28 22:49:58 +01:00
Damien Arrachequesne
4eb4c9d2e4 [chore] Bump arraybuffer.slice to version 0.0.7 (#96) 2017-12-28 22:49:29 +01:00
Damien Arrachequesne
e2422c300e [chore] Release 2.1.1 2017-04-27 23:05:31 +02:00
Damien Arrachequesne
f5819ccf58 [chore] Bump has-binary2 to version 1.0.2 (#93) 2017-04-27 23:03:54 +02:00
Damien Arrachequesne
2c233681ef [chore] Release 2.1.0 2017-04-24 14:09:33 +02:00
Damien Arrachequesne
5d6ba84292 [chore] Drop support for old nodejs versions (0.10 & 0.12) (#92) 2017-04-24 13:57:00 +02:00
Damien Arrachequesne
bffb63ebfa [revert] "[fix] Enable to utf8-decode string payloads (#88)" (#91)
This reverts commit 278a7e45e7.
2017-04-24 13:53:17 +02:00
Damien Arrachequesne
057f67f2ab [chore] Release 2.0.3 2017-04-05 23:25:16 +02:00
Damien Arrachequesne
528345470c [chore] Use has-binary2 (#90) 2017-04-05 23:17:20 +02:00
Damien Arrachequesne
523dcd2003 [chore] Release 2.0.2 (#89) 2017-03-21 14:40:00 +01:00
Damien Arrachequesne
278a7e45e7 [fix] Enable to utf8-decode string payloads (#88)
That will allow clients receiving the xhr payload with
responseType = 'arraybuffer' to properly decode the message, which is
not sent as binary by the backend anymore since 292c00c (#85).
2017-03-21 14:35:00 +01:00
Damien Arrachequesne
6c597956cb [chore] Release 2.0.1 (#86) 2017-03-06 12:28:04 +01:00
Damien Arrachequesne
292c00c183 [fix] Encode string payloads as strings even if binary supported (#85)
This reverts commit 44c7aa5, which caused string payloads to be encoded
as binary (so that huge string payloads were needlessly UTF-8-encoded).

Related: https://github.com/socketio/socket.io/issues/2872
2017-03-06 12:24:11 +01:00
Damien Arrachequesne
36ba01da98 [chore] release 2.0.0 2016-12-23 11:06:36 +01:00
Gatsbill
89a465a4b8 [perf] Micro optimisations (#84) 2016-12-23 07:19:13 +01:00
Damien Arrachequesne
d1c2680ca9 [fix] Sanitize strings by removing lone surrogates (#82) 2016-12-21 22:01:19 +01:00
Billouboq
2d83f9da17 [perf] Use strict equality where possible (#77) 2016-12-21 09:52:23 +01:00
Damien Arrachequesne
ebf92a5097 [style] Minor style changes (#83) 2016-12-21 09:31:14 +01:00
Damien Arrachequesne
181acef657 [fix] Fix double utf8 encoding for payloads (#81) 2016-12-21 09:15:07 +01:00
Damien Arrachequesne
339d367267 [chore] Update zuul config to speed up tests (#76) 2016-12-21 08:59:06 +01:00
Damien Arrachequesne
77975d054a [chore] release 1.3.2 (#79) 2016-12-07 22:21:41 +01:00
Damien Arrachequesne
494eca0be0 [chore] Bump dependencies (#78)
- bump after to version 0.8.2
- bump has-binary to version 0.1.7
- bump mocha to version 3.2.0
- bump zuul to version 3.11.1
2016-12-07 22:15:59 +01:00
Damien Arrachequesne
ada9dbe77b [chore] release 1.3.1 (#75) 2016-10-20 14:43:50 +02:00
Damien Arrachequesne
6741900f37 [fix] Handle undefined case properly when decoding packet (#74) 2016-10-20 14:39:04 +02:00
jm
5aecaa914d [fix] decodePacket now accepts both Buffer and ArrayBuffer as data
Closes #64, fixes #60
2016-10-20 14:17:02 +02:00
Damien Arrachequesne
1ae44c9d10 [chore] Update zuul browser settings (#73)
- Remove deprecated iOS 7.1
- Add Firefox and Microsoft Edge browsers
- Add latest stable Node.js release
2016-10-18 02:32:56 +02:00
Jack X
4a818a0ed7 [fix] Add safety check for global object
Closes #71
2016-10-18 01:40:29 +02:00
Damien Arrachequesne
a52d748562 [chore] Bump zuul to 3.11.0 & zuul-ngrok to 4.0.0 (#70) 2016-10-06 21:15:50 +02:00
Damien Arrachequesne
a37fa48a75 [chore] release 1.3.0 (#69) 2016-09-26 04:04:44 +02:00
Damien Arrachequesne
f5d966bd66 [chore] Use wtf-8 instead of utf8 to prevent lone surrogates from generating parsing error (#68) 2016-09-26 03:44:29 +02:00
Damien Arrachequesne
180028699e [chore] Restrict files included in npm package (#67) 2016-09-26 03:40:53 +02:00
Damien Arrachequesne
58dbe3b9e5 [chore] Update license and repository url (#66) 2016-09-26 03:40:33 +02:00
Tom Atkinson
26162afe01 [perf] Split try catch into separate function (#65) 2016-09-26 03:40:17 +02:00
Damien Arrachequesne
073df34c82 Merge pull request #58 from tjni/guard-base64-arraybuffer-require
Require base64-arraybuffer module conditionally.
2016-08-05 19:07:57 +02:00
Damien Arrachequesne
342f7d5dbe Merge pull request #62 from darrachequesne/patch-1
Update zuul browser settings following EOL notices
2016-08-05 18:34:00 +02:00
Damien Arrachequesne
236efa00c6 Update zuul browser settings following EOL notices
- EOL Notice for iOS 5.1, 6.0, 6.1, 8.0, and iWebDriver
- EOL Notice for Android 4.0, 4.1, 4.2
2016-08-05 01:38:49 +02:00
Theodore Ni
c0d166b861 Require base64-arraybuffer module conditionally.
Since base64-arraybuffer version 0.1.5 introduced a change that fails
at require time in a browser without ArrayBuffer support, the require
must be guarded.
2016-06-25 22:12:44 -07:00
Guillermo Rauch
9c91076e96 Merge pull request #56 from nkzawa/fix/bump-zuul
bump zuul
2016-04-11 08:45:26 -07:00
nkzawa
ebfeb4b609 bump zuul 2016-04-11 18:02:53 +09:00
Guillermo Rauch
149f340611 Merge pull request #55 from danawoodman/patch-1
Fix crashes in React Native "navigator is not defined"
2016-04-02 18:06:02 -07:00
Dana Woodman
748144b50a Ensure navigator is defined. 2016-03-09 12:34:38 -08:00