Skip to content

Commit c3d465a

Browse files
bump @dom-expressions/compiler to next.44 (ships serverComponents in TransformOptions)
Merges ref-props: serverFunctions.components enables the SSR behavior-claims transform. The type intersection stopgap drops — the floor now carries the option natively. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 64cbc3a commit c3d465a

4 files changed

Lines changed: 36 additions & 36 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@solidjs/vite-plugin": patch
3+
---
4+
5+
`serverFunctions.components` now enables the SSR behavior-claims transform: ref and event-handler positions on intrinsic elements compile to guarded claim holes instead of dropping, so client behavior declared in server component markup survives serialization and morphs. SSR-only by construction (the dom generate ignores the flag); apps without the flag compile byte-for-byte as before. Compiler floor moves to `@dom-expressions/compiler@0.50.0-next.44`, which ships the `serverComponents` transform option and its types.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"dependencies": {
6262
"@ampproject/remapping": "^2.3.0",
6363
"@babel/core": "^7.23.3",
64-
"@dom-expressions/compiler": "^0.50.0-next.43",
64+
"@dom-expressions/compiler": "^0.50.0-next.44",
6565
"@types/babel__core": "^7.20.4",
6666
"babel-preset-solid": "^2.0.0-rc.0",
6767
"merge-anything": "^5.1.7",

pnpm-lock.yaml

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,7 @@ export interface ExtensionOptions {
179179
}
180180

181181
export type Compiler = 'babel' | 'native';
182-
// `serverComponents` ships in @dom-expressions/compiler's TransformOptions
183-
// from 0.50.0-next.44; the intersection member is redundant (and droppable)
184-
// once the dependency floor moves past it.
185-
export type SolidOptions = Omit<JsxCompilerOptions, 'filename' | 'sourceMap'> & {
186-
serverComponents?: boolean;
187-
};
182+
export type SolidOptions = Omit<JsxCompilerOptions, 'filename' | 'sourceMap'>;
188183
type NativeCompiler = typeof import('@dom-expressions/compiler');
189184
let nativeCompilerPromise: Promise<NativeCompiler> | undefined;
190185

0 commit comments

Comments
 (0)