@scaleway/use-growthbook 2.1.2 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @scaleway/use-growthbook
2
2
 
3
+ ## 2.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2154](https://github.com/scaleway/scaleway-lib/pull/2154) [`abf9b7c`](https://github.com/scaleway/scaleway-lib/commit/abf9b7cb56c27dc0c7bbdb3ed3a3b8c8f1017783) Thanks [@renovate](https://github.com/apps/renovate)! - Updated dependency `@growthbook/growthbook-react` to `1.2.0`.
8
+
3
9
  ## 2.1.2
4
10
 
5
11
  ### Patch Changes
@@ -2,13 +2,13 @@ import type { GrowthBook as GBType } from '@growthbook/growthbook-react'
2
2
  import type { ReactNode } from 'react'
3
3
  import { vi } from 'vitest'
4
4
 
5
- export const getAttributes = vi.fn<[], ReturnType<GBType['getAttributes']>>()
6
- export const setAttributes = vi.fn<[], ReturnType<GBType['setAttributes']>>(
5
+ export const getAttributes = vi.fn<() => ReturnType<GBType['getAttributes']>>()
6
+ export const setAttributes = vi.fn<() => ReturnType<GBType['setAttributes']>>(
7
7
  () => Promise.resolve(),
8
8
  )
9
9
 
10
10
  export const GrowthBook = vi.fn(() => ({
11
- loadFeatures: vi.fn<[], ReturnType<GBType['loadFeatures']>>(),
11
+ loadFeatures: vi.fn<() => ReturnType<GBType['loadFeatures']>>(),
12
12
  getAttributes,
13
13
  setAttributes,
14
14
  }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/use-growthbook",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Utility package to expose AB test tool",
5
5
  "engines": {
6
6
  "node": ">=20.x"
@@ -31,7 +31,7 @@
31
31
  "feature flags"
32
32
  ],
33
33
  "dependencies": {
34
- "@growthbook/growthbook-react": "1.1.0"
34
+ "@growthbook/growthbook-react": "1.2.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "react": "18.3.1"