From a4b653bc1af6e25697bb015270e1d3533a14dc28 Mon Sep 17 00:00:00 2001 From: Mayank Kumar Chaudhari Date: Thu, 30 May 2024 16:45:19 +0530 Subject: [PATCH 1/2] Remove uuid as it will result in multiple rgs stores for treeshakable imports --- lib/src/constants.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/constants.ts b/lib/src/constants.ts index 6a07b259..774e037d 100644 --- a/lib/src/constants.ts +++ b/lib/src/constants.ts @@ -1,3 +1,3 @@ /** generate uuid to avoid conflicting keys */ -const uuid = () => (Date.now() * Math.random()).toString(16).slice(2, 8); -export const LOADER_RGS_KEY = `loader-${uuid()}`; +// const uuid = () => (Date.now() * Math.random()).toString(16).slice(2, 8); +export const LOADER_RGS_KEY = "r18-loaders"; From b8ba275dcf7dedff66c9adbe98d2346c257f9586 Mon Sep 17 00:00:00 2001 From: Mayank Kumar Chaudhari Date: Thu, 30 May 2024 16:46:21 +0530 Subject: [PATCH 2/2] Apply changesets --- lib/CHANGELOG.md | 6 ++++++ lib/package.json | 2 +- packages/shared/CHANGELOG.md | 7 +++++++ packages/shared/package.json | 2 +- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/lib/CHANGELOG.md b/lib/CHANGELOG.md index e498ca17..4a7506bd 100644 --- a/lib/CHANGELOG.md +++ b/lib/CHANGELOG.md @@ -1,5 +1,11 @@ # react18-loaders +## 1.0.3 + +### Patch Changes + +- Remove uuid as it will result in multiple rgs stores for treeshakable imports + ## 1.0.2 ### Patch Changes diff --git a/lib/package.json b/lib/package.json index 897d796a..a2bef0c1 100644 --- a/lib/package.json +++ b/lib/package.json @@ -2,7 +2,7 @@ "name": "react18-loaders", "author": "Mayank Kumar Chaudhari ", "private": false, - "version": "1.0.2", + "version": "1.0.3", "description": "A comprehensive library that unleashes the full potential of React 18 server components, providing customizable loading animation components alongside a fullscreen loader container. Designed to seamlessly integrate with React and Next.js.", "license": "MPL-2.0", "main": "./dist/index.js", diff --git a/packages/shared/CHANGELOG.md b/packages/shared/CHANGELOG.md index ffff9988..157a3d8e 100644 --- a/packages/shared/CHANGELOG.md +++ b/packages/shared/CHANGELOG.md @@ -1,5 +1,12 @@ # @repo/shared +## 0.0.6 + +### Patch Changes + +- Updated dependencies + - react18-loaders@1.0.3 + ## 0.0.5 ### Patch Changes diff --git a/packages/shared/package.json b/packages/shared/package.json index 68cbee9c..fa4f3dbe 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -1,6 +1,6 @@ { "name": "@repo/shared", - "version": "0.0.5", + "version": "0.0.6", "private": true, "sideEffects": false, "main": "./dist/index.js",