The `configcat-publicapi-node-client` is a Node.js client library designed for programmatic interaction with the ConfigCat Public Management API. Unlike ConfigCat SDKs which are used for evaluating feature flags, this client enables comprehensive Create, Read, Update, and Delete (CRUD) operations on entities such as Feature Flags, Configurations, Environments, and Products within the ConfigCat platform. It is a Swagger-generated client, currently at stable version 3.2.1, and receives frequent updates, often driven by security enhancements and regenerations based on the latest Public Management API models and endpoints. This frequent release cycle ensures compatibility with the evolving ConfigCat API and incorporates important security patches.
npm install configcat-publicapi-node-clientVerified import paths — ran on the pinned version, not inferred.
Initializes the ConfigCat Public API client with Basic Authentication and lists all available products. Requires `CONFIGCAT_API_USERNAME` and `CONFIGCAT_API_PASSWORD` environment variables.
Review the specific release notes for the version you are upgrading to. Update client instantiation, method calls, and data models in your code to align with the new API structure.
Regularly run `npm update configcat-publicapi-node-client` and integrate updates into your CI/CD pipeline to maintain a secure environment.
Ensure you are using the correct ConfigCat package for your use case: `configcat-publicapi-node-client` for management, and `@configcat/sdk/node` for feature flag evaluation.
Verify that the `username` and `password` provided to the `Configuration` object are correct Public API credentials, not SDK keys. Ensure they are properly loaded from environment variables or a secure configuration.
Check the `basePath` in your `Configuration` object. Confirm that the IDs or keys used in your API calls (`productId`, `configId`, `featureFlagKey`, etc.) actually exist within your ConfigCat account.
Ensure the `ConfigCatPublicApi` is properly instantiated with a `Configuration` object. If upgrading, refer to the release notes for any API model changes that might have renamed or reorganized methods (e.g., `api.products.getProducts()` might have become `api.productOperations.list()`).
No dependency data recorded yet.