Damien Arrachequesne
4f6030f2c4
chore(release): 4.7.5
...
Diff: https://github.com/socketio/socket.io-client/compare/4.7.4...4.7.5
2024-03-14 17:43:43 +01:00
Damien Arrachequesne
ca5d50ebac
chore(release): 4.7.3
...
Diff: https://github.com/socketio/socket.io-client/compare/4.7.2...4.7.3
2024-01-03 21:25:21 +01:00
Damien Arrachequesne
d882822908
ci: migrate from zuul to webdriver.io
...
zuul is now archived [1] and does not support the new W3C WebDriver
protocol, since it relies on the wd package [2] under the hood, which
uses the (now deprecated) JSON Wire Protocol.
We will now use the webdriver.io test framework, which allows to run
our tests in local and on Sauce Labs (cross-browser and mobile tests).
This allows us to run our tests on latest versions of Android and iOS,
since Sauce Labs only supports the W3C WebDriver protocol for these
platforms ([3]).
[1]: https://github.com/defunctzombie/zuul
[2]: https://github.com/admc/wd
[3]: https://docs.saucelabs.com/dev/w3c-webdriver-capabilities/
2022-11-17 09:51:12 +01:00
Damien Arrachequesne
f56fdd0f09
chore: remove duplicate package.json file
...
The additional package.json file, which was copied to
build/cjs/package.json, did hide the parent one, leading to several
issues and providing no real feature. The other one, copied to
build/esm/package.json, is needed though, to enforce the module type.
Related:
- https://github.com/socketio/socket.io/issues/4194
- https://github.com/socketio/socket.io-client/issues/1513
2022-01-04 09:57:43 +01:00
Damien Arrachequesne
71e34a3826
chore(release): 4.4.0
...
Diff: https://github.com/socketio/socket.io-client/compare/4.3.2...4.4.0
2021-11-18 13:51:36 +01:00
Damien Arrachequesne
53d8fcafab
fix: add package name in nested package.json
...
Note: the version must be kept in sync when publishing a new release
Related: socketio/socket.io-client#1513
2021-11-16 19:59:59 +01:00
Damien Arrachequesne
c76d36778d
chore(release): 4.3.0
...
Diff: https://github.com/socketio/socket.io-client/compare/4.2.0...4.3.0
2021-10-14 14:37:33 +02:00
Damien Arrachequesne
0661564dc2
chore: migrate to rollup
...
This change allows us to:
- reduce the size of the bundle
- provide an ESM bundle (for usage in <script type="module">)
Related: https://github.com/socketio/socket.io-client/issues/1198
2021-10-13 18:09:41 +02:00
Damien Arrachequesne
16b65698ae
feat: provide an ESM build with and without debug
...
See also: 00d7e7d7ee
Related:
- https://github.com/socketio/socket.io-client/issues/1188
- https://github.com/socketio/socket.io-client/issues/1378
2021-10-13 18:09:41 +02:00
Damien Arrachequesne
43613d1b2c
fix(bundle): restore support for JS modules
...
This change is needed so the bundle can be used with:
```
<script type="module" src="xxxx/socket.io.js"></script>
```
Related:
- https://github.com/socketio/socket.io/discussions/3828
- 13b32b39a4
- 8c08c5d5c3
2021-03-10 12:17:52 +01:00
Damien Arrachequesne
13b32b39a4
fix: restore support for web workers
...
A previous change ([1], included in 3.0.5) broke support for web
workers, which threw "window is not defined" when importing the bundle
in a web worker.
Related: https://github.com/socketio/socket.io/issues/3809
Reference: https://webpack.js.org/configuration/output/#outputglobalobject
[1]: 8c08c5d5c3
2021-02-26 00:43:26 +01:00
Damien Arrachequesne
61afc5d8cb
fix: remove polyfill for process in the bundle
...
A polyfill for Node.js "process" was included in the final bundle.
Reference: https://webpack.js.org/configuration/node/
2021-02-02 12:08:26 +01:00
Damien Arrachequesne
8c08c5d5c3
refactor: remove global polyfill from webpack config
...
Fixes https://github.com/socketio/socket.io-client/issues/1407
2021-01-05 10:15:27 +01:00
Damien Arrachequesne
71d60480af
feat: add bundle with msgpack parser
...
Pros:
- events with binary content are sent as 1 WebSocket frame (instead of 2 with the default parser)
- payloads with lots of numbers should be smaller
Cons:
- no IE9 support (https://caniuse.com/mdn-javascript_builtins_arraybuffer )
- a slightly bigger bundle size (61.1 vs 59.9 KB)
Source: https://github.com/darrachequesne/socket.io-msgpack-parser
2020-10-25 22:47:31 +01:00
Damien Arrachequesne
c07b91db96
chore: restore the source-map generation
2020-10-12 11:16:26 +02:00
Damien Arrachequesne
cab895f477
refactor: use prettier to format tests
2020-10-06 00:21:14 +02:00
Damien Arrachequesne
697bea2d81
refactor: migrate to TypeScript
2020-10-06 00:21:14 +02:00
Damien Arrachequesne
3c11eb9d2e
refactor: remove gulp from the build
...
Plain npm scripts should be sufficient for our use case.
2020-10-05 15:48:22 +02:00
Damien Arrachequesne
71d7b79965
[chore] Bump engine.io-client to version 3.4.0
...
Also includes the bump of the debug dependency.
Diff: https://github.com/socketio/engine.io-client/compare/3.3.1...3.4.0
2019-09-20 12:02:21 +02:00
Damien Arrachequesne
eeafa44d01
[fix] Remove any reference to the global variable
...
Related: https://github.com/socketio/socket.io-client/issues/1166
2018-11-28 22:48:12 +01:00
Damien Arrachequesne
3d8f24e94f
[test] Update travis configuration
2018-03-01 02:23:26 +01:00
Aaron Ogata
e27f38bb68
[chore] Restore unminified distribution files ( #1191 )
2018-03-01 01:08:11 +01:00
Damien Arrachequesne
49fb3e035b
[fix] Run tests on the minified files ( #1042 )
2017-02-22 12:30:16 +01:00
Damien Arrachequesne
d47bbd802e
[fix] Fix json import in slim build ( #1036 )
2016-11-27 23:37:42 +01:00
Damien Arrachequesne
c1dd34c4eb
[chore] Provide a slim build without JSON3 and debug ( #1030 )
...
The dist folder now contains both the default build and a slimmer one, generated without JSON3 (JSON polyfill for IE6/IE7) and debug modules.
2016-11-27 08:12:17 +01:00
Zhu Liang
4d1c20dbd6
[feature] emit sourcemap for socket.io.js ( #953 )
2016-11-05 00:24:53 +01:00
David Matas Matas
5077f0a66b
[chore] Disable AMD for json3 ( #1005 )
...
Saying to Webpack don't use the AMD style for json3 dependency
2016-10-21 02:08:29 +02:00
Diga Widyaprana
c51a930a2c
ESlint manual fix
2016-02-28 02:36:06 +08:00
Diga Widyaprana
d1cbc68ea7
Eslint autofix
2016-02-28 02:36:06 +08:00
Zhu Liang
8725d6e5cb
fixed regex
2016-02-15 13:34:25 +08:00
Zhu Liang
60fa83c345
removed babel react preset
2016-02-12 13:40:52 +08:00
Diga Widyaprana
422f29ebf6
Remove browserify stuff, add zuul-builder-webpack devDep
2016-02-10 23:44:08 +08:00
Diga Widyaprana
ec06f7a6c3
Refactor webpack config out to support/webpack.config.js
2016-02-10 23:41:27 +08:00
Zhu Liang
3799b60d5b
added babel integration using browserify API
2016-01-26 16:10:20 +08:00
Guillermo Rauch
df5df9aad1
exclude ws instead of ignoreing it from build [@lpinca]
2016-01-07 17:25:23 -08:00
Guillermo Rauch
de17842926
Merge pull request #932 from NativeScript/browserify-add-global
...
Add global object as another fallback.
2016-01-07 17:20:39 -08:00
Guillermo Rauch
1fc8b80e53
support: update browserify instructions
2016-01-07 10:31:57 -08:00
Stefan Dobrev
cde911c10b
Add global object as another fallback.
...
In some JavaScript runtimes like NativeScript the `window` or `self` objects are not present, but the `global` is.
NativeScript is using Karma as it its unit test runner and thus relies on socket.io for communication. The socket.io client file is served by Karma and loaded in NativeScript. Up until version 1.4.0 this problem was not visible because the root object was not accessed. However this is not the case anymore with latest json3 changes: https://github.com/NativeScript/socket.io-client/blob/master/socket.io.js#L5220
2016-01-07 18:47:40 +02:00
Guillermo Rauch
901353d044
support: fix browserify
2014-03-12 15:35:59 -03:00
Guillermo Rauch
3f8af8828b
support: fix browserify
2014-03-12 14:31:53 -03:00
Tony Kovanen
e7b1646cf4
Forces browserify build to only insert global
2014-03-12 18:45:20 +02:00
Guillermo Rauch
ee257ce3e7
fix browserify signature
2014-03-09 12:22:56 -03:00
Guillermo Rauch
2ae3b9dde2
implemented better browserify pipeline
2014-02-20 13:43:08 -08:00
Guillermo Rauch
d5652feadc
1.0 client initial commit
2012-12-10 03:31:57 -03:00
Gabe Hollombe
76cf0b30cf
added tests for auto and manual buffer flushing
2012-04-23 18:01:37 +07:00
Guillermo Rauch
b1f5509b1a
Expose transport as local to test runner app.
2012-03-02 08:10:06 -03:00
Guillermo Rauch
205790e63c
Added warning within Firefox about webworker test in test runner.
2012-03-02 08:09:48 -03:00
Guillermo Rauch
a84002563e
Added warning styles.
2012-03-02 08:09:36 -03:00
Guillermo Rauch
d4b1e480cb
Compiled CSS
2012-03-02 08:00:46 -03:00
Guillermo Rauch
d51046339f
Fixed test runner on IE6/7. Odd jquery bug
2011-10-27 12:27:26 +08:00