Skip to content

Commit 3abb3a1

Browse files
committed
chore: update dependencies to use browser-sdk version 3.3.0
- Bumped the version of the `@bucketco/openfeature-browser-provider` and `@bucketco/react-sdk` to 0.6.0 and 3.3.0 respectively. - Updated the `yarn.lock` file to reflect the new version of `@bucketco/browser-sdk`. - Enhanced documentation in the `README.md` for the `BucketProvider` component with clearer descriptions of options.
1 parent 1741f5d commit 3abb3a1

File tree

4 files changed

+11
-22
lines changed

4 files changed

+11
-22
lines changed

packages/openfeature-browser-provider/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bucketco/openfeature-browser-provider",
3-
"version": "0.5.2",
3+
"version": "0.6.0",
44
"packageManager": "[email protected]",
55
"license": "MIT",
66
"repository": {
@@ -35,7 +35,7 @@
3535
}
3636
},
3737
"dependencies": {
38-
"@bucketco/browser-sdk": "3.1.3"
38+
"@bucketco/browser-sdk": "3.3.0"
3939
},
4040
"devDependencies": {
4141
"@bucketco/eslint-config": "0.0.2",

packages/react-sdk/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,11 @@ The `<BucketProvider>` initializes the Bucket SDK, fetches features and starts l
194194
}
195195
```
196196

197-
- `timeoutMs`: Timeout in milliseconds when fetching features from the server,
198-
- `staleWhileRevalidate`: If set to `true`, stale features will be returned while refetching features in the background,
199-
- `expireTimeMs`: If set, features will be cached between page loads for this duration (in milliseconds),
197+
- `timeoutMs`: Timeout in milliseconds when fetching features from the server.
198+
- `staleWhileRevalidate`: If set to `true`, stale features will be returned while refetching features in the background.
199+
- `expireTimeMs`: If set, features will be cached between page loads for this duration (in milliseconds).
200200
- `staleTimeMs`: Maximum time (in milliseconds) that stale features will be returned if `staleWhileRevalidate` is true and new features cannot be fetched.
201+
- `offline`: Provide this option when testing or in local development environments to avoid contacting Bucket servers.
201202
- `loadingComponent` lets you specify an React component to be rendered instead of the children while the Bucket provider is initializing. If you want more control over loading screens, `useFeature()` returns `isLoading` which you can use to customize the loading experience:
202203

203204
```tsx

packages/react-sdk/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bucketco/react-sdk",
3-
"version": "3.2.0",
3+
"version": "3.3.0",
44
"license": "MIT",
55
"repository": {
66
"type": "git",
@@ -34,7 +34,7 @@
3434
}
3535
},
3636
"dependencies": {
37-
"@bucketco/browser-sdk": "3.2.0",
37+
"@bucketco/browser-sdk": "3.3.0",
3838
"canonical-json": "^0.0.4",
3939
"rollup": "^4.2.0"
4040
},

yarn.lock

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

674-
"@bucketco/browser-sdk@npm:3.1.3":
675-
version: 3.1.3
676-
resolution: "@bucketco/browser-sdk@npm:3.1.3"
677-
dependencies:
678-
"@floating-ui/dom": "npm:^1.6.8"
679-
canonical-json: "npm:^0.0.4"
680-
js-cookie: "npm:^3.0.5"
681-
preact: "npm:^10.22.1"
682-
checksum: 10c0/85a081338a5514a5e641da2b20d4d3d5f337540e198e934d5040df967b24810faa5cb14bebe894d9fed29927e3b41d40ecc8862795e078425840a300d43150b1
683-
languageName: node
684-
linkType: hard
685-
686674
"@bucketco/browser-sdk@npm:3.2.0":
687675
version: 3.2.0
688676
resolution: "@bucketco/browser-sdk@npm:3.2.0"
@@ -695,7 +683,7 @@ __metadata:
695683
languageName: node
696684
linkType: hard
697685

698-
"@bucketco/browser-sdk@workspace:packages/browser-sdk":
686+
"@bucketco/browser-sdk@npm:3.3.0, @bucketco/browser-sdk@workspace:packages/browser-sdk":
699687
version: 0.0.0-use.local
700688
resolution: "@bucketco/browser-sdk@workspace:packages/browser-sdk"
701689
dependencies:
@@ -840,7 +828,7 @@ __metadata:
840828
version: 0.0.0-use.local
841829
resolution: "@bucketco/openfeature-browser-provider@workspace:packages/openfeature-browser-provider"
842830
dependencies:
843-
"@bucketco/browser-sdk": "npm:3.1.3"
831+
"@bucketco/browser-sdk": "npm:3.3.0"
844832
"@bucketco/eslint-config": "npm:0.0.2"
845833
"@bucketco/tsconfig": "npm:0.0.2"
846834
"@openfeature/core": "npm:1.5.0"
@@ -886,7 +874,7 @@ __metadata:
886874
version: 0.0.0-use.local
887875
resolution: "@bucketco/react-sdk@workspace:packages/react-sdk"
888876
dependencies:
889-
"@bucketco/browser-sdk": "npm:3.2.0"
877+
"@bucketco/browser-sdk": "npm:3.3.0"
890878
"@bucketco/eslint-config": "workspace:^"
891879
"@bucketco/tsconfig": "workspace:^"
892880
"@testing-library/react": "npm:^15.0.7"

0 commit comments

Comments
 (0)