github-actions[bot]
0af37593bd
Version Packages ( #331 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
flags@4.0.5
@vercel/flags-core@1.1.1
@flags-sdk/vercel@1.0.3
2026-03-12 21:53:04 +02:00
Dominik Ferber
c9934fda03
[@vercel/flags-core] drop dependency on flags pkg ( #332 )
2026-03-12 21:24:11 +02:00
nadav
dd1396e461
Guard missing Vercel Flags runtime helpers ( #326 )
...
* Guard request-context flag reporting
* Preserve request-context hook binding
* Guard core request-context reporting
* Guard missing bundled flag definitions
---------
Co-authored-by: Dominik Ferber <dominik.ferber@gmail.com >
2026-03-12 16:38:18 +02:00
Vincent Derks
e4d76a9621
Instruct agent to adjust to package-manager ( #329 )
2026-03-11 17:50:17 +01:00
Vincent Derks
bc2ed6387d
Add nextjs vercel toolbar instructions (aligned with sveltekit) ( #328 )
2026-03-11 17:36:41 +01:00
Vincent Derks
f302da3b28
Refer to vercel-cli skill for flag manipulation ( #327 )
...
* Refer to vercel-cli skill for flag manipulation
* Added set command to examples
* Apply suggestion from @chriswdmr
Co-authored-by: Chris <7249920+chriswdmr@users.noreply.github.com >
---------
Co-authored-by: Chris <7249920+chriswdmr@users.noreply.github.com >
2026-03-11 15:50:07 +00:00
Vincent Derks
ca61af1c2a
Make skill contain more instructions as opposed to being just a general guide ( #324 )
2026-03-10 17:41:26 +01:00
Anthony Shew
8b5af40701
chore: Upgrade turbo version ( #323 )
2026-03-10 15:51:39 +02:00
Vincent Derks
49a19fbcda
Add CLI reference to quickstart guide ( #322 )
2026-03-10 14:04:19 +01:00
Dominik Ferber
9ed47ff40f
add VERCEL_ENV to turbo config ( #321 )
2026-03-10 13:19:20 +02:00
Dominik Ferber
12386f5edf
Add BLOB_READ_WRITE_TOKEN to turbo.json globalPassThroughEnv ( #319 )
...
Make the Vercel Blob read/write token available to all Turborepo tasks.
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com >
2026-03-10 11:32:41 +02:00
github-actions[bot]
e44eedf0cf
Version Packages ( #315 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
flags@4.0.4
2026-03-09 19:08:17 +02:00
Dominik Ferber
b6bf070d0d
add missing envs to turbo ( #317 )
2026-03-09 19:04:06 +02:00
Dominik Ferber
df427e0e7a
use catalog for react & react-dom ( #318 )
...
* use catalog for react & react-dom
this guarantees the same version for all packages and thus avoids type errors
* update lockfile
2026-03-09 19:01:30 +02:00
Dominik Ferber
3c37b5c363
exclude docs app from changesets ( #316 )
2026-03-09 18:35:09 +02:00
Dominik Ferber
e5f3e34428
[docs] depend on workspace version of flags ( #314 )
...
* fix dep
* add packageManager
* move devDeps to top-level
2026-03-09 18:26:11 +02:00
Dominik Ferber
77727aaade
use __no_flags__ to handle precompute with empty flags ( #300 )
...
* use __no_flags__ to handle precompute with empty flags
* handle __no_flags__ in serialize
* add __no_flags__ handling to sveltekit
* avoid returning undefined when defaultValue is set
This could only happen on precomputed flags in case of bad usage.
* add error messages
* test console logs
* update changeset
2026-03-09 15:10:47 +00:00
Vincent Derks
40fed637e3
Make cli more prominent in skill ( #310 )
...
* Make CLI more prominent in skill
* Advertise cli skill more
* Removed cli examples duplication
2026-03-09 12:36:08 +00:00
Dominik Ferber
2db1530275
Upgrade dependencies ( #313 )
...
* upgrade
* update biome
* upgrade more
2026-03-09 12:24:42 +00:00
github-actions[bot]
783b9efdda
Version Packages ( #312 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@vercel/prepare-flags-definitions@0.2.0
2026-03-09 12:29:55 +01:00
Luis Meyer
10c10b6aa4
Return meaningful result from prepareFlagsDefinitions ( #311 )
...
* Return meaningful result from prepareFlagsDefinitions
- Add PrepareFlagsDefinitionsResult discriminated union type that indicates whether definitions were created
- Change prepareFlagsDefinitions return type from Promise<void> to Promise<PrepareFlagsDefinitionsResult>
- Return { created: false, reason: 'no-sdk-keys' } when no SDK keys are found
- Return { created: true, sdkKeysCount: N } when definitions are successfully created
- Add tests for both return paths to verify the function communicates its result properly
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
* Add changeset for prepareFlagsDefinitions result type
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
---------
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com >
2026-03-09 12:25:55 +01:00
Dominik Ferber
05a5ebfda1
Add userAgentSuffix to prepare-flags-definitions ( #306 )
...
* Replace version param with userAgentSuffix in prepare-flags-definitions
Changed the API to use a cleaner approach:
- Removed `version?: string` option in favor of `userAgentSuffix?: string`
- Now imports package version directly from package.json
- Constructs user-agent as: `@vercel/prepare-flags-definitions/{pkgVersion} {suffix}`
- Allows consumers (e.g., vercel-cli, vercel-api) to add context to the header
Added tests verifying both default and suffixed user-agent headers.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
* add changeset
---------
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com >
2026-03-09 11:18:51 +00:00
Vincent Derks
d4d5470b6d
Added skill reference to quickstart docs ( #309 )
2026-03-07 20:34:21 +01:00
Vincent Derks
e8084534dc
Rename middleware -> proxy ( #307 )
2026-03-06 16:15:51 +01:00
Vincent Derks
eb61cd9b66
Updated precompute instructions in skill ( #305 )
2026-03-06 14:17:12 +01:00
Dominik Ferber
e8539cd52a
make version dynamic in tests ( #304 )
2026-03-06 12:02:03 +00:00
github-actions[bot]
c1fbe2f19d
Version Packages ( #284 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@flags-sdk/vercel@1.0.2
@vercel/prepare-flags-definitions@0.1.0
@vercel/flags-core@1.1.0
2026-03-06 13:57:18 +02:00
Dominik Ferber
3f3ec2bbe2
Revert "fix main export ( #302 )" ( #303 )
...
This reverts commit 62afa7f64e .
2026-03-06 10:13:44 +00:00
Dominik Ferber
62afa7f64e
fix main export ( #302 )
2026-03-06 09:42:16 +00:00
Luis Meyer
96ba1226c8
Extract @vercel/prepare-flags-definitions package ( #301 )
...
* Extract @vercel/prepare-flags-definitions package
Extract the core flag definitions preparation logic from the Vercel CLI into a standalone, reusable package. This includes:
- prepareFlagsDefinitions() function that collects SDK keys from env, fetches definitions, and writes to node_modules
- hashSdkKey() helper for SHA-256 hashing
- generateDefinitionsModule() for JS module generation with deduplication and lazy parsing
Follows repo conventions: pnpm workspaces, tsup, vitest, ES modules with CJS fallback.
* Add JSDoc comments from original CLI source
* Add inline comments from original CLI source
* Add optional output parameter with debug logging
* Add output.time for datafile fetching
* Add changeset for @vercel/prepare-flags-definitions
2026-03-06 10:10:01 +01:00
Dominik Ferber
b70c2ea466
Control ( #278 )
...
* refactor
* remove retries
* simplify
* simplify options
* before
* rename DataSource to Controller
* refactor and better tests
* avoid double polling
* rename
* fix
* simplify test setup
* wip
* unify
* wip
* only track 1 read per build
* make BundledSource lazy
* clean up fallback behavior
* add mode
* mutually exclusive streaming & polling
* rely more on black box testing
* simplify
* Update CLAUDE.md
* various fixes
* add tests
* more fixes
* Update CLAUDE.md
* more fixes
* resolve more issues
* unite black box tests
* tests
* progress
* adjust
* don't report on 401s; use Response.json
* enforce min polling interval
* progress
* types
* capture all logs
* throw with prefix
* added a minimum gap of `BASE_DELAY_MS` (1 second) between connection
attempts
* step
* progress
* use request context in tests
* add separate tests depending on context
* tests
* rm unused option
* add state machine chart
* rm sources
* use fake timers for more tests
* swap remaining tests from msw to mocked fetch
* update comments
* Update CLAUDE.md
* update comment
* fix comment
* fix types
* rm peek
* adds ping checks and sending x-revision header (#282 )
* abort on missed pings
* use revision from bundled definitions
* tests
* simplify
* send x-revsion on reconnects too
* simplify StreamSource
* rename
* rename in test
* wait for stream
* replace startBackgroundUpdates with explicit call
* Update CLAUDE.md
* restore stronger tests
* Update CLAUDE.md
* convert
* simplify tests
* fix test
* fixes
* rm state machine
* await first poll before resoliving init
* rm outdated comment
* avoid leaking _origin
* changeset
* avoid log on reconnect due to missed pings
* don't warn on missed pings
* Update event reporting for control rewrite (#289 )
* Update event reporting for control rewrite
* Log ingest response
* Use string for revision
* Add retries when ingesting events
* adapt changeset
* adjust test
---------
Co-authored-by: Luis Meyer <luis.meyer@vercel.com >
Co-authored-by: Andy <AndyBitz@users.noreply.github.com >
Co-authored-by: Andy Bitz <artzbitz@gmail.com >
2026-03-06 10:05:01 +02:00
Vincent Derks
722b0d054e
Added new comparators: (not_)contains and case-insensitive versions ( #288 )
...
* Added new comparators: (not_)contains and case-insensitive versions
* Switched to "ci" option instead of creating new condition for every ci-case
* Cleanup
* More cleanup
* Some more cleanup & finetuning
Made-with: Cursor
* Changeset
* Switch options key to just "i" and also allow for passing "i" as string instead of options object
* Apply suggestions from code review
* Update packages/vercel-flags-core/src/evaluate.ts
Co-authored-by: Dominik Ferber <dominik.ferber@gmail.com >
* naming
* Renaming
---------
Co-authored-by: Dominik Ferber <dominik.ferber@gmail.com >
2026-03-06 07:52:32 +02:00
Vincent Derks
689b1575f6
Flags core as normal dep ( #298 )
...
* Changed @vercel/flags-core to dependency from peerDependency
* Updated docs and skills
* More explanation
* Updated skill with singleton explanation and example
* update README
* FLAGS_SDK_KEY → FLAGS
* update skill
* update changeset
---------
Co-authored-by: Dominik Ferber <dominik.ferber@gmail.com >
2026-03-05 12:53:04 +01:00
Vincent Derks
a924044282
Fixed bug with inverted NOT_ONE_OF segment comparator ( #296 )
...
* Fixed bug with inverted NOT_ONE_OF segment comparator
* Feedback
* Changeset
* Updated unit-test
2026-03-05 10:52:50 +01:00
Dominik Ferber
581671d18e
Flags-sdk.dev dark mode ( #297 )
...
* fix: add dark mode support to IframeBrowser component
- Add dark:bg-gray-800 to header bar
- Add dark:bg-gray-900 to input field
- Add dark:bg-black to iframe container
Fixes FLA-2542
Co-authored-by: Dominik Ferber <dominik.ferber@gmail.com >
* fix: apply Biome formatting to iframe-browser.tsx
* fix
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
2026-03-05 10:35:11 +01:00
Rich Haines
dbb9fb2572
Add sitemap.md route ( #293 )
...
* Add sitemap.md route for LLM-friendly documentation indexing
* format
---------
Co-authored-by: Dominik Ferber <dominik.ferber@gmail.com >
2026-03-03 15:53:22 +02:00
Vincent Derks
e109b7517d
Mention CLI in skill ( #292 )
2026-03-03 11:31:37 +01:00
Dominik Ferber
179233746b
add metadata base ( #290 )
...
* add metadata base
* add type keyword
2026-02-28 16:41:38 +01:00
Dominik Ferber
a23ac64e50
rm console log ( #286 )
2026-02-25 10:56:45 +02:00
Dominik Ferber
42e07a19a0
fix flags explorer ( #285 )
...
* fix id warning
* set up toolbar & flags explorer
* fix discovery endpoint
2026-02-25 10:55:33 +02:00
Luis Meyer
823bf786c1
Add CJS support for @vercel/flags-core ( #283 )
...
* Add CJS support for @vercel/flags-core
Update tsup config to build both ESM and CJS formats, and update package.json exports to use import/require conditions with separate entry points for CommonJS consumers.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com >
* changeset
---------
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com >
2026-02-24 17:13:52 +01:00
Hayden Bleasel
501f40566e
Skill ( #277 )
...
* Draft skill
* Implemented review feedback
---------
Co-authored-by: Vincent Derks <vincent.derks@vercel.com >
2026-02-24 13:26:53 +01:00
Dominik Ferber
d94c1df4a2
fix logos ( #281 )
2026-02-23 07:09:37 +02:00
Hayden Bleasel
626720619a
Dark mode fixes ( #276 )
2026-02-13 20:17:30 +02:00
github-actions[bot]
fa58c6900d
Version Packages ( #275 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@flags-sdk/vercel@1.0.1
@vercel/flags-core@1.0.1
2026-02-13 15:19:35 +02:00
Dominik Ferber
7d7719a255
[@vercel/flags-core] deduplicate concurrent initialize() calls ( #274 )
...
* add shop
* wip
* fix parallel init initialize
* avoid double polling
* add tests
* rm shirt-shop-vercel
* ignore
* refactor
* rm unnecessary fix
* minimal
* changeset
* fix tests
2026-02-13 14:34:46 +02:00
Hayden Bleasel
524d235cef
Remove last modified plugin ( #273 )
2026-02-13 09:20:00 +02:00
Hayden Bleasel
cf9ccd0076
Open Source Docs ( #272 )
...
* Scaffold Geistdocs instance
* Update biome.json
* Replace content
* Re-path docs
* Update docs package name
* Misc fixes
* Update geistdocs.tsx
* Move content to correct folder
* Start migrating custom components
* Finish migrating custom components
* Migrate existing redirects
* Remove #next suffixes from code blocks
* Migrate homepage and flags
* Remove duplicate lockfiles
* Start fixing homepage
* Replace Geist components
* Fix colors
* Improve layout
* Fix code blocks
* Fix hero
* Fix illustrations
* Fix redirect
* Fix nav links
* Patch in FrameworkSwitcher
* Bump Next.js in docs
* Delete turbo.json
* Misc fixes
* More logo fixes
2026-02-13 09:06:03 +02:00
github-actions[bot]
47806d4f89
Version Packages ( #260 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
flags@4.0.3
@vercel/flags-core@1.0.0
@flags-sdk/vercel@1.0.0
2026-02-11 15:55:44 +02:00
Dominik Ferber
4d12447037
prepare v1 release ( #271 )
2026-02-11 15:53:11 +02:00