Commit Graph

133 Commits

Author SHA1 Message Date
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
Dominik Ferber 91338530d2 Add OpenFeature adapter (#95)
* add OpenFeature adapter

* fix tsup.config.js

* add tests

* init fn

* allow sync and async usage

* remove generics when type is known
@flags-sdk/openfeature@0.1.0
2025-03-13 08:43:28 +02:00
github-actions[bot] 3a2a1a00ed Version Packages (#93)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@flags-sdk/launchdarkly@0.3.0
2025-03-08 13:29:40 +02:00
Dominik Ferber f4f6381411 remove deprecated launchDarkly method 2025-03-08 13:28:51 +02:00
Dominik Ferber 917ef4269a ldAdapter() » ldAdapter.variation() (#94)
* expose ldClient on default ldAdapter

* change API

* adapt README

* change to type import

* fix path
2025-03-08 13:27:36 +02:00
Dominik Ferber b375e4e755 fill out metadata (#92)
* fill out metadata

* add changeset
2025-03-08 10:27:56 +02:00
github-actions[bot] d1ed5960e0 Version Packages (#91)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@flags-sdk/launchdarkly@0.2.1
2025-03-08 10:16:33 +02:00
Dominik Ferber fbc886a1a6 launchDarkly » ldAdapter (#90)
* launchDarkly » ldAdapter

* expose ldClient on adapter itself
2025-03-08 10:14:42 +02:00
github-actions[bot] ab4c41c56b Version Packages (#89)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@flags-sdk/launchdarkly@0.2.0
2025-03-08 09:30:46 +02:00
Andy 2fcc446ea8 Create LaunchDarkly adapter (#2)
* Create LaunchDarkly adapter

* Update example to include a LaunchDarkly flag

* Add missing env to turbo

* Rename to defaultLaunchDarklyAdapter

* Add winter sale example for providers

* Update winter-sale

* Document usage in readme

* Allow to set the default value through the adapter

* Fix readme

* Add default value for adapter

* Make argument optional

* Add @ts-expect-error

* Add a LaunchDarkly adapter (#10)

* add ld example

* reword

* remove winter-sale example

* remove defaultValue

* use @flags-sdk/launchdarkly

* add install steps

* add changeset

* move @vercel/edge-config to peer deps

* add more secrets

* spell out name

* remove unused env var

* rename properties

* Capitalize

* Change import

* Fix more imports

* expose ldClient

* move peerDeps to real deps

* clarify Edge Config requirement in README

* remove adapter-launchdarkly snippet

* upgrade next@canary

* polish @flags-sdk/launchdarkly README

---------

Co-authored-by: Dominik Ferber <dominik.ferber@gmail.com>
2025-03-08 09:29:26 +02:00
Dominik Ferber a5bfb13c43 extended example (#84)
* wip

* adapt nav

* store management

* ssr cart

* clean up

* fix stableId issue

* allow image sorting

* toast on ProceedToCheckoutButton

* move actions, extract components

* Add PPR to Cart (#85)

* toast on Shop now

* allow delay

* loading spinner

* wip

* fix animations

* show cart count

* Extend shirt-shop demo with dynamic flag usage (#86)

* better metadata

* wip

* move cart to api

* wip

* respect free shipping

* add example banner

* init shadcn

* reorg

* remove relative paths from components

* do not link footer

* wip

* remove shadcn setup

* api-server » shirt-shop-api

* /api/:cartId » /api/cart/:cartId

* add delayFlag desc

* fix cart count

* remove quantity

* fine tune animation

* shrink

* list envs, fix Link

* change flag names

* set cart-id from middleware

* append headers

* allow cloning

* add BACKEND_URL fallback
2025-03-04 17:05:13 +01:00