solid-js 1.4.0 → 1.4.1
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/package.json +4 -4
- package/store/dist/dev.cjs +2 -2
- package/store/dist/dev.js +2 -2
- package/store/dist/store.cjs +2 -2
- package/store/dist/store.js +2 -2
- package/types/render/component.d.ts +1 -1
- package/web/dist/server.cjs +1 -1
- package/web/dist/server.js +1 -1
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.4.
|
|
4
|
+
"version": "1.4.1",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://solidjs.com",
|
|
@@ -114,8 +114,8 @@
|
|
|
114
114
|
"require": "./h/dist/h.cjs"
|
|
115
115
|
},
|
|
116
116
|
"./h/jsx-runtime": {
|
|
117
|
-
"import": "./h/dist/jsx.js",
|
|
118
|
-
"require": "./h/dist/jsx.cjs"
|
|
117
|
+
"import": "./h/jsx-runtime/dist/jsx.js",
|
|
118
|
+
"require": "./h/jsx-runtime/dist/jsx.cjs"
|
|
119
119
|
},
|
|
120
120
|
"./h/dist/*": "./h/dist/*",
|
|
121
121
|
"./html": {
|
|
@@ -151,5 +151,5 @@
|
|
|
151
151
|
"compiler",
|
|
152
152
|
"performance"
|
|
153
153
|
],
|
|
154
|
-
"gitHead": "
|
|
154
|
+
"gitHead": "be6623d10d11fb28743a074c31e785c18e95bd25"
|
|
155
155
|
}
|
package/store/dist/dev.cjs
CHANGED
|
@@ -227,8 +227,8 @@ const proxyTraps = {
|
|
|
227
227
|
if (property === $NODE || property === "__proto__") return value;
|
|
228
228
|
if (!tracked) {
|
|
229
229
|
const desc = Object.getOwnPropertyDescriptor(target, property);
|
|
230
|
-
const isFunction = typeof value
|
|
231
|
-
if (solidJs.getListener() && (isFunction || target.hasOwnProperty(property)) && !(desc && desc.get)) value = getDataNode(nodes, property, value)();else if (value != null && isFunction && value === Array.prototype[property]) {
|
|
230
|
+
const isFunction = typeof value === "function";
|
|
231
|
+
if (solidJs.getListener() && (!isFunction || target.hasOwnProperty(property)) && !(desc && desc.get)) value = getDataNode(nodes, property, value)();else if (value != null && isFunction && value === Array.prototype[property]) {
|
|
232
232
|
return (...args) => solidJs.batch(() => Array.prototype[property].apply(receiver, args));
|
|
233
233
|
}
|
|
234
234
|
}
|
package/store/dist/dev.js
CHANGED
|
@@ -223,8 +223,8 @@ const proxyTraps = {
|
|
|
223
223
|
if (property === $NODE || property === "__proto__") return value;
|
|
224
224
|
if (!tracked) {
|
|
225
225
|
const desc = Object.getOwnPropertyDescriptor(target, property);
|
|
226
|
-
const isFunction = typeof value
|
|
227
|
-
if (getListener() && (isFunction || target.hasOwnProperty(property)) && !(desc && desc.get)) value = getDataNode(nodes, property, value)();else if (value != null && isFunction && value === Array.prototype[property]) {
|
|
226
|
+
const isFunction = typeof value === "function";
|
|
227
|
+
if (getListener() && (!isFunction || target.hasOwnProperty(property)) && !(desc && desc.get)) value = getDataNode(nodes, property, value)();else if (value != null && isFunction && value === Array.prototype[property]) {
|
|
228
228
|
return (...args) => batch(() => Array.prototype[property].apply(receiver, args));
|
|
229
229
|
}
|
|
230
230
|
}
|
package/store/dist/store.cjs
CHANGED
|
@@ -215,8 +215,8 @@ const proxyTraps = {
|
|
|
215
215
|
if (property === $NODE || property === "__proto__") return value;
|
|
216
216
|
if (!tracked) {
|
|
217
217
|
const desc = Object.getOwnPropertyDescriptor(target, property);
|
|
218
|
-
const isFunction = typeof value
|
|
219
|
-
if (solidJs.getListener() && (isFunction || target.hasOwnProperty(property)) && !(desc && desc.get)) value = getDataNode(nodes, property, value)();else if (value != null && isFunction && value === Array.prototype[property]) {
|
|
218
|
+
const isFunction = typeof value === "function";
|
|
219
|
+
if (solidJs.getListener() && (!isFunction || target.hasOwnProperty(property)) && !(desc && desc.get)) value = getDataNode(nodes, property, value)();else if (value != null && isFunction && value === Array.prototype[property]) {
|
|
220
220
|
return (...args) => solidJs.batch(() => Array.prototype[property].apply(receiver, args));
|
|
221
221
|
}
|
|
222
222
|
}
|
package/store/dist/store.js
CHANGED
|
@@ -211,8 +211,8 @@ const proxyTraps = {
|
|
|
211
211
|
if (property === $NODE || property === "__proto__") return value;
|
|
212
212
|
if (!tracked) {
|
|
213
213
|
const desc = Object.getOwnPropertyDescriptor(target, property);
|
|
214
|
-
const isFunction = typeof value
|
|
215
|
-
if (getListener() && (isFunction || target.hasOwnProperty(property)) && !(desc && desc.get)) value = getDataNode(nodes, property, value)();else if (value != null && isFunction && value === Array.prototype[property]) {
|
|
214
|
+
const isFunction = typeof value === "function";
|
|
215
|
+
if (getListener() && (!isFunction || target.hasOwnProperty(property)) && !(desc && desc.get)) value = getDataNode(nodes, property, value)();else if (value != null && isFunction && value === Array.prototype[property]) {
|
|
216
216
|
return (...args) => batch(() => Array.prototype[property].apply(receiver, args));
|
|
217
217
|
}
|
|
218
218
|
}
|
|
@@ -84,7 +84,7 @@ export declare type MergeProps<T extends unknown[], Curr = {}> = T extends [infe
|
|
|
84
84
|
export declare function mergeProps<T extends [unknown, ...unknown[]]>(...sources: T): MergeProps<T>;
|
|
85
85
|
export declare type SplitProps<T, K extends (readonly (keyof T)[])[]> = [
|
|
86
86
|
...{
|
|
87
|
-
[P in keyof K]: P extends `${number}` ? Pick<T, Extract<K[P], readonly (keyof T)[]>[number]> :
|
|
87
|
+
[P in keyof K]: P extends `${number}` ? Pick<T, Extract<K[P], readonly (keyof T)[]>[number]> : never;
|
|
88
88
|
},
|
|
89
89
|
Omit<T, K[number][number]>
|
|
90
90
|
];
|
package/web/dist/server.cjs
CHANGED
|
@@ -269,7 +269,7 @@ function renderToStringAsync(code, options = {}) {
|
|
|
269
269
|
nonce,
|
|
270
270
|
writeResource(id, p, error) {
|
|
271
271
|
if (error) return scripts += `_$HY.set("${id}", ${serializeError(p)});`;
|
|
272
|
-
if (!p || typeof p !== "object" || !("then" in p)) return
|
|
272
|
+
if (!p || typeof p !== "object" || !("then" in p)) return scripts += serializeSet(dedupe, id, p) + ";";
|
|
273
273
|
p.then(d => scripts += serializeSet(dedupe, id, d) + ";").catch(() => scripts += `_$HY.set("${id}", {});`);
|
|
274
274
|
}
|
|
275
275
|
};
|
package/web/dist/server.js
CHANGED
|
@@ -266,7 +266,7 @@ function renderToStringAsync(code, options = {}) {
|
|
|
266
266
|
nonce,
|
|
267
267
|
writeResource(id, p, error) {
|
|
268
268
|
if (error) return scripts += `_$HY.set("${id}", ${serializeError(p)});`;
|
|
269
|
-
if (!p || typeof p !== "object" || !("then" in p)) return
|
|
269
|
+
if (!p || typeof p !== "object" || !("then" in p)) return scripts += serializeSet(dedupe, id, p) + ";";
|
|
270
270
|
p.then(d => scripts += serializeSet(dedupe, id, d) + ";").catch(() => scripts += `_$HY.set("${id}", {});`);
|
|
271
271
|
}
|
|
272
272
|
};
|