Skip to content

Commit

Permalink
chore: change OpenFeature dependancies to peerDependencies (#723)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathannorris authored Jan 31, 2024
1 parent db27a31 commit 4f12093
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 37 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"@altack/nx-bundlefy": "^0.16.0",
"@devcycle/assemblyscript-json": "^2.0.0",
"@nestjs/class-validator": "^0.13.4",
"@openfeature/core": "^0.0.23",
"@openfeature/server-sdk": "^1.9.1",
"@openfeature/web-sdk": "^0.4.8",
"@openfeature/core": "^0.0.24",
"@openfeature/server-sdk": "^1.10.0",
"@openfeature/web-sdk": "^0.4.11",
"@types/express": "^4.17.17",
"async": "^3.2.1",
"axios": "^1.6.1",
Expand Down
5 changes: 3 additions & 2 deletions sdk/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
"@devcycle/bucketing-assembly-script": "^1.14.0",
"@devcycle/js-cloud-server-sdk": "^1.6.0",
"@devcycle/types": "^1.7.0",
"@openfeature/core": "^0.0.23",
"@openfeature/server-sdk": "^1.9.1",
"cross-fetch": "^3.1.8",
"fetch-retry": "^5.0.3"
},
"peerDependencies": {
"@openfeature/server-sdk": "^1.9.1"
},
"engines": {
"node": ">=14.0.0"
},
Expand Down
5 changes: 3 additions & 2 deletions sdk/openfeature-web-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"description": "OpenFeature Web SDK Provider for DevCycle JS SDK",
"license": "MIT",
"dependencies": {
"@devcycle/js-client-sdk": "^1.19.0",
"@openfeature/core": "^0.0.23",
"@devcycle/js-client-sdk": "^1.19.0"
},
"peerDependencies": {
"@openfeature/web-sdk": "^0.4.10"
}
}
2 changes: 1 addition & 1 deletion sdk/openfeature-web-provider/src/DevCycleProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default class DevCycleProvider implements Provider {
private readonly options: DevCycleOptions
private readonly sdkKey: string

readonly events = new OpenFeatureEventEmitter()
events = new OpenFeatureEventEmitter()

private _devcycleClient: DevCycleClient | null = null
get devcycleClient(): DevCycleClient | null {
Expand Down
49 changes: 20 additions & 29 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5200,10 +5200,10 @@ __metadata:
"@devcycle/bucketing-assembly-script": ^1.14.0
"@devcycle/js-cloud-server-sdk": ^1.6.0
"@devcycle/types": ^1.7.0
"@openfeature/core": ^0.0.23
"@openfeature/server-sdk": ^1.9.1
cross-fetch: ^3.1.8
fetch-retry: ^5.0.3
peerDependencies:
"@openfeature/server-sdk": ^1.9.1
languageName: unknown
linkType: soft

Expand All @@ -5224,7 +5224,7 @@ __metadata:
resolution: "@devcycle/openfeature-web-provider@workspace:sdk/openfeature-web-provider"
dependencies:
"@devcycle/js-client-sdk": ^1.19.0
"@openfeature/core": ^0.0.23
peerDependencies:
"@openfeature/web-sdk": ^0.4.10
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -8796,37 +8796,28 @@ __metadata:
languageName: node
linkType: hard

"@openfeature/core@npm:^0.0.23":
version: 0.0.23
resolution: "@openfeature/core@npm:0.0.23"
checksum: 348c6abb7a2ff5ecb47c59191520a5f74bae42c7d14c5f2b710fc12973ad76585a651e5606a0ebf4cd2d6f4134c7d600ebf7ebc8c0668a0af8e05621e92664d4
"@openfeature/core@npm:^0.0.24":
version: 0.0.24
resolution: "@openfeature/core@npm:0.0.24"
checksum: 075e6b5b284fffaef0e73b52d09224ee0d9223ff7c04055da298d9024e900c001fa67f19de05a5f4bcdc351731357105c79da3dbb3609245762fa1808aa98b0d
languageName: node
linkType: hard

"@openfeature/server-sdk@npm:^1.9.1":
version: 1.9.1
resolution: "@openfeature/server-sdk@npm:1.9.1"
peerDependencies:
"@openfeature/core": 0.0.23
checksum: f445a1a75da8e564102d74586c1fe55467d577202ffb6585f409a1e4f0e64e5962db530730a3d60fbd28ffb4e3ac14c42dac15339222be476c3496ff8e81161d
languageName: node
linkType: hard

"@openfeature/web-sdk@npm:^0.4.10":
version: 0.4.10
resolution: "@openfeature/web-sdk@npm:0.4.10"
"@openfeature/server-sdk@npm:^1.10.0":
version: 1.10.0
resolution: "@openfeature/server-sdk@npm:1.10.0"
peerDependencies:
"@openfeature/core": 0.0.23
checksum: 796c93af7d7ee3ef0e23a0f26fa7886b5632e17dc39de316ed69a382cc091a542e60b7d2f772d1e085e47a0c29af05dbb12cc3299c478e2e619ef4443a6f0e0e
"@openfeature/core": 0.0.24
checksum: 53b6a874e051bf8438784c2ec19d152d72135d0921ea63e89621c0a4051324180ee982785c62d65adfb47163bba89c485f42c6747c31b4d22d0069c4400da43a
languageName: node
linkType: hard

"@openfeature/web-sdk@npm:^0.4.8":
version: 0.4.8
resolution: "@openfeature/web-sdk@npm:0.4.8"
"@openfeature/web-sdk@npm:^0.4.11":
version: 0.4.11
resolution: "@openfeature/web-sdk@npm:0.4.11"
peerDependencies:
"@openfeature/core": 0.0.20
checksum: 6ffa89bb501bcafb00a7f77c3e32e84f6777c01dc4c409f580e6107a06390c895439a1de1042b4fb556a5982d355878a3a0287de10ccd4f36ddadef19ce6a84b
"@openfeature/core": 0.0.24
checksum: d146cc1af7d0fc247be1ed6cc7059d7729f03bd855233dd0cc62031093da65f8c730a1539c69da0a7fd9204d80310eca50cad641e81961bcaeeb3bde4b8f2839
languageName: node
linkType: hard

Expand Down Expand Up @@ -15725,9 +15716,9 @@ __metadata:
"@nx/web": 16.10.0
"@nx/webpack": 16.10.0
"@nx/workspace": 16.10.0
"@openfeature/core": ^0.0.23
"@openfeature/server-sdk": ^1.9.1
"@openfeature/web-sdk": ^0.4.8
"@openfeature/core": ^0.0.24
"@openfeature/server-sdk": ^1.10.0
"@openfeature/web-sdk": ^0.4.11
"@playwright/test": ^1.36.0
"@pmmmwh/react-refresh-webpack-plugin": ^0.5.7
"@react-native-async-storage/async-storage": 1.19.4
Expand Down

0 comments on commit 4f12093

Please sign in to comment.