@solidjs/compiler 2.0.0-rc.6 → 2.0.0-rc.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 (3) hide show
  1. package/index.js +1 -17
  2. package/package.json +7 -7
  3. package/types.d.ts +0 -9
package/index.js CHANGED
@@ -278,10 +278,7 @@ const nativeOptionKeys = new Set([
278
278
  "omitLastClosingTag",
279
279
  "serverComponents",
280
280
  "builtIns",
281
- "renderers",
282
- // Patch-mode dual driver (stage 2, dormant by default): accepted so an
283
- // explicit opt-in reaches the native core (napi maps to patch_driver).
284
- "patchDriver"
281
+ "renderers"
285
282
  ]);
286
283
 
287
284
  function validateOptions(code, options) {
@@ -324,19 +321,6 @@ function validateOptions(code, options) {
324
321
  nativeOptions.validate = value;
325
322
  continue;
326
323
  }
327
- if (key === "patchDriver") {
328
- if (typeof value !== "string" && typeof value !== "boolean") {
329
- throw new TypeError(
330
- "@solidjs/compiler `patchDriver` option must be a string import name or boolean"
331
- );
332
- }
333
- // The napi wrapper mapping collapses boolean `true` into
334
- // Wrapper::Default, which patch_driver treats as disabled (dormant
335
- // default). Normalize the boolean opt-in to the default import name so
336
- // it survives the native mapping.
337
- nativeOptions.patchDriver = value === true ? "patchDriver" : value;
338
- continue;
339
- }
340
324
  if (nativeOptionKeys.has(key)) {
341
325
  if (key === "renderers") validateRenderers(value);
342
326
  nativeOptions[key] = value;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solidjs/compiler",
3
3
  "description": "Solid's native Oxc JSX compiler",
4
- "version": "2.0.0-rc.6",
4
+ "version": "2.0.0-rc.7",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -62,11 +62,11 @@
62
62
  "emnapi": "^1.11.3"
63
63
  },
64
64
  "optionalDependencies": {
65
- "@solidjs/compiler-darwin-x64": "2.0.0-rc.6",
66
- "@solidjs/compiler-darwin-arm64": "2.0.0-rc.6",
67
- "@solidjs/compiler-linux-x64-gnu": "2.0.0-rc.6",
68
- "@solidjs/compiler-linux-arm64-gnu": "2.0.0-rc.6",
69
- "@solidjs/compiler-win32-x64-msvc": "2.0.0-rc.6",
70
- "@solidjs/compiler-wasm32-wasi": "2.0.0-rc.6"
65
+ "@solidjs/compiler-darwin-x64": "2.0.0-rc.7",
66
+ "@solidjs/compiler-darwin-arm64": "2.0.0-rc.7",
67
+ "@solidjs/compiler-linux-x64-gnu": "2.0.0-rc.7",
68
+ "@solidjs/compiler-linux-arm64-gnu": "2.0.0-rc.7",
69
+ "@solidjs/compiler-win32-x64-msvc": "2.0.0-rc.7",
70
+ "@solidjs/compiler-wasm32-wasi": "2.0.0-rc.7"
71
71
  }
72
72
  }
package/types.d.ts CHANGED
@@ -27,15 +27,6 @@ export interface TransformOptions {
27
27
  omitNestedClosingTags?: boolean;
28
28
  omitLastClosingTag?: boolean;
29
29
  serverComponents?: boolean;
30
- /**
31
- * Patch-mode dual driver (dormant by default): `true` or an import name
32
- * (`"patchDriver"`) opts compiled templates whose bindings are pure member
33
- * reads of one subject into the store patch channel. The loader normalizes
34
- * `true` to the default import name (the napi wrapper mapping treats bare
35
- * booleans as "default", which this option reads as disabled).
36
- * @default false
37
- */
38
- patchDriver?: boolean | string;
39
30
  /** Default `["For", "Show", "Switch", "Match", "Loading", "Reveal", "Portal", "Repeat", "Dynamic", "Errored"]`. */
40
31
  builtIns?: string[];
41
32
  requireImportSource?: false | string;