New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

r18gs

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

r18gs - npm Package Compare versions

Comparing version 0.0.3 to 0.0.5

esm/chunk-CYWUN7VX.js

12

CHANGELOG.md
# r18gs
## 0.0.5
### Patch Changes
- Fix Typescript error
## 0.0.4
### Patch Changes
- Fix getServerSnapshot errors on some projects.
## 0.0.3

@@ -4,0 +16,0 @@

2

esm/index.js

@@ -1,1 +0,1 @@

import{a as o}from"./chunk-3GC5MGOO.js";var e=o;export{e as default};
import{a as o}from"./chunk-CYWUN7VX.js";var e=o;export{e as default};

@@ -1,1 +0,1 @@

import{a}from"./chunk-3GC5MGOO.js";export{a as default};
import{a}from"./chunk-CYWUN7VX.js";export{a as default};

@@ -1,1 +0,1 @@

"use strict";var g=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var o in e)g(t,o,{get:e[o],enumerable:!0})},b=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of S(e))!p.call(t,l)&&l!==o&&g(t,l,{get:()=>e[l],enumerable:!(n=c(e,l))||n.enumerable});return t};var f=t=>b(g({},"__esModule",{value:!0}),t);var h={};u(h,{default:()=>v});module.exports=f(h);var a=require("react");globalThis.rgs={};function T(t,e){let o=(0,a.useCallback)(s=>{let r=globalThis.rgs[t];r.value=s instanceof Function?s(r.value):s;for(let i of r.listeners)i()},[t]),n=(0,a.useCallback)(s=>{globalThis.rgs[t]||(globalThis.rgs[t]={listeners:[],value:e});let r=globalThis.rgs[t];return r.listeners.push(s),()=>{r.listeners=r.listeners.filter(i=>i!==s)}},[t,e]);return[(0,a.useSyncExternalStore)(n,()=>{var s,r;return(r=(s=globalThis.rgs[t])==null?void 0:s.value)!=null?r:e}),o]}var v=T;
"use strict";var T=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var b=(t,e)=>{for(var o in e)T(t,o,{get:e[o],enumerable:!0})},u=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of S(e))!p.call(t,l)&&l!==o&&T(t,l,{get:()=>e[l],enumerable:!(n=c(e,l))||n.enumerable});return t};var f=t=>u(T({},"__esModule",{value:!0}),t);var v={};b(v,{default:()=>h});module.exports=f(v);var a=require("react");globalThis.rgs={};function g(t,e){let o=(0,a.useCallback)(s=>{let r=globalThis.rgs[t];r.value=s instanceof Function?s(r.value):s;for(let i of r.listeners)i()},[t]),n=(0,a.useCallback)(s=>{globalThis.rgs[t]||(globalThis.rgs[t]={listeners:[],value:e});let r=globalThis.rgs[t];return r.listeners.push(s),()=>{r.listeners=r.listeners.filter(i=>i!==s)}},[t,e]);return[(0,a.useSyncExternalStore)(n,()=>{var s,r;return(r=(s=globalThis.rgs[t])==null?void 0:s.value)!=null?r:e},()=>e),o]}var h=g;

@@ -5,3 +5,3 @@ {

"private": false,
"version": "0.0.3",
"version": "0.0.5",
"description": "A simple yet elegant, light weight, react18 global store to replace Zustand for better tree shaking.",

@@ -12,8 +12,8 @@ "main": "index.js",

"type": "git",
"url": "git+https://github.com/react18-tools/r18gs.git"
"url": "git+https://github.com/react18-tools/react18-global-store.git"
},
"bugs": {
"url": "https://github.com/react18-tools/r18gs/issues"
"url": "https://github.com/react18-tools/react18-global-store/issues"
},
"homepage": "https://github.com/react18-tools/r18gs/tree/main/lib/fork-me#readme",
"homepage": "https://github.com/react18-tools/react18-global-store#readme",
"sideEffects": false,

@@ -31,7 +31,7 @@ "license": "MIT",

"@turbo/gen": "^1.12.4",
"@types/node": "^20.11.19",
"@types/react": "^18.2.56",
"@types/node": "^20.11.20",
"@types/react": "^18.2.58",
"@types/react-dom": "^18.2.19",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^1.3.0",
"@vitest/coverage-v8": "^1.3.1",
"eslint-config-custom": "workspace:*",

@@ -46,3 +46,3 @@ "jsdom": "^24.0.0",

"vite-tsconfig-paths": "^4.3.1",
"vitest": "^1.3.0"
"vitest": "^1.3.1"
},

