Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
153 changes: 46 additions & 107 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The update to @openfeature/[email protected] also introduces a breaking change. The static create method has been removed, similar to the server provider.

Please ensure that any instantiation of ConfigCatWebProvider in the frontend code is updated to use new 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.

Copy link
Author

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.

"@openfeature/config-cat-provider": "^0.8.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This version bump to @openfeature/[email protected] introduces two critical issues that will likely break the application at runtime.

  1. Breaking API Change: The static ConfigCatProvider.create() method has been removed. The provider instantiation in packages/provider/src/lib/provider.service.ts at line 183 must be updated to use the new ConfigCatProvider(...) constructor.

    // Correct new usage
    return new ConfigCatProvider({ sdkKey, options: { pollingMode: PollingMode.AutoPoll, pollIntervalSeconds: 5 } });
  2. Missing and Conflicting Peer Dependency: @openfeature/[email protected] has a peer dependency on @openfeature/server-sdk@^1.13.5.

    • @openfeature/server-sdk is not listed in the dependencies of this package.json, which can lead to runtime errors. It should be added.
    • The overrides section (lines 148-150) forces @openfeature/server-sdk to version 1.13.4, which conflicts with the required ^1.13.5.

To fix this, you should add @openfeature/server-sdk to the dependencies and update the overrides section accordingly.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The static ConfigCatProvider.create() method has been removed.

This is false, it hasn't been removed.

@openfeature/server-sdk is not listed in the dependencies of this package.json, which can lead to runtime errors. It should be added

No need, NPM installs peer dependencies automatically.

The overrides section (lines 148-150) forces @openfeature/server-sdk to version 1.13.4, which conflicts with the required ^1.13.5.

Corrected.

"@openfeature/env-var-provider": "^0.3.0",
"@openfeature/flagd-provider": "^0.13.0",
"@openfeature/flagd-web-provider": "^0.7.0",
Expand Down Expand Up @@ -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"
}
}
}
2 changes: 1 addition & 1 deletion packages/provider/src/lib/provider.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This import change is correct, but the update to @openfeature/[email protected] introduces a breaking change that is not addressed in this PR. The static ConfigCatProvider.create() method has been removed and will cause a runtime error.

The provider instantiation at line 183 needs to be updated to use the constructor new ConfigCatProvider(...).

// 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.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is false, ConfigCatProvider.create() hasn't been removed.


type ProviderMap = Record<
ProviderId,
Expand Down
Loading