solid-js 1.9.4 → 1.9.6

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.
@@ -64,7 +64,7 @@ function parseTag(tag) {
64
64
  }
65
65
  function pushTextNode(list, html, start) {
66
66
  const end = html.indexOf('<', start);
67
- const content = html.slice(start, end === -1 ? void 0 : end);
67
+ const content = html.slice(start, end === -1 ? undefined : end);
68
68
  if (!/^\s*$/.test(content)) {
69
69
  list.push({
70
70
  type: 'text',
@@ -83,7 +83,7 @@ function pushCommentNode(list, tag) {
83
83
  }
84
84
  function parse(html) {
85
85
  const result = [];
86
- let current = void 0;
86
+ let current = undefined;
87
87
  let level = -1;
88
88
  const arr = [];
89
89
  const byTag = {};
@@ -92,7 +92,7 @@ function parse(html) {
92
92
  const isComment = tag.slice(0, 4) === '<!--';
93
93
  const start = index + tag.length;
94
94
  const nextChar = html.charAt(start);
95
- let parent = void 0;
95
+ let parent = undefined;
96
96
  if (isOpen && !isComment) {
97
97
  level++;
98
98
  current = parseTag(tag);
@@ -358,8 +358,8 @@ function createHTML(r, {
358
358
  propGroups.push(`exprs[${options.counter++}]`);
359
359
  propGroups.push(props = []);
360
360
  } else if (value === "###") {
361
- props.push(`${name}: exprs[${options.counter++}]`);
362
- } else props.push(`${name}: "${value}"`);
361
+ props.push(`"${name}": exprs[${options.counter++}]`);
362
+ } else props.push(`"${name}": "${value}"`);
363
363
  } else if (type === 'directive') {
364
364
  const tag = `_$el${uuid++}`;
365
365
  const topDecl = !options.decl.length;
package/html/dist/html.js CHANGED
@@ -84,7 +84,7 @@ function parseTag(tag) {
84
84
  }
85
85
  function pushTextNode(list, html, start) {
86
86
  const end = html.indexOf("<", start);
87
- const content = html.slice(start, end === -1 ? void 0 : end);
87
+ const content = html.slice(start, end === -1 ? undefined : end);
88
88
  if (!/^\s*$/.test(content)) {
89
89
  list.push({
90
90
  type: "text",
@@ -103,7 +103,7 @@ function pushCommentNode(list, tag) {
103
103
  }
104
104
  function parse(html) {
105
105
  const result = [];
106
- let current = void 0;
106
+ let current = undefined;
107
107
  let level = -1;
108
108
  const arr = [];
109
109
  const byTag = {};
@@ -112,7 +112,7 @@ function parse(html) {
112
112
  const isComment = tag.slice(0, 4) === "<!--";
113
113
  const start = index + tag.length;
114
114
  const nextChar = html.charAt(start);
115
- let parent = void 0;
115
+ let parent = undefined;
116
116
  if (isOpen && !isComment) {
117
117
  level++;
118
118
  current = parseTag(tag);
@@ -432,8 +432,8 @@ function createHTML(
432
432
  propGroups.push(`exprs[${options.counter++}]`);
433
433
  propGroups.push((props = []));
434
434
  } else if (value === "###") {
435
- props.push(`${name}: exprs[${options.counter++}]`);
436
- } else props.push(`${name}: "${value}"`);
435
+ props.push(`"${name}": exprs[${options.counter++}]`);
436
+ } else props.push(`"${name}": "${value}"`);
437
437
  } else if (type === "directive") {
438
438
  const tag = `_$el${uuid++}`;
439
439
  const topDecl = !options.decl.length;
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.9.4",
4
+ "version": "1.9.6",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
7
7
  "homepage": "https://solidjs.com",
@@ -1,3 +1,4 @@
1
+ export declare const IS_DEV: string | boolean;
1
2
  export declare const $RAW: unique symbol,
2
3
  $NODE: unique symbol,
3
4
  $HAS: unique symbol,
package/types/index.d.ts CHANGED
@@ -77,6 +77,9 @@ export declare const DEV:
77
77
  afterCreateSignal:
78
78
  | ((signal: import("./reactive/signal.js").SignalState<any>) => void)
79
79
  | null;
80
+ afterRegisterGraph:
81
+ | ((sourceMapValue: import("./reactive/signal.js").SourceMapValue) => void)
82
+ | null;
80
83
  };
81
84
  readonly writeSignal: typeof writeSignal;
82
85
  readonly registerGraph: typeof registerGraph;