From 4074858ab550c5cbe789f3054871f841ccd32b45 Mon Sep 17 00:00:00 2001 From: Tedde Lundgren Date: Fri, 12 Aug 2022 13:49:13 +0200 Subject: [PATCH] bump version to v4.0.0 --- README.md | 2 ++ lib/utils.js | 2 +- package-lock.json | 13 ------------- package.json | 3 +-- 4 files changed, 4 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 5f0a1d8..893f904 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,8 @@ Install the latest version of _jayson_ from [npm](https://www.npmjs.com) by exec ## Changelog (only notable milestones/changes) +- *4.0.0* + - Remove `lodash` dependency which should halve bundle size. There might be minor incompatibilities if you pass funky object or array types to jayson methods. - *3.6.4* - Websocket client and server support - *3.6.1* diff --git a/lib/utils.js b/lib/utils.js index 3596596..dd38d49 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -148,7 +148,7 @@ Utils.toPlainObject = function (value) { /** * Picks keys from obj * @param {Object} obj - * @param {[]String} keys + * @param {String[]} keys * @return {Object} */ Utils.pick = function (obj, keys) { diff --git a/package-lock.json b/package-lock.json index 0089f69..36678d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,6 @@ }, "devDependencies": { "@types/express-serve-static-core": "^4.17.30", - "@types/lodash": "^4.14.182", "body-parser": "^1.19.0", "connect": "^3.7.0", "coveralls": "^3.1.0", @@ -233,12 +232,6 @@ "@types/range-parser": "*" } }, - "node_modules/@types/lodash": { - "version": "4.14.182", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.182.tgz", - "integrity": "sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==", - "dev": true - }, "node_modules/@types/node": { "version": "12.12.54", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.54.tgz", @@ -4203,12 +4196,6 @@ "@types/range-parser": "*" } }, - "@types/lodash": { - "version": "4.14.182", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.182.tgz", - "integrity": "sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==", - "dev": true - }, "@types/node": { "version": "12.12.54", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.54.tgz", diff --git a/package.json b/package.json index 48f631b..f3c1b19 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jayson", - "version": "3.7.0", + "version": "4.0.0", "description": "JSON-RPC 1.0/2.0 compliant server and client", "license": "MIT", "keywords": [ @@ -64,7 +64,6 @@ }, "devDependencies": { "@types/express-serve-static-core": "^4.17.30", - "@types/lodash": "^4.14.182", "body-parser": "^1.19.0", "connect": "^3.7.0", "coveralls": "^3.1.0",