Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: socketio/socket.io
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c82a4bdf1f900644cd7ee823a32c7820164fe80e
Choose a base ref
...
head repository: socketio/socket.io
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7952312911e439f1e794760b50054565ece72845
Choose a head ref
Loading
Showing with 11,057 additions and 6,582 deletions.
  1. +1 −1 .github/ISSUE_TEMPLATE/bug_report.md
  2. +14 −4 .github/workflows/ci.yml
  3. +460 −0 CHANGELOG.md
  4. +2 −3 Readme.md
  5. +22 −0 SECURITY.md
  6. +3 −3 client-dist/socket.io.esm.min.js
  7. +1 −1 client-dist/socket.io.esm.min.js.map
  8. +1,283 −787 client-dist/socket.io.js
  9. +1 −1 client-dist/socket.io.js.map
  10. +3 −3 client-dist/socket.io.min.js
  11. +1 −1 client-dist/socket.io.min.js.map
  12. +3 −3 client-dist/socket.io.msgpack.min.js
  13. +1 −1 client-dist/socket.io.msgpack.min.js.map
  14. +7 −0 examples/basic-crud-application/README.md
  15. +1 −1 examples/basic-crud-application/angular-client/package.json
  16. +16 −0 examples/basic-crud-application/server-postgres-cluster/README.md
  17. +9 −0 examples/basic-crud-application/server-postgres-cluster/docker-compose.yml
  18. +26 −0 examples/basic-crud-application/server-postgres-cluster/lib/app.js
  19. +28 −0 examples/basic-crud-application/server-postgres-cluster/lib/cluster.js
  20. +51 −0 examples/basic-crud-application/server-postgres-cluster/lib/index.js
  21. +140 −0 examples/basic-crud-application/server-postgres-cluster/lib/todo-management/todo.handlers.js
  22. +74 −0 examples/basic-crud-application/server-postgres-cluster/lib/todo-management/todo.repository.js
  23. +22 −0 examples/basic-crud-application/server-postgres-cluster/lib/util.js
  24. +30 −0 examples/basic-crud-application/server-postgres-cluster/package.json
  25. +3 −3 examples/basic-crud-application/server/package.json
  26. +14 −1 examples/create-react-app-example/src/App.js
  27. +16 −0 examples/express-session-example/README.md
  28. BIN examples/express-session-example/assets/demo.gif
  29. +57 −0 examples/express-session-example/index.html
  30. +91 −0 examples/express-session-example/index.js
  31. +15 −0 examples/express-session-example/package.json
  32. +1 −0 examples/rollup-server-bundle/.gitignore
  33. +3 −0 examples/rollup-server-bundle/index.js
  34. +19 −0 examples/rollup-server-bundle/package.json
  35. +12 −0 examples/rollup-server-bundle/rollup.config.js
  36. +1 −10 examples/webpack-build/README.md
  37. +2 −3 examples/webpack-build/index.html
  38. +15 −0 examples/webpack-build/index.js
  39. +0 −12 examples/webpack-build/lib/index.js
  40. +5 −10 examples/webpack-build/package.json
  41. +0 −2 examples/webpack-build/support/noop.js
  42. +0 −8 examples/webpack-build/support/webpack.config.js
  43. +0 −33 examples/webpack-build/support/webpack.config.json-parser.js
  44. +0 −31 examples/webpack-build/support/webpack.config.slim.js
  45. +7 −0 examples/webpack-build/webpack.config.js
  46. +292 −57 lib/broadcast-operator.ts
  47. +42 −21 lib/client.ts
  48. +379 −93 lib/index.ts
  49. +449 −99 lib/namespace.ts
  50. +38 −0 lib/parent-namespace.ts
  51. +521 −86 lib/socket.ts
  52. +63 −0 lib/typed-events.ts
  53. +3 −1 lib/uws.ts
  54. +3,063 −2,315 package-lock.json
  55. +9 −9 package.json
  56. +148 −0 test/close.ts
  57. +247 −0 test/connection-state-recovery.ts
  58. +87 −0 test/handshake.ts
  59. +24 −0 test/index.ts
  60. +587 −0 test/messaging-many.ts
  61. +210 −0 test/middleware.ts
  62. +667 −0 test/namespaces.ts
  63. +174 −0 test/server-attachment.ts
  64. +60 −0 test/socket-middleware.ts
  65. +30 −0 test/socket-timeout.ts
  66. +150 −4 test/socket.io.test-d.ts
  67. +0 −2,870 test/socket.io.ts
  68. +1,108 −0 test/socket.ts
  69. +78 −5 test/support/util.ts
  70. +85 −97 test/utility-methods.ts
  71. +19 −3 test/uws.ts
  72. +64 −0 test/v2-compatibility.ts
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
name: Bug report
about: Create a report to help us improve
title: ''
labels: 'bug'
labels: 'to triage'
assignees: ''

---
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -6,21 +6,31 @@ on:
schedule:
- cron: '0 0 * * 0'

permissions:
contents: read

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

strategy:
matrix:
node-version: [12, 14, 16]

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

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

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test
env:
CI: true
Loading