@solidjs/babel-plugin 2.0.0-rc.2 → 2.0.0-rc.3

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.
@@ -7,4 +7,4 @@ src/shared/transform.ts -> src/ssr/element.ts -> src/shared/transform.ts
7
7
  src/shared/transform.ts -> src/universal/element.ts -> src/shared/transform.ts
8
8
  src/shared/transform.ts -> src/shared/component.ts -> src/shared/transform.ts
9
9
  src/shared/transform.ts -> src/shared/fragment.ts -> src/shared/transform.ts
10
- created index.js in 7.7s
10
+ created index.js in 2.1s
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
1
  # @solidjs/babel-plugin
2
2
 
3
+ ## 2.0.0-rc.3
4
+
5
+ ### Minor Changes
6
+
7
+ - 89a0531: Absorb the 0.50 expressions snapshot into this repo: lift compilers as `@solidjs/babel-plugin` and `@solidjs/compiler`, dump runtimes into `@solidjs/web` / `h` / `html` / `universal`. Origin: ryansolid/dom-expressions@e97e4290 (0.50.0-next.44).
8
+ - 89a0531: Collapse the expressions dump: drop the rxcore seam, flatten runtimes into package `src/`, delete `babel-preset-solid`, and publish compiler natives as `@solidjs/compiler-*`.
9
+
10
+ ### Patch Changes
11
+
12
+ - 47a797e: Drop leftover DOM Expressions loader fallbacks and reframe the compiler and Babel plugin as Solid 2.0 packages. Node `transform()` now defaults `moduleName` to `@solidjs/web` and `builtIns` to the Solid control-flow set, matching `@solidjs/babel-plugin`. SSR leaves a sole component child unescaped (it is a value; the callee's insert sites escape) and only HTML-escapes mixed/fragment children and element holes. Local native builds remain usable when an in-repo platform-package stub has not been populated yet.
13
+ - 0d2810a: Fix Babel and native compiler lowering divergences around nested content, custom-element ownership, static attributes, namespaces, and conditional evaluation order.
14
+
3
15
  The Babel compiler implementation joined the SolidJS 2.0 monorepo at `2.0.0-rc.2` under the temporary `@solidjs/babel-plugin-jsx` name. It adopted this syntax-neutral package name before the integration merged. Earlier releases lived in [DOM Expressions](https://github.com/ryansolid/dom-expressions).
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solidjs/babel-plugin",
3
3
  "description": "Babel compiler plugin for Solid templates",
4
- "version": "2.0.0-rc.2",
4
+ "version": "2.0.0-rc.3",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -1,122 +0,0 @@
1
- $ pnpm run typecheck && pnpm run build && vitest run
2
- $ tsc -p tsconfig.json --noEmit
3
- $ rollup -c --bundleConfigAsCjs
4
- 
5
- src/index.ts → index.js...
6
- (!) Circular dependencies
7
- src/shared/transform.ts -> src/dom/element.ts -> src/shared/transform.ts
8
- src/shared/transform.ts -> src/ssr/element.ts -> src/shared/transform.ts
9
- src/shared/transform.ts -> src/universal/element.ts -> src/shared/transform.ts
10
- src/shared/transform.ts -> src/shared/component.ts -> src/shared/transform.ts
11
- src/shared/transform.ts -> src/shared/fragment.ts -> src/shared/transform.ts
12
- created index.js in 1.6s
13
-
14
- RUN v4.1.6 /Users/ryancarniato/Development/solid/packages/babel-plugin
15
-
16
- stdout | test/dom.spec.js > Convert JSX fixtures > attributeExpressions
17
-
18
- SyntaxError: "_hk" attribute found in template, which could potentially cause hydration miss-matches. Usually happens when copying and pasting Solid SSRed code into JSX. Please remove the attribute from the JSX.
19
-
20
- /Users/ryancarniato/Development/solid/packages/babel-plugin/test/__dom_fixtures__/attributeExpressions/code.js
21
-
22
- 388 | }
23
- 389 |
24
- > 390 | const template89 = <div _hk="should warn _hk is present on template" />;
25
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
- 391 |
27
- 392 | const template90 = <div style={{}} />;
28
- 393 |
29
-
30
- stdout | test/dynamic-dom.spec.js > Convert JSX fixtures > attributeExpressions
31
-
32
- SyntaxError: "_hk" attribute found in template, which could potentially cause hydration miss-matches. Usually happens when copying and pasting Solid SSRed code into JSX. Please remove the attribute from the JSX.
33
-
34
- /Users/ryancarniato/Development/solid/packages/babel-plugin/test/__dom_fixtures__/attributeExpressions/code.js
35
-
36
- 388 | }
37
- 389 |
38
- > 390 | const template89 = <div _hk="should warn _hk is present on template" />;
39
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40
- 391 |
41
- 392 | const template90 = <div style={{}} />;
42
- 393 |
43
-
44
- ✓ test/universal.spec.js (8 tests) 2008ms
45
- ✓ attributeExpressions 850ms
46
- ✓ components 324ms
47
- ✓ conditionalExpressions 433ms
48
- ✓ test/dynamic-universal.spec.js (8 tests) 1975ms
49
- ✓ attributeExpressions 883ms
50
- ✓ components 313ms
51
- ✓ conditionalExpressions 369ms
52
- ✓ test/ssr-hydratable.spec.js (13 tests) 2577ms
53
- ✓ SVG 719ms
54
- ✓ attributeExpressions 755ms
55
- ✓ conditionalExpressions 434ms
56
- ✓ test/dom.spec.js (16 tests) 2553ms
57
- ✓ SVG 668ms
58
- ✓ attributeExpressions 641ms
59
- ✓ conditionalExpressions 314ms
60
- ✓ test/dom-hydratable.spec.js (15 tests) 2646ms
61
- ✓ SVG 755ms
62
- ✓ attributeExpressions 697ms
63
- ✓ components 380ms
64
- ✓ conditionalExpressions 328ms
65
- ✓ test/ssr.spec.js (13 tests) 2608ms
66
- ✓ SVG 640ms
67
- ✓ attributeExpressions 697ms
68
- ✓ components 330ms
69
- ✓ conditionalExpressions 387ms
70
- ✓ test/dynamic.spec.js (12 tests) 2745ms
71
- ✓ SVG 738ms
72
- ✓ attributeExpressions 759ms
73
- ✓ components 353ms
74
- ✓ conditionalExpressions 369ms
75
- ✓ test/dynamic-hydratable.spec.js (15 tests) 2765ms
76
- ✓ SVG 777ms
77
- ✓ attributeExpressions 825ms
78
- ✓ test/dynamic-dom.spec.js (16 tests) 3030ms
79
- ✓ SVG 691ms
80
- ✓ attributeExpressions 985ms
81
- ✓ components 328ms
82
- stdout | test/dom-compatible.spec.js > Convert JSX fixtures > attributeExpressions
83
-
84
- SyntaxError: "_hk" attribute found in template, which could potentially cause hydration miss-matches. Usually happens when copying and pasting Solid SSRed code into JSX. Please remove the attribute from the JSX.
85
-
86
- /Users/ryancarniato/Development/solid/packages/babel-plugin/test/__dom_compatible_fixtures__/attributeExpressions/code.js
87
-
88
- 382 | }
89
- 383 |
90
- > 384 | const template89 = <div _hk="should warn _hk is present on template" />;
91
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92
- 385 |
93
- 386 | const template90 = <div style={{}} />;
94
- 387 |
95
-
96
- ✓ test/rowproof.spec.js (15 tests) 537ms
97
- ✓ stamps a plain member-read row 323ms
98
- ✓ test/numberedId.spec.js (1 test) 709ms
99
- ✓ handles >= 490 merged dynamic attributes without emitting reserved-word bindings 707ms
100
- ✓ test/dom-no-inline-styles.spec.js (1 test) 744ms
101
- ✓ attributeExpressions 733ms
102
- ✓ test/ssr-server-components.spec.js (1 test) 677ms
103
- ✓ behaviorClaims 675ms
104
- ✓ test/dom-wrapperless.spec.js (3 tests) 1208ms
105
- ✓ components 931ms
106
- ✓ test/dom-hydratable-dev.spec.js (2 tests) 830ms
107
- ✓ simpleElements 760ms
108
- ✓ test/dom-omit-attribute-spacing.spec.js (1 test) 649ms
109
- ✓ SVG 647ms
110
- ✓ test/dom-compatible.spec.js (3 tests) 1367ms
111
- ✓ SVG 511ms
112
- ✓ attributeExpressions 792ms
113
- ✓ test/dynamic-wrapperless.spec.js (3 tests) 1046ms
114
- ✓ components 894ms
115
- ✓ test/defaults.spec.js (3 tests) 138ms
116
- ✓ test/dom-require-import-source.spec.js (4 tests) 235ms
117
-
118
- Test Files 20 passed (20)
119
- Tests 153 passed (153)
120
- Start at 15:50:06
121
- Duration 5.68s (transform 464ms, setup 0ms, import 8.99s, tests 31.05s, environment 4ms)
122
-
@@ -1 +0,0 @@
1
- $ tsc -p tsconfig.json --noEmit