Skip to content
Closed

test #5407

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
5746 commits
Select commit Hold shift + click to select a range
ca5d50e
chore(release): 4.7.3
darrachequesne Jan 3, 2024
0d89319
chore(release): 4.7.3
darrachequesne Jan 3, 2024
80b2c34
chore: bump socket.io-client version
darrachequesne Jan 3, 2024
cb6d2e0
fix(typings): calling io.emit with no arguments incorrectly errored
ZachHaber Jan 5, 2024
04640d6
chore(tests): indicate a future ts error with version
ZachHaber Jan 5, 2024
f8d2644
chore(tests): add type defs for expectjs and fix invalid expectations
ZachHaber Jan 5, 2024
2c0a81c
chore(tests): fix issues due to client#id type change
ZachHaber Jan 5, 2024
d9fb2f6
chore(tests): add a test for noArgs in a namespace
ZachHaber Jan 7, 2024
8cfea8c
chore(release): 4.7.4
darrachequesne Jan 12, 2024
6ab2509
chore(release): 4.7.4
darrachequesne Jan 12, 2024
d943c3e
docs: update the Passport.js example
darrachequesne Jan 12, 2024
914a8bd
docs: add example with JWT
darrachequesne Jan 13, 2024
0bbe8ae
docs: only execute the passport middleware once
darrachequesne Jan 13, 2024
e36062c
docs: update the webtransport example
darrachequesne Jan 17, 2024
08cff77
chore: bump prettier to version 3
darrachequesne Feb 5, 2024
0305b4a
fix(typescript): properly import the TransformStream type
darrachequesne Feb 5, 2024
69d02dd
chore(release): 5.2.2
darrachequesne Feb 5, 2024
e426f3e
fix: remove duplicate pipeline when serving bundle
darrachequesne Feb 12, 2024
54dabe5
ci: upgrade to actions/checkout@4 and actions/setup-node@4
darrachequesne Feb 12, 2024
b9ce6a2
refactor: create specific adapter for parent namespaces (#4950)
jokester Feb 19, 2024
b157e9e
refactor: import the ClusterAdapter abstract class
darrachequesne Feb 20, 2024
b2d3695
refactor(cluster): add explicit message types
darrachequesne Feb 20, 2024
80af4e9
fix(cluster): fix count in fetchSockets() method
darrachequesne Feb 20, 2024
0e23ff0
fix(cluster): notify the other nodes when closing
darrachequesne Feb 20, 2024
1011ab3
refactor(cluster): allow to call onMessage() with a cluster response
darrachequesne Feb 20, 2024
39d4220
refactor(cluster): catch publish errors
darrachequesne Feb 20, 2024
d99a71b
perf(cluster): use timer.refresh()
darrachequesne Feb 20, 2024
2a6a215
refactor(cluster): add explicit types
darrachequesne Feb 20, 2024
2df5e94
test(cluster): init the test suite for the clustered adapter
darrachequesne Feb 21, 2024
48eddc1
ci: use Node.js 20
darrachequesne Feb 21, 2024
1d8da64
ci: upgrade to actions/checkout@4 and actions/setup-node@4
darrachequesne Feb 21, 2024
5dcd182
refactor(cluster): make onMessage() method synchronous
darrachequesne Feb 21, 2024
549156c
chore(release): 2.5.3
darrachequesne Feb 21, 2024
ca397f3
fix(types): ensure compatibility with TypeScript < 4.5
darrachequesne Feb 22, 2024
9d4c4a7
refactor(cluster): export ClusterAdapterOptions and MessageType types
darrachequesne Feb 22, 2024
abc93a9
refactor: break circular dependency (1)
darrachequesne Feb 22, 2024
207c0db
refactor: break circular dependency (2)
darrachequesne Feb 22, 2024
a13f35f
fix: ensure the order of the commands
darrachequesne Feb 22, 2024
005d546
ci: test with older TypeScript version
darrachequesne Feb 22, 2024
5eae5a0
chore(release): 2.5.4
darrachequesne Feb 22, 2024
748e18c
ci: test with older TypeScript version
darrachequesne Feb 22, 2024
0efa04b
fix(types): make socket.request writable (#697)
jonathanperret Feb 23, 2024
bf64870
fix: close the adapters when the server is closed
darrachequesne Feb 23, 2024
34cbfbb
fix: discard acknowledgements upon disconnection
darrachequesne Mar 14, 2024
4f6030f
chore(release): 4.7.5
darrachequesne Mar 14, 2024
5017681
chore(release): 4.7.5
darrachequesne Mar 14, 2024
b0568b2
docs: add example with Next.js (with pages router)
darrachequesne Mar 25, 2024
218c344
chore: bump express from 4.17.3 to 4.19.2 (#718)
dependabot[bot] Mar 26, 2024
61f4449
docs: add example with Next.js (with app router)
darrachequesne Mar 27, 2024
be2da4e
docs: add example with Nuxt
darrachequesne Mar 29, 2024
79ea52d
chore(deps): bump express from 4.18.2 to 4.19.2 in /examples/latency …
dependabot[bot] Mar 29, 2024
907f102
docs: update React Native example
darrachequesne Apr 5, 2024
28c9ed4
ci: init GitHub Actions
darrachequesne Apr 10, 2024
4476b52
revert: refactor: rename emitReserved to _emitReserved to improve man…
darrachequesne Apr 10, 2024
ba6b56d
refactor: rework the dual CommonJS/ES packages
darrachequesne Apr 10, 2024
c68478d
chore(release): 3.1.1
darrachequesne Apr 10, 2024
14d4997
docs: add example with NW.js
darrachequesne Apr 12, 2024
b11763b
feat: add HTTP long-polling implementation based on fetch()
darrachequesne Apr 23, 2024
62cbed7
refactor: change URL max length to 8000
darrachequesne Apr 23, 2024
e6aa1a3
fix: point towards the CommonJS types
darrachequesne Apr 26, 2024
8a2ece1
chore(release): 3.1.2
darrachequesne Apr 26, 2024
b25e728
docs: update TypeScript example
darrachequesne Apr 26, 2024
239a2a8
fix: fix broadcasting from a parent namespace (#5009)
gkt5015 Apr 26, 2024
89c4c7e
refactor(examples): minor tweak (#5017)
pourya-azad May 10, 2024
156d622
refactor: remove unused onlyBinaryUpgrades option
darrachequesne May 19, 2024
cb10d01
docs: improve documentation for the autoUnref option
darrachequesne May 19, 2024
c060d65
refactor: improve the constructor types
darrachequesne May 19, 2024
68f9e0d
refactor: improve the types
darrachequesne May 19, 2024
2c1851d
refactor: simplify transport creation
darrachequesne May 20, 2024
31f10f6
fix(types): make io#httpServer public (#5035)
tnfAngel May 27, 2024
579b243
feat: add the ability to test all transports
darrachequesne May 28, 2024
f4d898e
feat: allow to provide a list of transport implementations
darrachequesne May 31, 2024
dd52844
chore: add a script to compute the bundle size
darrachequesne May 31, 2024
4aec72a
chore: use babel loose mode when transpiling classes
darrachequesne May 31, 2024
3f66478
chore: remove unused rollup plugin
darrachequesne May 31, 2024
e105551
fix: fix cookie management with WebSocket (Node.js only)
darrachequesne Jun 3, 2024
2b9abbb
chore: restore the debug package in the dev bundle
darrachequesne Jun 3, 2024
74cfb98
refactor: prefix private attributes to allow property mangling
darrachequesne Jun 4, 2024
ce13763
ci: upgrade to actions/checkout@4 and actions/setup-node@4
darrachequesne Jun 4, 2024
c087dc5
docs(changelog): include the size of the bundle
darrachequesne Jun 4, 2024
b624c50
fix: add some randomness to the cache busting string generator
darrachequesne Jun 5, 2024
579d344
chore: fix compilation on macOS (#1616)
Szaroslav Jun 11, 2024
fc21c4a
fix: fix `websocket` and `webtransport` send callbacks (#699)
jonathanperret Jun 13, 2024
8955eb7
docs(examples): add some examples to track the memory usage
darrachequesne Jun 13, 2024
ef1c4c8
refactor: remove the wsPreEncoded option
darrachequesne Jun 13, 2024
407c3ad
refactor: simplify the handling of the "drain" event
darrachequesne Jun 13, 2024
62f59b6
refactor: remove unnecessary array allocation
darrachequesne Jun 13, 2024
9a68c8c
perf(websocket): use bound callbacks
darrachequesne Jun 17, 2024
b0721e6
ci: upgrade to actions/checkout@4 and actions/setup-node@4
darrachequesne Jun 17, 2024
e97a4d3
chore: bump ws from 8.11.0 to 8.17.1 (#720)
dependabot[bot] Jun 18, 2024
3c4d314
chore(deps): bump ws from 8.11.0 to 8.17.1 (#702)
dependabot[bot] Jun 18, 2024
72408ad
docs(changelog): include release notes from versions 3.5.3, 3.5.4 and…
darrachequesne Jun 18, 2024
d3f45dc
docs(changelog): add release notes for versions 3.6.2 and 6.5.5
darrachequesne Jun 18, 2024
93fe190
chore(deps): bump ws from 8.11.0 to 8.17.1 (#93)
abrom Jun 18, 2024
05a190a
chore(release): 6.5.5
darrachequesne Jun 18, 2024
fb5904e
chore(deps): bump ws to version 8.17.1 (#5052)
sordu Jun 18, 2024
5359bae
perf: do not reset the hearbeat timer on each packet
darrachequesne Jun 18, 2024
f521cba
refactor: simplify the heartbeat code
darrachequesne Jun 18, 2024
6b9e3e4
refactor: improve types
darrachequesne Jun 18, 2024
56c4664
chore(deps-dev): bump braces from 3.0.2 to 3.0.3 (#701)
dependabot[bot] Jun 18, 2024
afd2934
chore(dev-deps): bump ws and engine.io-client in /examples/memory-usa…
dependabot[bot] Jun 18, 2024
362bc78
fix: properly call the send callback during upgrade
darrachequesne Jun 21, 2024
c310b7b
refactor: improve types
darrachequesne Jun 21, 2024
6d8a0be
refactor: move the `req` attribute to the polling class
darrachequesne Jun 21, 2024
a17cbc5
chore(release): 6.6.0
darrachequesne Jun 21, 2024
791aa58
chore(release): 6.6.0
darrachequesne Jun 21, 2024
71eaec4
docs(changelog): improve the changelog for version 6.6.0
darrachequesne Jun 22, 2024
88016b8
docs(security): update the list of CVE
darrachequesne Jun 25, 2024
c815579
docs: fix typo
darrachequesne Jul 1, 2024
f21de7b
docs: add note about UTF-8 encoding
darrachequesne Jul 1, 2024
d9d19b4
refactor: prepare the migration to a monorepo
darrachequesne Jul 4, 2024
273093c
refactor: prepare the migration to a monorepo
darrachequesne Jul 4, 2024
b2cf3f7
Merge remote-tracking branch 'socket.io-client/main' into monorepo
darrachequesne Jul 4, 2024
bd02c72
refactor: prepare the migration to a monorepo
darrachequesne Jul 4, 2024
7aedc79
Merge remote-tracking branch 'socket.io-parser/main' into monorepo
darrachequesne Jul 4, 2024
d9b4c3c
ci: create npm workspaces and sort out dependencies
darrachequesne Jul 4, 2024
914716d
ci: move building the examples to its own workflow
darrachequesne Jul 4, 2024
4cac372
chore: update the repository URLs
darrachequesne Jul 4, 2024
b4002c2
refactor: prepare the migration to a monorepo
darrachequesne Jul 4, 2024
dfac908
Merge remote-tracking branch 'socket.io-protocol/main'
darrachequesne Jul 4, 2024
93b42f6
refactor: prepare the migration to a monorepo
darrachequesne Jul 4, 2024
f1c8410
refactor: prepare the migration to a monorepo
darrachequesne Jul 4, 2024
bbcad83
Merge remote-tracking branch 'socket.io-protocol/v4'
darrachequesne Jul 4, 2024
c508501
Merge remote-tracking branch 'socket.io-protocol/v3'
darrachequesne Jul 4, 2024
ae3c26f
docs: restore readme
darrachequesne Jul 4, 2024
59838b7
docs: move changelog of the `socket.io` package
darrachequesne Jul 4, 2024
c0e448a
docs: add links to each changelog
darrachequesne Jul 4, 2024
f98fc28
refactor: prepare the migration to a monorepo
darrachequesne Jul 8, 2024
7c4efaa
refactor: prepare the migration to a monorepo
darrachequesne Jul 8, 2024
e514852
Merge remote-tracking branch 'engine.io-parser/main' into monorepo
darrachequesne Jul 8, 2024
32a1a60
refactor: prepare the migration to a monorepo
darrachequesne Jul 8, 2024
5b2d238
Merge remote-tracking branch 'engine.io-client/main' into monorepo
darrachequesne Jul 8, 2024
efe86ee
refactor: prepare the migration to a monorepo
darrachequesne Jul 8, 2024
90bbd51
Merge remote-tracking branch 'engine.io/main' into monorepo
darrachequesne Jul 8, 2024
3546094
refactor: prepare the migration to a monorepo
darrachequesne Jul 8, 2024
dce7200
Merge remote-tracking branch 'socket.io-adapter/main' into monorepo
darrachequesne Jul 8, 2024
8d0c483
Merge remote-tracking branch 'socket.io-component-emitter/main' into …
darrachequesne Jul 8, 2024
34137d3
chore: add new npm workspaces
darrachequesne Jul 8, 2024
68efa28
refactor: prepare the migration to a monorepo
darrachequesne Jul 8, 2024
498e8e2
refactor: prepare the migration to a monorepo
darrachequesne Jul 8, 2024
1d65f11
Merge remote-tracking branch 'engine.io-protocol/main'
darrachequesne Jul 8, 2024
cbf6df0
Merge remote-tracking branch 'engine.io-protocol/v3'
darrachequesne Jul 8, 2024
8c3debf
docs: init the contributing guide
darrachequesne Jul 8, 2024
ec79211
docs: init README for the monorepo
darrachequesne Jul 8, 2024
5fae41a
chore: align all MIT licenses text
darrachequesne Jul 9, 2024
84d2aa7
chore: update the repository URLs
darrachequesne Jul 9, 2024
afdc3b2
ci: restore browser tests with Sauce Labs
darrachequesne Jul 9, 2024
d3761e3
docs(security): add the list of CVE for the socket.io-client package
darrachequesne Jul 9, 2024
2a29c4c
chore: move dev dependencies in the parent package.json file
darrachequesne Jul 9, 2024
fbc0313
chore: add publish workflow
darrachequesne Jul 11, 2024
04033b2
chore: add publish workflow (2)
darrachequesne Jul 11, 2024
f9cb983
fix(engine.io-parser): do not expose the TransformStream type
darrachequesne Jul 11, 2024
f00fc89
chore(release): engine.io-parser@5.2.3
darrachequesne Jul 11, 2024
0692bed
chore: fix the publish workflow
darrachequesne Jul 11, 2024
b7da542
chore: normalize repository URLs
darrachequesne Jul 11, 2024
b00124b
feat: implement cluster-friendly engine
darrachequesne Jul 17, 2024
7521ac2
chore(release): @socket.io/cluster-engine@0.1.0
darrachequesne Jul 17, 2024
be1e4cb
ci(publish): update the tag regex
darrachequesne Jul 17, 2024
b9b1613
chore(socket.io-adapter): remove dist before compilation
darrachequesne Jul 17, 2024
0af5075
chore(cluster-engine): update homepage URL
darrachequesne Jul 18, 2024
1f09a3e
ci(publish): compile all packages before publishing
darrachequesne Jul 18, 2024
8b0a40f
docs: add examples with @socket.io/cluster-engine
darrachequesne Jul 19, 2024
6e9bff4
docs: add example with @socket.io/postgres-adapter
darrachequesne Jul 19, 2024
b757755
docs: add example with NestJS
darrachequesne Jul 22, 2024
7fd75e6
docs(changelog): add changelog for socket.io-parser@3.3.4
darrachequesne Jul 22, 2024
b79d80a
docs: fix conjunction with fastify example (#5057)
KartikeSingh Jun 24, 2024
582655f
test(cluster-engine): fix flaky test cleanup
darrachequesne Jul 26, 2024
d5b22f5
chore(socket.io): bump engine.io to version 6.6.0
jokester Aug 23, 2024
5d9a2d5
chore(socket.io-client): bump engine.io-client to version 6.6.0
jokester Aug 23, 2024
b5ccfd4
refactor(eio-client): improve transports type (#5188)
nayounsang Sep 14, 2024
e347a3c
fix(sio): correctly await async close on adapters (#4971)
marknelissen Sep 14, 2024
a1ccba3
chore: use prettier v3 everywhere (#5169)
jokester Sep 16, 2024
7160eb7
chore: temporarily disable publish workflow
darrachequesne Sep 16, 2024
02d59a0
chore: re-enable publish workflow
darrachequesne Sep 16, 2024
fd99f2e
refactor(sio): export the DefaultEventsMap type
darrachequesne Sep 16, 2024
fcbecd4
ci: restore package-specific tests
darrachequesne Sep 17, 2024
09f573c
test(sio-client): reduce test suite duration
darrachequesne Sep 18, 2024
2194264
test(eio-client): reduce test suite duration
darrachequesne Sep 18, 2024
04c8dd9
fix(sio-client): close the engine upon decoding exception
darrachequesne Sep 17, 2024
60c757f
fix(sio-client): accept string | undefined as init argument (bis)
darrachequesne Sep 18, 2024
7a23dde
perf: do not reset the hearbeat timer on each packet
darrachequesne Sep 18, 2024
8adcfbf
fix(sio-client): do not send a packet on an expired connection (#5134)
tjenkinson Sep 18, 2024
13c6d2e
fix(sio-client): allow to manually stop the reconnection loop
darrachequesne Sep 18, 2024
923a12e
fix(eio): discard all pending packets when the server is closed
darrachequesne Sep 18, 2024
1f54ee0
refactor(sio): simplify middleware execution
darrachequesne Sep 18, 2024
32c761f
refactor(sio): export the ExtendedError type
darrachequesne Sep 18, 2024
043b55c
refactor(sio): simplify middleware execution (bis)
darrachequesne Sep 18, 2024
9b3c9ab
fix(eio-client): only remove the event listener if it exists
darrachequesne Sep 18, 2024
19c48a4
refactor(sio): break circular dependency in source code
darrachequesne Sep 19, 2024
da61381
test(eio): bump uWebSockets.js to version 20.48.0
darrachequesne Sep 19, 2024
d5095fe
fix(eio): prevent the client from upgrading twice (uws)
darrachequesne Sep 19, 2024
132d05f
fix(sio): expose type of default engine
darrachequesne Sep 20, 2024
93010ca
chore(eio-client): bump xmlhttprequest-ssl to version 2.1.1
darrachequesne Sep 21, 2024
282ae92
chore(sio-client): restore the debug package in the dev bundle
darrachequesne Sep 21, 2024
1a95db2
chore(sio-client): add a script to compute the bundle size
darrachequesne Sep 21, 2024
4f66708
chore(sio-client): use babel loose mode when transpiling classes
darrachequesne Sep 21, 2024
7085f0e
refactor(sio-client): mangle private attributes
darrachequesne Sep 21, 2024
b04fa64
fix(sio): allow to join a room in a middleware (uws)
darrachequesne Sep 21, 2024
8a2f5a3
fix(eio-client): move 'offline' event listener at the top
darrachequesne Sep 21, 2024
c251ae7
chore(release): engine.io-client@6.6.1
darrachequesne Sep 21, 2024
d4cb375
ci: ignore tests when publishing to npm
darrachequesne Sep 21, 2024
2b60df1
chore(release): engine.io@6.6.1
darrachequesne Sep 21, 2024
4a0555c
chore(release): socket.io-client@4.8.0
darrachequesne Sep 21, 2024
d0fc720
chore(release): socket.io@4.8.0
darrachequesne Sep 21, 2024
88efd44
chore(deps): bump cookie to version 0.7.2 (#5205)
k725 Oct 9, 2024
a5d2368
ci: ignore tests when publishing to npm (bis)
darrachequesne Oct 9, 2024
9b80ab4
chore(release): engine.io@6.6.2
darrachequesne Oct 9, 2024
175a2c5
fix(eio-client/types): remove ws type from .d.ts file
darrachequesne Oct 19, 2024
3b68658
chore: bump @fails-components/webtransport to version 1.1.4 (dev)
darrachequesne Oct 19, 2024
d4b3dde
ci: use Node.js 22
darrachequesne Oct 19, 2024
4865f2e
fix(eio-client): prevent infinite loop with Node.js built-in WebSocket
darrachequesne Oct 21, 2024
ca9e994
fix(sio-client): do not mangle the "_placeholder" attribute
darrachequesne Oct 22, 2024
4ca6ddb
docs(nuxt): update example with latest version
darrachequesne Oct 23, 2024
029e010
chore(release): engine.io-client@6.6.2
darrachequesne Oct 23, 2024
aead835
refactor(sio): make Namespace._fns private (#5196)
ammut Oct 23, 2024
71387e5
refactor(sio-client): reexport transports from the engine
darrachequesne Oct 25, 2024
8d5528a
chore(release): socket.io-client@4.8.1
darrachequesne Oct 25, 2024
91e1c8b
chore(release): socket.io@4.8.1
darrachequesne Oct 25, 2024
7427109
refactor(eio): bump cookie to version 1.0.2
darrachequesne Nov 21, 2024
7fcddcb
fix(engine.io-client): correctly consume the `ws` package (#5220)
benmccann Jan 7, 2025
bfa6eab
chore(release): engine.io-client@6.6.3
darrachequesne Jan 23, 2025
62e4da1
chore(release): engine.io@6.6.3
darrachequesne Jan 23, 2025
5a31aaf
chore(eio): revert cookie to version ~0.7.2
darrachequesne Jan 28, 2025
72d61da
chore(release): engine.io@6.6.4
darrachequesne Jan 28, 2025
e95f6ab
docs: fix message handler latency in test suites
darrachequesne Mar 28, 2025
be13cca
refactor: improve type annotations and comments (#5364)
jokester Jun 27, 2025
3be6481
ci: pin Node.js 22 version
darrachequesne Aug 9, 2025
a66ed68
docs(protocol): add test with cancelled request
darrachequesne Sep 3, 2025
0a8f910
docs: fix adapter link (#2)
lklepner Sep 4, 2025
42480e9
chore: prepare migration to monorepo
darrachequesne Sep 4, 2025
c714492
Merge remote-tracking branch 'socket.io-postgres-emitter/main' into m…
darrachequesne Sep 4, 2025
32257b6
fix(postgres-emitter): use parameterized query to send the NOTIFY com…
darrachequesne Sep 5, 2025
96d907b
docs(postgres-emitter): add dark version of the explanation diagram
darrachequesne Sep 5, 2025
21fd54e
refactor(postgres-emitter): update compose file
darrachequesne Sep 5, 2025
ac3df9a
chore(release): @socket.io/postgres-emitter@0.1.1
darrachequesne Sep 5, 2025
6f9b198
chore(deps): ws@8.18.3, debug@4.4.1 (#5335)
AviVahl Sep 11, 2025
1da9cdd
fix(eio-client): properly handle port option (#5241)
502647092 Nov 27, 2024
e975492
ci(browser): use Windows 8 for IE tests
darrachequesne Sep 30, 2025
f3e1f5e
fix(sio): call adapter.init() when creating each namespace
darrachequesne Oct 9, 2025
625fd66
chore: dedupe debug dependency
darrachequesne Oct 10, 2025
cf6816a
chore: npm audit fix
darrachequesne Oct 10, 2025
6877512
refactor: upgrade to TypeScript 5
darrachequesne Oct 16, 2025
1dd729b
refactor: upgrade to prettier 3
darrachequesne Oct 16, 2025
4fc25d8
ci: add Node.js 24
darrachequesne Oct 16, 2025
0c43124
refactor: use the ClusterAdapter class from socket.io-adapter package
darrachequesne Oct 16, 2025
27fd420
refactor: prepare migration to monorepo
darrachequesne Oct 16, 2025
0ae7636
Merge remote-tracking branch 'socket.io-cluster-adapter/monorepo'
darrachequesne Oct 16, 2025
47ff1cd
chore(release): @socket.io/cluster-adapter@0.3.0
darrachequesne Oct 16, 2025
5080c73
refactor: fix npm command
darrachequesne Oct 17, 2025
693080c
refactor(sio-adapter): add more debug logs
darrachequesne Oct 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
45 changes: 45 additions & 0 deletions .github/workflows/build-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build examples

on:
schedule:
- cron: '0 0 * * 0'

permissions:
contents: read

jobs:
build-examples:
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
fail-fast: false
matrix:
example:
- custom-parsers
- typescript-example/cjs
- typescript-example/esm
- typescript-client-example/cjs
- typescript-client-example/esm
- webpack-build
- webpack-build-server
- basic-crud-application/angular-client
- basic-crud-application/vue-client
- nextjs-pages-router
- nextjs-app-router
- nuxt-example

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20

- name: Build ${{ matrix.example }}
run: |
cd examples/${{ matrix.example }}
npm install
npm run build
41 changes: 41 additions & 0 deletions .github/workflows/ci-browser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI (browser)

on:
push:
branches:
- '**'
paths:
- 'packages/engine.io-parser/**'
- 'packages/engine.io-client/**'
- 'packages/socket.io-parser/**'
- 'packages/socket.io-client/**'

permissions:
contents: read

jobs:
test-browser:
runs-on: ubuntu-latest
timeout-minutes: 20

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm ci

- name: Compile each package
run: npm run compile --workspaces --if-present

- name: Run tests
run: npm test --workspace=socket.io-parser --workspace=socket.io-client
env:
BROWSERS: 1
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
66 changes: 59 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,77 @@ name: CI

on:
push:
branches:
- '**'
pull_request:
schedule:
- cron: '0 0 * * 0'

permissions:
contents: read

jobs:
test-node:
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
fail-fast: false
matrix:
node-version: [12, 14, 16]
node-version:
- 18
- 20
- 22.17.1 # experimental TS type striping in 22.18.0 breaks the build

services:
redis:
image: redis:7
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379

postgres:
image: postgres:14
env:
POSTGRES_PASSWORD: changeit
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
env:
CI: true

- name: Install dependencies
run: npm ci

- name: Compile each package
run: npm run compile --workspaces --if-present

- name: Run tests
run: npm test --workspaces

- name: Run tests with uws (engine.io)
run: npm run test:uws --workspace=engine.io
if: ${{ matrix.node-version == '18' }}

- name: Run tests with fetch instead of XHR (engine.io-client)
run: npm run test:node-fetch --workspace=engine.io-client
if: ${{ matrix.node-version == '18' }}

- name: Run tests with Node.js native WebSocket (engine.io-client)
run: npm run test:node-builtin-ws --workspace=engine.io-client
if: ${{ matrix.node-version == '22' }}
37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# reference: https://docs.npmjs.com/generating-provenance-statements

name: Publish

on:
push:
tags:
# expected format: <package>@<version> (example: socket.io@1.2.3)
- '**@*'

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Compile each package
run: npm run compile --workspaces --if-present

- name: Publish package
run: npm publish --workspace=${GITHUB_REF_NAME%@*} --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ coverage
.idea
.nyc_output
dist/
build/
2 changes: 0 additions & 2 deletions .replit

This file was deleted.

Loading
Loading