Skip to content

Commit 8348f07

Browse files
committed
Merge branch 'main' into reflag
2 parents 8b1ddb3 + 7755412 commit 8348f07

6 files changed

Lines changed: 251 additions & 6 deletions

File tree

packages/browser-sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Reflag supports flags, tracking flag usage, [collecting feedback](#qualitative-f
66

77
## Install
88

9-
First find your `publishableKey` under [environment settings](https://app.bucket.co/envs/current/settings/app-environments) in Reflag.
9+
First find your `publishableKey` under [environment settings](https://app.bucket.co/env-current/settings/app-environments) in Reflag.
1010

1111
The package can be imported or used directly in a HTML script tag:
1212

packages/browser-sdk/src/toolbar/Flags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function FlagRow({
112112
<Flag class="flag-icon" />
113113
<a
114114
class="flag-link"
115-
href={`${appBaseUrl}/envs/current/flags/by-key/${flag.flagKey}`}
115+
href={`${appBaseUrl}/env-current/flags/by-key/${flag.flagKey}`}
116116
rel="noreferrer"
117117
tabIndex={index + 1}
118118
target="_blank"

packages/node-sdk/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ You can also [use the HTTP API directly](https://docs.bucket.co/api/http-api)
5656

5757
## Basic usage
5858

59-
To get started you need to obtain your secret key from the [environment settings](https://app.bucket.co/envs/current/settings/app-environments)
59+
To get started you need to obtain your secret key from the [environment settings](https://app.bucket.co/env-current/settings/app-environments)
6060
in Reflag.
6161

6262
> [!CAUTION]
@@ -65,7 +65,7 @@ in Reflag.
6565
6666
Reflag will load settings through the various environment variables automatically (see [Configuring](#configuring) below).
6767

68-
1. Find the Reflag secret key for your development environment under [environment settings](https://app.bucket.co/envs/current/settings/app-environments) in Reflag.
68+
1. Find the Reflag secret key for your development environment under [environment settings](https://app.bucket.co/env-current/settings/app-environments) in Reflag.
6969
2. Set `REFLAG_SECRET_KEY` in your `.env` file
7070
3. Create a `reflag.ts` file containing the following:
7171

packages/react-sdk/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,12 @@ generates a `check` event.
171171

172172
The `<ReflagProvider>` initializes the Reflag SDK, fetches features and starts listening for automated feedback survey events. The component can be configured using a number of props:
173173

174-
- `publishableKey` is used to connect the provider to an _environment_ on Reflag. Find your `publishableKey` under [environment settings](https://app.bucket.co/envs/current/settings/app-environments) in Reflag,
174+
- `publishableKey` is used to connect the provider to an _environment_ on Reflag. Find your `publishableKey` under [environment settings](https://app.bucket.co/env-current/settings/app-environments) in Reflag,
175175
- `company`, `user` and `otherContext` make up the _context_ that is used to determine if a feature is enabled or not. `company` and `user` contexts are automatically transmitted to Reflag servers so the Reflag app can show you which companies have access to which features etc.
176+
176177
> [!Note]
177178
> If you specify `company` and/or `user` they must have at least the `id` property, otherwise they will be ignored in their entirety. You should also supply anything additional you want to be able to evaluate feature targeting against,
179+
178180
- `fallbackFeatures`: A list of strings which specify which features to consider enabled if the SDK is unable to fetch features. Can be provided in two formats:
179181

180182
```ts

packages/vue-sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ generates a `check` event.
112112

113113
The `<ReflagProvider>` initializes the Reflag SDK, fetches features and starts listening for automated feedback survey events. The component can be configured using a number of props:
114114

115-
- `publishableKey` is used to connect the provider to an _environment_ on Reflag. Find your `publishableKey` under [environment settings](https://app.bucket.co/envs/current/settings/app-environments) in Reflag,
115+
- `publishableKey` is used to connect the provider to an _environment_ on Reflag. Find your `publishableKey` under [environment settings](https://app.bucket.co/env-current/settings/app-environments) in Reflag,
116116
- `company`, `user` and `otherContext` make up the _context_ that is used to determine if a feature is enabled or not. `company` and `user` contexts are automatically transmitted to Reflag servers so the Reflag app can show you which companies have access to which features etc.
117117

118118
> [!Note]

yarn.lock

Lines changed: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,249 @@ __metadata:
671671
languageName: node
672672
linkType: hard
673673

674+
"@bucketco/browser-sdk@npm:3.3.4, @bucketco/browser-sdk@workspace:packages/browser-sdk":
675+
version: 0.0.0-use.local
676+
resolution: "@bucketco/browser-sdk@workspace:packages/browser-sdk"
677+
dependencies:
678+
"@bucketco/eslint-config": "npm:0.0.2"
679+
"@bucketco/tsconfig": "npm:0.0.2"
680+
"@floating-ui/dom": "npm:^1.6.8"
681+
"@playwright/test": "npm:^1.49.1"
682+
"@types/js-cookie": "npm:^3.0.6"
683+
"@types/node": "npm:^22.12.0"
684+
"@vitest/coverage-v8": "npm:^2.0.4"
685+
c8: "npm:~10.1.3"
686+
canonical-json: "npm:^0.0.4"
687+
eslint: "npm:^9.21.0"
688+
eslint-config-preact: "npm:^1.5.0"
689+
http-server: "npm:^14.1.1"
690+
js-cookie: "npm:^3.0.5"
691+
jsdom: "npm:^24.1.0"
692+
msw: "npm:^2.3.4"
693+
nock: "npm:^14.0.1"
694+
postcss: "npm:^8.4.33"
695+
postcss-nesting: "npm:^12.0.2"
696+
postcss-preset-env: "npm:^9.3.0"
697+
preact: "npm:^10.22.1"
698+
prettier: "npm:^3.5.2"
699+
typescript: "npm:^5.7.3"
700+
vite: "npm:^5.3.5"
701+
vite-plugin-dts: "npm:^4.0.0-beta.1"
702+
vitest: "npm:^2.0.4"
703+
languageName: unknown
704+
linkType: soft
705+
706+
"@bucketco/cli@workspace:packages/cli":
707+
version: 0.0.0-use.local
708+
resolution: "@bucketco/cli@workspace:packages/cli"
709+
dependencies:
710+
"@bucketco/eslint-config": "workspace:^"
711+
"@bucketco/tsconfig": "workspace:^"
712+
"@inquirer/prompts": "npm:^5.3.8"
713+
"@types/express": "npm:^5.0.0"
714+
"@types/node": "npm:^22.5.1"
715+
"@types/semver": "npm:^7.7.0"
716+
"@types/slug": "npm:^5.0.9"
717+
ajv: "npm:^8.17.1"
718+
chalk: "npm:^5.3.0"
719+
change-case: "npm:^5.4.4"
720+
commander: "npm:^12.1.0"
721+
comment-json: "npm:^4.2.5"
722+
eslint: "npm:^9.21.0"
723+
express: "npm:^4.21.2"
724+
fast-deep-equal: "npm:^3.1.3"
725+
find-up: "npm:^7.0.0"
726+
open: "npm:^10.1.0"
727+
ora: "npm:^8.1.0"
728+
prettier: "npm:^3.5.2"
729+
semver: "npm:^7.7.2"
730+
shx: "npm:^0.3.4"
731+
slug: "npm:^10.0.0"
732+
typescript: "npm:^5.5.4"
733+
vitest: "npm:^3.0.8"
734+
zod: "npm:^3.24.2"
735+
bin:
736+
bucket: ./dist/index.js
737+
languageName: unknown
738+
linkType: soft
739+
740+
"@bucketco/eslint-config@npm:0.0.2, @bucketco/eslint-config@npm:~0.0.2, @bucketco/eslint-config@workspace:^, @bucketco/eslint-config@workspace:packages/eslint-config":
741+
version: 0.0.0-use.local
742+
resolution: "@bucketco/eslint-config@workspace:packages/eslint-config"
743+
dependencies:
744+
"@eslint/js": "npm:^9.21.0"
745+
"@typescript-eslint/eslint-plugin": "npm:^8.25.0"
746+
"@typescript-eslint/parser": "npm:^8.25.0"
747+
eslint: "npm:^9.21.0"
748+
eslint-config-prettier: "npm:^10.0.1"
749+
eslint-import-resolver-typescript: "npm:^3.8.3"
750+
eslint-plugin-import: "npm:^2.31.0"
751+
eslint-plugin-react: "npm:^7.37.4"
752+
eslint-plugin-react-hooks: "npm:^5.1.0"
753+
eslint-plugin-simple-import-sort: "npm:^12.1.1"
754+
eslint-plugin-unused-imports: "npm:^4.1.4"
755+
globals: "npm:^16.2.0"
756+
prettier: "npm:^3.5.2"
757+
typescript: "npm:^5.7.3"
758+
languageName: unknown
759+
linkType: soft
760+
761+
"@bucketco/flag-evaluation@npm:0.2.1, @bucketco/flag-evaluation@workspace:packages/flag-evaluation":
762+
version: 0.0.0-use.local
763+
resolution: "@bucketco/flag-evaluation@workspace:packages/flag-evaluation"
764+
dependencies:
765+
"@bucketco/eslint-config": "workspace:^"
766+
"@bucketco/tsconfig": "workspace:^"
767+
"@types/node": "npm:^22.12.0"
768+
eslint: "npm:^9.21.0"
769+
js-sha256: "npm:0.11.0"
770+
prettier: "npm:^3.5.2"
771+
ts-node: "npm:^10.9.2"
772+
typescript: "npm:^5.7.3"
773+
vitest: "npm:^2.0.5"
774+
languageName: unknown
775+
linkType: soft
776+
777+
"@bucketco/node-sdk@npm:1.10.0, @bucketco/node-sdk@workspace:packages/node-sdk":
778+
version: 0.0.0-use.local
779+
resolution: "@bucketco/node-sdk@workspace:packages/node-sdk"
780+
dependencies:
781+
"@babel/core": "npm:~7.24.7"
782+
"@bucketco/eslint-config": "npm:~0.0.2"
783+
"@bucketco/flag-evaluation": "npm:0.2.1"
784+
"@bucketco/tsconfig": "npm:~0.0.2"
785+
"@types/node": "npm:^22.12.0"
786+
"@vitest/coverage-v8": "npm:~1.6.0"
787+
c8: "npm:~10.1.0"
788+
eslint: "npm:^9.21.0"
789+
flush-promises: "npm:~1.0.2"
790+
prettier: "npm:^3.5.2"
791+
ts-node: "npm:~10.9.2"
792+
typescript: "npm:^5.7.3"
793+
vite: "npm:~5.4.18"
794+
vite-plugin-dts: "npm:~3.9.1"
795+
vitest: "npm:~1.6.0"
796+
languageName: unknown
797+
linkType: soft
798+
799+
"@bucketco/openfeature-browser-provider@workspace:packages/openfeature-browser-provider":
800+
version: 0.0.0-use.local
801+
resolution: "@bucketco/openfeature-browser-provider@workspace:packages/openfeature-browser-provider"
802+
dependencies:
803+
"@bucketco/browser-sdk": "npm:3.3.4"
804+
"@bucketco/eslint-config": "npm:0.0.2"
805+
"@bucketco/tsconfig": "npm:0.0.2"
806+
"@openfeature/core": "npm:1.5.0"
807+
"@openfeature/web-sdk": "npm:^1.3.0"
808+
"@types/node": "npm:^22.12.0"
809+
eslint: "npm:^9.21.0"
810+
jsdom: "npm:^24.1.0"
811+
prettier: "npm:^3.5.2"
812+
typescript: "npm:^5.7.3"
813+
vite: "npm:^5.3.5"
814+
vite-plugin-dts: "npm:^4.0.0-beta.1"
815+
vitest: "npm:^2.0.4"
816+
peerDependencies:
817+
"@openfeature/web-sdk": ">=1.3"
818+
languageName: unknown
819+
linkType: soft
820+
821+
"@bucketco/openfeature-node-provider@workspace:packages/openfeature-node-provider":
822+
version: 0.0.0-use.local
823+
resolution: "@bucketco/openfeature-node-provider@workspace:packages/openfeature-node-provider"
824+
dependencies:
825+
"@babel/core": "npm:~7.24.7"
826+
"@bucketco/eslint-config": "npm:~0.0.2"
827+
"@bucketco/node-sdk": "npm:1.10.0"
828+
"@bucketco/tsconfig": "npm:~0.0.2"
829+
"@openfeature/core": "npm:^1.5.0"
830+
"@openfeature/server-sdk": "npm:>=1.16.1"
831+
"@types/node": "npm:^22.12.0"
832+
eslint: "npm:^9.21.0"
833+
flush-promises: "npm:~1.0.2"
834+
prettier: "npm:^3.5.2"
835+
ts-node: "npm:~10.9.2"
836+
typescript: "npm:^5.7.3"
837+
vite: "npm:~5.4.18"
838+
vite-plugin-dts: "npm:~3.9.1"
839+
vitest: "npm:~1.6.0"
840+
peerDependencies:
841+
"@openfeature/server-sdk": ">=1.16.1"
842+
languageName: unknown
843+
linkType: soft
844+
845+
"@bucketco/react-sdk@workspace:^, @bucketco/react-sdk@workspace:packages/react-sdk":
846+
version: 0.0.0-use.local
847+
resolution: "@bucketco/react-sdk@workspace:packages/react-sdk"
848+
dependencies:
849+
"@bucketco/browser-sdk": "npm:3.3.4"
850+
"@bucketco/eslint-config": "workspace:^"
851+
"@bucketco/tsconfig": "workspace:^"
852+
"@testing-library/react": "npm:^15.0.7"
853+
"@types/jsdom": "npm:^21.1.6"
854+
"@types/node": "npm:^22.12.0"
855+
"@types/react": "npm:^18.3.2"
856+
"@types/react-dom": "npm:^18.3.0"
857+
"@types/webpack": "npm:^5.28.5"
858+
canonical-json: "npm:^0.0.4"
859+
eslint: "npm:^9.21.0"
860+
jsdom: "npm:^24.1.0"
861+
msw: "npm:^2.3.5"
862+
prettier: "npm:^3.5.2"
863+
react: "npm:*"
864+
react-dom: "npm:*"
865+
rollup: "npm:^4.2.0"
866+
rollup-preserve-directives: "npm:^1.1.2"
867+
ts-node: "npm:^10.9.2"
868+
typescript: "npm:^5.7.3"
869+
vite: "npm:^5.0.13"
870+
vite-plugin-dts: "npm:^4.0.0-beta.1"
871+
vitest: "npm:^2.0.4"
872+
webpack: "npm:^5.89.0"
873+
webpack-cli: "npm:^5.1.4"
874+
peerDependencies:
875+
react: "*"
876+
react-dom: "*"
877+
languageName: unknown
878+
linkType: soft
879+
880+
"@bucketco/tsconfig@npm:0.0.2, @bucketco/tsconfig@npm:~0.0.2, @bucketco/tsconfig@workspace:^, @bucketco/tsconfig@workspace:packages/tsconfig":
881+
version: 0.0.0-use.local
882+
resolution: "@bucketco/tsconfig@workspace:packages/tsconfig"
883+
languageName: unknown
884+
linkType: soft
885+
886+
"@bucketco/vue-sdk@workspace:packages/vue-sdk":
887+
version: 0.0.0-use.local
888+
resolution: "@bucketco/vue-sdk@workspace:packages/vue-sdk"
889+
dependencies:
890+
"@bucketco/browser-sdk": "npm:3.3.4"
891+
"@bucketco/eslint-config": "workspace:^"
892+
"@bucketco/tsconfig": "workspace:^"
893+
"@types/jsdom": "npm:^21.1.6"
894+
"@types/node": "npm:^22.12.0"
895+
"@vitejs/plugin-vue": "npm:^5.2.4"
896+
"@vue/test-utils": "npm:^2.3.2"
897+
canonical-json: "npm:^0.2.0"
898+
eslint: "npm:^9.21.0"
899+
eslint-plugin-vue: "npm:^9.28.0"
900+
jsdom: "npm:^24.1.0"
901+
msw: "npm:^2.3.5"
902+
prettier: "npm:^3.5.2"
903+
rollup: "npm:^4.2.0"
904+
rollup-preserve-directives: "npm:^1.1.2"
905+
ts-node: "npm:^10.9.2"
906+
typescript: "npm:^5.7.3"
907+
vite: "npm:^5.0.13"
908+
vite-plugin-dts: "npm:^4.5.4"
909+
vitest: "npm:^2.0.4"
910+
vue: "npm:^3.5.16"
911+
vue-eslint-parser: "npm:^9.4.2"
912+
peerDependencies:
913+
vue: ^3.0.0
914+
languageName: unknown
915+
linkType: soft
916+
674917
"@bundled-es-modules/cookie@npm:^2.0.0":
675918
version: 2.0.0
676919
resolution: "@bundled-es-modules/cookie@npm:2.0.0"

0 commit comments

Comments
 (0)