Skip to content

Commit f9fe908

Browse files
authored
Merge pull request #56 from croz-ltd/feature_upgradeZustandAndUpgradeImports
Feature upgrade zustand and upgrade imports
2 parents 88aef81 + 6d4221f commit f9fe908

File tree

6 files changed

+19
-10
lines changed

6 files changed

+19
-10
lines changed

.changeset/afraid-bikes-reflect.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@croz/nrich-form-configuration-core": patch
3+
"@croz/nrich-notification-core": patch
4+
---
5+
6+
Upgrade zustand lib and its import statements to non-deprecated sytax

libs/form-configuration/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"bugs": "https://github.com/croz-ltd/nrich-frontend/issues",
77
"dependencies": {
88
"yup": "^0.32.11",
9-
"zustand": "^4.1.4"
9+
"zustand": "^4.4.7"
1010
},
1111
"devDependencies": {
1212
"@croz/nrich-jest-config": "*",

libs/form-configuration/core/src/store/form-configuration-store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*/
1717

18-
import create from "zustand";
18+
import { create } from "zustand";
1919

2020
import { FormYupConfiguration } from "../api";
2121

libs/notification/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"author": "CROZ",
66
"bugs": "https://github.com/croz-ltd/nrich-frontend/issues",
77
"dependencies": {
8-
"zustand": "^4.1.4"
8+
"zustand": "^4.4.7"
99
},
1010
"devDependencies": {
1111
"@croz/nrich-jest-config": "*",

libs/notification/core/src/store/notification-store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*/
1717

18-
import create from "zustand";
18+
import { create } from "zustand";
1919

2020
import { Notification } from "../api";
2121

yarn.lock

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ __metadata:
709709
tsup: ^6.5.0
710710
whatwg-fetch: ^3.6.2
711711
yup: ^0.32.11
712-
zustand: ^4.1.4
712+
zustand: ^4.4.7
713713
peerDependencies:
714714
react: ">=16.8.0"
715715
react-dom: ">=16.8.0"
@@ -746,7 +746,7 @@ __metadata:
746746
react-dom: ^18.1.0
747747
tsup: ^6.5.0
748748
whatwg-fetch: ^3.6.2
749-
zustand: ^4.1.4
749+
zustand: ^4.4.7
750750
peerDependencies:
751751
react: ">=16.8.0"
752752
react-dom: ">=16.8.0"
@@ -9236,19 +9236,22 @@ __metadata:
92369236
languageName: node
92379237
linkType: hard
92389238

9239-
"zustand@npm:^4.1.4":
9240-
version: 4.1.4
9241-
resolution: "zustand@npm:4.1.4"
9239+
"zustand@npm:^4.4.7":
9240+
version: 4.4.7
9241+
resolution: "zustand@npm:4.4.7"
92429242
dependencies:
92439243
use-sync-external-store: 1.2.0
92449244
peerDependencies:
9245+
"@types/react": ">=16.8"
92459246
immer: ">=9.0"
92469247
react: ">=16.8"
92479248
peerDependenciesMeta:
9249+
"@types/react":
9250+
optional: true
92489251
immer:
92499252
optional: true
92509253
react:
92519254
optional: true
9252-
checksum: a9ceb7849ebf407d31a6121be09acfb041324f6f45ca9a3f62ab85e2d840d0f48f157abd99ed7b9e08b96ebb4e15480b4a196ed8b1df8a5a9a2ba9afd7c639a7
9255+
checksum: 9aeb6cc86162296c1dac504b8906ff952252c129fb3f05cc8926a7f5c9d7fbe098571d5161b3efe3347c0ee1d80197f787b768c7522721864f7323c28766717e
92539256
languageName: node
92549257
linkType: hard

0 commit comments

Comments
 (0)