Comparing version 1.0.0 to 1.0.1
@@ -1,1 +0,1 @@ | ||
"use strict";var s=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var b=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})},d=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of l(t))!p.call(e,o)&&o!==n&&s(e,o,{get:()=>t[o],enumerable:!(r=f(t,o))||r.enumerable});return e};var x=e=>d(s({},"__esModule",{value:!0}),e);var A={};b(A,{default:()=>g});module.exports=x(A);var a=require("react");var c=globalThis;c.rgs={};var i=c.rgs;function u(e){return t=>{let n=i[e];return n[1].push(t),()=>{n[1]=n[1].filter(r=>r!==t)}}}function S(e){return t=>{let n=i[e];n[0]=t instanceof Function?t(n[0]):t,n[1].forEach(r=>r())}}function T(e){let t=i[e];return[(0,a.useSyncExternalStore)(t[3],()=>t[0]),t[2]]}function g(e,t){return i[e]||(i[e]=[t,[],S(e),u(e)]),T(e)} | ||
"use strict";var s=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var b=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})},d=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of l(t))!p.call(e,o)&&o!==n&&s(e,o,{get:()=>t[o],enumerable:!(r=f(t,o))||r.enumerable});return e};var x=e=>d(s({},"__esModule",{value:!0}),e);var A={};b(A,{default:()=>g});module.exports=x(A);var a=require("react");var c=globalThis;c.rgs={};var i=c.rgs;function u(e){return t=>{let n=i[e];return n[1].push(t),()=>{n[1]=n[1].filter(r=>r!==t)}}}function S(e){return t=>{let n=i[e];n[0]=t instanceof Function?t(n[0]):t,n[1].forEach(r=>r())}}function T(e){let t=i[e];return[(0,a.useSyncExternalStore)(t[3],()=>t[0],()=>t[0]),t[2]]}function g(e,t){return i[e]||(i[e]=[t,[],S(e),u(e)]),T(e)} |
@@ -1,1 +0,1 @@ | ||
"use strict";var S=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var G=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var v=(t,e)=>{for(var n in e)S(t,n,{get:e[n],enumerable:!0})},L=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of G(e))!A.call(t,r)&&r!==n&&S(t,r,{get:()=>e[r],enumerable:!(i=R(e,r))||i.enumerable});return t};var P=t=>L(S({},"__esModule",{value:!0}),t);var f=(t,e,n)=>new Promise((i,r)=>{var s=o=>{try{c(n.next(o))}catch(u){r(u)}},T=o=>{try{c(n.throw(o))}catch(u){r(u)}},c=o=>o.done?i(o.value):Promise.resolve(o.value).then(s,T);c((n=n.apply(t,e)).next())});var M={};v(M,{createHook:()=>d,createSetter:()=>w,createSubcriber:()=>g,globalRGS:()=>a,initWithPlugins:()=>x,useRGSWithPlugins:()=>m});module.exports=P(M);var l=require("react");var p=globalThis;p.rgs={};var a=p.rgs;function b(t){t[1].forEach(e=>e())}function g(t){return e=>{let n=a[t];return n[1].push(e),()=>{n[1]=n[1].filter(i=>i!==e)}}}function w(t){return e=>{let n=a[t];n[0]=e instanceof Function?e(n[0]):e,n[1].forEach(i=>i())}}function d(t){let e=a[t];return[(0,l.useSyncExternalStore)(e[3],()=>e[0]),e[2]]}var h=!1;function E(t,e){return f(this,null,function*(){var r;let n=a[t],i=s=>{n[0]=s,b(n)};for(let s of e)yield(r=s.init)==null?void 0:r.call(s,t,n[0],i);h=!0})}function x(t,e,n=[],i=!1){if(i){a[t]=[e,[],null,g(t)];return}let r=T=>{if(!h)return;let c=a[t];c[0]=T instanceof Function?T(c[0]):T,b(c),n.forEach(o=>{var u;return(u=o.onChange)==null?void 0:u.call(o,t,c[0])})},s=a[t];s?(s[0]=e,s[2]=r):a[t]=[e,[],r,g(t)],E(t,n)}function m(t,e,n,i=!1){var r;return(r=a[t])!=null&&r[2]||x(t,e,n,i),d(t)}0&&(module.exports={createHook,createSetter,createSubcriber,globalRGS,initWithPlugins,useRGSWithPlugins}); | ||
"use strict";var S=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var G=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var v=(t,e)=>{for(var n in e)S(t,n,{get:e[n],enumerable:!0})},L=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of G(e))!A.call(t,r)&&r!==n&&S(t,r,{get:()=>e[r],enumerable:!(i=R(e,r))||i.enumerable});return t};var P=t=>L(S({},"__esModule",{value:!0}),t);var f=(t,e,n)=>new Promise((i,r)=>{var s=o=>{try{c(n.next(o))}catch(u){r(u)}},T=o=>{try{c(n.throw(o))}catch(u){r(u)}},c=o=>o.done?i(o.value):Promise.resolve(o.value).then(s,T);c((n=n.apply(t,e)).next())});var M={};v(M,{createHook:()=>d,createSetter:()=>w,createSubcriber:()=>g,globalRGS:()=>a,initWithPlugins:()=>x,useRGSWithPlugins:()=>m});module.exports=P(M);var l=require("react");var p=globalThis;p.rgs={};var a=p.rgs;function b(t){t[1].forEach(e=>e())}function g(t){return e=>{let n=a[t];return n[1].push(e),()=>{n[1]=n[1].filter(i=>i!==e)}}}function w(t){return e=>{let n=a[t];n[0]=e instanceof Function?e(n[0]):e,n[1].forEach(i=>i())}}function d(t){let e=a[t];return[(0,l.useSyncExternalStore)(e[3],()=>e[0],()=>e[0]),e[2]]}var h=!1;function E(t,e){return f(this,null,function*(){var r;let n=a[t],i=s=>{n[0]=s,b(n)};for(let s of e)yield(r=s.init)==null?void 0:r.call(s,t,n[0],i);h=!0})}function x(t,e,n=[],i=!1){if(i){a[t]=[e,[],null,g(t)];return}let r=T=>{if(!h)return;let c=a[t];c[0]=T instanceof Function?T(c[0]):T,b(c),n.forEach(o=>{var u;return(u=o.onChange)==null?void 0:u.call(o,t,c[0])})},s=a[t];s?(s[0]=e,s[2]=r):a[t]=[e,[],r,g(t)],E(t,n)}function m(t,e,n,i=!1){var r;return(r=a[t])!=null&&r[2]||x(t,e,n,i),d(t)}0&&(module.exports={createHook,createSetter,createSubcriber,globalRGS,initWithPlugins,useRGSWithPlugins}); |
@@ -1,1 +0,1 @@ | ||
"use strict";var g=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var R=(t,n)=>{for(var e in n)g(t,e,{get:n[e],enumerable:!0})},G=(t,n,e,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of x(n))!A.call(t,i)&&i!==e&&g(t,i,{get:()=>n[i],enumerable:!(r=d(n,i))||r.enumerable});return t};var v=t=>G(g({},"__esModule",{value:!0}),t);var l=(t,n,e)=>new Promise((r,i)=>{var o=s=>{try{a(e.next(s))}catch(c){i(c)}},T=s=>{try{a(e.throw(s))}catch(c){i(c)}},a=s=>s.done?r(s.value):Promise.resolve(s.value).then(o,T);a((e=e.apply(t,n)).next())});var y={};R(y,{create:()=>w,useRGSWithPlugins:()=>S,withPlugins:()=>W});module.exports=v(y);var p=require("react");var h=globalThis;h.rgs={};var u=h.rgs;function P(t){t[1].forEach(n=>n())}function f(t){return n=>{let e=u[t];return e[1].push(n),()=>{e[1]=e[1].filter(r=>r!==n)}}}function U(t){let n=u[t];return[(0,p.useSyncExternalStore)(n[3],()=>n[0]),n[2]]}var b=!1;function m(t,n){return l(this,null,function*(){var i;let e=u[t],r=o=>{e[0]=o,P(e)};for(let o of n)yield(i=o.init)==null?void 0:i.call(o,t,e[0],r);b=!0})}function L(t,n,e=[],r=!1){if(r){u[t]=[n,[],null,f(t)];return}let i=T=>{if(!b)return;let a=u[t];a[0]=T instanceof Function?T(a[0]):T,P(a),e.forEach(s=>{var c;return(c=s.onChange)==null?void 0:c.call(s,t,a[0])})},o=u[t];o?(o[0]=n,o[2]=i):u[t]=[n,[],i,f(t)],m(t,e)}function S(t,n,e,r=!1){var i;return(i=u[t])!=null&&i[2]||L(t,n,e,r),U(t)}function w(t,n,e){return()=>S(t,n,e)}function W(t){return(e,r,i=!1)=>S(e,r,t,i)}0&&(module.exports={create,useRGSWithPlugins,withPlugins}); | ||
"use strict";var g=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var A=Object.prototype.hasOwnProperty;var R=(t,n)=>{for(var e in n)g(t,e,{get:n[e],enumerable:!0})},G=(t,n,e,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of x(n))!A.call(t,i)&&i!==e&&g(t,i,{get:()=>n[i],enumerable:!(r=d(n,i))||r.enumerable});return t};var v=t=>G(g({},"__esModule",{value:!0}),t);var l=(t,n,e)=>new Promise((r,i)=>{var o=s=>{try{a(e.next(s))}catch(c){i(c)}},T=s=>{try{a(e.throw(s))}catch(c){i(c)}},a=s=>s.done?r(s.value):Promise.resolve(s.value).then(o,T);a((e=e.apply(t,n)).next())});var y={};R(y,{create:()=>w,useRGSWithPlugins:()=>S,withPlugins:()=>W});module.exports=v(y);var p=require("react");var h=globalThis;h.rgs={};var u=h.rgs;function P(t){t[1].forEach(n=>n())}function f(t){return n=>{let e=u[t];return e[1].push(n),()=>{e[1]=e[1].filter(r=>r!==n)}}}function U(t){let n=u[t];return[(0,p.useSyncExternalStore)(n[3],()=>n[0],()=>n[0]),n[2]]}var b=!1;function m(t,n){return l(this,null,function*(){var i;let e=u[t],r=o=>{e[0]=o,P(e)};for(let o of n)yield(i=o.init)==null?void 0:i.call(o,t,e[0],r);b=!0})}function L(t,n,e=[],r=!1){if(r){u[t]=[n,[],null,f(t)];return}let i=T=>{if(!b)return;let a=u[t];a[0]=T instanceof Function?T(a[0]):T,P(a),e.forEach(s=>{var c;return(c=s.onChange)==null?void 0:c.call(s,t,a[0])})},o=u[t];o?(o[0]=n,o[2]=i):u[t]=[n,[],i,f(t)],m(t,e)}function S(t,n,e,r=!1){var i;return(i=u[t])!=null&&i[2]||L(t,n,e,r),U(t)}function w(t,n,e){return()=>S(t,n,e)}function W(t){return(e,r,i=!1)=>S(e,r,t,i)}0&&(module.exports={create,useRGSWithPlugins,withPlugins}); |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A simple yet elegant, light weight, react18 global store to replace Zustand for better tree shaking.", | ||
@@ -27,3 +27,3 @@ "main": "./dist/index.js", | ||
"build": "tsup src && tsc -p tsconfig-build.json", | ||
"doc": "cp ../../README.md . && typedoc", | ||
"doc": "cp ../../README.md . && typedoc && cp -r ../../md-docs ../../docs/", | ||
"publish-package": "cp ../../README.md . && npm publish --provenance --access public", | ||
@@ -39,3 +39,3 @@ "lint": "eslint ." | ||
"@vitejs/plugin-react": "^4.2.1", | ||
"@vitest/coverage-v8": "^1.5.2", | ||
"@vitest/coverage-v8": "^1.5.3", | ||
"eslint-config-custom": "workspace:*", | ||
@@ -54,3 +54,3 @@ "jsdom": "^24.0.0", | ||
"vite-tsconfig-paths": "^4.3.2", | ||
"vitest": "^1.5.2" | ||
"vitest": "^1.5.3" | ||
}, | ||
@@ -57,0 +57,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
24763
23
261
0