@absolutejs/absolute 0.7.0 → 0.8.0

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.
@@ -1,5 +1,5 @@
1
1
  import { ComponentType } from "react";
2
2
  import { Component } from "svelte";
3
3
  export declare const handleReactPageRequest: <P extends object>(pageComponent: ComponentType<P>, index: string, ...props: keyof P extends never ? [] : [props: P]) => Promise<Response>;
4
- export declare const handleSveltePageRequest: <Props extends Record<string, unknown>>(pageComponent: Component<Props>, index: string, props: Props) => Response;
4
+ export declare const handleSveltePageRequest: <Props extends Record<string, unknown>>(PageComponent: Component<Props>, manifest: Record<string, string>, props: Props) => Promise<Response>;
5
5
  export declare const handleHTMLPageRequest: (html: string) => Bun.BunFile;
@@ -0,0 +1,11 @@
1
+ import type { Component } from "svelte";
2
+ export type RenderStreamOptions = {
3
+ bootstrapScriptContent?: string;
4
+ bootstrapScripts?: string[];
5
+ bootstrapModules?: string[];
6
+ nonce?: string;
7
+ onError?: (error: unknown) => void;
8
+ progressiveChunkSize?: number;
9
+ signal?: AbortSignal;
10
+ };
11
+ export declare const renderToReadableStream: <Props extends Record<string, unknown> = Record<string, never>>(component: Component<Props>, props: Props, { bootstrapScriptContent, bootstrapScripts, bootstrapModules, nonce, onError, progressiveChunkSize, signal }?: RenderStreamOptions) => Promise<ReadableStream<Uint8Array<ArrayBufferLike>>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/absolute",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "A fullstack meta-framework for building web applications with TypeScript",
5
5
  "repository": {
6
6
  "type": "git",
File without changes