diff --git a/CHANGELOG.md b/CHANGELOG.md index ef3adc8..864627b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## [8.5.2](https://github.com/vodyani/utils/compare/v8.5.1...v8.5.2) (2022-09-07) + + +### Bug Fixes + +* delete unnecessary types ([768cd62](https://github.com/vodyani/utils/commit/768cd62ff21aef09fb69fecab35b0ce9ef0d4040)) +* simplify naming and method calls ([57fc440](https://github.com/vodyani/utils/commit/57fc440e997ad1d8f4a2e67c128e8c89a2faed5d)) + ## [8.5.2-beta.1](https://github.com/vodyani/utils/compare/v8.5.1...v8.5.2-beta.1) (2022-09-07) diff --git a/README.MD b/README.MD index 21989ce..44bda88 100644 --- a/README.MD +++ b/README.MD @@ -19,8 +19,8 @@ npm install @vodyani/utils ## Getting started -- [使用文档 📚](https://vodyani.vercel.app/docs/other/utils) -- [Documentation 📚](https://vodyani.vercel.app/en/docs/other/utils) +- [使用文档 📚](https://vodyani.netlify.app/docs/other/utils) +- [Documentation 📚](https://vodyani.netlify.app/en/docs/other/utils) ## Questions diff --git a/package-lock.json b/package-lock.json index 98af9e1..1fd43e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,17 @@ { "name": "@vodyani/utils", - "version": "8.5.2-beta.1", + "version": "8.5.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@vodyani/utils", - "version": "8.5.2-beta.1", + "version": "8.5.2", "license": "MIT", "dependencies": { - "deepmerge-ts": "4.2.1", - "lodash": "4.17.21" + "deepmerge-ts": "4.2.2", + "lodash": "4.17.21", + "object-hash": "^3.0.0" }, "devDependencies": { "@commitlint/cli": "16.3.0", @@ -19,6 +20,7 @@ "@types/jest": "27.5.2", "@types/lodash": "4.14.182", "@types/node": "16.11.56", + "@types/object-hash": "^2.2.1", "@types/supertest": "2.0.12", "@vodyani/eslint-config": "^1.1.0", "husky": "7.0.4", @@ -1662,6 +1664,12 @@ "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", "dev": true }, + "node_modules/@types/object-hash": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@types/object-hash/-/object-hash-2.2.1.tgz", + "integrity": "sha512-i/rtaJFCsPljrZvP/akBqEwUP2y5cZLOmvO+JaYnz01aPknrQ+hB5MRcO7iqCUsFaYfTG8kGfKUyboA07xeDHQ==", + "dev": true + }, "node_modules/@types/parse-json": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", @@ -2765,9 +2773,9 @@ } }, "node_modules/deepmerge-ts": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/deepmerge-ts/-/deepmerge-ts-4.2.1.tgz", - "integrity": "sha512-xzJLiUo4z1dD2nggSfaMvHo5qWLoy/JVa9rKuktC6FrQQEBI8Qnj7KwuCYZhqBoGOOpGqs6+3MR2ZhSMcTr4BA==", + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge-ts/-/deepmerge-ts-4.2.2.tgz", + "integrity": "sha512-Ka3Kb21tiWjvQvS9U+1Dx+aqFAHsdTnMdYptLTmC2VAmDFMugWMY1e15aTODstipmCun8iNuqeSfcx6rsUUk0Q==", "engines": { "node": ">=12.4.0" } @@ -5748,8 +5756,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", - "dev": true, - "peer": true, "engines": { "node": ">= 6" } @@ -8900,6 +8906,12 @@ "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", "dev": true }, + "@types/object-hash": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@types/object-hash/-/object-hash-2.2.1.tgz", + "integrity": "sha512-i/rtaJFCsPljrZvP/akBqEwUP2y5cZLOmvO+JaYnz01aPknrQ+hB5MRcO7iqCUsFaYfTG8kGfKUyboA07xeDHQ==", + "dev": true + }, "@types/parse-json": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", @@ -9713,9 +9725,9 @@ "dev": true }, "deepmerge-ts": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/deepmerge-ts/-/deepmerge-ts-4.2.1.tgz", - "integrity": "sha512-xzJLiUo4z1dD2nggSfaMvHo5qWLoy/JVa9rKuktC6FrQQEBI8Qnj7KwuCYZhqBoGOOpGqs6+3MR2ZhSMcTr4BA==" + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge-ts/-/deepmerge-ts-4.2.2.tgz", + "integrity": "sha512-Ka3Kb21tiWjvQvS9U+1Dx+aqFAHsdTnMdYptLTmC2VAmDFMugWMY1e15aTODstipmCun8iNuqeSfcx6rsUUk0Q==" }, "define-properties": { "version": "1.1.4", @@ -11955,9 +11967,7 @@ "object-hash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", - "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", - "dev": true, - "peer": true + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==" }, "object-inspect": { "version": "1.12.2", diff --git a/package.json b/package.json index 2826455..d3d576b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@vodyani/utils", "license": "MIT", - "version": "8.5.2-beta.1", + "version": "8.5.2", "author": "ChoGathK", "description": "🏃🏻‍♀️ utils provides common utility functions used in server-side development.", "homepage": "https://github.com/vodyani/utils#readme", @@ -60,8 +60,9 @@ ] }, "dependencies": { - "deepmerge-ts": "4.2.1", - "lodash": "4.17.21" + "deepmerge-ts": "4.2.2", + "lodash": "4.17.21", + "object-hash": "^3.0.0" }, "devDependencies": { "@commitlint/cli": "16.3.0", @@ -70,6 +71,7 @@ "@types/jest": "27.5.2", "@types/lodash": "4.14.182", "@types/node": "16.11.56", + "@types/object-hash": "^2.2.1", "@types/supertest": "2.0.12", "@vodyani/eslint-config": "^1.1.0", "husky": "7.0.4", diff --git a/src/common/declare.ts b/src/common/declare.ts new file mode 100644 index 0000000..02651cf --- /dev/null +++ b/src/common/declare.ts @@ -0,0 +1,3 @@ +import * as toHash from 'object-hash'; + +export { toHash }; diff --git a/src/common/index.ts b/src/common/index.ts new file mode 100644 index 0000000..f8b1788 --- /dev/null +++ b/src/common/index.ts @@ -0,0 +1,2 @@ +export * from './declare'; +export * from './interface'; diff --git a/src/common.ts b/src/common/interface.ts similarity index 100% rename from src/common.ts rename to src/common/interface.ts