@stencil/core 5.0.0-alpha.5 → 5.0.0-alpha.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.
- package/dist/{client-Dnio47yQ.mjs → client-fWOou5EW.mjs} +2324 -2125
- package/dist/compiler/index.d.mts +5 -5
- package/dist/compiler/index.mjs +2 -2
- package/dist/compiler/utils/index.d.mts +2 -2
- package/dist/compiler/utils/index.mjs +3 -3
- package/dist/{compiler-Dxri2g8Z.mjs → compiler-CdUbDTbV.mjs} +13329 -12670
- package/dist/declarations/stencil-public-compiler.d.ts +254 -121
- package/dist/declarations/stencil-public-docs.d.ts +10 -0
- package/dist/declarations/stencil-public-runtime.d.ts +49 -12
- package/dist/{index-D5zaocDq.d.mts → index-D8vvsppY.d.mts} +228 -180
- package/dist/{index-D61XZw0f.d.ts → index-Dap2E02-.d.ts} +82 -31
- package/dist/{index-Dat4djoo.d.mts → index-UUlemGuu.d.mts} +13 -2
- package/dist/index.d.mts +0 -1
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.d.mts +18 -0
- package/dist/jsx-runtime.mjs +2 -0
- package/dist/{node-pj6rF4Wt.mjs → node-klLZLdDe.mjs} +59 -55
- package/dist/{regular-expression-D0_N0PGa.mjs → regular-expression-DUdhF3Ei.mjs} +72 -6
- package/dist/runtime/app-data/index.d.ts +1 -1
- package/dist/runtime/app-data/index.js +15 -9
- package/dist/{runtime-CKyUrF4i.js → runtime/client/lazy.js} +2539 -2199
- package/dist/runtime/client/{index.d.ts → runtime.d.ts} +49 -40
- package/dist/runtime/client/{index.js → runtime.js} +2401 -2185
- package/dist/runtime/index.d.ts +20 -3
- package/dist/runtime/index.js +4956 -2
- package/dist/runtime/server/index.d.mts +30 -39
- package/dist/runtime/server/index.mjs +2369 -2185
- package/dist/runtime/server/runner.d.mts +4 -6
- package/dist/runtime/server/runner.mjs +307 -361
- package/dist/signals/index.d.ts +47 -0
- package/dist/signals/index.js +199 -0
- package/dist/sys/node/index.d.mts +1 -1
- package/dist/sys/node/index.mjs +1 -1
- package/dist/sys/node/worker.mjs +2 -2
- package/dist/testing/index.d.mts +97 -3
- package/dist/testing/index.mjs +199 -47
- package/dist/{validation-BA8nzXu_.mjs → validation-2QipI30K.mjs} +21 -32
- package/package.json +41 -27
- package/dist/index-D-XN9HW_.d.ts +0 -30
- package/dist/jsx-runtime-B3vQbWIW.d.ts +0 -28
- package/dist/jsx-runtime.d.ts +0 -2
- package/dist/jsx-runtime.js +0 -2
- /package/dist/{chunk-CjcI7cDX.mjs → chunk-z9aeyW2b.mjs} +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Readable } from "node:stream";
|
|
2
1
|
//#region src/server/runner/create-window.d.ts
|
|
3
2
|
declare function createWindowFromHtml(templateHtml: string, uniqueId: string): any;
|
|
4
3
|
//#endregion
|
|
@@ -275,14 +274,13 @@ interface SsrStaticData {
|
|
|
275
274
|
*/
|
|
276
275
|
declare function renderToString(html: string | any, options?: SerializeDocumentOptions): Promise<SsrResults>;
|
|
277
276
|
/**
|
|
278
|
-
* Renders HTML and returns a
|
|
279
|
-
*
|
|
280
|
-
* Note: This function requires Node.js and cannot be used in QuickJS/WASM environments.
|
|
277
|
+
* Renders HTML and returns a web-standard ReadableStream.
|
|
278
|
+
* Works in Node 22+, Cloudflare Workers, Deno, Bun, and any WinterCG-compatible runtime.
|
|
281
279
|
* @param html - the HTML string or document to render
|
|
282
280
|
* @param options - serialization options
|
|
283
|
-
* @returns a
|
|
281
|
+
* @returns a ReadableStream
|
|
284
282
|
*/
|
|
285
|
-
declare function streamToString(html: string | any, options?: SerializeDocumentOptions):
|
|
283
|
+
declare function streamToString(html: string | any, options?: SerializeDocumentOptions): ReadableStream<string>;
|
|
286
284
|
/**
|
|
287
285
|
* Server side renders a document or HTML string, returning the full render results.
|
|
288
286
|
* This is portable (no Node.js dependencies).
|