socket.io
Advanced tools
Comparing version 2.3.0 to 3.0.0-rc1
{ | ||
"name": "socket.io", | ||
"version": "2.3.0", | ||
"version": "3.0.0-rc1", | ||
"description": "node.js realtime framework server", | ||
@@ -14,6 +14,12 @@ "keywords": [ | ||
], | ||
"main": "./lib/index", | ||
"files": [ | ||
"lib/" | ||
"dist/" | ||
], | ||
"type": "commonjs", | ||
"main": "./dist/index.js", | ||
"exports": { | ||
"import": "./wrapper.mjs", | ||
"require": "./dist/index.js" | ||
}, | ||
"types": "./dist/index.d.ts", | ||
"license": "MIT", | ||
@@ -25,18 +31,32 @@ "repository": { | ||
"scripts": { | ||
"test": "nyc mocha --reporter spec --slow 200 --bail --timeout 10000 test/socket.io.js" | ||
"test": "npm run format:check && tsc && nyc mocha --require ts-node/register --reporter spec --slow 200 --bail --timeout 10000 test/socket.io.ts", | ||
"format:check": "prettier --check 'lib/**/*.ts' 'test/**/*.ts'", | ||
"format:fix": "prettier --write 'lib/**/*.ts' 'test/**/*.ts'", | ||
"prepack": "tsc" | ||
}, | ||
"dependencies": { | ||
"base64id": "~2.0.0", | ||
"debug": "~4.1.0", | ||
"engine.io": "~3.4.0", | ||
"engine.io": "~4.0.0", | ||
"has-binary2": "~1.0.2", | ||
"socket.io-adapter": "~1.1.0", | ||
"socket.io-client": "2.3.0", | ||
"socket.io-parser": "~3.4.0" | ||
"socket.io-adapter": "~2.0.1", | ||
"socket.io-client": "3.0.0-rc1", | ||
"socket.io-parser": "4.0.1-rc1" | ||
}, | ||
"devDependencies": { | ||
"@types/cookie": "^0.4.0", | ||
"@types/cors": "^2.8.7", | ||
"@types/mocha": "^8.0.3", | ||
"@types/node": "^14.11.2", | ||
"babel-eslint": "^10.1.0", | ||
"eslint": "^7.9.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"expect.js": "0.3.1", | ||
"mocha": "^3.5.3", | ||
"nyc": "^11.2.1", | ||
"prettier": "^1.19.1", | ||
"superagent": "^3.8.2", | ||
"supertest": "^3.0.0" | ||
"supertest": "^3.0.0", | ||
"ts-node": "^9.0.0", | ||
"typescript": "^4.0.3" | ||
}, | ||
@@ -60,3 +80,6 @@ "contributors": [ | ||
} | ||
] | ||
], | ||
"engines": { | ||
"node": ">=10.0.0" | ||
} | ||
} |
@@ -67,3 +67,3 @@ | ||
Browser support is tested in Saucelabs: | ||
Browser support is tested in Sauce Labs: | ||
@@ -142,6 +142,21 @@ [![Sauce Test Status](https://saucelabs.com/browser-matrix/socket.svg)](https://saucelabs.com/u/socket) | ||
### In conjunction with Fastify | ||
To integrate Socket.io in your Fastify application you just need to | ||
register `fastify-socket.io` plugin. It will create a `decorator` | ||
called `io`. | ||
```js | ||
const app = require('fastify')(); | ||
app.register(require('fastify-socket.io')); | ||
app.io.on('connection', () => { /* … */ }); | ||
app.listen(3000); | ||
``` | ||
## Documentation | ||
Please see the documentation [here](/docs/README.md). Contributions are welcome! | ||
Please see the documentation [here](https://socket.io/docs/). | ||
The source code of the website can be found [here](https://github.com/socketio/socket.io-website). Contributions are welcome! | ||
## Debug / logging | ||
@@ -148,0 +163,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
87003
14
2221
259
2
7
15
2
2
+ Addedbase64id@~2.0.0
+ Addedcookie@0.4.2(transitive)
+ Addedcors@2.8.5(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedengine.io@4.0.6(transitive)
+ Addedengine.io-client@4.0.6(transitive)
+ Addedengine.io-parser@4.0.3(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedsocket.io-adapter@2.0.3(transitive)
+ Addedsocket.io-client@3.0.0-rc1(transitive)
+ Addedsocket.io-parser@4.0.1-rc1(transitive)
+ Addedvary@1.1.2(transitive)
+ Addedws@7.4.6(transitive)
- Removedafter@0.8.2(transitive)
- Removedarraybuffer.slice@0.0.7(transitive)
- Removedasync-limiter@1.0.1(transitive)
- Removedbase64-arraybuffer@0.1.5(transitive)
- Removedbetter-assert@1.0.2(transitive)
- Removedblob@0.0.5(transitive)
- Removedcallsite@1.0.0(transitive)
- Removedcomponent-emitter@1.2.1(transitive)
- Removedcomponent-inherit@0.0.3(transitive)
- Removedcookie@0.3.1(transitive)
- Removeddebug@3.1.0(transitive)
- Removedengine.io@3.4.2(transitive)
- Removedengine.io-client@3.4.4(transitive)
- Removedengine.io-parser@2.2.1(transitive)
- Removedms@2.0.0(transitive)
- Removedobject-component@0.0.3(transitive)
- Removedparseqs@0.0.5(transitive)
- Removedparseuri@0.0.5(transitive)
- Removedsocket.io-adapter@1.1.2(transitive)
- Removedsocket.io-client@2.3.0(transitive)
- Removedsocket.io-parser@3.3.43.4.3(transitive)
- Removedws@6.1.47.5.10(transitive)
Updatedengine.io@~4.0.0
Updatedsocket.io-adapter@~2.0.1
Updatedsocket.io-client@3.0.0-rc1
Updatedsocket.io-parser@4.0.1-rc1