Commit Graph

143 Commits

Author SHA1 Message Date
Dominik Ferber f2eba9c624 upgrade pnpm (#198)
* extract @flags-sdk/utils

* init

* split package

* rename createFlagsClient to createClient

* add TODO

* wip

* add openfeature adapter

* reuse InlineDataSource

* fix type in test

* expose OpenFeature adapter

* implement OpenFeature adapter

* wip

* wip

* convert shirt-shop

* move store into flags-core

* split up data-source

* add READMEs

* upgrade to pnpm v10

* update comment

* undo example changes

* rm flags/utils

* fix biome issues

* rm status test

* tests
@vercel/flags-core@0.1.0 @flags-sdk/vercel@0.1.0
2025-10-25 00:13:34 +03:00
Dominik Ferber 98ad9fb352 rm @vercel/style-guide (#193)
* add format command

* drop @vercel/style-guide

* copy over rules frmo @vercel/style-guide
2025-10-17 15:31:55 +03:00
Dominik Ferber 735a6eee06 rm jest (#192) 2025-10-17 14:39:46 +03:00
Dominik Ferber 88e8eafa6d add zed config (#188) 2025-10-16 11:40:43 +03:00
Dominik Ferber ba4eec7b23 replace eslint and prettier with biome (#187)
* remove @pyra/eslint-config

* wip

* wip

* convert shirt-shop-api

* convert shirt-shop

* convert snippets

* convert next-13

* convert next-14

* convert next-15

* eslint configs

* upgrade prettier

* use eslint v9

* run prettier

* resolve type-check

* adjust eslint

* drop Next.js v13

* fix next-14

Avoid accidentally using implicitly installed eslint v8

* update lockfile

* rm @eslint/eslintrc

* add @next/eslint-plugin-next

* biome

* biome fixes

* wip

* apply formatting

* tabs

* rm prettier

* spaces

* fix svelte

* update lockfile

* single quotes

* format all

* rm eslint-disable comments

* upgrade playwright

* upgrade publint

* upgrade playwright ci workflow

* try chromium headless

* try adding executablePath
2025-10-15 23:38:17 +03:00
github-actions[bot] d1b153e5e4 Version Packages (#185)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@flags-sdk/statsig@0.2.3
2025-10-13 15:38:15 +03:00
Dominik Ferber 48adbf2de1 [@flags-sdk/statsig] update statsig-node-lite to v0.5.2 (#184) 2025-10-13 15:33:10 +03:00
Chris ef67441c0a Update hero image (#181) 2025-09-26 10:54:05 +02:00
Dominik Ferber 11a57785bd rename @flags-sdk/bucket to @flags-sdk/reflag (#177)
* rename @flags-sdk/bucket to @flags-sdk/reflag

* update lockfile
@flags-sdk/reflag@1.0.0
2025-09-20 15:16:46 +03:00
Dominik Ferber 304097d5b8 add review instructions (#171) 2025-09-12 08:30:07 +02:00
github-actions[bot] e5be34f680 Version Packages (#173)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@flags-sdk/hypertune@0.3.0
2025-09-12 08:04:21 +03:00
Dominik Ferber a7b9be80db Update hypertune adapter (#172)
* Support nested flags by using the getFlagValues method. Pass a key to createSource to prevent conflicts with the getHypertune setup.

* address review comments

---------

Co-authored-by: Miraan Tabrez <miraan.tabrez@gmail.com>
2025-09-12 08:02:14 +03:00
github-actions[bot] dbf43160d0 Version Packages (#170)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@flags-sdk/launchdarkly@0.3.2
2025-09-11 18:59:05 +03:00
Dominik Ferber e1def0eb34 upgrade @flags-sdk/launchdarkly (#169)
* upgrade @flags-sdk/launchdarkly

* remove unused dependencies
2025-09-11 18:54:03 +03:00
Dominik Ferber 2d88e9f244 remove @flags-sdk/happykit (#168) 2025-09-10 15:22:33 +03:00
Daniel Roe f54cc0cd9f chore: add test .env files (#160)
* chore: add test `.env` files

* add EDGE_CONFIG env var

Adds the EDGE_CONFIG env var to the snippets example with a read-only token meant for public consumption.

---------

Co-authored-by: Dominik Ferber <dominik.ferber@gmail.com>
2025-09-09 13:46:00 +03:00
Dominik Ferber bf85f9729a Revert "Adds Flagsmith adapter (#103)"
This reverts commit 63edc40ec8.
2025-09-09 13:42:03 +03:00
Tiago Paiva 63edc40ec8 Adds Flagsmith adapter (#103)
adds tests

fix README

fix documentation

remove asdf file

implements getFeature pattern

update README

Update packages/adapter-flagsmith/README.md

Co-authored-by: Aaron Morris <aaron@vercel.com>

address changes

implements provider

adds different methods for different types of flags

fix tests

changeset
2025-08-22 09:24:18 +03:00
github-actions[bot] 12d153d483 Version Packages (#157)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@flags-sdk/launchdarkly@0.3.1
2025-08-06 10:45:47 +03:00
Dominik Ferber 595e9d055b @flags-sdk/launchdarkly: only read edge config once per request (#156)
* @flags-sdk/launchdarkly: only read edge config once per request

* fix test
2025-08-06 10:36:21 +03:00
github-actions[bot] 0976e8f760 Version Packages (#154)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@flags-sdk/posthog@0.2.0
2025-07-28 08:52:03 -04:00
Bernd Strehl 5586443f71 Posthog provider: enable discovery of disabled flags. (#153)
* list active and inactive flags in posthog provider to enable discovery of disabled flags

* add changeset

* change version change from major to minor
2025-07-28 08:50:20 -04:00
Dominik Ferber a78e34d4ad add action to tag canary (#149) 2025-06-22 09:01:30 -04:00
github-actions[bot] 4ece2999d7 Version Packages (#143)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@flags-sdk/growthbook@0.1.0
2025-06-02 18:26:57 -04:00
Bryce 079dfc67cd GrowthBook adapter: fix failing test, don't throw when clientKey missing (#144)
* remove missing clientKey error, fix test
* warn -> error
2025-06-02 18:25:33 -04:00
Bryce 6239e2d9a7 Add GrowthBook Adapter (#133)
* initial wip adapter

* default adapter

* provider

* provider test

* tsc issues

* tsc issues

* tsc issues

* tsc

* feature type safety

* lock

* rm .js / .d.ts / .map

* fix test

* readme

* edge adapter

* readme typo

* update gb sdk ver

* lock

* lock

* fix changelog, package.json

* tighten feature() return type, remove userId from callback

* fix defaultValue handling

* fix decide typo

* Support EXPERIMENTATION_CONFIG

Co-authored-by: Romain Beauxis <romain@growthbook.io>

* sticky bucket support, readme, cleanup

* changeset

* update readme

* support client-side tracking, export types

---------

Co-authored-by: Romain Beauxis <romain@growthbook.io>
2025-06-02 16:09:22 -04:00
github-actions[bot] ac549a05ed Version Packages (#142)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@flags-sdk/posthog@0.1.0
2025-05-23 16:42:17 -04:00
Aaron Morris 44bada78fb feature(adapter-posthog): Add PostHog adapter (#114)
* feature(adapter-posthog): PostHog Adapter
* pass flagValue=undefined to getFeatureFlagPayload
* Map NEXT_PUBLIC_POSTHOG_HOST to a PostHog app hostname by default, making appHost optional in getProviderData
* Do not expose synchronous client in the Adapter interface (make it async later)
* Add tests
2025-05-23 15:56:36 -04:00
github-actions[bot] 785ba56c7a Version Packages (#141)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
flags@4.0.1
2025-05-23 11:12:07 +03:00
Dominik Ferber d4108c8127 allow clearing the dedupe cache (#138)
* allow clearing the dedupe cache

* add changeset

* expose clearCacheForCurrentRequest

* reword changeset

* avoid adding prop to deduped fn
2025-05-23 11:07:58 +03:00
github-actions[bot] 0249e78249 Version Packages (#140)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@flags-sdk/bucket@0.1.1
2025-05-19 07:51:23 -04:00
Ron Cohen 1d662a731c chore(bucket): update to @bucketco/node-sdk@1.8.3 (#139)
* chore(bucket): update to @bucketco/node-sdk@1.8.3

* chore (changeset): Move package.json update to a changeset

---------

Co-authored-by: Aaron Morris <aaron@vercel.com>
2025-05-19 07:48:48 -04:00
github-actions[bot] c1892d70c7 Version Packages (#137)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@flags-sdk/bucket@0.1.0
2025-05-16 17:16:53 -04:00
Dominik Ferber 79b25f6aee @flags-sdk/bucket adapter (#96)
* init
* [@flags-sdk/bucket] getProviderData (#113)
* [@flags-sdk/bucket] various improvements (#121)
* Update framer-motion to motion for CI

---------

Co-authored-by: Ron Cohen <cohen1@gmail.com>
Co-authored-by: Aaron Morris <aaron@vercel.com>
2025-05-16 17:05:38 -04:00
github-actions[bot] 5b40b1cc13 Version Packages (#132)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@flags-sdk/hypertune@0.2.0
2025-05-14 13:53:03 -04:00
Aaron Morris 9ba13cccbd Create updated changeset (#131)
Publish Hypertune as 0.2.0
2025-05-14 13:51:44 -04:00
github-actions[bot] 99eb401e2c Version Packages (#130)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-14 13:22:23 -04:00
Aaron Morris 16c928bf45 Hypertune Adapter (#125) 2025-05-14 12:28:55 -04:00
github-actions[bot] cd84279ce4 Version Packages (#127)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
flags@4.0.0
2025-05-02 17:48:11 +03:00
Dominik Ferber bc7944ed89 split crypto functions into dedicated functions (#126) 2025-05-02 17:45:00 +03:00
github-actions[bot] 695f7f9e86 Version Packages (#120)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@flags-sdk/statsig@0.2.2
2025-04-15 12:06:48 -04:00
Aaron Morris 1e3c8df96d (flags-sdk/statsig) Reduce sync delay when using Edge Config (#118)
If using an Edge Config adapter, reduce minimum sync delay for config specs from 5000ms->1000ms
2025-04-15 11:50:41 -04:00
Dominik Ferber 3994336c4d style examples (#111) 2025-03-21 17:48:34 +02:00
Dominik Ferber 2b1499067d add svelte output to turbo (#110) 2025-03-21 15:18:34 +02:00
github-actions[bot] fcfc631db8 Version Packages (#109)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
flags@3.2.0
2025-03-21 14:50:36 +02:00
Simon H 701f3c2bf2 Sveltekit flags enhancements (#75)
* use `$env/dynamic/private` from SvelteKit for convenience: people don't have to pass FLAGS_SECRET manually anymore then

* allow flag to be called outside of the lifecycle of the handle hook, with a request object being the key for deduplication etc

* add support for identifiers

* fix types

* new function for managing precomputed flags

* align with next.js API instead

* update example app

* lockfile

* test

* fix example

* restructure examples app

* make it two flags to show power of precompute + code

* add manual approach

* lets see if preview deployment is picked up

* change crypto usage to be usable in middleware

* make sveltekit flags pkg usable within edge middleware

* use ISR

* changeset

* enhance error message

* use static env instead of dynamic env

* bump kit

* use vercel adapter

* make sure Vite tooling is used for sveltekit entry point

---------

Co-authored-by: Dominik Ferber <dominik.ferber@gmail.com>
2025-03-21 14:43:28 +02:00
github-actions[bot] f427d868bc Version Packages (#108)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
flags@3.1.2
2025-03-19 17:47:39 +02:00
Andy b79a84a861 [flags] Add defaultValue to decide call (#107)
* [flags] Add `defaultValue` to `decide` call

* Update .changeset/popular-eels-heal.md

---------

Co-authored-by: Dominik Ferber <dominik.ferber@gmail.com>
2025-03-19 17:30:13 +02:00
github-actions[bot] 290c37ef21 Version Packages (#102)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@flags-sdk/openfeature@0.1.1
2025-03-13 09:16:39 +02:00
Dominik Ferber fe72a221c0 enhance README (#101) 2025-03-13 09:11:29 +02:00