Skip to content

Commit

Permalink
Merge pull request #53 from react18-tools/fix-multiple-rgs
Browse files Browse the repository at this point in the history
Fix-multiple-rgs
  • Loading branch information
mayank1513 authored May 30, 2024
2 parents 1af16f9 + b8ba275 commit f278c99
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
6 changes: 6 additions & 0 deletions lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "react18-loaders",
"author": "Mayank Kumar Chaudhari <https://mayank-chaudhari.vercel.app>",
"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",
Expand Down
4 changes: 2 additions & 2 deletions lib/src/constants.ts
Original file line number Diff line number Diff line change
@@ -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";
7 changes: 7 additions & 0 deletions packages/shared/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @repo/shared

## 0.0.6

### Patch Changes

- Updated dependencies
- [email protected]

## 0.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@repo/shared",
"version": "0.0.5",
"version": "0.0.6",
"private": true,
"sideEffects": false,
"main": "./dist/index.js",
Expand Down

0 comments on commit f278c99

Please sign in to comment.