solid-js 1.3.10 → 1.3.11
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/dev.cjs +3 -2
- package/dist/dev.js +3 -2
- package/dist/solid.cjs +3 -2
- package/dist/solid.js +3 -2
- package/package.json +2 -2
- package/store/dist/dev.cjs +2 -0
- package/store/dist/dev.js +2 -0
- package/web/dist/dev.cjs +1 -1
- package/web/dist/dev.js +1 -1
- package/web/dist/web.cjs +1 -1
- package/web/dist/web.js +1 -1
package/dist/dev.cjs
CHANGED
|
@@ -763,7 +763,8 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
763
763
|
}
|
|
764
764
|
function runTop(node) {
|
|
765
765
|
const runningTransition = Transition && Transition.running;
|
|
766
|
-
if (!runningTransition && node.state
|
|
766
|
+
if (!runningTransition && node.state === 0 || runningTransition && node.tState === 0) return;
|
|
767
|
+
if (!runningTransition && node.state === PENDING || runningTransition && node.tState === PENDING) return lookDownstream(node);
|
|
767
768
|
if (node.suspense && untrack(node.suspense.inFallback)) return node.suspense.effects.push(node);
|
|
768
769
|
const ancestors = [node];
|
|
769
770
|
while ((node = node.owner) && (!node.updatedAt || node.updatedAt < ExecCount)) {
|
|
@@ -884,8 +885,8 @@ function runUserEffects(queue) {
|
|
|
884
885
|
for (i = resume; i < queue.length; i++) runTop(queue[i]);
|
|
885
886
|
}
|
|
886
887
|
function lookDownstream(node, ignore) {
|
|
887
|
-
node.state = 0;
|
|
888
888
|
const runningTransition = Transition && Transition.running;
|
|
889
|
+
if (runningTransition) node.tState = 0;else node.state = 0;
|
|
889
890
|
for (let i = 0; i < node.sources.length; i += 1) {
|
|
890
891
|
const source = node.sources[i];
|
|
891
892
|
if (source.sources) {
|
package/dist/dev.js
CHANGED
|
@@ -759,7 +759,8 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
759
759
|
}
|
|
760
760
|
function runTop(node) {
|
|
761
761
|
const runningTransition = Transition && Transition.running;
|
|
762
|
-
if (!runningTransition && node.state
|
|
762
|
+
if (!runningTransition && node.state === 0 || runningTransition && node.tState === 0) return;
|
|
763
|
+
if (!runningTransition && node.state === PENDING || runningTransition && node.tState === PENDING) return lookDownstream(node);
|
|
763
764
|
if (node.suspense && untrack(node.suspense.inFallback)) return node.suspense.effects.push(node);
|
|
764
765
|
const ancestors = [node];
|
|
765
766
|
while ((node = node.owner) && (!node.updatedAt || node.updatedAt < ExecCount)) {
|
|
@@ -880,8 +881,8 @@ function runUserEffects(queue) {
|
|
|
880
881
|
for (i = resume; i < queue.length; i++) runTop(queue[i]);
|
|
881
882
|
}
|
|
882
883
|
function lookDownstream(node, ignore) {
|
|
883
|
-
node.state = 0;
|
|
884
884
|
const runningTransition = Transition && Transition.running;
|
|
885
|
+
if (runningTransition) node.tState = 0;else node.state = 0;
|
|
885
886
|
for (let i = 0; i < node.sources.length; i += 1) {
|
|
886
887
|
const source = node.sources[i];
|
|
887
888
|
if (source.sources) {
|
package/dist/solid.cjs
CHANGED
|
@@ -706,7 +706,8 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
706
706
|
}
|
|
707
707
|
function runTop(node) {
|
|
708
708
|
const runningTransition = Transition && Transition.running;
|
|
709
|
-
if (!runningTransition && node.state
|
|
709
|
+
if (!runningTransition && node.state === 0 || runningTransition && node.tState === 0) return;
|
|
710
|
+
if (!runningTransition && node.state === PENDING || runningTransition && node.tState === PENDING) return lookDownstream(node);
|
|
710
711
|
if (node.suspense && untrack(node.suspense.inFallback)) return node.suspense.effects.push(node);
|
|
711
712
|
const ancestors = [node];
|
|
712
713
|
while ((node = node.owner) && (!node.updatedAt || node.updatedAt < ExecCount)) {
|
|
@@ -826,8 +827,8 @@ function runUserEffects(queue) {
|
|
|
826
827
|
for (i = resume; i < queue.length; i++) runTop(queue[i]);
|
|
827
828
|
}
|
|
828
829
|
function lookDownstream(node, ignore) {
|
|
829
|
-
node.state = 0;
|
|
830
830
|
const runningTransition = Transition && Transition.running;
|
|
831
|
+
if (runningTransition) node.tState = 0;else node.state = 0;
|
|
831
832
|
for (let i = 0; i < node.sources.length; i += 1) {
|
|
832
833
|
const source = node.sources[i];
|
|
833
834
|
if (source.sources) {
|
package/dist/solid.js
CHANGED
|
@@ -702,7 +702,8 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
702
702
|
}
|
|
703
703
|
function runTop(node) {
|
|
704
704
|
const runningTransition = Transition && Transition.running;
|
|
705
|
-
if (!runningTransition && node.state
|
|
705
|
+
if (!runningTransition && node.state === 0 || runningTransition && node.tState === 0) return;
|
|
706
|
+
if (!runningTransition && node.state === PENDING || runningTransition && node.tState === PENDING) return lookDownstream(node);
|
|
706
707
|
if (node.suspense && untrack(node.suspense.inFallback)) return node.suspense.effects.push(node);
|
|
707
708
|
const ancestors = [node];
|
|
708
709
|
while ((node = node.owner) && (!node.updatedAt || node.updatedAt < ExecCount)) {
|
|
@@ -822,8 +823,8 @@ function runUserEffects(queue) {
|
|
|
822
823
|
for (i = resume; i < queue.length; i++) runTop(queue[i]);
|
|
823
824
|
}
|
|
824
825
|
function lookDownstream(node, ignore) {
|
|
825
|
-
node.state = 0;
|
|
826
826
|
const runningTransition = Transition && Transition.running;
|
|
827
|
+
if (runningTransition) node.tState = 0;else node.state = 0;
|
|
827
828
|
for (let i = 0; i < node.sources.length; i += 1) {
|
|
828
829
|
const source = node.sources[i];
|
|
829
830
|
if (source.sources) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-js",
|
|
3
3
|
"description": "A declarative JavaScript library for building user interfaces.",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.11",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://solidjs.com",
|
|
@@ -144,5 +144,5 @@
|
|
|
144
144
|
"compiler",
|
|
145
145
|
"performance"
|
|
146
146
|
],
|
|
147
|
-
"gitHead": "
|
|
147
|
+
"gitHead": "f880eac70b79292cb3452bfbe27a9a94f283d605"
|
|
148
148
|
}
|
package/store/dist/dev.cjs
CHANGED
|
@@ -185,6 +185,7 @@ function updatePath(current, path, traversed = []) {
|
|
|
185
185
|
}
|
|
186
186
|
function createStore(store, options) {
|
|
187
187
|
const unwrappedStore = unwrap(store || {});
|
|
188
|
+
if (typeof unwrappedStore !== "object" && typeof unwrappedStore !== "function") throw new Error(`Unexpected type ${typeof unwrappedStore} received when initializing 'createStore'. Expected an object.`);
|
|
188
189
|
const wrappedStore = wrap$1(unwrappedStore, (options && options.name || solidJs.DEV.hashValue(unwrappedStore)));
|
|
189
190
|
{
|
|
190
191
|
const name = options && options.name || solidJs.DEV.hashValue(unwrappedStore);
|
|
@@ -260,6 +261,7 @@ function wrap(value, name) {
|
|
|
260
261
|
}
|
|
261
262
|
function createMutable(state, options) {
|
|
262
263
|
const unwrappedStore = unwrap(state || {});
|
|
264
|
+
if (typeof unwrappedStore !== "object" && typeof unwrappedStore !== "function") throw new Error(`Unexpected type ${typeof unwrappedStore} received when initializing 'createMutable'. Expected an object.`);
|
|
263
265
|
const wrappedStore = wrap(unwrappedStore, (options && options.name || solidJs.DEV.hashValue(unwrappedStore)));
|
|
264
266
|
{
|
|
265
267
|
const name = options && options.name || solidJs.DEV.hashValue(unwrappedStore);
|
package/store/dist/dev.js
CHANGED
|
@@ -181,6 +181,7 @@ function updatePath(current, path, traversed = []) {
|
|
|
181
181
|
}
|
|
182
182
|
function createStore(store, options) {
|
|
183
183
|
const unwrappedStore = unwrap(store || {});
|
|
184
|
+
if (typeof unwrappedStore !== "object" && typeof unwrappedStore !== "function") throw new Error(`Unexpected type ${typeof unwrappedStore} received when initializing 'createStore'. Expected an object.`);
|
|
184
185
|
const wrappedStore = wrap$1(unwrappedStore, (options && options.name || DEV.hashValue(unwrappedStore)));
|
|
185
186
|
{
|
|
186
187
|
const name = options && options.name || DEV.hashValue(unwrappedStore);
|
|
@@ -256,6 +257,7 @@ function wrap(value, name) {
|
|
|
256
257
|
}
|
|
257
258
|
function createMutable(state, options) {
|
|
258
259
|
const unwrappedStore = unwrap(state || {});
|
|
260
|
+
if (typeof unwrappedStore !== "object" && typeof unwrappedStore !== "function") throw new Error(`Unexpected type ${typeof unwrappedStore} received when initializing 'createMutable'. Expected an object.`);
|
|
259
261
|
const wrappedStore = wrap(unwrappedStore, (options && options.name || DEV.hashValue(unwrappedStore)));
|
|
260
262
|
{
|
|
261
263
|
const name = options && options.name || DEV.hashValue(unwrappedStore);
|
package/web/dist/dev.cjs
CHANGED
|
@@ -19,7 +19,7 @@ const PropAliases = {
|
|
|
19
19
|
playsinline: "playsInline",
|
|
20
20
|
readonly: "readOnly"
|
|
21
21
|
};
|
|
22
|
-
const DelegatedEvents = new Set(["beforeinput", "click", "dblclick", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
|
|
22
|
+
const DelegatedEvents = new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
|
|
23
23
|
const SVGElements = new Set([
|
|
24
24
|
"altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "font", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignObject", "g", "glyph", "glyphRef", "hkern", "image", "line", "linearGradient", "marker", "mask", "metadata", "missing-glyph", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect",
|
|
25
25
|
"set", "stop",
|
package/web/dist/dev.js
CHANGED
|
@@ -16,7 +16,7 @@ const PropAliases = {
|
|
|
16
16
|
playsinline: "playsInline",
|
|
17
17
|
readonly: "readOnly"
|
|
18
18
|
};
|
|
19
|
-
const DelegatedEvents = new Set(["beforeinput", "click", "dblclick", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
|
|
19
|
+
const DelegatedEvents = new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
|
|
20
20
|
const SVGElements = new Set([
|
|
21
21
|
"altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "font", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignObject", "g", "glyph", "glyphRef", "hkern", "image", "line", "linearGradient", "marker", "mask", "metadata", "missing-glyph", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect",
|
|
22
22
|
"set", "stop",
|
package/web/dist/web.cjs
CHANGED
|
@@ -19,7 +19,7 @@ const PropAliases = {
|
|
|
19
19
|
playsinline: "playsInline",
|
|
20
20
|
readonly: "readOnly"
|
|
21
21
|
};
|
|
22
|
-
const DelegatedEvents = new Set(["beforeinput", "click", "dblclick", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
|
|
22
|
+
const DelegatedEvents = new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
|
|
23
23
|
const SVGElements = new Set([
|
|
24
24
|
"altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "font", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignObject", "g", "glyph", "glyphRef", "hkern", "image", "line", "linearGradient", "marker", "mask", "metadata", "missing-glyph", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect",
|
|
25
25
|
"set", "stop",
|
package/web/dist/web.js
CHANGED
|
@@ -16,7 +16,7 @@ const PropAliases = {
|
|
|
16
16
|
playsinline: "playsInline",
|
|
17
17
|
readonly: "readOnly"
|
|
18
18
|
};
|
|
19
|
-
const DelegatedEvents = new Set(["beforeinput", "click", "dblclick", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
|
|
19
|
+
const DelegatedEvents = new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
|
|
20
20
|
const SVGElements = new Set([
|
|
21
21
|
"altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "font", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignObject", "g", "glyph", "glyphRef", "hkern", "image", "line", "linearGradient", "marker", "mask", "metadata", "missing-glyph", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect",
|
|
22
22
|
"set", "stop",
|