solid-js 1.2.4 → 1.2.5
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 +8 -3
- package/dist/dev.js +8 -3
- package/dist/solid.cjs +8 -3
- package/dist/solid.js +8 -3
- package/package.json +2 -2
- package/web/dist/dev.cjs +3 -3
- package/web/dist/dev.js +3 -3
- package/web/dist/web.cjs +3 -3
- package/web/dist/web.js +3 -3
package/dist/dev.cjs
CHANGED
|
@@ -195,10 +195,12 @@ function createSignal(value, options) {
|
|
|
195
195
|
}];
|
|
196
196
|
}
|
|
197
197
|
function createComputed(fn, value, options) {
|
|
198
|
-
|
|
198
|
+
const c = createComputation(fn, value, true, STALE, options );
|
|
199
|
+
if (Scheduler && Transition && Transition.running) Updates.push(c);else updateComputation(c);
|
|
199
200
|
}
|
|
200
201
|
function createRenderEffect(fn, value, options) {
|
|
201
|
-
|
|
202
|
+
const c = createComputation(fn, value, false, STALE, options );
|
|
203
|
+
if (Scheduler && Transition && Transition.running) Updates.push(c);else updateComputation(c);
|
|
202
204
|
}
|
|
203
205
|
function createEffect(fn, value, options) {
|
|
204
206
|
runEffects = runUserEffects;
|
|
@@ -215,7 +217,10 @@ function createMemo(fn, value, options) {
|
|
|
215
217
|
c.observers = null;
|
|
216
218
|
c.observerSlots = null;
|
|
217
219
|
c.comparator = options.equals || undefined;
|
|
218
|
-
|
|
220
|
+
if (Scheduler && Transition && Transition.running) {
|
|
221
|
+
c.tState = STALE;
|
|
222
|
+
Updates.push(c);
|
|
223
|
+
} else updateComputation(c);
|
|
219
224
|
return readSignal.bind(c);
|
|
220
225
|
}
|
|
221
226
|
function createResource(source, fetcher, options) {
|
package/dist/dev.js
CHANGED
|
@@ -191,10 +191,12 @@ function createSignal(value, options) {
|
|
|
191
191
|
}];
|
|
192
192
|
}
|
|
193
193
|
function createComputed(fn, value, options) {
|
|
194
|
-
|
|
194
|
+
const c = createComputation(fn, value, true, STALE, options );
|
|
195
|
+
if (Scheduler && Transition && Transition.running) Updates.push(c);else updateComputation(c);
|
|
195
196
|
}
|
|
196
197
|
function createRenderEffect(fn, value, options) {
|
|
197
|
-
|
|
198
|
+
const c = createComputation(fn, value, false, STALE, options );
|
|
199
|
+
if (Scheduler && Transition && Transition.running) Updates.push(c);else updateComputation(c);
|
|
198
200
|
}
|
|
199
201
|
function createEffect(fn, value, options) {
|
|
200
202
|
runEffects = runUserEffects;
|
|
@@ -211,7 +213,10 @@ function createMemo(fn, value, options) {
|
|
|
211
213
|
c.observers = null;
|
|
212
214
|
c.observerSlots = null;
|
|
213
215
|
c.comparator = options.equals || undefined;
|
|
214
|
-
|
|
216
|
+
if (Scheduler && Transition && Transition.running) {
|
|
217
|
+
c.tState = STALE;
|
|
218
|
+
Updates.push(c);
|
|
219
|
+
} else updateComputation(c);
|
|
215
220
|
return readSignal.bind(c);
|
|
216
221
|
}
|
|
217
222
|
function createResource(source, fetcher, options) {
|
package/dist/solid.cjs
CHANGED
|
@@ -192,10 +192,12 @@ function createSignal(value, options) {
|
|
|
192
192
|
}];
|
|
193
193
|
}
|
|
194
194
|
function createComputed(fn, value, options) {
|
|
195
|
-
|
|
195
|
+
const c = createComputation(fn, value, true, STALE);
|
|
196
|
+
if (Scheduler && Transition && Transition.running) Updates.push(c);else updateComputation(c);
|
|
196
197
|
}
|
|
197
198
|
function createRenderEffect(fn, value, options) {
|
|
198
|
-
|
|
199
|
+
const c = createComputation(fn, value, false, STALE);
|
|
200
|
+
if (Scheduler && Transition && Transition.running) Updates.push(c);else updateComputation(c);
|
|
199
201
|
}
|
|
200
202
|
function createEffect(fn, value, options) {
|
|
201
203
|
runEffects = runUserEffects;
|
|
@@ -212,7 +214,10 @@ function createMemo(fn, value, options) {
|
|
|
212
214
|
c.observers = null;
|
|
213
215
|
c.observerSlots = null;
|
|
214
216
|
c.comparator = options.equals || undefined;
|
|
215
|
-
|
|
217
|
+
if (Scheduler && Transition && Transition.running) {
|
|
218
|
+
c.tState = STALE;
|
|
219
|
+
Updates.push(c);
|
|
220
|
+
} else updateComputation(c);
|
|
216
221
|
return readSignal.bind(c);
|
|
217
222
|
}
|
|
218
223
|
function createResource(source, fetcher, options) {
|
package/dist/solid.js
CHANGED
|
@@ -188,10 +188,12 @@ function createSignal(value, options) {
|
|
|
188
188
|
}];
|
|
189
189
|
}
|
|
190
190
|
function createComputed(fn, value, options) {
|
|
191
|
-
|
|
191
|
+
const c = createComputation(fn, value, true, STALE);
|
|
192
|
+
if (Scheduler && Transition && Transition.running) Updates.push(c);else updateComputation(c);
|
|
192
193
|
}
|
|
193
194
|
function createRenderEffect(fn, value, options) {
|
|
194
|
-
|
|
195
|
+
const c = createComputation(fn, value, false, STALE);
|
|
196
|
+
if (Scheduler && Transition && Transition.running) Updates.push(c);else updateComputation(c);
|
|
195
197
|
}
|
|
196
198
|
function createEffect(fn, value, options) {
|
|
197
199
|
runEffects = runUserEffects;
|
|
@@ -208,7 +210,10 @@ function createMemo(fn, value, options) {
|
|
|
208
210
|
c.observers = null;
|
|
209
211
|
c.observerSlots = null;
|
|
210
212
|
c.comparator = options.equals || undefined;
|
|
211
|
-
|
|
213
|
+
if (Scheduler && Transition && Transition.running) {
|
|
214
|
+
c.tState = STALE;
|
|
215
|
+
Updates.push(c);
|
|
216
|
+
} else updateComputation(c);
|
|
212
217
|
return readSignal.bind(c);
|
|
213
218
|
}
|
|
214
219
|
function createResource(source, fetcher, options) {
|
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.2.
|
|
4
|
+
"version": "1.2.5",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/solidjs/solid#readme",
|
|
@@ -132,5 +132,5 @@
|
|
|
132
132
|
"compiler",
|
|
133
133
|
"performance"
|
|
134
134
|
],
|
|
135
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "faf884b19acc078f1e202030bbd6b22c49a5ae6b"
|
|
136
136
|
}
|
package/web/dist/dev.cjs
CHANGED
|
@@ -215,8 +215,7 @@ function assign(node, props, isSVG, skipChildren, prevProps = {}) {
|
|
|
215
215
|
continue;
|
|
216
216
|
}
|
|
217
217
|
const value = props[prop];
|
|
218
|
-
assignProp(node, prop, value, prevProps[prop], isSVG);
|
|
219
|
-
prevProps[prop] = value;
|
|
218
|
+
prevProps[prop] = assignProp(node, prop, value, prevProps[prop], isSVG);
|
|
220
219
|
}
|
|
221
220
|
}
|
|
222
221
|
function hydrate(code, element) {
|
|
@@ -302,7 +301,7 @@ function assignProp(node, prop, value, prev, isSVG) {
|
|
|
302
301
|
let isCE, isProp, isChildProp;
|
|
303
302
|
if (prop === "style") return style(node, value, prev);
|
|
304
303
|
if (prop === "classList") return classList(node, value, prev);
|
|
305
|
-
if (value === prev) return;
|
|
304
|
+
if (value === prev) return prev;
|
|
306
305
|
if (prop === "ref") {
|
|
307
306
|
value(node);
|
|
308
307
|
} else if (prop.slice(0, 3) === "on:") {
|
|
@@ -320,6 +319,7 @@ function assignProp(node, prop, value, prev, isSVG) {
|
|
|
320
319
|
const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
|
|
321
320
|
if (ns) setAttributeNS(node, ns, prop, value);else setAttribute(node, Aliases[prop] || prop, value);
|
|
322
321
|
}
|
|
322
|
+
return value;
|
|
323
323
|
}
|
|
324
324
|
function eventHandler(e) {
|
|
325
325
|
const key = `$$${e.type}`;
|
package/web/dist/dev.js
CHANGED
|
@@ -212,8 +212,7 @@ function assign(node, props, isSVG, skipChildren, prevProps = {}) {
|
|
|
212
212
|
continue;
|
|
213
213
|
}
|
|
214
214
|
const value = props[prop];
|
|
215
|
-
assignProp(node, prop, value, prevProps[prop], isSVG);
|
|
216
|
-
prevProps[prop] = value;
|
|
215
|
+
prevProps[prop] = assignProp(node, prop, value, prevProps[prop], isSVG);
|
|
217
216
|
}
|
|
218
217
|
}
|
|
219
218
|
function hydrate(code, element) {
|
|
@@ -299,7 +298,7 @@ function assignProp(node, prop, value, prev, isSVG) {
|
|
|
299
298
|
let isCE, isProp, isChildProp;
|
|
300
299
|
if (prop === "style") return style(node, value, prev);
|
|
301
300
|
if (prop === "classList") return classList(node, value, prev);
|
|
302
|
-
if (value === prev) return;
|
|
301
|
+
if (value === prev) return prev;
|
|
303
302
|
if (prop === "ref") {
|
|
304
303
|
value(node);
|
|
305
304
|
} else if (prop.slice(0, 3) === "on:") {
|
|
@@ -317,6 +316,7 @@ function assignProp(node, prop, value, prev, isSVG) {
|
|
|
317
316
|
const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
|
|
318
317
|
if (ns) setAttributeNS(node, ns, prop, value);else setAttribute(node, Aliases[prop] || prop, value);
|
|
319
318
|
}
|
|
319
|
+
return value;
|
|
320
320
|
}
|
|
321
321
|
function eventHandler(e) {
|
|
322
322
|
const key = `$$${e.type}`;
|
package/web/dist/web.cjs
CHANGED
|
@@ -214,8 +214,7 @@ function assign(node, props, isSVG, skipChildren, prevProps = {}) {
|
|
|
214
214
|
continue;
|
|
215
215
|
}
|
|
216
216
|
const value = props[prop];
|
|
217
|
-
assignProp(node, prop, value, prevProps[prop], isSVG);
|
|
218
|
-
prevProps[prop] = value;
|
|
217
|
+
prevProps[prop] = assignProp(node, prop, value, prevProps[prop], isSVG);
|
|
219
218
|
}
|
|
220
219
|
}
|
|
221
220
|
function hydrate(code, element) {
|
|
@@ -301,7 +300,7 @@ function assignProp(node, prop, value, prev, isSVG) {
|
|
|
301
300
|
let isCE, isProp, isChildProp;
|
|
302
301
|
if (prop === "style") return style(node, value, prev);
|
|
303
302
|
if (prop === "classList") return classList(node, value, prev);
|
|
304
|
-
if (value === prev) return;
|
|
303
|
+
if (value === prev) return prev;
|
|
305
304
|
if (prop === "ref") {
|
|
306
305
|
value(node);
|
|
307
306
|
} else if (prop.slice(0, 3) === "on:") {
|
|
@@ -319,6 +318,7 @@ function assignProp(node, prop, value, prev, isSVG) {
|
|
|
319
318
|
const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
|
|
320
319
|
if (ns) setAttributeNS(node, ns, prop, value);else setAttribute(node, Aliases[prop] || prop, value);
|
|
321
320
|
}
|
|
321
|
+
return value;
|
|
322
322
|
}
|
|
323
323
|
function eventHandler(e) {
|
|
324
324
|
const key = `$$${e.type}`;
|
package/web/dist/web.js
CHANGED
|
@@ -211,8 +211,7 @@ function assign(node, props, isSVG, skipChildren, prevProps = {}) {
|
|
|
211
211
|
continue;
|
|
212
212
|
}
|
|
213
213
|
const value = props[prop];
|
|
214
|
-
assignProp(node, prop, value, prevProps[prop], isSVG);
|
|
215
|
-
prevProps[prop] = value;
|
|
214
|
+
prevProps[prop] = assignProp(node, prop, value, prevProps[prop], isSVG);
|
|
216
215
|
}
|
|
217
216
|
}
|
|
218
217
|
function hydrate(code, element) {
|
|
@@ -298,7 +297,7 @@ function assignProp(node, prop, value, prev, isSVG) {
|
|
|
298
297
|
let isCE, isProp, isChildProp;
|
|
299
298
|
if (prop === "style") return style(node, value, prev);
|
|
300
299
|
if (prop === "classList") return classList(node, value, prev);
|
|
301
|
-
if (value === prev) return;
|
|
300
|
+
if (value === prev) return prev;
|
|
302
301
|
if (prop === "ref") {
|
|
303
302
|
value(node);
|
|
304
303
|
} else if (prop.slice(0, 3) === "on:") {
|
|
@@ -316,6 +315,7 @@ function assignProp(node, prop, value, prev, isSVG) {
|
|
|
316
315
|
const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
|
|
317
316
|
if (ns) setAttributeNS(node, ns, prop, value);else setAttribute(node, Aliases[prop] || prop, value);
|
|
318
317
|
}
|
|
318
|
+
return value;
|
|
319
319
|
}
|
|
320
320
|
function eventHandler(e) {
|
|
321
321
|
const key = `$$${e.type}`;
|