From 213485f1133a33a5ffd723898da3df61c8daf08e Mon Sep 17 00:00:00 2001 From: macbook Date: Sun, 18 Aug 2024 14:36:01 -0300 Subject: [PATCH] externalize deps --- package.json | 2 +- packages/accounts/package.json | 2 +- packages/babel-plugins/package.json | 2 +- packages/boilerplate/package.json | 2 +- packages/entity/package.json | 2 +- packages/logstorm/package.json | 2 +- packages/mongo/package.json | 2 +- packages/plugin-engine/package.json | 2 +- packages/powership/package.json | 8 +++++--- packages/runmate/package.json | 2 +- packages/schema/package.json | 5 ++++- packages/server/package.json | 2 +- packages/transporter/package.json | 2 +- packages/utils/package.json | 12 +++++++----- packages/utils/src/uniq.ts | 2 -- pnpm-lock.yaml | 24 +++++++++++++++--------- 16 files changed, 42 insertions(+), 31 deletions(-) diff --git a/package.json b/package.json index 277c8320..8b5921a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "powership", - "version": "4.1.350", + "version": "5.0.610", "private": true, "scripts": { "pack": "run-s pack:*", diff --git a/packages/accounts/package.json b/packages/accounts/package.json index 206ed345..6a48b917 100644 --- a/packages/accounts/package.json +++ b/packages/accounts/package.json @@ -1,6 +1,6 @@ { "name": "@powership/accounts", - "version": "4.1.350", + "version": "5.0.610", "description": "Powership accounts", "type": "module", "main": "./out/index.cjs", diff --git a/packages/babel-plugins/package.json b/packages/babel-plugins/package.json index c281b8c7..acd7df22 100644 --- a/packages/babel-plugins/package.json +++ b/packages/babel-plugins/package.json @@ -1,6 +1,6 @@ { "name": "@powership/babel-plugins", - "version": "4.1.350", + "version": "5.0.610", "main": "./out/index.js", "sideEffects": false, "typings": "./out/index.d.ts", diff --git a/packages/boilerplate/package.json b/packages/boilerplate/package.json index 02179805..417d2e06 100644 --- a/packages/boilerplate/package.json +++ b/packages/boilerplate/package.json @@ -1,6 +1,6 @@ { "name": "@powership/boilerplate", - "version": "4.1.350", + "version": "5.0.610", "author": "antoniopresto ", "sideEffects": false, "type": "module", diff --git a/packages/entity/package.json b/packages/entity/package.json index 8305f7aa..6fabc9e3 100644 --- a/packages/entity/package.json +++ b/packages/entity/package.json @@ -1,6 +1,6 @@ { "name": "@powership/entity", - "version": "4.1.350", + "version": "5.0.610", "type": "module", "main": "./out/index.cjs", "module": "./out/index.mjs", diff --git a/packages/logstorm/package.json b/packages/logstorm/package.json index 4551f09a..95a69508 100644 --- a/packages/logstorm/package.json +++ b/packages/logstorm/package.json @@ -1,6 +1,6 @@ { "name": "logstorm", - "version": "4.1.350", + "version": "5.0.610", "typings": "out", "author": "antoniopresto ", "type": "module", diff --git a/packages/mongo/package.json b/packages/mongo/package.json index cd539ebd..a2101fe6 100644 --- a/packages/mongo/package.json +++ b/packages/mongo/package.json @@ -1,6 +1,6 @@ { "name": "@powership/mongo", - "version": "4.1.350", + "version": "5.0.610", "type": "module", "main": "./out/index.cjs", "module": "./out/index.mjs", diff --git a/packages/plugin-engine/package.json b/packages/plugin-engine/package.json index 9e3ee1b7..c96e68e9 100644 --- a/packages/plugin-engine/package.json +++ b/packages/plugin-engine/package.json @@ -1,6 +1,6 @@ { "name": "plugin-engine", - "version": "4.1.350", + "version": "5.0.610", "type": "module", "main": "./out/index.cjs", "module": "./out/index.mjs", diff --git a/packages/powership/package.json b/packages/powership/package.json index 57c0fde1..86c3fa03 100644 --- a/packages/powership/package.json +++ b/packages/powership/package.json @@ -1,6 +1,6 @@ { "name": "powership", - "version": "4.1.350", + "version": "5.0.610", "author": "antoniopresto ", "type": "module", "main": "./out/index.cjs", @@ -67,6 +67,9 @@ "type": "git", "url": "https://github.com/antoniopresto/powership/" }, + "peerDependencies": { + "graphql": ">=16" + }, "dependencies": { "@powership/entity": "workspace:*", "@powership/schema": "workspace:*", @@ -124,6 +127,5 @@ "readmeFile": "./README.md", "displayName": "Powership", "tsconfig": "./tsconfig.module.json" - }, - "peerDependencies": {} + } } diff --git a/packages/runmate/package.json b/packages/runmate/package.json index 3c013c7f..2f6a4aab 100644 --- a/packages/runmate/package.json +++ b/packages/runmate/package.json @@ -1,6 +1,6 @@ { "name": "runmate", - "version": "4.1.350", + "version": "5.0.610", "typings": "out", "author": "antoniopresto ", "license": "MIT", diff --git a/packages/schema/package.json b/packages/schema/package.json index f58da0bb..ac70ab88 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -1,6 +1,6 @@ { "name": "@powership/schema", - "version": "4.1.350", + "version": "5.0.610", "type": "module", "main": "./out/index.cjs", "module": "./out/index.mjs", @@ -55,6 +55,9 @@ "dependencies": { "@powership/utils": "workspace:*" }, + "peerDependencies": { + "graphql": ">=16" + }, "devDependencies": { "@babel/cli": "7.23.9", "@babel/core": "7.23.7", diff --git a/packages/server/package.json b/packages/server/package.json index 88ffad1d..26e826ac 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@powership/server", - "version": "4.1.350", + "version": "5.0.610", "type": "module", "main": "./out/index.cjs", "module": "./out/index.mjs", diff --git a/packages/transporter/package.json b/packages/transporter/package.json index c53c52df..157dd74a 100644 --- a/packages/transporter/package.json +++ b/packages/transporter/package.json @@ -1,6 +1,6 @@ { "name": "@powership/transporter", - "version": "4.1.350", + "version": "5.0.610", "type": "module", "main": "./out/index.cjs", "module": "./out/index.mjs", diff --git a/packages/utils/package.json b/packages/utils/package.json index fe87cbda..76097da6 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@powership/utils", - "version": "4.1.350", + "version": "5.0.610", "typings": "out", "author": "antoniopresto ", "license": "MIT", @@ -69,6 +69,9 @@ }, "description": "powership utils and helper functions", "keywords": [], + "peerDependencies": { + "graphql": ">=16" + }, "dependencies": { "@types/bun": "1.0.10", "@types/dateformat": "5.0.2", @@ -92,13 +95,11 @@ "fast-deep-equal": "3.1.3", "fs-extra": "10.1.0", "glob": "10.3.10", - "graphql": "16.8.1", "graphql-parse-resolve-info": "4.13.0", "hoper": "1.0.8", "immer": "10.0.2", "json-schema-to-typescript": "11.0.2", "jsondiffpatch": "^0.4.1", - "lodash": "4.17.21", "lodash-es": "4.17.21", "minimatch": "9.0.3", "mitt": "3.0.0", @@ -115,6 +116,8 @@ "url-pattern": "1.0.3" }, "devDependencies": { + "lodash": "4.17.21", + "graphql": "16.9.0", "@babel/cli": "7.23.9", "@babel/plugin-transform-typescript": "7.23.6", "@babel/preset-env": "7.24.0", @@ -164,6 +167,5 @@ "readmeFile": "./README.md", "displayName": "Utils - A collection of common utilities. Internal or from other libraries", "tsconfig": "./tsconfig.module.json" - }, - "peerDependencies": {} + } } diff --git a/packages/utils/src/uniq.ts b/packages/utils/src/uniq.ts index 2a2cfc69..1bd7e959 100644 --- a/packages/utils/src/uniq.ts +++ b/packages/utils/src/uniq.ts @@ -1,8 +1,6 @@ import { uniq as _uniq } from 'lodash'; import { uniqBy as _uniqBy } from 'lodash'; -// preventing direct code dependency from external lib. - export function uniq(array: T[] | null | undefined): T[] { return _uniq(array); } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e7ffd485..27d2766c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1425,12 +1425,9 @@ importers: glob: specifier: 10.3.10 version: 10.3.10 - graphql: - specifier: 16.8.1 - version: 16.8.1 graphql-parse-resolve-info: specifier: 4.13.0 - version: 4.13.0(graphql@16.8.1) + version: 4.13.0(graphql@16.9.0) hoper: specifier: 1.0.8 version: 1.0.8 @@ -1443,9 +1440,6 @@ importers: jsondiffpatch: specifier: ^0.4.1 version: 0.4.1 - lodash: - specifier: 4.17.21 - version: 4.17.21 lodash-es: specifier: 4.17.21 version: 4.17.21 @@ -1564,12 +1558,18 @@ importers: eslint-plugin-typescript-sort-keys: specifier: 3.2.0 version: 3.2.0(@typescript-eslint/parser@7.1.1(eslint@8.57.0)(typescript@5.4.2))(eslint@8.57.0)(typescript@5.4.2) + graphql: + specifier: 16.9.0 + version: 16.9.0 jest: specifier: 29.7.0 version: 29.7.0(@types/node@20.11.25)(ts-node@10.9.1(@types/node@20.11.25)(typescript@5.4.2)) jest-diff: specifier: 29.1.2 version: 29.1.2 + lodash: + specifier: 4.17.21 + version: 4.17.21 mongodb: specifier: 6.4.0 version: 6.4.0(socks@2.8.1) @@ -4992,6 +4992,10 @@ packages: resolution: {integrity: sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==} engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0} + graphql@16.9.0: + resolution: {integrity: sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==} + engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0} + handlebars@4.7.8: resolution: {integrity: sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==} engines: {node: '>=0.4.7'} @@ -12322,10 +12326,10 @@ snapshots: graphemer@1.4.0: {} - graphql-parse-resolve-info@4.13.0(graphql@16.8.1): + graphql-parse-resolve-info@4.13.0(graphql@16.9.0): dependencies: debug: 4.3.4 - graphql: 16.8.1 + graphql: 16.9.0 tslib: 2.6.2 transitivePeerDependencies: - supports-color @@ -12336,6 +12340,8 @@ snapshots: graphql@16.8.1: {} + graphql@16.9.0: {} + handlebars@4.7.8: dependencies: minimist: 1.2.8