@vercel/flags-core 1.1.0-cea788b-20260305194413 → 1.1.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +8 -2
  2. package/README.md +2 -0
  3. package/dist/{chunk-EB6T2UJ6.js → chunk-J33BA25D.js} +958 -527
  4. package/dist/chunk-J33BA25D.js.map +1 -0
  5. package/dist/{chunk-326YN2YT.cjs → chunk-LBP3OTYA.cjs} +965 -535
  6. package/dist/chunk-LBP3OTYA.cjs.map +1 -0
  7. package/dist/{chunk-IBIJOSJL.js → chunk-UYFYFLI7.js} +953 -523
  8. package/dist/chunk-UYFYFLI7.js.map +1 -0
  9. package/dist/{chunk-WN6UYCJZ.cjs → chunk-ZLGLABMG.cjs} +969 -538
  10. package/dist/chunk-ZLGLABMG.cjs.map +1 -0
  11. package/dist/index.default.cjs +3 -2
  12. package/dist/index.default.cjs.map +1 -1
  13. package/dist/index.default.d.cts +78 -83
  14. package/dist/index.default.d.ts +78 -83
  15. package/dist/index.default.js +4 -3
  16. package/dist/index.next-js.cjs +3 -2
  17. package/dist/index.next-js.cjs.map +1 -1
  18. package/dist/index.next-js.d.cts +78 -83
  19. package/dist/index.next-js.d.ts +78 -83
  20. package/dist/index.next-js.js +4 -3
  21. package/dist/openfeature.default.cjs +2 -2
  22. package/dist/openfeature.default.d.cts +1 -1
  23. package/dist/openfeature.default.d.ts +1 -1
  24. package/dist/openfeature.default.js +1 -1
  25. package/dist/openfeature.next-js.cjs +2 -2
  26. package/dist/openfeature.next-js.d.cts +1 -1
  27. package/dist/openfeature.next-js.d.ts +1 -1
  28. package/dist/openfeature.next-js.js +1 -1
  29. package/dist/{types-CpRz8o4d.d.cts → types-DtnecWgl.d.cts} +8 -4
  30. package/dist/{types-CpRz8o4d.d.ts → types-DtnecWgl.d.ts} +8 -4
  31. package/package.json +3 -4
  32. package/dist/chunk-326YN2YT.cjs.map +0 -1
  33. package/dist/chunk-EB6T2UJ6.js.map +0 -1
  34. package/dist/chunk-IBIJOSJL.js.map +0 -1
  35. package/dist/chunk-WN6UYCJZ.cjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,12 +1,18 @@
1
1
  # @vercel/flags-core
2
2
 
3
- ## 1.1.0-cea788b-20260305194413
3
+ ## 1.1.0
4
4
 
5
5
  ### Minor Changes
6
6
 
7
7
  - 823bf78: Add CJS support
8
- - fc6129e: - adds CONTAINS & NOT_CONTAINS comparators
8
+ - 722b0d0: - adds CONTAINS & NOT_CONTAINS comparators
9
9
  - adds case insensitive versions of all string based comparators
10
+ - b70c2ea: This version of the SDK will no longer fall back to polling in case of streaming issues, and rely on the current in-memory version of the datafile instead, or fall back to the embedded datafile if no in-memory version is available.
11
+
12
+ - Rename `FlagNetworkDataSource` to `Controller` (old name still exported as alias)
13
+ - Rename `FlagNetworkDataSourceOptions` to `ControllerOptions` (old name still exported as alias)
14
+ - Rename `DataSource` interface to `ControllerInterface`
15
+ - Add optional `revision` field to `DatafileInput`
10
16
 
11
17
  ### Patch Changes
12
18
 
package/README.md CHANGED
@@ -17,6 +17,8 @@ import { createClient } from '@vercel/flags-core';
17
17
 
18
18
  const client = createClient(process.env.FLAGS!);
19
19
 
20
+ await client.initialize();
21
+
20
22
  const result = await client.evaluate<boolean>('show-new-feature', false, {
21
23
  user: { id: 'user-123' },
22
24
  });