@@ -49,0 +49,0 @@ "peerDependencies": {

# React18GlobalStore
[![test](https://github.com/react18-tools/r18gs/actions/workflows/test.yml/badge.svg)](https://github.com/react18-tools/r18gs/actions/workflows/test.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/41f10c0e6846d1e8a56b/maintainability)](https://codeclimate.com/github/react18-tools/r18gs/maintainability) [![codecov](https://codecov.io/gh/react18-tools/r18gs/graph/badge.svg)](https://codecov.io/gh/react18-tools/r18gs) [![Version](https://img.shields.io/npm/v/r18gs.svg?colorB=green)](https://www.npmjs.com/package/r18gs) [![Downloads](https://img.jsdelivr.com/img.shields.io/npm/dt/r18gs.svg)](https://www.npmjs.com/package/r18gs) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/r18gs) [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/from-referrer/)
[![test](https://github.com/react18-tools/react18-global-store/actions/workflows/test.yml/badge.svg)](https://github.com/react18-tools/react18-global-store/actions/workflows/test.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/ec3140063acd8df82481/maintainability)](https://codeclimate.com/github/react18-tools/react18-global-store/maintainability) [![codecov](https://codecov.io/gh/react18-tools/react18-global-store/graph/badge.svg)](https://codecov.io/gh/react18-tools/react18-global-store) [![Version](https://img.shields.io/npm/v/r18gs.svg?colorB=green)](https://www.npmjs.com/package/r18gs) [![Downloads](https://img.jsdelivr.com/img.shields.io/npm/dt/r18gs.svg)](https://www.npmjs.com/package/r18gs) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/r18gs) [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/from-referrer/)

@@ -21,3 +21,3 @@ ## Motivation

✅ Doccumented with [Typedoc](https://react18-tools.github.io/r18gs) ([Docs](https://react18-tools.github.io/r18gs))
✅ Doccumented with [Typedoc](https://react18-tools.github.io/react18-global-store) ([Docs](https://react18-tools.github.io/react18-global-store))

@@ -117,3 +117,3 @@ ✅ Next.js, Vite and Remix examples

```
cd r18gs
cd react18-global-store
pnpm build

@@ -127,3 +127,3 @@ ```

```
cd r18gs
cd react18-global-store
pnpm dev

@@ -137,3 +137,3 @@ ```

### 🤩 Don't forger to start [this repo](https://github.com/mayank1513/r18gs)!
### 🤩 Don't forger to star [this repo](https://github.com/mayank1513/react18-global-store)!

@@ -140,0 +140,0 @@ Want hands-on course for getting started with Turborepo? Check out [React and Next.js with TypeScript](https://mayank-chaudhari.vercel.app/courses/react-and-next-js-with-typescript) and [The Game of Chess with Next.js, React and TypeScrypt](https://www.udemy.com/course/game-of-chess-with-nextjs-react-and-typescrypt/?referralCode=851A28F10B254A8523FE)

@@ -1,1 +0,1 @@

"use strict";var g=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var p=(t,e)=>{for(var o in e)g(t,o,{get:e[o],enumerable:!0})},u=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of S(e))!b.call(t,l)&&l!==o&&g(t,l,{get:()=>e[l],enumerable:!(n=c(e,l))||n.enumerable});return t};var v=t=>u(g({},"__esModule",{value:!0}),t);var f={};p(f,{default:()=>T});module.exports=v(f);var a=require("react");globalThis.rgs={};function T(t,e){let o=(0,a.useCallback)(r=>{let s=globalThis.rgs[t];s.value=r instanceof Function?r(s.value):r;for(let i of s.listeners)i()},[t]),n=(0,a.useCallback)(r=>{globalThis.rgs[t]||(globalThis.rgs[t]={listeners:[],value:e});let s=globalThis.rgs[t];return s.listeners.push(r),()=>{s.listeners=s.listeners.filter(i=>i!==r)}},[t,e]);return[(0,a.useSyncExternalStore)(n,()=>{var r,s;return(s=(r=globalThis.rgs[t])==null?void 0:r.value)!=null?s:e}),o]}
"use strict";var T=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var p=(t,e)=>{for(var o in e)T(t,o,{get:e[o],enumerable:!0})},u=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of S(e))!b.call(t,l)&&l!==o&&T(t,l,{get:()=>e[l],enumerable:!(n=c(e,l))||n.enumerable});return t};var f=t=>u(T({},"__esModule",{value:!0}),t);var h={};p(h,{default:()=>g});module.exports=f(h);var a=require("react");globalThis.rgs={};function g(t,e){let o=(0,a.useCallback)(r=>{let s=globalThis.rgs[t];s.value=r instanceof Function?r(s.value):r;for(let i of s.listeners)i()},[t]),n=(0,a.useCallback)(r=>{globalThis.rgs[t]||(globalThis.rgs[t]={listeners:[],value:e});let s=globalThis.rgs[t];return s.listeners.push(r),()=>{s.listeners=s.listeners.filter(i=>i!==r)}},[t,e]);return[(0,a.useSyncExternalStore)(n,()=>{var r,s;return(s=(r=globalThis.rgs[t])==null?void 0:r.value)!=null?s:e},()=>e),o]}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc