solid-js 1.9.5 → 1.9.7

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.
Files changed (51) hide show
  1. package/dist/dev.cjs +21 -10
  2. package/dist/dev.js +327 -557
  3. package/dist/server.js +81 -178
  4. package/dist/solid.cjs +21 -10
  5. package/dist/solid.js +283 -486
  6. package/h/dist/h.js +9 -40
  7. package/h/jsx-runtime/dist/jsx.js +1 -1
  8. package/h/jsx-runtime/types/index.d.ts +8 -11
  9. package/h/jsx-runtime/types/jsx.d.ts +2947 -1021
  10. package/h/types/hyperscript.d.ts +11 -11
  11. package/html/dist/html.cjs +2 -2
  12. package/html/dist/html.js +96 -221
  13. package/html/types/lit.d.ts +33 -52
  14. package/package.json +3 -3
  15. package/store/dist/dev.js +43 -123
  16. package/store/dist/server.js +8 -20
  17. package/store/dist/store.js +40 -114
  18. package/store/types/index.d.ts +7 -21
  19. package/store/types/modifiers.d.ts +3 -6
  20. package/store/types/mutable.d.ts +2 -5
  21. package/store/types/server.d.ts +5 -25
  22. package/store/types/store.d.ts +61 -218
  23. package/types/index.d.ts +11 -78
  24. package/types/jsx.d.ts +2091 -278
  25. package/types/reactive/array.d.ts +4 -12
  26. package/types/reactive/observable.d.ts +16 -22
  27. package/types/reactive/scheduler.d.ts +6 -9
  28. package/types/reactive/signal.d.ts +145 -236
  29. package/types/render/Suspense.d.ts +5 -5
  30. package/types/render/component.d.ts +37 -73
  31. package/types/render/flow.d.ts +31 -43
  32. package/types/render/hydration.d.ts +15 -15
  33. package/types/server/index.d.ts +2 -57
  34. package/types/server/reactive.d.ts +45 -76
  35. package/types/server/rendering.d.ts +98 -169
  36. package/universal/dist/dev.cjs +3 -1
  37. package/universal/dist/dev.js +15 -29
  38. package/universal/dist/universal.cjs +3 -1
  39. package/universal/dist/universal.js +15 -29
  40. package/universal/types/index.d.ts +1 -3
  41. package/universal/types/universal.d.ts +1 -0
  42. package/web/dist/dev.cjs +8 -5
  43. package/web/dist/dev.js +96 -643
  44. package/web/dist/server.cjs +9 -6
  45. package/web/dist/server.js +116 -646
  46. package/web/dist/web.cjs +8 -5
  47. package/web/dist/web.js +94 -631
  48. package/web/storage/dist/storage.js +3 -3
  49. package/web/types/core.d.ts +2 -10
  50. package/web/types/index.d.ts +11 -31
  51. package/web/types/server-mock.d.ts +32 -47
@@ -6,7 +6,7 @@ var web = require('seroval-plugins/web');
6
6
 
7
7
  const booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
8
8
  const BooleanAttributes = /*#__PURE__*/new Set(booleans);
9
- const Properties = /*#__PURE__*/new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
9
+ const Properties = /*#__PURE__*/new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
10
10
  const ChildProperties = /*#__PURE__*/new Set(["innerHTML", "textContent", "innerText", "children"]);
11
11
  const Aliases = /*#__PURE__*/Object.assign(Object.create(null), {
12
12
  className: "class",
@@ -14,6 +14,10 @@ const Aliases = /*#__PURE__*/Object.assign(Object.create(null), {
14
14
  });
15
15
  const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
16
16
  class: "className",
17
+ novalidate: {
18
+ $: "noValidate",
19
+ FORM: 1
20
+ },
17
21
  formnovalidate: {
18
22
  $: "formNoValidate",
19
23
  BUTTON: 1,
@@ -53,6 +57,8 @@ const SVGNamespace = {
53
57
  };
54
58
  const DOMElements = /*#__PURE__*/new Set(["html", "base", "head", "link", "meta", "style", "title", "body", "address", "article", "aside", "footer", "header", "main", "nav", "section", "body", "blockquote", "dd", "div", "dl", "dt", "figcaption", "figure", "hr", "li", "ol", "p", "pre", "ul", "a", "abbr", "b", "bdi", "bdo", "br", "cite", "code", "data", "dfn", "em", "i", "kbd", "mark", "q", "rp", "rt", "ruby", "s", "samp", "small", "span", "strong", "sub", "sup", "time", "u", "var", "wbr", "area", "audio", "img", "map", "track", "video", "embed", "iframe", "object", "param", "picture", "portal", "source", "svg", "math", "canvas", "noscript", "script", "del", "ins", "caption", "col", "colgroup", "table", "tbody", "td", "tfoot", "th", "thead", "tr", "button", "datalist", "fieldset", "form", "input", "label", "legend", "meter", "optgroup", "option", "output", "progress", "select", "textarea", "details", "dialog", "menu", "summary", "details", "slot", "template", "acronym", "applet", "basefont", "bgsound", "big", "blink", "center", "content", "dir", "font", "frame", "frameset", "hgroup", "image", "keygen", "marquee", "menuitem", "nobr", "noembed", "noframes", "plaintext", "rb", "rtc", "shadow", "spacer", "strike", "tt", "xmp", "a", "abbr", "acronym", "address", "applet", "area", "article", "aside", "audio", "b", "base", "basefont", "bdi", "bdo", "bgsound", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "font", "footer", "form", "frame", "frameset", "head", "header", "hgroup", "hr", "html", "i", "iframe", "image", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "nobr", "noembed", "noframes", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "plaintext", "portal", "pre", "progress", "q", "rb", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "tt", "u", "ul", "var", "video", "wbr", "xmp", "input", "h1", "h2", "h3", "h4", "h5", "h6"]);
55
59
 
60
+ const memo = fn => solidJs.createMemo(() => fn());
61
+
56
62
  const ES2017FLAG = seroval.Feature.AggregateError
57
63
  | seroval.Feature.BigIntTypedArray;
58
64
  const GLOBAL_IDENTIFIER = '_$HY.r';
@@ -64,7 +70,7 @@ function createSerializer({
64
70
  }) {
65
71
  return new seroval.Serializer({
66
72
  scopeId,
67
- plugins: [
73
+ plugins: [web.AbortSignalPlugin,
68
74
  web.CustomEventPlugin, web.DOMExceptionPlugin, web.EventPlugin,
69
75
  web.FormDataPlugin, web.HeadersPlugin, web.ReadableStreamPlugin, web.RequestPlugin, web.ResponsePlugin, web.URLSearchParamsPlugin, web.URLPlugin],
70
76
  globalIdentifier: GLOBAL_IDENTIFIER,
@@ -729,10 +735,6 @@ Object.defineProperty(exports, "getOwner", {
729
735
  enumerable: true,
730
736
  get: function () { return solidJs.getOwner; }
731
737
  });
732
- Object.defineProperty(exports, "memo", {
733
- enumerable: true,
734
- get: function () { return solidJs.createMemo; }
735
- });
736
738
  Object.defineProperty(exports, "mergeProps", {
737
739
  enumerable: true,
738
740
  get: function () { return solidJs.mergeProps; }
@@ -775,6 +777,7 @@ exports.hydrate = notSup;
775
777
  exports.insert = notSup;
776
778
  exports.isDev = isDev;
777
779
  exports.isServer = isServer;
780
+ exports.memo = memo;
778
781
  exports.pipeToNodeWritable = pipeToNodeWritable;
779
782
  exports.pipeToWritable = pipeToWritable;
780
783
  exports.render = notSup;