@lunora/flags 1.0.0-alpha.12 → 1.0.0-alpha.13
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/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { defineFlags, isFlagsDefinition } from './packem_shared/defineFlags-DAIO8cWQ.mjs';
|
|
2
|
-
export { createFlags } from './packem_shared/createFlags-
|
|
2
|
+
export { createFlags } from './packem_shared/createFlags-DGosFql2.mjs';
|
|
@@ -12,7 +12,7 @@ const stableStringify = (value) => {
|
|
|
12
12
|
return "null";
|
|
13
13
|
}
|
|
14
14
|
if (typeof value === "bigint") {
|
|
15
|
-
throw new TypeError("stableStringify: cannot use a bigint in a cache key
|
|
15
|
+
throw new TypeError("stableStringify: cannot use a bigint in a stable JSON cache key — pass it as a string, or use stableWireKey");
|
|
16
16
|
}
|
|
17
17
|
if (value === null || typeof value !== "object") {
|
|
18
18
|
return JSON.stringify(value);
|
|
@@ -24,7 +24,7 @@ const stableStringify = (value) => {
|
|
|
24
24
|
if (proto !== null && proto !== Object.prototype) {
|
|
25
25
|
const name = value.constructor?.name ?? "value";
|
|
26
26
|
throw new TypeError(
|
|
27
|
-
`stableStringify: cannot use a ${name} in a cache key
|
|
27
|
+
`stableStringify: cannot use a ${name} in a stable JSON cache key — only plain objects, arrays, and JSON primitives are supported (wire-typed values key via stableWireKey)`
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
30
|
const record = value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/flags",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.13",
|
|
4
4
|
"description": "OpenFeature-based feature flags for Lunora — ctx.flags, useFlag, and a first-class Cloudflare Flagship provider with any OpenFeature provider pluggable",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@lunora/errors": "1.0.0-alpha.
|
|
63
|
+
"@lunora/errors": "1.0.0-alpha.5",
|
|
64
64
|
"@openfeature/server-sdk": "^1.22.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|