Skip to content

Commit 28eaa6e

Browse files
fix(deps): update dependency @growthbook/growthbook-react to v1.2.1 (#2237)
* fix(deps): update dependency @growthbook/growthbook-react to v1.2.1 * chore: add changeset renovate-0860987 Signed-off-by: Alexandre Philibeaux <[email protected]> --------- Signed-off-by: Alexandre Philibeaux <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Scaleway Bot <[email protected]>
1 parent 7710793 commit 28eaa6e

File tree

5 files changed

+18
-13
lines changed

5 files changed

+18
-13
lines changed

.changeset/renovate-0860987.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@scaleway/use-growthbook': patch
3+
---
4+
5+
Updated dependency `@growthbook/growthbook-react` to `1.2.1`.

packages/use-growthbook/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"feature flags"
4242
],
4343
"dependencies": {
44-
"@growthbook/growthbook-react": "1.2.0"
44+
"@growthbook/growthbook-react": "1.2.1"
4545
},
4646
"devDependencies": {
4747
"react": "18.3.1"

packages/use-i18n/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"build": "vite build --config vite.config.ts && pnpm run type:generate",
4444
"build:profile": "npx vite-bundle-visualizer -c vite.config.ts",
4545
"lint": "eslint --report-unused-disable-directives --cache --cache-strategy content --ext ts,tsx .",
46-
"test:unit": "vitest --run --config vite.config.ts",
46+
"test:unit": "TZ=UTC LANG=en_US.UTF8 NODE_ENV=test vitest --run --config vite.config.ts",
4747
"test:unit:coverage": "pnpm test:unit --coverage"
4848
},
4949
"dependencies": {

packages/use-i18n/src/usei18n.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,15 +309,15 @@ const I18nContextProvider = <LocalSupportedType extends string>({
309309
})
310310

311311
const trad: Record<string, string> = {
312-
...result.defaultLocale?.default,
312+
...result.defaultLocale.default,
313313
...result[currentLocale].default,
314314
}
315315

316316
setTranslations(prevState => ({
317317
...prevState,
318318
[defaultLocale]: {
319319
...prevState[defaultLocale],
320-
...result.defaultLocale?.default,
320+
...result.defaultLocale.default,
321321
},
322322
[currentLocale]: {
323323
...prevState[currentLocale],

pnpm-lock.yaml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)