-
Notifications
You must be signed in to change notification settings - Fork 29
chore(deps): Update ConfigCat providers to the latest version #411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,8 +23,8 @@ | |
| "@nestjs/core": "10.4.15", | ||
| "@nestjs/platform-express": "10.4.15", | ||
| "@nestjs/serve-static": "^4.0.2", | ||
| "@openfeature/config-cat-web-provider": "^0.1.3", | ||
| "@openfeature/config-cat-provider": "^0.7.2", | ||
| "@openfeature/config-cat-web-provider": "^0.2.0", | ||
| "@openfeature/config-cat-provider": "^0.8.0", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This version bump to
To fix this, you should add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This is false, it hasn't been removed.
No need, NPM installs peer dependencies automatically.
Corrected. |
||
| "@openfeature/env-var-provider": "^0.3.0", | ||
| "@openfeature/flagd-provider": "^0.13.0", | ||
| "@openfeature/flagd-web-provider": "^0.7.0", | ||
|
|
@@ -146,7 +146,7 @@ | |
| "ws": ">=8.17.1", | ||
| "@grpc/grpc-js": ">=1.10.9", | ||
| "@openfeature/config-cat-provider": { | ||
| "@openfeature/server-sdk": "1.13.4" | ||
| "@openfeature/server-sdk": "1.13.5" | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,7 +30,7 @@ import { | |
| import { OFREPProvider } from '@openfeature/ofrep-provider'; | ||
| import { FliptProvider } from '@openfeature/flipt-provider'; | ||
| import { ConfigCatProvider } from '@openfeature/config-cat-provider'; | ||
| import { PollingMode } from 'configcat-node'; | ||
| import { PollingMode } from '@configcat/sdk'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This import change is correct, but the update to The provider instantiation at line 183 needs to be updated to use the constructor // packages/provider/src/lib/provider.service.ts:183
// Incorrect old usage
return ConfigCatProvider.create(sdkKey, PollingMode.AutoPoll, { pollIntervalSeconds: 5 });
// Correct new usage
return new ConfigCatProvider({ sdkKey, options: { pollingMode: PollingMode.AutoPoll, pollIntervalSeconds: 5 } });Please apply this change to avoid breaking the ConfigCat provider functionality. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is false, |
||
|
|
||
| type ProviderMap = Record< | ||
| ProviderId, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The update to
@openfeature/[email protected]also introduces a breaking change. The staticcreatemethod has been removed, similar to the server provider.Please ensure that any instantiation of
ConfigCatWebProviderin the frontend code is updated to usenew ConfigCatWebProvider(...)to avoid runtime errors. I cannot check the frontend code from here, but this is a likely required change based on the library's release notes.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is false,
ConfigCatWebProvider.create()hasn't been removed.