rpc-websocket-client
Advanced tools
Comparing version 1.1.0 to 1.1.1
213
package.json
{ | ||
"name": "rpc-websocket-client", | ||
"version": "1.1.0", | ||
"description": "Fast JSON RPC 2.0 written in TypeScript.", | ||
"main": "build/main/index.js", | ||
"typings": "build/main/index.d.ts", | ||
"module": "build/module/index.js", | ||
"repository": "https://github.com/radarsu/rpc-websocket-client", | ||
"license": "MIT", | ||
"keywords": [ | ||
"websocket", | ||
"client", | ||
"typescript", | ||
"fast", | ||
"json rpc", | ||
"2.0" | ||
], | ||
"scripts": { | ||
"build:main": "tsc -p tsconfig.json", | ||
"build:module": "tsc -p tsconfig.module.json", | ||
"build": "run-s clean && run-p build:*", | ||
"clean": "trash build test", | ||
"cov:check": "nyc report && nyc check-coverage --lines 100 --functions 100 --branches 100", | ||
"cov:html": "nyc report --reporter=html", | ||
"cov:send": "nyc report --reporter=lcov > coverage.lcov && codecov", | ||
"cov": "run-s build test:unit cov:html && opn coverage/index.html", | ||
"doc:html": "typedoc src/ --target ES6 --mode file --out build/docs", | ||
"doc:json": "typedoc src/ --target ES6 --mode file --json build/docs/typedoc.json", | ||
"doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs", | ||
"doc": "run-s doc:html && opn build/docs/index.html", | ||
"fix:prettier": "prettier \"src/**/*.ts\" --write", | ||
"fix:tslint": "tslint --fix --project .", | ||
"fix": "run-s fix:*", | ||
"info": "npm-scripts-info", | ||
"reset": "git clean -dfx && git reset --hard && npm i", | ||
"test:lint": "tslint --project . && prettier \"src/**/*.ts\" --list-different", | ||
"test:unit": "nyc --silent ava", | ||
"test": "run-s build test:*", | ||
"version": "standard-version", | ||
"watch": "run-s clean build:main && run-p \"build:main -- -w\" \"test:unit -- --watch\"", | ||
"all": "run-s reset test cov:check doc:html", | ||
"prepare-release": "run-s all version doc:publish" | ||
}, | ||
"scripts-info": { | ||
"info": "Display information about the package scripts", | ||
"build": "Clean and rebuild the project", | ||
"fix": "Try to automatically fix any linting problems", | ||
"test": "Lint and unit test the project", | ||
"watch": "Watch and rebuild the project on save, then rerun relevant tests", | ||
"cov": "Rebuild, run tests, then create and open the coverage report", | ||
"doc": "Generate HTML API documentation and open it in a browser", | ||
"doc:json": "Generate API documentation in typedoc JSON format", | ||
"version": "Bump package.json version, update CHANGELOG.md, tag release", | ||
"reset": "Delete all untracked files and reset the repo to the last commit", | ||
"prepare-release": "One-step: clean, build, test, publish docs, and prep a release" | ||
}, | ||
"engines": { | ||
"node": ">=8.9" | ||
}, | ||
"dependencies": { | ||
"fast-json-stringify": "^1.9.1", | ||
"isomorphic-ws": "^4.0.1", | ||
"uuid": "^3.3.2" | ||
}, | ||
"devDependencies": { | ||
"@types/uuid": "^3.4.4", | ||
"ava": "1.0.0-beta.7", | ||
"codecov": "^3.1.0", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"gh-pages": "^2.0.0", | ||
"npm-run-all": "^4.1.3", | ||
"nyc": "^13.0.1", | ||
"opn-cli": "^3.1.0", | ||
"prettier": "^1.14.3", | ||
"standard-version": "^4.4.0", | ||
"trash-cli": "^1.4.0", | ||
"tslint": "^5.11.0", | ||
"tslint-config-prettier": "^1.15.0", | ||
"tslint-immutable": "^4.7.0", | ||
"typedoc": "^0.13.0", | ||
"typescript": "^3.0.3" | ||
}, | ||
"ava": { | ||
"failFast": true, | ||
"name": "rpc-websocket-client", | ||
"version": "1.1.1", | ||
"description": "", | ||
"keywords": [ | ||
"websocket", | ||
"client", | ||
"typescript", | ||
"json rpc", | ||
"2.0", | ||
"fast" | ||
], | ||
"main": "dist/rpc-websocket-client.umd.js", | ||
"module": "dist/rpc-websocket-client.es5.js", | ||
"typings": "dist/types/rpc-websocket-client.d.ts", | ||
"files": [ | ||
"build/main/**/*.spec.js" | ||
"dist" | ||
], | ||
"sources": [ | ||
"build/main/**/*.js" | ||
] | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "cz-conventional-changelog" | ||
"author": "Artur Kurowski <radarsu@gmail.com>", | ||
"repository": { | ||
"type": "git", | ||
"url": "" | ||
}, | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=6.0.0" | ||
}, | ||
"scripts": { | ||
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'", | ||
"prebuild": "rimraf dist", | ||
"build": "tsc --project tsconfig.build.json && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src", | ||
"start": "rollup -c rollup.config.ts -w", | ||
"test": "jest", | ||
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand", | ||
"test:watch": "jest --watch", | ||
"test:prod": "npm run lint && npm run test -- --no-cache", | ||
"deploy-docs": "ts-node tools/gh-pages-publish", | ||
"report-coverage": "cat ./coverage/lcov.info | coveralls", | ||
"commit": "git-cz", | ||
"semantic-release": "semantic-release", | ||
"semantic-release-prepare": "ts-node tools/semantic-release-prepare", | ||
"precommit": "lint-staged", | ||
"travis-deploy-once": "travis-deploy-once" | ||
}, | ||
"lint-staged": { | ||
"{src,test}/**/*.ts": [ | ||
"prettier --write", | ||
"git add" | ||
] | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "node_modules/cz-conventional-changelog" | ||
} | ||
}, | ||
"prettier": { | ||
"singleQuote": true | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^7.1.2", | ||
"@commitlint/config-conventional": "^7.1.2", | ||
"@nestjs/common": "^6.6.7", | ||
"@nestjs/core": "^6.6.7", | ||
"@nestjs/platform-express": "^6.6.7", | ||
"@nestjs/platform-socket.io": "^6.6.7", | ||
"@nestjs/platform-ws": "^6.6.7", | ||
"@nestjs/testing": "^6.6.7", | ||
"@nestjs/websockets": "^6.6.7", | ||
"@types/jest": "^23.3.14", | ||
"@types/node": "^10.11.0", | ||
"@types/uuid": "^3.4.5", | ||
"@types/ws": "^6.0.3", | ||
"colors": "^1.3.2", | ||
"commitizen": "^3.0.0", | ||
"coveralls": "^3.0.2", | ||
"cross-env": "^5.2.0", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"husky": "^1.0.1", | ||
"jest": "^23.6.0", | ||
"jest-config": "^23.6.0", | ||
"lint-staged": "^8.0.0", | ||
"lodash.camelcase": "^4.3.0", | ||
"prettier": "^1.14.3", | ||
"prompt": "^1.0.0", | ||
"reflect-metadata": "^0.1.13", | ||
"replace-in-file": "^3.4.2", | ||
"rimraf": "^2.6.2", | ||
"rollup": "^0.67.0", | ||
"rollup-plugin-commonjs": "^9.3.4", | ||
"rollup-plugin-json": "^3.1.0", | ||
"rollup-plugin-node-resolve": "^3.4.0", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-typescript2": "^0.24.0", | ||
"rxjs": "^6.5.3", | ||
"semantic-release": "^15.9.16", | ||
"shelljs": "^0.8.3", | ||
"travis-deploy-once": "^5.0.9", | ||
"ts-jest": "^23.10.2", | ||
"ts-node": "^7.0.1", | ||
"tslint": "^5.11.0", | ||
"tslint-config-prettier": "^1.15.0", | ||
"tslint-config-standard": "^8.0.1", | ||
"typedoc": "^0.15.0", | ||
"typescript": "^3.0.3" | ||
}, | ||
"dependencies": { | ||
"isomorphic-ws": "^4.0.1", | ||
"uuid": "^3.3.3", | ||
"ws": "^7.1.2" | ||
} | ||
}, | ||
"prettier": { | ||
"singleQuote": true | ||
}, | ||
"nyc": { | ||
"exclude": [ | ||
"**/*.spec.js" | ||
] | ||
} | ||
} | ||
} |
@@ -19,3 +19,3 @@ <p align="center"> | ||
I really lacked typescript support or type definitions of <a href="https://github.com/elpheria/rpc-websockets" target="_blank" alt="rpc-websockets">rpc-websockets</a>. I kept everything as simple as possible for <strong>best performance</strong> and used <a href="https://github.com/fastify/fast-json-stringify" target="_blank" alt="fast-json-strongify">fast-json-strongify</a> for much faster JSON communication. Under the hood id-generation for requests is done using <a href="https://github.com/kelektiv/node-uuid" target="_blank" alt="uuid">uuid/v1</a> to provide id uniqueness as an additional feature. | ||
I really lacked typescript support or type definitions of <a href="https://github.com/elpheria/rpc-websockets" target="_blank" alt="rpc-websockets">rpc-websockets</a>. I kept everything as simple as possible for <strong>best performance</strong> and in principle <strong>stay close to the metal</strong>. Under the hood id-generation for requests is done using <a href="https://github.com/kelektiv/node-uuid" target="_blank" alt="uuid">uuid/v1</a> to provide id uniqueness as an additional feature. | ||
@@ -31,3 +31,2 @@ ## Installation | ||
- <strong>TypeScript</strong> with documentation in comments. | ||
- <strong>Fast JSON parsing</strong> of incoming requests by <a href="https://github.com/fastify/fast-json-stringify" target="_blank" alt="fast-json-strongify">fast-json-strongify</a>. | ||
- <strong>Unique RPC identifiers</strong> by <a href="https://github.com/kelektiv/node-uuid" target="_blank" alt="uuid">uuid/v1</a>. | ||
@@ -34,0 +33,0 @@ - <strong>Lightweight</strong>. Allows you to call `noRpc()` method to prevent sending `jsonrpc: '2.0'` overhead from all messages if you'd like to ignore the <a href="https://www.jsonrpc.org/specification" target="_blank" alt="JSON RPC 2.0">JSON RPC 2.0</a> standard for better performance. |
Sorry, the diff of this file is not supported yet
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
100360
1191
2
45
11
90
1
+ Addedws@^7.1.2
+ Addedws@7.5.10(transitive)
- Removedfast-json-stringify@^1.9.1
- Removedajv@6.12.6(transitive)
- Removeddeepmerge@4.3.1(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedfast-json-stringify@1.21.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedstring-similarity@4.0.4(transitive)
- Removeduri-js@4.4.1(transitive)
- Removedws@8.18.0(transitive)
Updateduuid@^3.3.3