@quonfig/openfeature-node 2.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -1
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -97,7 +97,8 @@ the native `@quonfig/node` SDK:
97
97
 
98
98
  1. **Log levels** -- `shouldLog()` and `logger()` are native-only.
99
99
  2. **`string_list` configs** -- must be accessed via `getObjectValue()` and cast to `string[]`.
100
- 3. **`duration` configs** -- return the raw millisecond number via `getNumberValue()`.
100
+ 3. **`duration` configs** -- native-only: read them with `getClient().getDuration()` (milliseconds).
101
+ `getNumberValue()` on a duration config returns your default with `TYPE_MISMATCH`.
101
102
  4. **`bytes` configs** -- not accessible via OpenFeature (no binary type in OF).
102
103
  5. **`keys()` and `rawConfig()`** -- native-only via `getClient()`.
103
104
  6. **Context keys use dot-notation** -- `"user.email"`, not nested objects.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quonfig/openfeature-node",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "OpenFeature provider for Quonfig -- Node.js",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -25,11 +25,11 @@
25
25
  "version": "prettier --write CHANGELOG.md README.md && git add CHANGELOG.md README.md"
26
26
  },
27
27
  "peerDependencies": {
28
- "@quonfig/node": ">=1.9.0",
28
+ "@quonfig/node": ">=2.0.0",
29
29
  "@openfeature/server-sdk": ">=1.0.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@quonfig/node": "^1.9.0",
32
+ "@quonfig/node": "^2.0.0",
33
33
  "@openfeature/server-sdk": "^1.7.0",
34
34
  "@types/node": "^26.6.5",
35
35
  "prettier": "^3.0.0",