@spotify-confidence/openfeature-server-provider-local 0.8.0 → 0.9.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.
- package/CHANGELOG.md +23 -0
- package/dist/client.js +1 -0
- package/dist/confidence_resolver.wasm +0 -0
- package/dist/index.fetch.d.ts +2 -0
- package/dist/index.fetch.js +7 -1
- package/dist/index.inlined.d.ts +2 -0
- package/dist/index.inlined.js +8 -2
- package/dist/index.node.d.ts +2 -0
- package/dist/index.node.js +7 -1
- package/dist/server.js +1 -0
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.9.0](https://github.com/spotify/confidence-resolver/compare/openfeature-provider-js-v0.8.1...openfeature-provider-js-v0.9.0) (2026-02-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Support for startsWith and endsWith ([#283](https://github.com/spotify/confidence-resolver/issues/283)) ([661c4ef](https://github.com/spotify/confidence-resolver/commit/661c4ef53b5d907bf079e632135723c2af7af0b9))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* rust-guest bumped from 0.1.15 to 0.1.16
|
|
16
|
+
|
|
17
|
+
## [0.8.1](https://github.com/spotify/confidence-resolver/compare/openfeature-provider-js-v0.8.0...openfeature-provider-js-v0.8.1) (2026-02-10)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Dependencies
|
|
21
|
+
|
|
22
|
+
* The following workspace dependencies were updated
|
|
23
|
+
* dependencies
|
|
24
|
+
* rust-guest bumped from 0.1.14 to 0.1.15
|
|
25
|
+
|
|
3
26
|
## [0.8.0](https://github.com/spotify/confidence-resolver/compare/openfeature-provider-js-v0.7.0...openfeature-provider-js-v0.8.0) (2026-01-27)
|
|
4
27
|
|
|
5
28
|
|
package/dist/client.js
CHANGED
|
@@ -26,6 +26,7 @@ const logger = new class LoggerImpl {
|
|
|
26
26
|
case infoFn.enabled: warnFn.enabled = true;
|
|
27
27
|
case warnFn.enabled: errorFn.enabled = true;
|
|
28
28
|
}
|
|
29
|
+
for (const child of this.childLoggers.values()) child.configure(debug);
|
|
29
30
|
}
|
|
30
31
|
getLogger(name) {
|
|
31
32
|
let child = (this.childLoggers.get(name));
|
|
Binary file
|
package/dist/index.fetch.d.ts
CHANGED
|
@@ -78,6 +78,8 @@ declare enum ResolveReason {
|
|
|
78
78
|
RESOLVE_REASON_TARGETING_KEY_ERROR = 5,
|
|
79
79
|
/** RESOLVE_REASON_ERROR - Unknown error occurred during the resolve */
|
|
80
80
|
RESOLVE_REASON_ERROR = 6,
|
|
81
|
+
/** RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE - The flag could not be resolved because a targeting rule was not recognized */
|
|
82
|
+
RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE = 7,
|
|
81
83
|
UNRECOGNIZED = -1,
|
|
82
84
|
}
|
|
83
85
|
declare enum SdkId {
|
package/dist/index.fetch.js
CHANGED
|
@@ -772,6 +772,7 @@ let ResolveReason = /* @__PURE__ */ function(ResolveReason$1) {
|
|
|
772
772
|
ResolveReason$1[ResolveReason$1["RESOLVE_REASON_FLAG_ARCHIVED"] = 4] = "RESOLVE_REASON_FLAG_ARCHIVED";
|
|
773
773
|
ResolveReason$1[ResolveReason$1["RESOLVE_REASON_TARGETING_KEY_ERROR"] = 5] = "RESOLVE_REASON_TARGETING_KEY_ERROR";
|
|
774
774
|
ResolveReason$1[ResolveReason$1["RESOLVE_REASON_ERROR"] = 6] = "RESOLVE_REASON_ERROR";
|
|
775
|
+
ResolveReason$1[ResolveReason$1["RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE"] = 7] = "RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE";
|
|
775
776
|
ResolveReason$1[ResolveReason$1["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
776
777
|
return ResolveReason$1;
|
|
777
778
|
}({});
|
|
@@ -791,6 +792,8 @@ function resolveReasonFromJSON(object) {
|
|
|
791
792
|
case "RESOLVE_REASON_TARGETING_KEY_ERROR": return ResolveReason.RESOLVE_REASON_TARGETING_KEY_ERROR;
|
|
792
793
|
case 6:
|
|
793
794
|
case "RESOLVE_REASON_ERROR": return ResolveReason.RESOLVE_REASON_ERROR;
|
|
795
|
+
case 7:
|
|
796
|
+
case "RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE": return ResolveReason.RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE;
|
|
794
797
|
case -1:
|
|
795
798
|
case "UNRECOGNIZED":
|
|
796
799
|
default: return ResolveReason.UNRECOGNIZED;
|
|
@@ -805,6 +808,7 @@ function resolveReasonToJSON(object) {
|
|
|
805
808
|
case ResolveReason.RESOLVE_REASON_FLAG_ARCHIVED: return "RESOLVE_REASON_FLAG_ARCHIVED";
|
|
806
809
|
case ResolveReason.RESOLVE_REASON_TARGETING_KEY_ERROR: return "RESOLVE_REASON_TARGETING_KEY_ERROR";
|
|
807
810
|
case ResolveReason.RESOLVE_REASON_ERROR: return "RESOLVE_REASON_ERROR";
|
|
811
|
+
case ResolveReason.RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE: return "RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE";
|
|
808
812
|
case ResolveReason.UNRECOGNIZED:
|
|
809
813
|
default: return "UNRECOGNIZED";
|
|
810
814
|
}
|
|
@@ -1402,7 +1406,7 @@ function isObject(value) {
|
|
|
1402
1406
|
function isSet$3(value) {
|
|
1403
1407
|
return value !== null && value !== void 0;
|
|
1404
1408
|
}
|
|
1405
|
-
const VERSION = "0.
|
|
1409
|
+
const VERSION = "0.9.0";
|
|
1406
1410
|
const NOOP_LOG_FN = Object.assign(() => {}, { enabled: false });
|
|
1407
1411
|
const debugBackend = loadDebug();
|
|
1408
1412
|
const logger$2 = new class LoggerImpl {
|
|
@@ -1427,6 +1431,7 @@ const logger$2 = new class LoggerImpl {
|
|
|
1427
1431
|
case infoFn.enabled: warnFn.enabled = true;
|
|
1428
1432
|
case warnFn.enabled: errorFn.enabled = true;
|
|
1429
1433
|
}
|
|
1434
|
+
for (const child of this.childLoggers.values()) child.configure(debug);
|
|
1430
1435
|
}
|
|
1431
1436
|
getLogger(name) {
|
|
1432
1437
|
let child = (this.childLoggers.get(name));
|
|
@@ -2661,6 +2666,7 @@ function convertReason(reason) {
|
|
|
2661
2666
|
case ResolveReason.RESOLVE_REASON_NO_SEGMENT_MATCH: return "NO_SEGMENT_MATCH";
|
|
2662
2667
|
case ResolveReason.RESOLVE_REASON_TARGETING_KEY_ERROR: return "TARGETING_KEY_ERROR";
|
|
2663
2668
|
case ResolveReason.RESOLVE_REASON_NO_TREATMENT_MATCH: return "NO_TREATMENT_MATCH";
|
|
2669
|
+
case ResolveReason.RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE: return "ERROR";
|
|
2664
2670
|
default: return "UNSPECIFIED";
|
|
2665
2671
|
}
|
|
2666
2672
|
}
|
package/dist/index.inlined.d.ts
CHANGED
|
@@ -78,6 +78,8 @@ declare enum ResolveReason {
|
|
|
78
78
|
RESOLVE_REASON_TARGETING_KEY_ERROR = 5,
|
|
79
79
|
/** RESOLVE_REASON_ERROR - Unknown error occurred during the resolve */
|
|
80
80
|
RESOLVE_REASON_ERROR = 6,
|
|
81
|
+
/** RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE - The flag could not be resolved because a targeting rule was not recognized */
|
|
82
|
+
RESOLVE_REASON_UNRECOGNIZED_TARGETING_RULE = 7,
|
|
81
83
|
UNRECOGNIZED = -1,
|
|
82
84
|
}
|
|
83
85
|
declare enum SdkId {
|