diff --git a/lib/CHANGELOG.md b/lib/CHANGELOG.md index 00ecbeb20..02d6fec1d 100644 --- a/lib/CHANGELOG.md +++ b/lib/CHANGELOG.md @@ -1,5 +1,11 @@ # r18gs +## 2.0.1 + +### Patch Changes + +- 087a5b9: Fix: fix resetting store + ## 2.0.0 ### Major Changes diff --git a/lib/package.json b/lib/package.json index a510f45aa..5e1b55b25 100644 --- a/lib/package.json +++ b/lib/package.json @@ -2,7 +2,7 @@ "name": "r18gs", "author": "Mayank Kumar Chaudhari ", "private": false, - "version": "2.0.0", + "version": "2.0.1", "description": "A simple yet elegant, light weight, react18 global store to replace Zustand for better tree shaking.", "license": "MPL-2.0", "main": "./dist/index.js", diff --git a/lib/src/utils.ts b/lib/src/utils.ts index 5fa4e6a7d..71c7b3d2f 100644 --- a/lib/src/utils.ts +++ b/lib/src/utils.ts @@ -19,7 +19,7 @@ declare global { } const globalThisForBetterMinification = globalThis; -globalThisForBetterMinification.rgs = {}; +if (!globalThisForBetterMinification.rgs) globalThisForBetterMinification.rgs = {}; export const globalRGS = globalThisForBetterMinification.rgs; /** trigger all listeners */ diff --git a/packages/shared/CHANGELOG.md b/packages/shared/CHANGELOG.md index a0dcc32c4..d51b1e642 100644 --- a/packages/shared/CHANGELOG.md +++ b/packages/shared/CHANGELOG.md @@ -1,5 +1,12 @@ # @repo/shared +## 0.0.4 + +### Patch Changes + +- Updated dependencies [087a5b9] + - r18gs@2.0.1 + ## 0.0.3 ### Patch Changes diff --git a/packages/shared/package.json b/packages/shared/package.json index 7ca33b575..30862bcee 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@repo/shared", - "version": "0.0.3", + "version": "0.0.4", "private": true, "sideEffects": false, "main": "./dist/index.js",