From 6b018116760f0c0e3b448b53e6a8acf4cb290c90 Mon Sep 17 00:00:00 2001 From: Dominic Gunther Bauer <46312751+DominicGBauer@users.noreply.github.com> Date: Fri, 17 May 2024 11:53:28 +0200 Subject: [PATCH] chore: add common as peer dependency to packages (#171) Co-authored-by: DominicGBauer --- .changeset/tasty-teachers-switch.md | 10 ++++++++++ packages/attachments/package.json | 5 ++--- packages/kysely-driver/package.json | 4 +++- packages/react-native/package.json | 4 ++-- packages/react/package.json | 6 ++---- packages/vue/package.json | 6 ++---- packages/web/package.json | 22 +++++++++++----------- pnpm-lock.yaml | 16 ++++++++-------- 8 files changed, 40 insertions(+), 33 deletions(-) create mode 100644 .changeset/tasty-teachers-switch.md diff --git a/.changeset/tasty-teachers-switch.md b/.changeset/tasty-teachers-switch.md new file mode 100644 index 00000000..3e818b3c --- /dev/null +++ b/.changeset/tasty-teachers-switch.md @@ -0,0 +1,10 @@ +--- +"@powersync/kysely-driver": patch +"@powersync/react-native": patch +"@powersync/attachments": patch +"@powersync/react": patch +"@powersync/vue": patch +"@powersync/web": patch +--- + +Add @powersync/common as peer dependency diff --git a/packages/attachments/package.json b/packages/attachments/package.json index 1ba315ea..cb52936f 100644 --- a/packages/attachments/package.json +++ b/packages/attachments/package.json @@ -26,8 +26,7 @@ "clean": "rm -rf lib tsconfig.tsbuildinfo", "watch": "tsc -b -w" }, - "devDependencies": {}, - "dependencies": { - "@powersync/common": "workspace:*" + "peerDependencies": { + "@powersync/common": "workspace:1.x" } } diff --git a/packages/kysely-driver/package.json b/packages/kysely-driver/package.json index f93be780..036206f2 100644 --- a/packages/kysely-driver/package.json +++ b/packages/kysely-driver/package.json @@ -24,8 +24,10 @@ "watch": "tsc --build -w", "test": "pnpm build && vitest" }, + "peerDependencies": { + "@powersync/common": "workspace:1.x" + }, "dependencies": { - "@powersync/common": "workspace:*", "kysely": "^0.27.2" }, "devDependencies": { diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 43774e19..f513d9a2 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -30,11 +30,11 @@ "@journeyapps/react-native-quick-sqlite": "^1.1.6", "react": "*", "react-native": "*", - "react-native-polyfill-globals": "^3.1.0" + "react-native-polyfill-globals": "^3.1.0", + "@powersync/common": "workspace:1.x" }, "dependencies": { "@powersync/react": "workspace:*", - "@powersync/common": "workspace:*", "async-lock": "^1.4.0" }, "devDependencies": { diff --git a/packages/react/package.json b/packages/react/package.json index de40aa8d..d6af81d8 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -27,11 +27,9 @@ "url": "https://github.com/powersync-ja/powersync-js/issues" }, "homepage": "https://docs.powersync.com/resources/api-reference", - "dependencies": { - "@powersync/common": "workspace:*" - }, "peerDependencies": { - "react": "*" + "react": "*", + "@powersync/common": "workspace:1.x" }, "devDependencies": { "@testing-library/react": "^15.0.2", diff --git a/packages/vue/package.json b/packages/vue/package.json index 610de902..912c4bb2 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -27,11 +27,9 @@ "url": "https://github.com/powersync-ja/powersync-js/issues" }, "homepage": "https://docs.powersync.com/resources/api-reference", - "dependencies": { - "@powersync/common": "workspace:*" - }, "peerDependencies": { - "vue": "*" + "vue": "*", + "@powersync/common": "workspace:1.x" }, "devDependencies": { "flush-promises": "^1.0.2", diff --git a/packages/web/package.json b/packages/web/package.json index 7c30cd53..d0423d11 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -32,6 +32,17 @@ ], "author": "JOURNEYAPPS", "license": "Apache-2.0", + "peerDependencies": { + "@journeyapps/wa-sqlite": "~0.2.0", + "@powersync/common": "workspace:1.x" + }, + "dependencies": { + "async-mutex": "^0.4.0", + "buffer": "^6.0.3", + "comlink": "^4.4.1", + "js-logger": "^1.6.1", + "lodash": "^4.17.21" + }, "devDependencies": { "@journeyapps/wa-sqlite": "~0.2.0", "@types/lodash": "^4.14.200", @@ -44,16 +55,5 @@ "vitest": "^1.3.1", "webdriverio": "^8.32.3", "uuid": "^9.0.1" - }, - "peerDependencies": { - "@journeyapps/wa-sqlite": "~0.2.0" - }, - "dependencies": { - "@powersync/common": "workspace:*", - "async-mutex": "^0.4.0", - "buffer": "^6.0.3", - "comlink": "^4.4.1", - "js-logger": "^1.6.1", - "lodash": "^4.17.21" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 03c565aa..7a840113 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1197,7 +1197,7 @@ importers: packages/attachments: dependencies: '@powersync/common': - specifier: workspace:* + specifier: workspace:1.x version: link:../common packages/common: @@ -1252,7 +1252,7 @@ importers: packages/kysely-driver: dependencies: '@powersync/common': - specifier: workspace:* + specifier: workspace:1.x version: link:../common kysely: specifier: ^0.27.2 @@ -1298,7 +1298,7 @@ importers: packages/react: dependencies: '@powersync/common': - specifier: workspace:* + specifier: workspace:1.x version: link:../common devDependencies: '@testing-library/react': @@ -1320,7 +1320,7 @@ importers: packages/react-native: dependencies: '@powersync/common': - specifier: workspace:* + specifier: workspace:1.x version: link:../common '@powersync/react': specifier: workspace:* @@ -1351,7 +1351,7 @@ importers: packages/vue: dependencies: '@powersync/common': - specifier: workspace:* + specifier: workspace:1.x version: link:../common devDependencies: flush-promises: @@ -1373,7 +1373,7 @@ importers: packages/web: dependencies: '@powersync/common': - specifier: workspace:* + specifier: workspace:1.x version: link:../common async-mutex: specifier: ^0.4.0 @@ -8978,7 +8978,7 @@ packages: '@babel/helper-plugin-utils': 7.24.0 '@babel/helper-validator-option': 7.23.5 '@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.23.9) - '@babel/plugin-transform-modules-commonjs': 7.24.1(@babel/core@7.23.9) + '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.23.9) '@babel/plugin-transform-typescript': 7.23.6(@babel/core@7.23.9) dev: false @@ -8992,7 +8992,7 @@ packages: '@babel/helper-plugin-utils': 7.24.0 '@babel/helper-validator-option': 7.23.5 '@babel/plugin-syntax-jsx': 7.23.3(@babel/core@7.24.0) - '@babel/plugin-transform-modules-commonjs': 7.24.1(@babel/core@7.24.0) + '@babel/plugin-transform-modules-commonjs': 7.23.3(@babel/core@7.24.0) '@babel/plugin-transform-typescript': 7.23.6(@babel/core@7.24.0) /@babel/register@7.23.7(@babel/core@7.24.0):