![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@openfeature/flagd-web-provider
Advanced tools
![Experimental](https://img.shields.io/badge/experimental-breaking%20changes%20allowed-yellow)
A feature flag daemon with a Unix philosophy.
:warning: This provider requires an experimental version of the JS-SDK:
npm i @openfeature/js-sdk@1.0.99-experimental-55bf085fbdec8a76753b02b3efee8bec3eac53c0
npm install @openfeature/flagd-web-provider
The FlagdWebProvider
communicates with flagd via the connect protocol.
If the connection to the flagd instance fails, the provider will attempt to reconnect with an exponential back-off. The maxDelay
and maxRetries
can be specified to customize reconnect behavior.
The FlagdWebProvider
can be configured to receive events for flag changes. Combined with the event API in the JS SDK, this allows for subscription to flag value changes in clients.
The FlagdWebProvider
will cache resolve flag values based on the associated flag-key and context. Values are cached in localstorage. A TTL for cached values can be specified. If event-streaming is enabled, the cache will be invalidated intelligently when flag configuration change events are received.
Option name | Type | Default | Description |
---|---|---|---|
host | string | localhost | sets the host used to connect to the flagd instance |
port | number | 8013 | sets the port used to connect to the flagd instance |
tls | boolean | false | when set to true the provider will attempt to connect to flagd via https |
maxRetries | number | 0 | sets the maximum number of retries for a connection to be made to the flagd instance, a value of 0 means unlimited |
maxDelay | number | 60000 | sets the maximum time in ms to wait between reconnect intervals |
caching | boolean | true | when set to true the provider will use client side caching |
cacheTtl | number | 300 | sets the timeout in ms for items in the cache, a value of 0 disables the ttl |
eventStreaming | boolean | true | enables or disables streaming and event features. |
OpenFeature.setProvider(
new FlagdWebProvider({
host: 'localhost',
port: 8013,
tls: true,
maxRetries: 10,
maxDelay: 30000,
cache: true,
cacheTTL: 60000,
})
);
Run npx nx package providers-flagd-web
to build the library.
NOTE: Buf must be installed to build locally.
Run npx nx test providers-flagd-web
to execute the unit tests via Jest.
FAQs
![Experimental](https://img.shields.io/badge/experimental-breaking%20changes%20allowed-yellow)
The npm package @openfeature/flagd-web-provider receives a total of 23 weekly downloads. As such, @openfeature/flagd-web-provider popularity was classified as not popular.
We found that @openfeature/flagd-web-provider demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.