From 457c3769a9dc4a96955c93b58babc377325fccbd Mon Sep 17 00:00:00 2001 From: Mayank Date: Fri, 13 Dec 2024 18:51:21 +0530 Subject: [PATCH 1/3] fix: check before resetting globalRGS --- lib/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ From 087a5b92830afc4d4c0e8d45f7275e1cc159d38b Mon Sep 17 00:00:00 2001 From: Mayank Date: Fri, 13 Dec 2024 18:58:52 +0530 Subject: [PATCH 2/3] docs(changeset): Fix: fix resetting store --- .changeset/sweet-pugs-wonder.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/sweet-pugs-wonder.md diff --git a/.changeset/sweet-pugs-wonder.md b/.changeset/sweet-pugs-wonder.md new file mode 100644 index 000000000..540647dfe --- /dev/null +++ b/.changeset/sweet-pugs-wonder.md @@ -0,0 +1,5 @@ +--- +"r18gs": patch +--- + +Fix: fix resetting store From 83e2cd52b3a00aaba8bc1ba5317ad04358e33161 Mon Sep 17 00:00:00 2001 From: Mayank Date: Fri, 13 Dec 2024 18:59:03 +0530 Subject: [PATCH 3/3] RELEASING: Releasing 2 package(s) Releases: r18gs@2.0.1 @repo/shared@0.0.4 --- .changeset/sweet-pugs-wonder.md | 5 ----- lib/CHANGELOG.md | 6 ++++++ lib/package.json | 2 +- packages/shared/CHANGELOG.md | 7 +++++++ packages/shared/package.json | 2 +- 5 files changed, 15 insertions(+), 7 deletions(-) delete mode 100644 .changeset/sweet-pugs-wonder.md diff --git a/.changeset/sweet-pugs-wonder.md b/.changeset/sweet-pugs-wonder.md deleted file mode 100644 index 540647dfe..000000000 --- a/.changeset/sweet-pugs-wonder.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"r18gs": patch ---- - -Fix: fix resetting store 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/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",