diff --git a/flags-sdk/bucket/.eslintrc.json b/flags-sdk/reflag/.eslintrc.json similarity index 100% rename from flags-sdk/bucket/.eslintrc.json rename to flags-sdk/reflag/.eslintrc.json diff --git a/flags-sdk/bucket/.gitignore b/flags-sdk/reflag/.gitignore similarity index 100% rename from flags-sdk/bucket/.gitignore rename to flags-sdk/reflag/.gitignore diff --git a/flags-sdk/bucket/README.md b/flags-sdk/reflag/README.md similarity index 64% rename from flags-sdk/bucket/README.md rename to flags-sdk/reflag/README.md index 83b02a90a1..bffe787871 100644 --- a/flags-sdk/bucket/README.md +++ b/flags-sdk/reflag/README.md @@ -1,21 +1,21 @@ -# Bucket Flags SDK Example +# Reflag Flags SDK Example -This example uses [Bucket](https://bucket.co) for feature flags with the [Flags SDK](https://flags-sdk.dev) along with the `@flags-sdk/bucket` [Bucket adapter](https://flags-sdk.dev/docs/api-reference/adapters/bucket) and the [Flags Explorer](https://vercel.com/docs/workflow-collaboration/feature-flags/using-vercel-toolbar). +This example uses [Reflag](https://reflag.com) for feature flags with the [Flags SDK](https://flags-sdk.dev) along with the `@flags-sdk/reflag` [Reflag adapter](https://flags-sdk.dev/docs/api-reference/adapters/reflag) and the [Flags Explorer](https://vercel.com/docs/workflow-collaboration/feature-flags/using-vercel-toolbar). ## Demo -[https://flags-sdk-bucket.vercel.app/](https://flags-sdk-bucket.vercel.app/) +[https://flags-sdk-reflag.vercel.app/](https://flags-sdk-reflag.vercel.app/) ## How it works -This demo uses two features on Bucket to control the visibility of two banners on the page. +This demo uses two features on Reflag to control the visibility of two banners on the page. Both gates are configured to show/hide each banner 50% of the time. -If you deployed your own and configured the features on Bucket, you can also use the [Flags Explorer](https://vercel.com/docs/workflow-collaboration/feature-flags/using-vercel-toolbar) to enabled/disabled the features. +If you deployed your own and configured the features on Reflag, you can also use the [Flags Explorer](https://vercel.com/docs/workflow-collaboration/feature-flags/using-vercel-toolbar) to enabled/disabled the features. ## Deploy this template -[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fflags-sdk/bucket&env=FLAGS_SECRET&envDescription=The+FLAGS_SECRET+will+be+used+by+the+Flags+Explorer+to+securely+overwrite+feature+flags.+Must+be+32+random+bytes%2C+base64-encoded.+Use+the+generated+value+or+set+your+own.&envLink=https%3A%2F%2Fvercel.com%2Fdocs%2Fworkflow-collaboration%2Ffeature-flags%2Fsupporting-feature-flags%23flags_secret-environment-variable&project-name=bucket-flags-sdk-example&repository-name=bucket-flags-sdk-example) +[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fflags-sdk/reflag&env=FLAGS_SECRET&envDescription=The+FLAGS_SECRET+will+be+used+by+the+Flags+Explorer+to+securely+overwrite+feature+flags.+Must+be+32+random+bytes%2C+base64-encoded.+Use+the+generated+value+or+set+your+own.&envLink=https%3A%2F%2Fvercel.com%2Fdocs%2Fworkflow-collaboration%2Ffeature-flags%2Fsupporting-feature-flags%23flags_secret-environment-variable&project-name=reflag-flags-sdk-example&repository-name=reflag-flags-sdk-example) ### Step 1: Link the project @@ -37,7 +37,7 @@ vercel env pull ### Step 3: Create Features -Head over to the [Bucket application](app.bucket.co) and create the features required by this template. +Head over to the [Reflag application](app.reflag.com) and create the features required by this template. Features: @@ -48,7 +48,7 @@ You can also find the feature keys in the `flags.ts` file. ### Step 4: Configure the Features -Select the `Summer Sale` and `Free Shipping` features and configure them on the Bucket Console. +Select the `Summer Sale` and `Free Shipping` features and configure them on the Reflag Console. Create a new rule by clicking on "+ Add Rule" and set the percentage to 50%. diff --git a/flags-sdk/bucket/app/.well-known/vercel/flags/route.ts b/flags-sdk/reflag/app/.well-known/vercel/flags/route.ts similarity index 69% rename from flags-sdk/bucket/app/.well-known/vercel/flags/route.ts rename to flags-sdk/reflag/app/.well-known/vercel/flags/route.ts index 8c443545cd..30b1725f9c 100644 --- a/flags-sdk/bucket/app/.well-known/vercel/flags/route.ts +++ b/flags-sdk/reflag/app/.well-known/vercel/flags/route.ts @@ -1,5 +1,5 @@ import { getProviderData, createFlagsDiscoveryEndpoint } from 'flags/next' -import { getProviderData as getBucketProviderData } from '@flags-sdk/bucket' +import { getProviderData as getReflagProviderData } from '@flags-sdk/reflag' import { mergeProviderData } from 'flags' import * as flags from '../../../../flags' @@ -9,7 +9,7 @@ export const GET = createFlagsDiscoveryEndpoint(async (request) => { return mergeProviderData([ // Data declared from Flags in Code getProviderData(flags), - // metadata from Bucket API using the default bucket adapter - getBucketProviderData(), + // metadata from Reflag API using the default reflag adapter + getReflagProviderData(), ]) }) diff --git a/flags-sdk/bucket/app/[code]/add-to-cart.tsx b/flags-sdk/reflag/app/[code]/add-to-cart.tsx similarity index 100% rename from flags-sdk/bucket/app/[code]/add-to-cart.tsx rename to flags-sdk/reflag/app/[code]/add-to-cart.tsx diff --git a/flags-sdk/bucket/app/[code]/cart/order-summary.tsx b/flags-sdk/reflag/app/[code]/cart/order-summary.tsx similarity index 100% rename from flags-sdk/bucket/app/[code]/cart/order-summary.tsx rename to flags-sdk/reflag/app/[code]/cart/order-summary.tsx diff --git a/flags-sdk/bucket/app/[code]/cart/page.tsx b/flags-sdk/reflag/app/[code]/cart/page.tsx similarity index 100% rename from flags-sdk/bucket/app/[code]/cart/page.tsx rename to flags-sdk/reflag/app/[code]/cart/page.tsx diff --git a/flags-sdk/bucket/app/[code]/cart/proceed-to-checkout.tsx b/flags-sdk/reflag/app/[code]/cart/proceed-to-checkout.tsx similarity index 100% rename from flags-sdk/bucket/app/[code]/cart/proceed-to-checkout.tsx rename to flags-sdk/reflag/app/[code]/cart/proceed-to-checkout.tsx diff --git a/flags-sdk/bucket/app/[code]/layout.tsx b/flags-sdk/reflag/app/[code]/layout.tsx similarity index 100% rename from flags-sdk/bucket/app/[code]/layout.tsx rename to flags-sdk/reflag/app/[code]/layout.tsx diff --git a/flags-sdk/bucket/app/[code]/page.tsx b/flags-sdk/reflag/app/[code]/page.tsx similarity index 100% rename from flags-sdk/bucket/app/[code]/page.tsx rename to flags-sdk/reflag/app/[code]/page.tsx diff --git a/flags-sdk/bucket/app/favicon.ico b/flags-sdk/reflag/app/favicon.ico similarity index 100% rename from flags-sdk/bucket/app/favicon.ico rename to flags-sdk/reflag/app/favicon.ico diff --git a/flags-sdk/bucket/app/free-delivery.tsx b/flags-sdk/reflag/app/free-delivery.tsx similarity index 100% rename from flags-sdk/bucket/app/free-delivery.tsx rename to flags-sdk/reflag/app/free-delivery.tsx diff --git a/flags-sdk/bucket/app/globals.css b/flags-sdk/reflag/app/globals.css similarity index 100% rename from flags-sdk/bucket/app/globals.css rename to flags-sdk/reflag/app/globals.css diff --git a/flags-sdk/bucket/app/layout.tsx b/flags-sdk/reflag/app/layout.tsx similarity index 84% rename from flags-sdk/bucket/app/layout.tsx rename to flags-sdk/reflag/app/layout.tsx index 1fc2757451..fbfbfcda72 100644 --- a/flags-sdk/bucket/app/layout.tsx +++ b/flags-sdk/reflag/app/layout.tsx @@ -6,8 +6,8 @@ import './globals.css' import { ExamplesBanner } from '@/components/banners/examples-banner' export const metadata: Metadata = { - title: 'Bucket - Flags SDK Example', - description: 'A Flags SDK ecommerce example using Bucket', + title: 'Reflag - Flags SDK Example', + description: 'A Flags SDK ecommerce example using Reflag', } export default function RootLayout({ diff --git a/flags-sdk/bucket/app/opengraph-image.jpg b/flags-sdk/reflag/app/opengraph-image.jpg similarity index 100% rename from flags-sdk/bucket/app/opengraph-image.jpg rename to flags-sdk/reflag/app/opengraph-image.jpg diff --git a/flags-sdk/bucket/app/summer-sale.tsx b/flags-sdk/reflag/app/summer-sale.tsx similarity index 100% rename from flags-sdk/bucket/app/summer-sale.tsx rename to flags-sdk/reflag/app/summer-sale.tsx diff --git a/flags-sdk/bucket/components/banners/examples-banner.tsx b/flags-sdk/reflag/components/banners/examples-banner.tsx similarity index 87% rename from flags-sdk/bucket/components/banners/examples-banner.tsx rename to flags-sdk/reflag/components/banners/examples-banner.tsx index fedc97aacc..35c0b826bf 100644 --- a/flags-sdk/bucket/components/banners/examples-banner.tsx +++ b/flags-sdk/reflag/components/banners/examples-banner.tsx @@ -38,9 +38,9 @@ export function ExamplesBanner() { className="text-link hover:text-link-light transition-colors no-underline [&_code]:text-link [&_code]:hover:text-link-light [&_code]:transition-colors text-accents-6 duration-200 hover:text-accents-8 cursor-pointer" target="_blank" rel="noreferrer" - href="https://github.com/vercel/examples/tree/main/flags-sdk/experimentation-bucket" + href="https://github.com/vercel/examples/tree/main/flags-sdk/reflag" > - Vercel Examples / Flags SDK / bucket + Vercel Examples / Flags SDK / Reflag @@ -62,7 +62,7 @@ export function ExamplesBanner() { diff --git a/flags-sdk/bucket/components/banners/free-delivery-banner.tsx b/flags-sdk/reflag/components/banners/free-delivery-banner.tsx similarity index 100% rename from flags-sdk/bucket/components/banners/free-delivery-banner.tsx rename to flags-sdk/reflag/components/banners/free-delivery-banner.tsx diff --git a/flags-sdk/bucket/components/banners/summer-sale-banner.tsx b/flags-sdk/reflag/components/banners/summer-sale-banner.tsx similarity index 100% rename from flags-sdk/bucket/components/banners/summer-sale-banner.tsx rename to flags-sdk/reflag/components/banners/summer-sale-banner.tsx diff --git a/flags-sdk/bucket/components/dev-tools.tsx b/flags-sdk/reflag/components/dev-tools.tsx similarity index 100% rename from flags-sdk/bucket/components/dev-tools.tsx rename to flags-sdk/reflag/components/dev-tools.tsx diff --git a/flags-sdk/bucket/components/footer.tsx b/flags-sdk/reflag/components/footer.tsx similarity index 100% rename from flags-sdk/bucket/components/footer.tsx rename to flags-sdk/reflag/components/footer.tsx diff --git a/flags-sdk/bucket/components/image-gallery.tsx b/flags-sdk/reflag/components/image-gallery.tsx similarity index 100% rename from flags-sdk/bucket/components/image-gallery.tsx rename to flags-sdk/reflag/components/image-gallery.tsx diff --git a/flags-sdk/bucket/components/main.tsx b/flags-sdk/reflag/components/main.tsx similarity index 100% rename from flags-sdk/bucket/components/main.tsx rename to flags-sdk/reflag/components/main.tsx diff --git a/flags-sdk/bucket/components/navigation.tsx b/flags-sdk/reflag/components/navigation.tsx similarity index 100% rename from flags-sdk/bucket/components/navigation.tsx rename to flags-sdk/reflag/components/navigation.tsx diff --git a/flags-sdk/bucket/components/product-detail-page/add-to-cart-button.tsx b/flags-sdk/reflag/components/product-detail-page/add-to-cart-button.tsx similarity index 100% rename from flags-sdk/bucket/components/product-detail-page/add-to-cart-button.tsx rename to flags-sdk/reflag/components/product-detail-page/add-to-cart-button.tsx diff --git a/flags-sdk/bucket/components/product-detail-page/color-picker.tsx b/flags-sdk/reflag/components/product-detail-page/color-picker.tsx similarity index 100% rename from flags-sdk/bucket/components/product-detail-page/color-picker.tsx rename to flags-sdk/reflag/components/product-detail-page/color-picker.tsx diff --git a/flags-sdk/bucket/components/product-detail-page/product-details.tsx b/flags-sdk/reflag/components/product-detail-page/product-details.tsx similarity index 100% rename from flags-sdk/bucket/components/product-detail-page/product-details.tsx rename to flags-sdk/reflag/components/product-detail-page/product-details.tsx diff --git a/flags-sdk/bucket/components/product-detail-page/product-header.tsx b/flags-sdk/reflag/components/product-detail-page/product-header.tsx similarity index 100% rename from flags-sdk/bucket/components/product-detail-page/product-header.tsx rename to flags-sdk/reflag/components/product-detail-page/product-header.tsx diff --git a/flags-sdk/bucket/components/product-detail-page/product-reviews.tsx b/flags-sdk/reflag/components/product-detail-page/product-reviews.tsx similarity index 100% rename from flags-sdk/bucket/components/product-detail-page/product-reviews.tsx rename to flags-sdk/reflag/components/product-detail-page/product-reviews.tsx diff --git a/flags-sdk/bucket/components/product-detail-page/size-picker.tsx b/flags-sdk/reflag/components/product-detail-page/size-picker.tsx similarity index 100% rename from flags-sdk/bucket/components/product-detail-page/size-picker.tsx rename to flags-sdk/reflag/components/product-detail-page/size-picker.tsx diff --git a/flags-sdk/bucket/components/shopping-cart/order-summary-section.tsx b/flags-sdk/reflag/components/shopping-cart/order-summary-section.tsx similarity index 100% rename from flags-sdk/bucket/components/shopping-cart/order-summary-section.tsx rename to flags-sdk/reflag/components/shopping-cart/order-summary-section.tsx diff --git a/flags-sdk/bucket/components/shopping-cart/proceed-to-checkout-button.tsx b/flags-sdk/reflag/components/shopping-cart/proceed-to-checkout-button.tsx similarity index 100% rename from flags-sdk/bucket/components/shopping-cart/proceed-to-checkout-button.tsx rename to flags-sdk/reflag/components/shopping-cart/proceed-to-checkout-button.tsx diff --git a/flags-sdk/bucket/components/shopping-cart/shopping-cart-item.tsx b/flags-sdk/reflag/components/shopping-cart/shopping-cart-item.tsx similarity index 100% rename from flags-sdk/bucket/components/shopping-cart/shopping-cart-item.tsx rename to flags-sdk/reflag/components/shopping-cart/shopping-cart-item.tsx diff --git a/flags-sdk/bucket/components/shopping-cart/shopping-cart-list.tsx b/flags-sdk/reflag/components/shopping-cart/shopping-cart-list.tsx similarity index 100% rename from flags-sdk/bucket/components/shopping-cart/shopping-cart-list.tsx rename to flags-sdk/reflag/components/shopping-cart/shopping-cart-list.tsx diff --git a/flags-sdk/bucket/components/shopping-cart/shopping-cart-remove-button.tsx b/flags-sdk/reflag/components/shopping-cart/shopping-cart-remove-button.tsx similarity index 100% rename from flags-sdk/bucket/components/shopping-cart/shopping-cart-remove-button.tsx rename to flags-sdk/reflag/components/shopping-cart/shopping-cart-remove-button.tsx diff --git a/flags-sdk/bucket/components/shopping-cart/shopping-cart.tsx b/flags-sdk/reflag/components/shopping-cart/shopping-cart.tsx similarity index 100% rename from flags-sdk/bucket/components/shopping-cart/shopping-cart.tsx rename to flags-sdk/reflag/components/shopping-cart/shopping-cart.tsx diff --git a/flags-sdk/bucket/components/utils/cart-types.ts b/flags-sdk/reflag/components/utils/cart-types.ts similarity index 100% rename from flags-sdk/bucket/components/utils/cart-types.ts rename to flags-sdk/reflag/components/utils/cart-types.ts diff --git a/flags-sdk/bucket/components/utils/images.ts b/flags-sdk/reflag/components/utils/images.ts similarity index 100% rename from flags-sdk/bucket/components/utils/images.ts rename to flags-sdk/reflag/components/utils/images.ts diff --git a/flags-sdk/bucket/components/utils/product-detail-page-context.tsx b/flags-sdk/reflag/components/utils/product-detail-page-context.tsx similarity index 100% rename from flags-sdk/bucket/components/utils/product-detail-page-context.tsx rename to flags-sdk/reflag/components/utils/product-detail-page-context.tsx diff --git a/flags-sdk/bucket/flags.ts b/flags-sdk/reflag/flags.ts similarity index 73% rename from flags-sdk/bucket/flags.ts rename to flags-sdk/reflag/flags.ts index 70b66ee20d..c51ab9eda6 100644 --- a/flags-sdk/bucket/flags.ts +++ b/flags-sdk/reflag/flags.ts @@ -1,17 +1,17 @@ -import { bucketAdapter, type Context } from '@flags-sdk/bucket' +import { reflagAdapter, type Context } from '@flags-sdk/reflag' import { flag } from 'flags/next' import { identify } from './lib/identify' export const showSummerBannerFlag = flag({ key: 'summer_sale', - adapter: bucketAdapter.featureIsEnabled(), + adapter: reflagAdapter.isEnabled(), defaultValue: false, identify, }) export const showFreeDeliveryBannerFlag = flag({ key: 'free_delivery', - adapter: bucketAdapter.featureIsEnabled(), + adapter: reflagAdapter.isEnabled(), defaultValue: false, identify, }) diff --git a/flags-sdk/bucket/lib/actions.ts b/flags-sdk/reflag/lib/actions.ts similarity index 100% rename from flags-sdk/bucket/lib/actions.ts rename to flags-sdk/reflag/lib/actions.ts diff --git a/flags-sdk/bucket/lib/get-cart-id.ts b/flags-sdk/reflag/lib/get-cart-id.ts similarity index 100% rename from flags-sdk/bucket/lib/get-cart-id.ts rename to flags-sdk/reflag/lib/get-cart-id.ts diff --git a/flags-sdk/bucket/lib/get-stable-id.ts b/flags-sdk/reflag/lib/get-stable-id.ts similarity index 100% rename from flags-sdk/bucket/lib/get-stable-id.ts rename to flags-sdk/reflag/lib/get-stable-id.ts diff --git a/flags-sdk/bucket/lib/identify.ts b/flags-sdk/reflag/lib/identify.ts similarity index 85% rename from flags-sdk/bucket/lib/identify.ts rename to flags-sdk/reflag/lib/identify.ts index 9eaa4490a6..fa9790a84c 100644 --- a/flags-sdk/bucket/lib/identify.ts +++ b/flags-sdk/reflag/lib/identify.ts @@ -1,5 +1,5 @@ import type { Identify } from 'flags' -import type { Context } from '@flags-sdk/bucket' +import type { Context } from '@flags-sdk/reflag' import { dedupe } from 'flags/next' import { getStableId } from './get-stable-id' diff --git a/flags-sdk/bucket/middleware.ts b/flags-sdk/reflag/middleware.ts similarity index 100% rename from flags-sdk/bucket/middleware.ts rename to flags-sdk/reflag/middleware.ts diff --git a/flags-sdk/bucket/next.config.mjs b/flags-sdk/reflag/next.config.mjs similarity index 100% rename from flags-sdk/bucket/next.config.mjs rename to flags-sdk/reflag/next.config.mjs diff --git a/flags-sdk/bucket/package.json b/flags-sdk/reflag/package.json similarity index 89% rename from flags-sdk/bucket/package.json rename to flags-sdk/reflag/package.json index 032ca0b928..f04efec223 100644 --- a/flags-sdk/bucket/package.json +++ b/flags-sdk/reflag/package.json @@ -1,5 +1,5 @@ { - "name": "bucket", + "name": "reflag", "version": "0.0.0", "private": true, "scripts": { @@ -9,7 +9,7 @@ "start": "next start" }, "dependencies": { - "@flags-sdk/bucket": "link:../../../flags/packages/adapter-bucket", + "@flags-sdk/reflag": "1.0.0", "@headlessui/react": "^2.2.0", "@heroicons/react": "2.2.0", "@tailwindcss/aspect-ratio": "0.4.2", @@ -20,7 +20,7 @@ "@vercel/edge-config": "1.4.0", "@vercel/toolbar": "0.1.33", "clsx": "2.1.1", - "flags": "^4.0.0", + "flags": "^4.0.1", "motion": "12.17.0", "nanoid": "5.1.2", "next": "15.4.0-canary.79", diff --git a/flags-sdk/bucket/pnpm-lock.yaml b/flags-sdk/reflag/pnpm-lock.yaml similarity index 99% rename from flags-sdk/bucket/pnpm-lock.yaml rename to flags-sdk/reflag/pnpm-lock.yaml index 8ff50e856e..92896265d6 100644 --- a/flags-sdk/bucket/pnpm-lock.yaml +++ b/flags-sdk/reflag/pnpm-lock.yaml @@ -8,9 +8,9 @@ importers: .: dependencies: - '@flags-sdk/bucket': - specifier: link:../../../flags/packages/adapter-bucket - version: link:../../../flags/packages/adapter-bucket + '@flags-sdk/reflag': + specifier: 1.0.0 + version: 1.0.0 '@headlessui/react': specifier: ^2.2.0 version: 2.2.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0) @@ -42,8 +42,8 @@ importers: specifier: 2.1.1 version: 2.1.1 flags: - specifier: ^4.0.0 - version: 4.0.0(next@15.4.0-canary.79(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + specifier: ^4.0.1 + version: 4.0.1(next@15.4.0-canary.79(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react@19.0.0) motion: specifier: 12.17.0 version: 12.17.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0) @@ -138,6 +138,9 @@ packages: resolution: {integrity: sha512-JubJ5B2pJ4k4yGxaNLdbjrnk9d/iDz6/q8wOilpIowd6PJPgaxCuHBnBszq7Ce2TyMrywm5r4PnKm6V3iiZF+g==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@flags-sdk/reflag@1.0.0': + resolution: {integrity: sha512-de+yBGqf8cAwAsZ08ySKzlb+8rw/gUsyUaI7AiKxKQ+Ek3uW+j+NuTzTLzjpzmDL3kRedcSPGOcgGysVCfC6mw==} + '@floating-ui/core@1.6.9': resolution: {integrity: sha512-uMXCuQ3BItDUbAMhIXw7UPXRfAlOAvZzdK9BWpE60MCn+Svt3aLn9jsPTi/WNGlRUu2uI0v5S7JiIUsbsvh3fw==} @@ -411,6 +414,12 @@ packages: peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 + '@reflag/flag-evaluation@1.0.0': + resolution: {integrity: sha512-3N35ICE9SNlSK6edorjBIAEqB2wvOKRy+ZktXRAfJpQHKcwnjfcFyIIzGKOenm9DCPFxo2hv9Yz7QhUFrcntow==} + + '@reflag/node-sdk@1.0.1': + resolution: {integrity: sha512-UUmxjspx3hExHDzmtBrZux9fDP44SQok9sQawM+OV0zvJzPyR9b6g3UuK/vNnr+RPMgKoaBvlPeU4kEB70Gt1A==} + '@rtsao/scc@1.1.0': resolution: {integrity: sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==} @@ -1189,8 +1198,8 @@ packages: resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} engines: {node: '>=10'} - flags@4.0.0: - resolution: {integrity: sha512-CpONOK/nflKfaTT36r+Y4SP5rb9mv3AdqY/2Ws+TScrEGlT4PK+PZNiKJgIH87HooTXDblz31807q7lZ3LpuYQ==} + flags@4.0.1: + resolution: {integrity: sha512-nJNY97LoI+BDNCSnGIEvBAxYkRYeRuMZ3KtdjCj60quGH3cnyjnSQfw9vB/kvb3+wAtdn2sm5t+jO6dy5tpi1w==} peerDependencies: '@opentelemetry/api': ^1.7.0 '@sveltejs/kit': '*' @@ -1489,6 +1498,9 @@ packages: jose@5.10.0: resolution: {integrity: sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg==} + js-sha256@0.11.0: + resolution: {integrity: sha512-6xNlKayMZvds9h1Y1VWc0fQHQ82BxTXizWPEtEeGvmOUYpBRy4gbWroHLpzowe6xiQhHpelCQiE7HEdznyBL9Q==} + js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -2204,6 +2216,10 @@ snapshots: '@eslint/core': 0.12.0 levn: 0.4.1 + '@flags-sdk/reflag@1.0.0': + dependencies: + '@reflag/node-sdk': 1.0.1 + '@floating-ui/core@1.6.9': dependencies: '@floating-ui/utils': 0.2.9 @@ -2423,6 +2439,14 @@ snapshots: dependencies: react: 19.0.0 + '@reflag/flag-evaluation@1.0.0': + dependencies: + js-sha256: 0.11.0 + + '@reflag/node-sdk@1.0.1': + dependencies: + '@reflag/flag-evaluation': 1.0.0 + '@rtsao/scc@1.1.0': {} '@rushstack/eslint-patch@1.10.5': {} @@ -3367,7 +3391,7 @@ snapshots: locate-path: 6.0.0 path-exists: 4.0.0 - flags@4.0.0(next@15.4.0-canary.79(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react@19.0.0): + flags@4.0.1(next@15.4.0-canary.79(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react@19.0.0): dependencies: '@edge-runtime/cookies': 5.0.2 jose: 5.10.0 @@ -3651,6 +3675,8 @@ snapshots: jose@5.10.0: {} + js-sha256@0.11.0: {} + js-tokens@4.0.0: {} js-yaml@4.1.0: diff --git a/flags-sdk/bucket/postcss.config.mjs b/flags-sdk/reflag/postcss.config.mjs similarity index 100% rename from flags-sdk/bucket/postcss.config.mjs rename to flags-sdk/reflag/postcss.config.mjs diff --git a/flags-sdk/bucket/public/images/pool.jpg b/flags-sdk/reflag/public/images/pool.jpg similarity index 100% rename from flags-sdk/bucket/public/images/pool.jpg rename to flags-sdk/reflag/public/images/pool.jpg diff --git a/flags-sdk/bucket/public/images/product/shirt-black.avif b/flags-sdk/reflag/public/images/product/shirt-black.avif similarity index 100% rename from flags-sdk/bucket/public/images/product/shirt-black.avif rename to flags-sdk/reflag/public/images/product/shirt-black.avif diff --git a/flags-sdk/bucket/public/images/product/shirt-blue.avif b/flags-sdk/reflag/public/images/product/shirt-blue.avif similarity index 100% rename from flags-sdk/bucket/public/images/product/shirt-blue.avif rename to flags-sdk/reflag/public/images/product/shirt-blue.avif diff --git a/flags-sdk/bucket/public/images/product/shirt-white.avif b/flags-sdk/reflag/public/images/product/shirt-white.avif similarity index 100% rename from flags-sdk/bucket/public/images/product/shirt-white.avif rename to flags-sdk/reflag/public/images/product/shirt-white.avif diff --git a/flags-sdk/bucket/tailwind.config.ts b/flags-sdk/reflag/tailwind.config.ts similarity index 100% rename from flags-sdk/bucket/tailwind.config.ts rename to flags-sdk/reflag/tailwind.config.ts diff --git a/flags-sdk/bucket/tsconfig.json b/flags-sdk/reflag/tsconfig.json similarity index 100% rename from flags-sdk/bucket/tsconfig.json rename to flags-sdk/reflag/tsconfig.json diff --git a/flags-sdk/bucket/utils/get-stable-id.ts b/flags-sdk/reflag/utils/get-stable-id.ts similarity index 100% rename from flags-sdk/bucket/utils/get-stable-id.ts rename to flags-sdk/reflag/utils/get-stable-id.ts