From bd3db0c7d375a6e5028c7605fd0bb4592f306d9f Mon Sep 17 00:00:00 2001 From: Adam Wootton Date: Wed, 17 Jan 2024 15:09:26 -0500 Subject: [PATCH 1/6] remove peer dependencies --- sdk/nextjs/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/nextjs/package.json b/sdk/nextjs/package.json index 54678eb64..d9288a713 100644 --- a/sdk/nextjs/package.json +++ b/sdk/nextjs/package.json @@ -10,7 +10,6 @@ "server-only": "^0.0.1" }, "peerDependencies": { - "next": ">=14.0.0", "react": "^18.2.0" }, "exports": { From c41678a3d2e33467c7af4d4cbd9d908935178b50 Mon Sep 17 00:00:00 2001 From: Adam Wootton Date: Wed, 17 Jan 2024 15:10:20 -0500 Subject: [PATCH 2/6] remove --- sdk/nextjs/package.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/sdk/nextjs/package.json b/sdk/nextjs/package.json index d9288a713..f3ee060c4 100644 --- a/sdk/nextjs/package.json +++ b/sdk/nextjs/package.json @@ -9,9 +9,6 @@ "hoist-non-react-statics": "^3.3.2", "server-only": "^0.0.1" }, - "peerDependencies": { - "react": "^18.2.0" - }, "exports": { ".": { "import": "./index.js", From f15130828d92128f427f7d386603f781d66f1a95 Mon Sep 17 00:00:00 2001 From: Adam Wootton Date: Wed, 17 Jan 2024 15:11:30 -0500 Subject: [PATCH 3/6] lock --- yarn.lock | 3 --- 1 file changed, 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 669c69eab..28978598c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5181,9 +5181,6 @@ __metadata: "@devcycle/types": ^1.4.6 hoist-non-react-statics: ^3.3.2 server-only: ^0.0.1 - peerDependencies: - next: ">=14.0.0" - react: ^18.2.0 languageName: unknown linkType: soft From b956292c7f114ba433441c106725d4530a4a1010 Mon Sep 17 00:00:00 2001 From: Adam Wootton Date: Wed, 17 Jan 2024 16:13:44 -0500 Subject: [PATCH 4/6] prettier --- sdk/nextjs/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/nextjs/package.json b/sdk/nextjs/package.json index f3ee060c4..77d4a3970 100644 --- a/sdk/nextjs/package.json +++ b/sdk/nextjs/package.json @@ -9,6 +9,7 @@ "hoist-non-react-statics": "^3.3.2", "server-only": "^0.0.1" }, + "types": "./src/index.d.ts", "exports": { ".": { "import": "./index.js", @@ -25,6 +26,5 @@ "require": "./pages.js", "types": "./pages.d.ts" } - }, - "types": "./src/index.d.ts" + } } From 53497ed93f2a492f51e427c76bfe10b22378ce61 Mon Sep 17 00:00:00 2001 From: Adam Wootton Date: Wed, 17 Jan 2024 16:41:01 -0500 Subject: [PATCH 5/6] remove lint fix --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7d24476a8..f5fdff243 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "scripts": { "lint": "nx run-many --parallel --target lint --all", "test": "nx run-many --parallel --target test --all", - "affected:lint": "nx affected --base=origin/main --head=HEAD --target=lint --fix", + "affected:lint": "nx affected --base=origin/main --head=HEAD --target=lint", "affected:test": "nx affected --base=origin/main --head=HEAD --target=test", "affected:e2e": "nx affected --base=origin/main --head=HEAD --target=e2e", "npm-publish": "nx affected --base=origin/main~1 --target=npm-publish", From 26be823b666873991192a668f0beffde22e72361 Mon Sep 17 00:00:00 2001 From: Adam Wootton Date: Wed, 17 Jan 2024 16:44:04 -0500 Subject: [PATCH 6/6] fix lint --- sdk/nextjs/.eslintrc.json | 7 ++++++- sdk/openfeature-nodejs-provider/.eslintrc.json | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/nextjs/.eslintrc.json b/sdk/nextjs/.eslintrc.json index 8af9f667f..701f68a20 100644 --- a/sdk/nextjs/.eslintrc.json +++ b/sdk/nextjs/.eslintrc.json @@ -6,7 +6,12 @@ "files": ["*.json"], "parser": "jsonc-eslint-parser", "rules": { - "@nx/dependency-checks": ["error"] + "@nx/dependency-checks": [ + "error", + { + "ignoredDependencies": ["next", "react"] + } + ] } }, { diff --git a/sdk/openfeature-nodejs-provider/.eslintrc.json b/sdk/openfeature-nodejs-provider/.eslintrc.json index af3c2dd59..f51b9e9b2 100644 --- a/sdk/openfeature-nodejs-provider/.eslintrc.json +++ b/sdk/openfeature-nodejs-provider/.eslintrc.json @@ -6,7 +6,12 @@ "files": ["*.json"], "parser": "jsonc-eslint-parser", "rules": { - "@nx/dependency-checks": "error" + "@nx/dependency-checks": [ + "error", + { + "ignoredDependencies": ["@openfeature/core"] + } + ] } }, {