@vercel/flags-core 1.10.1 → 1.10.3
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 +14 -0
- package/dist/{chunk-CAVQRHGX.js → chunk-2P2UTT7O.js} +65 -23
- package/dist/chunk-2P2UTT7O.js.map +1 -0
- package/dist/{chunk-EW4YJU7V.cjs → chunk-BEQ3MX7Z.cjs} +76 -34
- package/dist/chunk-BEQ3MX7Z.cjs.map +1 -0
- package/dist/{chunk-R3QYUMRA.cjs → chunk-EGGUENXP.cjs} +77 -35
- package/dist/chunk-EGGUENXP.cjs.map +1 -0
- package/dist/{chunk-ZY7CHPJG.js → chunk-OIOT7N7A.js} +65 -23
- package/dist/chunk-OIOT7N7A.js.map +1 -0
- package/dist/index.default.cjs +2 -2
- package/dist/index.default.d.cts +5 -2
- package/dist/index.default.d.ts +5 -2
- package/dist/index.default.js +1 -1
- package/dist/index.next-js.cjs +2 -2
- package/dist/index.next-js.d.cts +5 -2
- package/dist/index.next-js.d.ts +5 -2
- package/dist/index.next-js.js +1 -1
- package/dist/openfeature.default.cjs +2 -2
- package/dist/openfeature.default.js +1 -1
- package/dist/openfeature.next-js.cjs +2 -2
- package/dist/openfeature.next-js.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-CAVQRHGX.js.map +0 -1
- package/dist/chunk-EW4YJU7V.cjs.map +0 -1
- package/dist/chunk-R3QYUMRA.cjs.map +0 -1
- package/dist/chunk-ZY7CHPJG.js.map +0 -1
package/dist/index.default.cjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkBEQ3MX7Zcjs = require('./chunk-BEQ3MX7Z.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -18,5 +18,5 @@ var _chunkEW4YJU7Vcjs = require('./chunk-EW4YJU7V.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.Controller =
|
|
21
|
+
exports.Controller = _chunkBEQ3MX7Zcjs.Controller; exports.FallbackEntryNotFoundError = _chunkBEQ3MX7Zcjs.FallbackEntryNotFoundError; exports.FallbackNotFoundError = _chunkBEQ3MX7Zcjs.FallbackNotFoundError; exports.FlagNetworkDataSource = _chunkBEQ3MX7Zcjs.Controller; exports.Reason = _chunkBEQ3MX7Zcjs.ResolutionReason; exports.createClient = _chunkBEQ3MX7Zcjs.createClient; exports.evaluate = _chunkBEQ3MX7Zcjs.evaluate; exports.flagsClient = _chunkBEQ3MX7Zcjs.flagsClient; exports.resetDefaultFlagsClient = _chunkBEQ3MX7Zcjs.resetDefaultFlagsClient;
|
|
22
22
|
//# sourceMappingURL=index.default.cjs.map
|
package/dist/index.default.d.cts
CHANGED
|
@@ -22,6 +22,8 @@ interface Auth {
|
|
|
22
22
|
sourceProjectId?: string;
|
|
23
23
|
resolveToken(): Promise<string>;
|
|
24
24
|
resolveBundledDefinitionsLookup(): Promise<BundledDefinitionsLookup>;
|
|
25
|
+
/** Returns the lookup when it is known without resolving a token. */
|
|
26
|
+
getStaticBundledDefinitionsLookup(): BundledDefinitionsLookup | undefined;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
/**
|
|
@@ -134,11 +136,12 @@ type ControllerOptions = {
|
|
|
134
136
|
* - Streams exclusively; a startup timeout keeps connecting in the background
|
|
135
137
|
* - Retains provided/bundled data during startup; fetches if the cache remains empty
|
|
136
138
|
* - Reads always serve the cache while streaming; old data is labeled stale, never refetched over HTTP
|
|
137
|
-
* - Polling starts only once the stream
|
|
139
|
+
* - Polling starts only once the stream exhausts its retries; an auth failure (401 or
|
|
140
|
+
* missing OIDC token) skips polling, which would fail the same way
|
|
138
141
|
* - Without a live source (`degraded`), reads apply stale-while-revalidate over HTTP
|
|
139
142
|
*
|
|
140
143
|
* **Runtime — polling mode** (polling enabled, stream disabled):
|
|
141
|
-
* - Uses polling exclusively; a 401 stops polling and reads revalidate over HTTP
|
|
144
|
+
* - Uses polling exclusively; a 401 or missing OIDC token stops polling and reads revalidate over HTTP
|
|
142
145
|
* - Same fallback chains as streaming mode
|
|
143
146
|
*
|
|
144
147
|
* **Runtime — Vercel mode** (vercel enabled, with stream or polling enabled):
|
package/dist/index.default.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ interface Auth {
|
|
|
22
22
|
sourceProjectId?: string;
|
|
23
23
|
resolveToken(): Promise<string>;
|
|
24
24
|
resolveBundledDefinitionsLookup(): Promise<BundledDefinitionsLookup>;
|
|
25
|
+
/** Returns the lookup when it is known without resolving a token. */
|
|
26
|
+
getStaticBundledDefinitionsLookup(): BundledDefinitionsLookup | undefined;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
/**
|
|
@@ -134,11 +136,12 @@ type ControllerOptions = {
|
|
|
134
136
|
* - Streams exclusively; a startup timeout keeps connecting in the background
|
|
135
137
|
* - Retains provided/bundled data during startup; fetches if the cache remains empty
|
|
136
138
|
* - Reads always serve the cache while streaming; old data is labeled stale, never refetched over HTTP
|
|
137
|
-
* - Polling starts only once the stream
|
|
139
|
+
* - Polling starts only once the stream exhausts its retries; an auth failure (401 or
|
|
140
|
+
* missing OIDC token) skips polling, which would fail the same way
|
|
138
141
|
* - Without a live source (`degraded`), reads apply stale-while-revalidate over HTTP
|
|
139
142
|
*
|
|
140
143
|
* **Runtime — polling mode** (polling enabled, stream disabled):
|
|
141
|
-
* - Uses polling exclusively; a 401 stops polling and reads revalidate over HTTP
|
|
144
|
+
* - Uses polling exclusively; a 401 or missing OIDC token stops polling and reads revalidate over HTTP
|
|
142
145
|
* - Same fallback chains as streaming mode
|
|
143
146
|
*
|
|
144
147
|
* **Runtime — Vercel mode** (vercel enabled, with stream or polling enabled):
|
package/dist/index.default.js
CHANGED
package/dist/index.next-js.cjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkEGGUENXPcjs = require('./chunk-EGGUENXP.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -18,5 +18,5 @@ var _chunkR3QYUMRAcjs = require('./chunk-R3QYUMRA.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.Controller =
|
|
21
|
+
exports.Controller = _chunkEGGUENXPcjs.Controller; exports.FallbackEntryNotFoundError = _chunkEGGUENXPcjs.FallbackEntryNotFoundError; exports.FallbackNotFoundError = _chunkEGGUENXPcjs.FallbackNotFoundError; exports.FlagNetworkDataSource = _chunkEGGUENXPcjs.Controller; exports.Reason = _chunkEGGUENXPcjs.ResolutionReason; exports.createClient = _chunkEGGUENXPcjs.createClient; exports.evaluate = _chunkEGGUENXPcjs.evaluate; exports.flagsClient = _chunkEGGUENXPcjs.flagsClient; exports.resetDefaultFlagsClient = _chunkEGGUENXPcjs.resetDefaultFlagsClient;
|
|
22
22
|
//# sourceMappingURL=index.next-js.cjs.map
|
package/dist/index.next-js.d.cts
CHANGED
|
@@ -22,6 +22,8 @@ interface Auth {
|
|
|
22
22
|
sourceProjectId?: string;
|
|
23
23
|
resolveToken(): Promise<string>;
|
|
24
24
|
resolveBundledDefinitionsLookup(): Promise<BundledDefinitionsLookup>;
|
|
25
|
+
/** Returns the lookup when it is known without resolving a token. */
|
|
26
|
+
getStaticBundledDefinitionsLookup(): BundledDefinitionsLookup | undefined;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
/**
|
|
@@ -134,11 +136,12 @@ type ControllerOptions = {
|
|
|
134
136
|
* - Streams exclusively; a startup timeout keeps connecting in the background
|
|
135
137
|
* - Retains provided/bundled data during startup; fetches if the cache remains empty
|
|
136
138
|
* - Reads always serve the cache while streaming; old data is labeled stale, never refetched over HTTP
|
|
137
|
-
* - Polling starts only once the stream
|
|
139
|
+
* - Polling starts only once the stream exhausts its retries; an auth failure (401 or
|
|
140
|
+
* missing OIDC token) skips polling, which would fail the same way
|
|
138
141
|
* - Without a live source (`degraded`), reads apply stale-while-revalidate over HTTP
|
|
139
142
|
*
|
|
140
143
|
* **Runtime — polling mode** (polling enabled, stream disabled):
|
|
141
|
-
* - Uses polling exclusively; a 401 stops polling and reads revalidate over HTTP
|
|
144
|
+
* - Uses polling exclusively; a 401 or missing OIDC token stops polling and reads revalidate over HTTP
|
|
142
145
|
* - Same fallback chains as streaming mode
|
|
143
146
|
*
|
|
144
147
|
* **Runtime — Vercel mode** (vercel enabled, with stream or polling enabled):
|
package/dist/index.next-js.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ interface Auth {
|
|
|
22
22
|
sourceProjectId?: string;
|
|
23
23
|
resolveToken(): Promise<string>;
|
|
24
24
|
resolveBundledDefinitionsLookup(): Promise<BundledDefinitionsLookup>;
|
|
25
|
+
/** Returns the lookup when it is known without resolving a token. */
|
|
26
|
+
getStaticBundledDefinitionsLookup(): BundledDefinitionsLookup | undefined;
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
/**
|
|
@@ -134,11 +136,12 @@ type ControllerOptions = {
|
|
|
134
136
|
* - Streams exclusively; a startup timeout keeps connecting in the background
|
|
135
137
|
* - Retains provided/bundled data during startup; fetches if the cache remains empty
|
|
136
138
|
* - Reads always serve the cache while streaming; old data is labeled stale, never refetched over HTTP
|
|
137
|
-
* - Polling starts only once the stream
|
|
139
|
+
* - Polling starts only once the stream exhausts its retries; an auth failure (401 or
|
|
140
|
+
* missing OIDC token) skips polling, which would fail the same way
|
|
138
141
|
* - Without a live source (`degraded`), reads apply stale-while-revalidate over HTTP
|
|
139
142
|
*
|
|
140
143
|
* **Runtime — polling mode** (polling enabled, stream disabled):
|
|
141
|
-
* - Uses polling exclusively; a 401 stops polling and reads revalidate over HTTP
|
|
144
|
+
* - Uses polling exclusively; a 401 or missing OIDC token stops polling and reads revalidate over HTTP
|
|
142
145
|
* - Same fallback chains as streaming mode
|
|
143
146
|
*
|
|
144
147
|
* **Runtime — Vercel mode** (vercel enabled, with stream or polling enabled):
|
package/dist/index.next-js.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _class;
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkBEQ3MX7Zcjs = require('./chunk-BEQ3MX7Z.cjs');
|
|
5
5
|
|
|
6
6
|
// src/openfeature.make.ts
|
|
7
7
|
|
|
@@ -150,7 +150,7 @@ function make(createClient2, defaultFlagsClient) {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
// src/openfeature.default.ts
|
|
153
|
-
var VercelProvider = make(
|
|
153
|
+
var VercelProvider = make(_chunkBEQ3MX7Zcjs.createClient, _chunkBEQ3MX7Zcjs.flagsClient);
|
|
154
154
|
|
|
155
155
|
|
|
156
156
|
exports.VercelProvider = VercelProvider;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _class;
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkEGGUENXPcjs = require('./chunk-EGGUENXP.cjs');
|
|
5
5
|
|
|
6
6
|
// src/openfeature.make.ts
|
|
7
7
|
|
|
@@ -150,7 +150,7 @@ function make(createClient2, defaultFlagsClient) {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
// src/openfeature.next-js.ts
|
|
153
|
-
var VercelProvider = make(
|
|
153
|
+
var VercelProvider = make(_chunkEGGUENXPcjs.createClient, _chunkEGGUENXPcjs.flagsClient);
|
|
154
154
|
|
|
155
155
|
|
|
156
156
|
exports.VercelProvider = VercelProvider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/flags-core",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.3",
|
|
4
4
|
"description": "A server-side client for Vercel Flags",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vercel",
|
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@arethetypeswrong/cli": "0.18.5",
|
|
76
76
|
"@types/node": "22.14.0",
|
|
77
|
-
"next": "16.3
|
|
77
|
+
"next": "16.4.3",
|
|
78
78
|
"tsup": "8.5.1",
|
|
79
79
|
"typescript": "^5.9.3",
|
|
80
|
-
"vite": "8.1.
|
|
81
|
-
"vitest": "4.1.
|
|
80
|
+
"vite": "8.1.6",
|
|
81
|
+
"vitest": "4.1.12"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"@openfeature/server-sdk": "1.18.0",
|