valdres 0.2.0-alpha.32 → 0.2.0-alpha.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -611,7 +611,7 @@ var store = (id) => {
|
|
|
611
611
|
return storeFromStoreData(data);
|
|
612
612
|
};
|
|
613
613
|
// package.json
|
|
614
|
-
var version = "0.2.0-alpha.
|
|
614
|
+
var version = "0.2.0-alpha.33";
|
|
615
615
|
|
|
616
616
|
// src/globalStore.ts
|
|
617
617
|
if (globalThis.__valdres__) {
|
|
@@ -823,6 +823,8 @@ var createAtomFamily = (defaultValue, options) => {
|
|
|
823
823
|
|
|
824
824
|
// src/lib/createGlobalAtomFamily.ts
|
|
825
825
|
var createGlobalAtomFamily = (defaultValue, options) => {
|
|
826
|
+
if (!options.name)
|
|
827
|
+
throw new Error(`Missing name for global atomFamiliy`);
|
|
826
828
|
if (globalStore.atomFamilies.has(options.name)) {
|
|
827
829
|
return globalStore.atomFamilies.get(options.name);
|
|
828
830
|
}
|
|
@@ -902,6 +904,7 @@ export {
|
|
|
902
904
|
isFamily,
|
|
903
905
|
isAtomFamily,
|
|
904
906
|
isAtom,
|
|
907
|
+
globalStore,
|
|
905
908
|
createStoreWithSelectorSet,
|
|
906
909
|
atomFamily,
|
|
907
910
|
atom
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { atom } from "./src/atom";
|
|
2
2
|
export { atomFamily } from "./src/atomFamily";
|
|
3
3
|
export { createStoreWithSelectorSet } from "./src/createStoreWithSelectorSet";
|
|
4
|
+
export { globalStore } from "./src/globalStore";
|
|
4
5
|
export { selector } from "./src/selector";
|
|
5
6
|
export { selectorFamily } from "./src/selectorFamily";
|
|
6
7
|
export { store } from "./src/store";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valdres",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.34",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Eigil Sagafos"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"access": "public",
|
|
40
40
|
"registry": "https://registry.npmjs.org/"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "9716becae66dc7c18d4a4b3da4dbd6a1b5820cfb"
|
|
43
43
|
}
|