@harnessio/ff-react-client-sdk
Advanced tools
Comparing version 1.9.0-alpha.0 to 1.9.0
{ | ||
"name": "@harnessio/ff-react-client-sdk", | ||
"version": "1.9.0-alpha.0", | ||
"version": "1.9.0", | ||
"author": "Harness", | ||
@@ -24,3 +24,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@harnessio/ff-javascript-client-sdk": "^1.25.0-rc.0", | ||
"@harnessio/ff-javascript-client-sdk": "^1.25.0", | ||
"lodash.omit": "^4.5.0" | ||
@@ -27,0 +27,0 @@ }, |
@@ -134,5 +134,21 @@ # React.js Client SDK For Harness Feature Flags | ||
```typescript | ||
export interface CacheOptions { | ||
ttl?: number // maximum age of stored cache, in ms, before it is considered stale | ||
interface CacheOptions { | ||
// maximum age of stored cache, in ms, before it is considered stale | ||
ttl?: number | ||
// storage mechanism to use, conforming to the Web Storage API standard, can be either synchronous or asynchronous | ||
// defaults to localStorage | ||
storage?: AsyncStorage | SyncStorage | ||
} | ||
interface SyncStorage { | ||
getItem: (key: string) => string | null | ||
setItem: (key: string, value: string) => void | ||
removeItem: (key: string) => void | ||
} | ||
interface AsyncStorage { | ||
getItem: (key: string) => Promise<string | null> | ||
setItem: (key: string, value: string) => Promise<void> | ||
removeItem: (key: string) => Promise<void> | ||
} | ||
``` | ||
@@ -179,4 +195,2 @@ | ||
streamEnabled: true, | ||
allAttributesPrivate: false, | ||
privateAttributeNames: ['customAttribute'], | ||
debug: true, | ||
@@ -183,0 +197,0 @@ eventsSyncInterval: 60000 |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
55757
0
503