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 CHANGED
@@ -516,6 +516,7 @@ function startTransition(fn) {
516
516
  t.running = true;
517
517
  }
518
518
  batch(fn);
519
+ Listener = Owner = null;
519
520
  return t ? t.done : undefined;
520
521
  });
521
522
  }
package/dist/dev.js CHANGED
@@ -512,6 +512,7 @@ function startTransition(fn) {
512
512
  t.running = true;
513
513
  }
514
514
  batch(fn);
515
+ Listener = Owner = null;
515
516
  return t ? t.done : undefined;
516
517
  });
517
518
  }
package/dist/solid.cjs CHANGED
@@ -513,6 +513,7 @@ function startTransition(fn) {
513
513
  t.running = true;
514
514
  }
515
515
  batch(fn);
516
+ Listener = Owner = null;
516
517
  return t ? t.done : undefined;
517
518
  });
518
519
  }
package/dist/solid.js CHANGED
@@ -509,6 +509,7 @@ function startTransition(fn) {
509
509
  t.running = true;
510
510
  }
511
511
  batch(fn);
512
+ Listener = Owner = null;
512
513
  return t ? t.done : undefined;
513
514
  });
514
515
  }
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 (typeof d[k].value === "function" && !d[k].value.length) r.dynamicProperty(props, k);
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 (typeof d[k].value === "function" && !d[k].value.length) r.dynamicProperty(props, k);
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",
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-standard.d.ts ./h/jsx-runtime/src/jsx.d.ts && rollup -c",
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": "c569a8d57962e99a906ed170716055ac6fe929ef"
154
+ "gitHead": "6ada354ebee1245a1d060af8a11047d50e2845e1"
155
155
  }