@vercel/flags-core 1.10.2 → 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 +6 -0
- package/dist/{chunk-LGS6CVED.js → chunk-2P2UTT7O.js} +42 -21
- package/dist/chunk-2P2UTT7O.js.map +1 -0
- package/dist/{chunk-POAWPAE3.cjs → chunk-BEQ3MX7Z.cjs} +53 -32
- package/dist/chunk-BEQ3MX7Z.cjs.map +1 -0
- package/dist/{chunk-WVS63L4A.cjs → chunk-EGGUENXP.cjs} +54 -33
- package/dist/chunk-EGGUENXP.cjs.map +1 -0
- package/dist/{chunk-7A7RG7ST.js → chunk-OIOT7N7A.js} +42 -21
- package/dist/chunk-OIOT7N7A.js.map +1 -0
- package/dist/index.default.cjs +2 -2
- package/dist/index.default.d.cts +3 -2
- package/dist/index.default.d.ts +3 -2
- package/dist/index.default.js +1 -1
- package/dist/index.next-js.cjs +2 -2
- package/dist/index.next-js.d.cts +3 -2
- package/dist/index.next-js.d.ts +3 -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 +3 -3
- package/dist/chunk-7A7RG7ST.js.map +0 -1
- package/dist/chunk-LGS6CVED.js.map +0 -1
- package/dist/chunk-POAWPAE3.cjs.map +0 -1
- package/dist/chunk-WVS63L4A.cjs.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 _chunkPOAWPAE3cjs = require('./chunk-POAWPAE3.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
|
@@ -136,11 +136,12 @@ type ControllerOptions = {
|
|
|
136
136
|
* - Streams exclusively; a startup timeout keeps connecting in the background
|
|
137
137
|
* - Retains provided/bundled data during startup; fetches if the cache remains empty
|
|
138
138
|
* - Reads always serve the cache while streaming; old data is labeled stale, never refetched over HTTP
|
|
139
|
-
* - 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
|
|
140
141
|
* - Without a live source (`degraded`), reads apply stale-while-revalidate over HTTP
|
|
141
142
|
*
|
|
142
143
|
* **Runtime — polling mode** (polling enabled, stream disabled):
|
|
143
|
-
* - 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
|
|
144
145
|
* - Same fallback chains as streaming mode
|
|
145
146
|
*
|
|
146
147
|
* **Runtime — Vercel mode** (vercel enabled, with stream or polling enabled):
|
package/dist/index.default.d.ts
CHANGED
|
@@ -136,11 +136,12 @@ type ControllerOptions = {
|
|
|
136
136
|
* - Streams exclusively; a startup timeout keeps connecting in the background
|
|
137
137
|
* - Retains provided/bundled data during startup; fetches if the cache remains empty
|
|
138
138
|
* - Reads always serve the cache while streaming; old data is labeled stale, never refetched over HTTP
|
|
139
|
-
* - 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
|
|
140
141
|
* - Without a live source (`degraded`), reads apply stale-while-revalidate over HTTP
|
|
141
142
|
*
|
|
142
143
|
* **Runtime — polling mode** (polling enabled, stream disabled):
|
|
143
|
-
* - 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
|
|
144
145
|
* - Same fallback chains as streaming mode
|
|
145
146
|
*
|
|
146
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 _chunkWVS63L4Acjs = require('./chunk-WVS63L4A.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
|
@@ -136,11 +136,12 @@ type ControllerOptions = {
|
|
|
136
136
|
* - Streams exclusively; a startup timeout keeps connecting in the background
|
|
137
137
|
* - Retains provided/bundled data during startup; fetches if the cache remains empty
|
|
138
138
|
* - Reads always serve the cache while streaming; old data is labeled stale, never refetched over HTTP
|
|
139
|
-
* - 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
|
|
140
141
|
* - Without a live source (`degraded`), reads apply stale-while-revalidate over HTTP
|
|
141
142
|
*
|
|
142
143
|
* **Runtime — polling mode** (polling enabled, stream disabled):
|
|
143
|
-
* - 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
|
|
144
145
|
* - Same fallback chains as streaming mode
|
|
145
146
|
*
|
|
146
147
|
* **Runtime — Vercel mode** (vercel enabled, with stream or polling enabled):
|
package/dist/index.next-js.d.ts
CHANGED
|
@@ -136,11 +136,12 @@ type ControllerOptions = {
|
|
|
136
136
|
* - Streams exclusively; a startup timeout keeps connecting in the background
|
|
137
137
|
* - Retains provided/bundled data during startup; fetches if the cache remains empty
|
|
138
138
|
* - Reads always serve the cache while streaming; old data is labeled stale, never refetched over HTTP
|
|
139
|
-
* - 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
|
|
140
141
|
* - Without a live source (`degraded`), reads apply stale-while-revalidate over HTTP
|
|
141
142
|
*
|
|
142
143
|
* **Runtime — polling mode** (polling enabled, stream disabled):
|
|
143
|
-
* - 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
|
|
144
145
|
* - Same fallback chains as streaming mode
|
|
145
146
|
*
|
|
146
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
80
|
"vite": "8.1.6",
|
|
81
|
-
"vitest": "4.1.
|
|
81
|
+
"vitest": "4.1.12"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"@openfeature/server-sdk": "1.18.0",
|