solid-js 1.4.0-beta.4 → 1.4.0-beta.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 +1 -0
- package/dist/dev.js +1 -0
- package/dist/solid.cjs +1 -0
- package/dist/solid.js +1 -0
- package/h/dist/h.cjs +10 -1
- package/h/dist/h.js +10 -1
- package/package.json +3 -3
package/dist/dev.cjs
CHANGED
package/dist/dev.js
CHANGED
package/dist/solid.cjs
CHANGED
package/dist/solid.js
CHANGED
package/h/dist/h.cjs
CHANGED
|
@@ -46,7 +46,16 @@ function createHyperScript(r) {
|
|
|
46
46
|
}
|
|
47
47
|
const d = Object.getOwnPropertyDescriptors(props);
|
|
48
48
|
for (const k in d) {
|
|
49
|
-
if (
|
|
49
|
+
if (Array.isArray(d[k].value)) {
|
|
50
|
+
const list = d[k].value;
|
|
51
|
+
props[k] = () => {
|
|
52
|
+
for (let i = 0; i < list.length; i++) {
|
|
53
|
+
while (list[i][$ELEMENT]) list[i] = list[i]();
|
|
54
|
+
}
|
|
55
|
+
return list;
|
|
56
|
+
};
|
|
57
|
+
r.dynamicProperty(props, k);
|
|
58
|
+
} else if (typeof d[k].value === "function" && !d[k].value.length) r.dynamicProperty(props, k);
|
|
50
59
|
}
|
|
51
60
|
e = r.createComponent(l, props);
|
|
52
61
|
args = [];
|
package/h/dist/h.js
CHANGED
|
@@ -44,7 +44,16 @@ function createHyperScript(r) {
|
|
|
44
44
|
}
|
|
45
45
|
const d = Object.getOwnPropertyDescriptors(props);
|
|
46
46
|
for (const k in d) {
|
|
47
|
-
if (
|
|
47
|
+
if (Array.isArray(d[k].value)) {
|
|
48
|
+
const list = d[k].value;
|
|
49
|
+
props[k] = () => {
|
|
50
|
+
for (let i = 0; i < list.length; i++) {
|
|
51
|
+
while (list[i][$ELEMENT]) list[i] = list[i]();
|
|
52
|
+
}
|
|
53
|
+
return list;
|
|
54
|
+
};
|
|
55
|
+
r.dynamicProperty(props, k);
|
|
56
|
+
} else if (typeof d[k].value === "function" && !d[k].value.length) r.dynamicProperty(props, k);
|
|
48
57
|
}
|
|
49
58
|
e = r.createComponent(l, props);
|
|
50
59
|
args = [];
|
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.0-beta.
|
|
4
|
+
"version": "1.4.0-beta.5",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://solidjs.com",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"clean": "rimraf dist/ types/ coverage/ store/dist/ store/types/ web/dist/ web/types/ h/dist/ h/types/ h/jsx-runtime/dist h/jsx-runtime/types html/dist/ html/types/",
|
|
130
130
|
"build": "npm-run-all -cnl build:*",
|
|
131
131
|
"build:link": "symlink-dir . node_modules/solid-js",
|
|
132
|
-
"build:js": "ncp ../../node_modules/dom-expressions/src/jsx.d.ts ./src/jsx.d.ts && ncp ../../node_modules/dom-expressions/src/jsx-
|
|
132
|
+
"build:js": "ncp ../../node_modules/dom-expressions/src/jsx.d.ts ./src/jsx.d.ts && ncp ../../node_modules/dom-expressions/src/jsx-h.d.ts ./h/jsx-runtime/src/jsx.d.ts && rollup -c",
|
|
133
133
|
"build:types": "tsc --project ./tsconfig.build.json",
|
|
134
134
|
"build:types-store": "tsc --project ./store/tsconfig.build.json && tsconfig-replace-paths --project ./store/tsconfig.types.json",
|
|
135
135
|
"build:types-web": "tsc --project ./web/tsconfig.build.json && tsconfig-replace-paths --project ./web/tsconfig.types.json",
|
|
@@ -151,5 +151,5 @@
|
|
|
151
151
|
"compiler",
|
|
152
152
|
"performance"
|
|
153
153
|
],
|
|
154
|
-
"gitHead": "
|
|
154
|
+
"gitHead": "6ada354ebee1245a1d060af8a11047d50e2845e1"
|
|
155
155
|
}
|