@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.
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkEW4YJU7Vcjs = require('./chunk-EW4YJU7V.cjs');
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 = _chunkEW4YJU7Vcjs.Controller; exports.FallbackEntryNotFoundError = _chunkEW4YJU7Vcjs.FallbackEntryNotFoundError; exports.FallbackNotFoundError = _chunkEW4YJU7Vcjs.FallbackNotFoundError; exports.FlagNetworkDataSource = _chunkEW4YJU7Vcjs.Controller; exports.Reason = _chunkEW4YJU7Vcjs.ResolutionReason; exports.createClient = _chunkEW4YJU7Vcjs.createClient; exports.evaluate = _chunkEW4YJU7Vcjs.evaluate; exports.flagsClient = _chunkEW4YJU7Vcjs.flagsClient; exports.resetDefaultFlagsClient = _chunkEW4YJU7Vcjs.resetDefaultFlagsClient;
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
@@ -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 gives up (retries exhausted, 401, or token failure)
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):
@@ -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 gives up (retries exhausted, 401, or token failure)
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):
@@ -7,7 +7,7 @@ import {
7
7
  evaluate,
8
8
  flagsClient,
9
9
  resetDefaultFlagsClient
10
- } from "./chunk-CAVQRHGX.js";
10
+ } from "./chunk-2P2UTT7O.js";
11
11
  export {
12
12
  Controller,
13
13
  FallbackEntryNotFoundError,
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkR3QYUMRAcjs = require('./chunk-R3QYUMRA.cjs');
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 = _chunkR3QYUMRAcjs.Controller; exports.FallbackEntryNotFoundError = _chunkR3QYUMRAcjs.FallbackEntryNotFoundError; exports.FallbackNotFoundError = _chunkR3QYUMRAcjs.FallbackNotFoundError; exports.FlagNetworkDataSource = _chunkR3QYUMRAcjs.Controller; exports.Reason = _chunkR3QYUMRAcjs.ResolutionReason; exports.createClient = _chunkR3QYUMRAcjs.createClient; exports.evaluate = _chunkR3QYUMRAcjs.evaluate; exports.flagsClient = _chunkR3QYUMRAcjs.flagsClient; exports.resetDefaultFlagsClient = _chunkR3QYUMRAcjs.resetDefaultFlagsClient;
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
@@ -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 gives up (retries exhausted, 401, or token failure)
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):
@@ -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 gives up (retries exhausted, 401, or token failure)
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):
@@ -7,7 +7,7 @@ import {
7
7
  evaluate,
8
8
  flagsClient,
9
9
  resetDefaultFlagsClient
10
- } from "./chunk-ZY7CHPJG.js";
10
+ } from "./chunk-OIOT7N7A.js";
11
11
  export {
12
12
  Controller,
13
13
  FallbackEntryNotFoundError,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _class;
2
2
 
3
3
 
4
- var _chunkEW4YJU7Vcjs = require('./chunk-EW4YJU7V.cjs');
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(_chunkEW4YJU7Vcjs.createClient, _chunkEW4YJU7Vcjs.flagsClient);
153
+ var VercelProvider = make(_chunkBEQ3MX7Zcjs.createClient, _chunkBEQ3MX7Zcjs.flagsClient);
154
154
 
155
155
 
156
156
  exports.VercelProvider = VercelProvider;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createClient,
3
3
  flagsClient
4
- } from "./chunk-CAVQRHGX.js";
4
+ } from "./chunk-2P2UTT7O.js";
5
5
 
6
6
  // src/openfeature.make.ts
7
7
  import {
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _class;
2
2
 
3
3
 
4
- var _chunkR3QYUMRAcjs = require('./chunk-R3QYUMRA.cjs');
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(_chunkR3QYUMRAcjs.createClient, _chunkR3QYUMRAcjs.flagsClient);
153
+ var VercelProvider = make(_chunkEGGUENXPcjs.createClient, _chunkEGGUENXPcjs.flagsClient);
154
154
 
155
155
 
156
156
  exports.VercelProvider = VercelProvider;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createClient,
3
3
  flagsClient
4
- } from "./chunk-ZY7CHPJG.js";
4
+ } from "./chunk-OIOT7N7A.js";
5
5
 
6
6
  // src/openfeature.make.ts
7
7
  import {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/flags-core",
3
- "version": "1.10.1",
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.8",
77
+ "next": "16.4.3",
78
78
  "tsup": "8.5.1",
79
79
  "typescript": "^5.9.3",
80
- "vite": "8.1.5",
81
- "vitest": "4.1.11"
80
+ "vite": "8.1.6",
81
+ "vitest": "4.1.12"
82
82
  },
83
83
  "peerDependencies": {
84
84
  "@openfeature/server-sdk": "1.18.0",