@spotify-confidence/openfeature-server-provider
Advanced tools
Comparing version 0.1.2 to 0.1.3
import { Provider } from '@openfeature/js-sdk'; | ||
import { ConfidenceClientOptions } from '@spotify-confidence/client-http'; | ||
type ConfidenceProviderFactoryOptions = { | ||
region: 'eu' | 'us'; | ||
region?: ConfidenceClientOptions['region']; | ||
fetchImplementation: typeof fetch; | ||
@@ -5,0 +6,0 @@ clientSecret: string; |
@@ -9,3 +9,3 @@ "use strict"; | ||
id: 'SDK_ID_JS_SERVER_PROVIDER', | ||
version: '0.1.2', | ||
version: '0.1.3', | ||
} })); | ||
@@ -12,0 +12,0 @@ return new ConfidenceServerProvider_1.ConfidenceServerProvider(confidenceClient); |
import { Provider } from '@openfeature/js-sdk'; | ||
import { ConfidenceClientOptions } from '@spotify-confidence/client-http'; | ||
type ConfidenceProviderFactoryOptions = { | ||
region: 'eu' | 'us'; | ||
region?: ConfidenceClientOptions['region']; | ||
fetchImplementation: typeof fetch; | ||
@@ -5,0 +6,0 @@ clientSecret: string; |
@@ -6,3 +6,3 @@ import { ConfidenceClient } from '@spotify-confidence/client-http'; | ||
id: 'SDK_ID_JS_SERVER_PROVIDER', | ||
version: '0.1.2', | ||
version: '0.1.3', | ||
} })); | ||
@@ -9,0 +9,0 @@ return new ConfidenceServerProvider(confidenceClient); |
import { Provider } from '@openfeature/js-sdk'; | ||
import { ConfidenceClientOptions } from '@spotify-confidence/client-http'; | ||
type ConfidenceProviderFactoryOptions = { | ||
region: 'eu' | 'us'; | ||
region?: ConfidenceClientOptions['region']; | ||
fetchImplementation: typeof fetch; | ||
@@ -5,0 +6,0 @@ clientSecret: string; |
@@ -6,3 +6,3 @@ import { ConfidenceClient } from '@spotify-confidence/client-http'; | ||
id: 'SDK_ID_JS_SERVER_PROVIDER', | ||
version: '0.1.2', | ||
version: '0.1.3', | ||
} })); | ||
@@ -9,0 +9,0 @@ return new ConfidenceServerProvider(confidenceClient); |
# Changelog | ||
## [0.1.3](https://github.com/spotify/confidence-openfeature-provider-js/compare/openfeature-server-provider-v0.1.2...openfeature-server-provider-v0.1.3) (2024-01-05) | ||
### ✨ New Features | ||
* **server:** default to global region ([c87a9d0](https://github.com/spotify/confidence-openfeature-provider-js/commit/c87a9d045e7de02bd98930c50b622768b18fedc8)) | ||
### 🔄 Refactoring | ||
* **examples:** use the default region in an example (node) ([0bc03e7](https://github.com/spotify/confidence-openfeature-provider-js/commit/0bc03e79c36a6c72dcfc46f3ad1de069474fed53)) | ||
### Dependencies | ||
* The following workspace dependencies were updated | ||
* dependencies | ||
* @spotify-confidence/client-http bumped from ^0.1.1 to ^0.1.2 | ||
## [0.1.2](https://github.com/spotify/confidence-openfeature-provider-js/compare/openfeature-server-provider-v0.1.1...openfeature-server-provider-v0.1.2) (2023-11-16) | ||
@@ -4,0 +23,0 @@ |
{ | ||
"name": "@spotify-confidence/openfeature-server-provider", | ||
"license": "Apache-2.0", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"module": "build/esm/index.js", | ||
@@ -9,3 +9,3 @@ "main": "build/cjs/index.js", | ||
"dependencies": { | ||
"@spotify-confidence/client-http": "^0.1.1" | ||
"@spotify-confidence/client-http": "^0.1.2" | ||
}, | ||
@@ -24,3 +24,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "1e3bab432bdf07def4fa17995e9705af19eb5c64" | ||
"gitHead": "46e0ddd79f7b5b3cdff630f773ff4c1f3009ec9c" | ||
} |
@@ -26,3 +26,2 @@ # OpenFeature JS SDK JavaScript Confidence Provider | ||
clientSecret: 'your-client-secret', | ||
region: 'eu', | ||
fetchImplementation: fetch, | ||
@@ -45,2 +44,14 @@ timeout: 1000, | ||
## Region | ||
The region option is used to set the region for the network request to the Confidence backend. When the region is not set, the default (global) region will be used. | ||
The current regions are: `eu` and `us`, the region can be set as follows: | ||
```ts | ||
const provider = createConfidenceServerProvider({ | ||
region: 'eu', // or 'us' | ||
// ... other options | ||
}); | ||
``` | ||
## Timeout | ||
@@ -47,0 +58,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
169693
562
64