svelte-effect-runtime 4.0.0 → 4.0.1

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 (146) hide show
  1. package/.dist/chunks/client-BrZka6DW.js +530 -0
  2. package/.dist/chunks/client-BrZka6DW.js.map +1 -0
  3. package/.dist/chunks/compiler-COVzgLYo.js +412 -0
  4. package/.dist/chunks/compiler-COVzgLYo.js.map +1 -0
  5. package/.dist/chunks/descriptors-B4otDlm1.js +216 -0
  6. package/.dist/chunks/descriptors-B4otDlm1.js.map +1 -0
  7. package/.dist/chunks/diagnostics-BDrky-Di.js +359 -0
  8. package/.dist/chunks/diagnostics-BDrky-Di.js.map +1 -0
  9. package/.dist/chunks/dispatcher-BA0PLQhA.js +16 -0
  10. package/.dist/chunks/dispatcher-BA0PLQhA.js.map +1 -0
  11. package/.dist/chunks/{dispatcher-DOx8iC6r.js → dispatcher-_x0MQZBS.js} +84 -258
  12. package/.dist/chunks/dispatcher-_x0MQZBS.js.map +1 -0
  13. package/.dist/chunks/{errors-IJjsUwrE.js → errors-CLsbGjIa.js} +39 -44
  14. package/.dist/chunks/errors-CLsbGjIa.js.map +1 -0
  15. package/.dist/chunks/live-BundLSoY.js +146 -0
  16. package/.dist/chunks/live-BundLSoY.js.map +1 -0
  17. package/.dist/chunks/live-CHK0RrZu.js +10 -0
  18. package/.dist/chunks/live-CHK0RrZu.js.map +1 -0
  19. package/.dist/chunks/{remote-client-CVI4t66c.js → remote-client-mkQAfP1G.js} +29 -23
  20. package/.dist/chunks/remote-client-mkQAfP1G.js.map +1 -0
  21. package/.dist/chunks/{runtime-GBQz32DZ.js → runtime-HDTlEnzp.js} +3 -27
  22. package/.dist/chunks/runtime-HDTlEnzp.js.map +1 -0
  23. package/.dist/chunks/{server-D1LcDnZE.js → server-BNrA1I-u.js} +15 -84
  24. package/.dist/chunks/server-BNrA1I-u.js.map +1 -0
  25. package/.dist/chunks/source-scan-9pZxnfct.js +1059 -0
  26. package/.dist/chunks/source-scan-9pZxnfct.js.map +1 -0
  27. package/.dist/chunks/{transform-jNUr65K9.js → transform-BXyYUAez.js} +184 -358
  28. package/.dist/chunks/transform-BXyYUAez.js.map +1 -0
  29. package/.dist/compiler/markup-identifiers.d.ts +2 -0
  30. package/.dist/compiler/remote-client.d.ts +1 -19
  31. package/.dist/compiler/source-scan.d.ts +11 -108
  32. package/.dist/compiler/sveltekit-remote-bridge.d.ts +3 -0
  33. package/.dist/compiler.d.ts +6 -0
  34. package/.dist/compiler.js +1 -1
  35. package/.dist/detect.d.ts +0 -31
  36. package/.dist/detect.js +0 -39
  37. package/.dist/detect.js.map +1 -1
  38. package/.dist/diagnostics.d.ts +0 -16
  39. package/.dist/dispatcher/deps.d.ts +3 -14
  40. package/.dist/dispatcher/fibers.d.ts +5 -46
  41. package/.dist/dispatcher/index.d.ts +1 -143
  42. package/.dist/dispatcher/types.d.ts +0 -151
  43. package/.dist/dispatcher.js +1 -1
  44. package/.dist/errors.d.ts +30 -42
  45. package/.dist/generated/dispatcher.d.ts +0 -50
  46. package/.dist/generators.d.ts +1 -12
  47. package/.dist/internal/descriptors.d.ts +0 -16
  48. package/.dist/internal/generators.js +13 -8
  49. package/.dist/internal/generators.js.map +1 -1
  50. package/.dist/internal/live.d.ts +9 -0
  51. package/.dist/internal/remote-client.js +2 -2
  52. package/.dist/internal/remote-server.js +2 -2
  53. package/.dist/internal/schema.d.ts +0 -54
  54. package/.dist/live.d.ts +9 -26
  55. package/.dist/markup/event-attributes.d.ts +0 -32
  56. package/.dist/markup/promise.d.ts +1 -23
  57. package/.dist/markup/promise.js +2 -18
  58. package/.dist/markup/promise.js.map +1 -1
  59. package/.dist/markup/run.d.ts +1 -10
  60. package/.dist/markup/run.js +2 -11
  61. package/.dist/markup/run.js.map +1 -1
  62. package/.dist/markup/transform/apply.d.ts +4 -4
  63. package/.dist/markup/transform/classify.d.ts +2 -11
  64. package/.dist/markup/transform/constants.d.ts +1 -1
  65. package/.dist/markup/transform/effect-bindings.d.ts +2 -26
  66. package/.dist/markup/transform/effect-callbacks.d.ts +0 -20
  67. package/.dist/markup/transform/emit.d.ts +2 -11
  68. package/.dist/markup/transform/expressions.d.ts +0 -35
  69. package/.dist/markup/transform/scan.d.ts +3 -22
  70. package/.dist/markup/transform/types.d.ts +1 -129
  71. package/.dist/markup/transform.js +1 -1
  72. package/.dist/markup/value.d.ts +1 -18
  73. package/.dist/markup/value.js +2 -19
  74. package/.dist/markup/value.js.map +1 -1
  75. package/.dist/mod.d.ts +3 -8
  76. package/.dist/mod.js +5 -5
  77. package/.dist/mod.js.map +1 -1
  78. package/.dist/remote/cause-codec.d.ts +3 -37
  79. package/.dist/remote/client/command.d.ts +3 -17
  80. package/.dist/remote/client/form-data.d.ts +0 -7
  81. package/.dist/remote/client/form-enhance.d.ts +0 -7
  82. package/.dist/remote/client/form-transport.d.ts +14 -20
  83. package/.dist/remote/client/form.d.ts +4 -24
  84. package/.dist/remote/client/index.d.ts +2 -1
  85. package/.dist/remote/client/prerender.d.ts +6 -0
  86. package/.dist/remote/client/query-result.d.ts +2 -14
  87. package/.dist/remote/client/query.d.ts +8 -48
  88. package/.dist/remote/client/responses.d.ts +3 -27
  89. package/.dist/remote/client/types.d.ts +16 -110
  90. package/.dist/remote/client/utils.d.ts +0 -8
  91. package/.dist/remote/client.d.ts +2 -2
  92. package/.dist/remote/client.js +2 -2
  93. package/.dist/remote/effect.d.ts +6 -0
  94. package/.dist/remote/failures.d.ts +4 -0
  95. package/.dist/remote/query-update.d.ts +2 -0
  96. package/.dist/remote/resource.d.ts +25 -0
  97. package/.dist/remote/server.d.ts +5 -50
  98. package/.dist/remote/server.js +2 -2
  99. package/.dist/remote/shared.d.ts +6 -145
  100. package/.dist/remote/shared.js +6 -127
  101. package/.dist/remote/shared.js.map +1 -1
  102. package/.dist/runtime/transform.js +5 -22
  103. package/.dist/runtime/transform.js.map +1 -1
  104. package/.dist/script-transform/ast.d.ts +0 -46
  105. package/.dist/script-transform/imports.d.ts +0 -38
  106. package/.dist/script-transform/lower.d.ts +0 -9
  107. package/.dist/script-transform/runes.d.ts +0 -10
  108. package/.dist/script-transform/runtime-block.d.ts +0 -17
  109. package/.dist/script-transform/source.d.ts +0 -24
  110. package/.dist/script-transform/types.d.ts +1 -126
  111. package/.dist/server/effects.d.ts +4 -53
  112. package/.dist/server/factories.d.ts +7 -7
  113. package/.dist/server/index.d.ts +1 -1
  114. package/.dist/server/invalid.d.ts +0 -7
  115. package/.dist/server/live-snapshot.d.ts +5 -0
  116. package/.dist/server/remote-handler-context.d.ts +5 -0
  117. package/.dist/server/runtime.d.ts +6 -24
  118. package/.dist/server/schema.d.ts +0 -14
  119. package/.dist/server/transport.d.ts +2 -0
  120. package/.dist/server/types.d.ts +49 -26
  121. package/.dist/server/wrappers.d.ts +3 -40
  122. package/.dist/server.d.ts +1 -1
  123. package/.dist/server.js +200 -215
  124. package/.dist/server.js.map +1 -1
  125. package/.dist/yieldable.d.ts +1 -35
  126. package/package.json +2 -2
  127. package/.dist/chunks/client-DcZUV4rR.js +0 -653
  128. package/.dist/chunks/client-DcZUV4rR.js.map +0 -1
  129. package/.dist/chunks/compiler-BBPNyXmQ.js +0 -460
  130. package/.dist/chunks/compiler-BBPNyXmQ.js.map +0 -1
  131. package/.dist/chunks/dispatcher-DOx8iC6r.js.map +0 -1
  132. package/.dist/chunks/dispatcher-H-Ia0Os4.js +0 -47
  133. package/.dist/chunks/dispatcher-H-Ia0Os4.js.map +0 -1
  134. package/.dist/chunks/errors-IJjsUwrE.js.map +0 -1
  135. package/.dist/chunks/live-BXAKre_4.js +0 -104
  136. package/.dist/chunks/live-BXAKre_4.js.map +0 -1
  137. package/.dist/chunks/remote-client-CVI4t66c.js.map +0 -1
  138. package/.dist/chunks/runtime-GBQz32DZ.js.map +0 -1
  139. package/.dist/chunks/schema-D9pct6Y5.js +0 -89
  140. package/.dist/chunks/schema-D9pct6Y5.js.map +0 -1
  141. package/.dist/chunks/server-D1LcDnZE.js.map +0 -1
  142. package/.dist/chunks/source-scan-C4PsggID.js +0 -341
  143. package/.dist/chunks/source-scan-C4PsggID.js.map +0 -1
  144. package/.dist/chunks/transform-jNUr65K9.js.map +0 -1
  145. package/.dist/remote/client/effect.d.ts +0 -29
  146. package/.dist/remote/client/failures.d.ts +0 -42
@@ -1,22 +1,6 @@
1
- import { n as get_dispatcher } from "../chunks/dispatcher-H-Ia0Os4.js";
1
+ import { n as get_dispatcher } from "../chunks/dispatcher-BA0PLQhA.js";
2
2
  //#region src/markup/promise.ts
3
- /**
4
- * Runtime helper emitted by the markup transform for
5
- * `{#await yield* expr}` blocks. Delegates to the dispatcher's
6
- * promise mechanism. During SSR it can return a fallback promise without
7
- * starting the dispatcher.
8
- *
9
- * @since 2.0.0
10
- * @param id - Stable identifier generated from the expression's source
11
- * position, used for cache lookups.
12
- * @param deps - Array of reactive dependencies.
13
- * @param factory - Generator function that yields the effect to run.
14
- * @param ssr_fallback - Value to resolve during SSR when the helper is used
15
- * from an awaited expression outside a Svelte await block.
16
- * @param options - Optional SSR behavior for contexts such as await blocks
17
- * that should render pending UI.
18
- * @returns A Promise that resolves with the effect's result.
19
- */
3
+ /** Runs a transform-generated promise block through the active dispatcher. */
20
4
  function promise(id, deps, factory, ssr_fallback, options) {
21
5
  if (is_server_render()) {
22
6
  if (options?.ssr === "pending") return new Promise(() => {});
@@ -1 +1 @@
1
- {"version":3,"file":"promise.js","names":[],"sources":["../../../modules/svelte-effect-runtime/src/markup/promise.ts"],"sourcesContent":["import { get_dispatcher } from \"$/generated/dispatcher.ts\";\nimport type { Effect } from \"effect\";\n\n/**\n * Options for markup promise behavior during server rendering.\n *\n * @since 2.4.0\n */\ninterface MarkupPromiseOptions {\n\t/** Keep the SSR promise pending so Svelte renders an await block fallback. */\n\tssr?: \"pending\";\n}\n\n/**\n * Runtime helper emitted by the markup transform for\n * `{#await yield* expr}` blocks. Delegates to the dispatcher's\n * promise mechanism. During SSR it can return a fallback promise without\n * starting the dispatcher.\n *\n * @since 2.0.0\n * @param id - Stable identifier generated from the expression's source\n * position, used for cache lookups.\n * @param deps - Array of reactive dependencies.\n * @param factory - Generator function that yields the effect to run.\n * @param ssr_fallback - Value to resolve during SSR when the helper is used\n * from an awaited expression outside a Svelte await block.\n * @param options - Optional SSR behavior for contexts such as await blocks\n * that should render pending UI.\n * @returns A Promise that resolves with the effect's result.\n */\nexport function promise<A, E, R>(\n\tid: string,\n\tdeps: readonly unknown[],\n\tfactory: () => Effect.gen.Return<A, E, R>,\n\tssr_fallback?: A,\n\toptions?: MarkupPromiseOptions,\n): Promise<A> {\n\tif (is_server_render()) {\n\t\tif (options?.ssr === \"pending\") {\n\t\t\treturn new Promise<A>(() => {});\n\t\t}\n\n\t\tif (arguments.length >= 4) {\n\t\t\treturn Promise.resolve(ssr_fallback as A);\n\t\t}\n\t}\n\n\treturn get_dispatcher().promise({ id, deps, factory });\n}\n\nfunction is_server_render(): boolean {\n\treturn typeof document === \"undefined\";\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA8BA,SAAgB,QACf,IACA,MACA,SACA,cACA,SACa;CACb,IAAI,iBAAiB,GAAG;EACvB,IAAI,SAAS,QAAQ,WACpB,OAAO,IAAI,cAAiB,CAAC,CAAC;EAG/B,IAAI,UAAU,UAAU,GACvB,OAAO,QAAQ,QAAQ,YAAiB;CAE1C;CAEA,OAAO,eAAe,CAAC,CAAC,QAAQ;EAAE;EAAI;EAAM;CAAQ,CAAC;AACtD;AAEA,SAAS,mBAA4B;CACpC,OAAO,OAAO,aAAa;AAC5B"}
1
+ {"version":3,"file":"promise.js","names":[],"sources":["../../../modules/svelte-effect-runtime/src/markup/promise.ts"],"sourcesContent":["import { get_dispatcher } from \"$/generated/dispatcher.ts\";\nimport type { Effect } from \"effect\";\n\ninterface MarkupPromiseOptions {\n\tssr?: \"pending\";\n}\n\n/** Runs a transform-generated promise block through the active dispatcher. */\nexport function promise<A, E, R>(\n\tid: string,\n\tdeps: readonly unknown[],\n\tfactory: () => Effect.gen.Return<A, E, R>,\n\tssr_fallback?: A,\n\toptions?: MarkupPromiseOptions,\n): Promise<A> {\n\tif (is_server_render()) {\n\t\tif (options?.ssr === \"pending\") {\n\t\t\treturn new Promise<A>(() => {});\n\t\t}\n\n\t\tif (arguments.length >= 4) {\n\t\t\treturn Promise.resolve(ssr_fallback as A);\n\t\t}\n\t}\n\n\treturn get_dispatcher().promise({ id, deps, factory });\n}\n\nfunction is_server_render(): boolean {\n\treturn typeof document === \"undefined\";\n}\n"],"mappings":";;;AAQA,SAAgB,QACf,IACA,MACA,SACA,cACA,SACa;CACb,IAAI,iBAAiB,GAAG;EACvB,IAAI,SAAS,QAAQ,WACpB,OAAO,IAAI,cAAiB,CAAC,CAAC;EAG/B,IAAI,UAAU,UAAU,GACvB,OAAO,QAAQ,QAAQ,YAAiB;CAE1C;CAEA,OAAO,eAAe,CAAC,CAAC,QAAQ;EAAE;EAAI;EAAM;CAAQ,CAAC;AACtD;AAEA,SAAS,mBAA4B;CACpC,OAAO,OAAO,aAAa;AAC5B"}
@@ -1,12 +1,3 @@
1
1
  import { Effect } from "effect";
2
- /**
3
- * Runtime helper emitted by the markup transform for inline event
4
- * handlers containing `yield*`. Wraps the user's generator in an
5
- * `Effect.gen` and delegates to the dispatcher's fire-and-forget
6
- * mechanism.
7
- *
8
- * @since 2.0.0
9
- * @param factory - Generator function that yields the effect to run.
10
- * @returns A Promise that resolves or rejects when the effect completes.
11
- */
2
+ /** Runs a transform-generated event block through the active dispatcher. */
12
3
  export declare function run<A, E, R>(factory: () => Effect.gen.Return<A, E, R>): Promise<A>;
@@ -1,16 +1,7 @@
1
- import { n as get_dispatcher } from "../chunks/dispatcher-H-Ia0Os4.js";
1
+ import { n as get_dispatcher } from "../chunks/dispatcher-BA0PLQhA.js";
2
2
  import { Effect } from "effect";
3
3
  //#region src/markup/run.ts
4
- /**
5
- * Runtime helper emitted by the markup transform for inline event
6
- * handlers containing `yield*`. Wraps the user's generator in an
7
- * `Effect.gen` and delegates to the dispatcher's fire-and-forget
8
- * mechanism.
9
- *
10
- * @since 2.0.0
11
- * @param factory - Generator function that yields the effect to run.
12
- * @returns A Promise that resolves or rejects when the effect completes.
13
- */
4
+ /** Runs a transform-generated event block through the active dispatcher. */
14
5
  function run(factory) {
15
6
  const Program = Effect.gen(factory);
16
7
  return get_dispatcher().run(Program);
@@ -1 +1 @@
1
- {"version":3,"file":"run.js","names":[],"sources":["../../../modules/svelte-effect-runtime/src/markup/run.ts"],"sourcesContent":["import { get_dispatcher } from \"$/generated/dispatcher.ts\";\nimport { Effect } from \"effect\";\n\n/**\n * Runtime helper emitted by the markup transform for inline event\n * handlers containing `yield*`. Wraps the user's generator in an\n * `Effect.gen` and delegates to the dispatcher's fire-and-forget\n * mechanism.\n *\n * @since 2.0.0\n * @param factory - Generator function that yields the effect to run.\n * @returns A Promise that resolves or rejects when the effect completes.\n */\nexport function run<A, E, R>(factory: () => Effect.gen.Return<A, E, R>): Promise<A> {\n\tconst Program = Effect.gen(factory);\n\n\treturn get_dispatcher().run(Program);\n}\n"],"mappings":";;;;;;;;;;;;;AAaA,SAAgB,IAAa,SAAuD;CACnF,MAAM,UAAU,OAAO,IAAI,OAAO;CAElC,OAAO,eAAe,CAAC,CAAC,IAAI,OAAO;AACpC"}
1
+ {"version":3,"file":"run.js","names":[],"sources":["../../../modules/svelte-effect-runtime/src/markup/run.ts"],"sourcesContent":["import { get_dispatcher } from \"$/generated/dispatcher.ts\";\nimport { Effect } from \"effect\";\n\n/** Runs a transform-generated event block through the active dispatcher. */\nexport function run<A, E, R>(factory: () => Effect.gen.Return<A, E, R>): Promise<A> {\n\tconst Program = Effect.gen(factory);\n\n\treturn get_dispatcher().run(Program);\n}\n"],"mappings":";;;;AAIA,SAAgB,IAAa,SAAuD;CACnF,MAAM,UAAU,OAAO,IAAI,OAAO;CAElC,OAAO,eAAe,CAAC,CAAC,IAAI,OAAO;AACpC"}
@@ -1,9 +1,9 @@
1
- import type MagicString from "magic-string";
2
1
  import type { HelperDeclaration, Insertion, MarkupHelperBindings, MarkupRelocation, Replacement } from "./types.js";
2
+ import type { SvelteEffectSourceScan } from "../../compiler/source-scan.js";
3
+ import type MagicString from "magic-string";
3
4
  export declare function create_source_map(magic: MagicString, filename: string): Record<string, unknown>;
4
- export declare function blank_script_blocks(content: string): string;
5
- export declare function inject_helpers(magic: MagicString, content: string, helpers?: HelperDeclaration[], bindings?: MarkupHelperBindings): Insertion | undefined;
6
- export declare function make_markup_helper_bindings(content: string): {
5
+ export declare function inject_helpers(magic: MagicString, source_scan: SvelteEffectSourceScan, helpers?: HelperDeclaration[], bindings?: MarkupHelperBindings): Insertion | undefined;
6
+ export declare function make_markup_helper_bindings(source_scan: SvelteEffectSourceScan): {
7
7
  bindings: MarkupHelperBindings;
8
8
  name_allocator: {
9
9
  reserve(name: string): string;
@@ -1,23 +1,14 @@
1
- import type { AST } from "svelte/compiler";
2
1
  import type { MarkupCandidate, TagKind } from "./types.js";
2
+ import type { AST } from "svelte/compiler";
3
3
  interface ClassifiedCandidate {
4
4
  candidate: MarkupCandidate;
5
5
  kind: TagKind;
6
- attribute_name_replacement?: AttributeNameReplacement;
6
+ attribute_name_replacement: AttributeNameReplacement | undefined;
7
7
  }
8
8
  interface AttributeNameReplacement {
9
9
  start: number;
10
10
  end: number;
11
11
  text: string;
12
12
  }
13
- /**
14
- * Matches sanitized placeholders back to their Svelte AST context.
15
- *
16
- * @since 2.0.0
17
- * @param ast - Parsed Svelte AST for the sanitized component markup.
18
- * @param candidates - Placeholder candidates produced by the scanner.
19
- * @returns Candidates paired with the markup context that determines how they
20
- * should be emitted.
21
- */
22
13
  export declare function classify_candidates(ast: AST.Root, candidates: MarkupCandidate[]): ClassifiedCandidate[];
23
14
  export {};
@@ -1,4 +1,4 @@
1
- export declare const HELPERS: {
1
+ export declare const default_helper_bindings: {
2
2
  readonly codes: "Code";
3
3
  readonly dispatcher: "Dispatcher";
4
4
  readonly yieldable: "ToEffect";
@@ -1,15 +1,5 @@
1
+ import type { ScriptRegion } from "../../compiler/source-scan.js";
1
2
  import type { HelperDeclaration } from "./types.js";
2
- /**
3
- * Describes local bindings that resolve to Effect APIs in markup expressions.
4
- *
5
- * @example
6
- * ```ts
7
- * const context = collect_effect_callback_bindings(source);
8
- * context.effect_object_names.has("E");
9
- * ```
10
- *
11
- * @since 2.4.0
12
- */
13
3
  export interface EffectCallbackRewriteContext {
14
4
  /** Local names imported as the Effect object, such as `Effect` or `E`. */
15
5
  effect_object_names: ReadonlySet<string>;
@@ -24,18 +14,4 @@ export interface EffectCallbackRewriteContext {
24
14
  /** Import inserted when generated code needs a fresh Effect binding. */
25
15
  wrapper_import: HelperDeclaration | undefined;
26
16
  }
27
- /**
28
- * Collects Effect import bindings that markup callback rewriting can trust.
29
- *
30
- * @example
31
- * ```ts
32
- * const bindings = collect_effect_callback_bindings(
33
- * `<script>import { Effect as E } from "effect";</script>`,
34
- * );
35
- * ```
36
- *
37
- * @since 2.4.0
38
- * @param content - Full Svelte component source before markup lowering.
39
- * @returns Binding metadata used to identify Effect callback combinators.
40
- */
41
- export declare function collect_effect_callback_bindings(content: string): EffectCallbackRewriteContext;
17
+ export declare function collect_effect_callback_bindings(scripts: readonly ScriptRegion[]): EffectCallbackRewriteContext;
@@ -1,25 +1,5 @@
1
1
  import type { EffectCallbackRewriteContext } from "./effect-bindings.js";
2
2
  import type { HelperDeclaration } from "./types.js";
3
- /**
4
- * Rewrites effectful callback shorthand inside event handler expressions.
5
- *
6
- * @example
7
- * ```ts
8
- * normalize_effect_callback_yields(
9
- * `yield* action.pipe(Effect.flatMap((value) => yield* next(value)))`,
10
- * collect_effect_callback_bindings(source),
11
- * );
12
- * ```
13
- *
14
- * @since 2.0.0
15
- * @param expr_text - Markup expression text before it is wrapped in the
16
- * generated Effect runner.
17
- * @param bindings - Local Effect import bindings collected from the Svelte
18
- * component's script blocks.
19
- * @returns The expression with nested Effect callback `yield*` shorthand
20
- * lowered into explicit Effect callbacks, plus any import needed by generated
21
- * wrapper calls.
22
- */
23
3
  export declare function normalize_effect_callback_yields(expr_text: string, bindings: EffectCallbackRewriteContext): {
24
4
  expr_text: string;
25
5
  helpers: HelperDeclaration[];
@@ -1,23 +1,14 @@
1
- import type { EffectCallbackRewriteContext } from "./effect-bindings.js";
2
1
  import type { MarkupCandidate, MarkupHelperBindings, MarkupNameAllocator, MarkupTransformTarget, Replacement, TagKind } from "./types.js";
2
+ import type { EffectCallbackRewriteContext } from "./effect-bindings.js";
3
3
  interface ClassifiedCandidate {
4
4
  candidate: MarkupCandidate;
5
5
  kind: TagKind;
6
- attribute_name_replacement?: AttributeNameReplacement;
6
+ attribute_name_replacement: AttributeNameReplacement | undefined;
7
7
  }
8
8
  interface AttributeNameReplacement {
9
9
  start: number;
10
10
  end: number;
11
11
  text: string;
12
12
  }
13
- /**
14
- * Emits source edits for classified markup Effect expressions.
15
- *
16
- * @since 2.0.0
17
- * @param classified - Candidates paired with their Svelte markup context.
18
- * @param effect_context - Effect import bindings available to markup
19
- * expression rewrites.
20
- * @returns Replacements ready to apply to the original component source.
21
- */
22
13
  export declare function emit_replacements(classified: ClassifiedCandidate[], effect_context: EffectCallbackRewriteContext, helper_bindings: MarkupHelperBindings, name_allocator: MarkupNameAllocator, target: MarkupTransformTarget): Replacement[];
23
14
  export {};
@@ -1,47 +1,12 @@
1
- /**
2
- * Strips an event handler arrow function down to its executable body.
3
- *
4
- * @since 2.0.0
5
- * @param expr - Event handler expression text from the original markup.
6
- * @returns Handler parameters, body text, and body offsets inside `expr`.
7
- */
8
1
  export declare function strip_arrow_function(expr: string): {
9
2
  params: string;
10
3
  body: string;
11
4
  body_start: number;
12
5
  body_end: number;
13
6
  };
14
- /**
15
- * Returns whether an expression is a callback function.
16
- *
17
- * @since 2.0.0
18
- * @param expr - Expression text from a markup attribute or expression tag.
19
- * @returns Whether the expression parses as an arrow or function expression.
20
- */
21
7
  export declare function is_callback_function_expression(expr: string): boolean;
22
- /**
23
- * Classifies `yield*` placement inside an event handler body.
24
- *
25
- * @example
26
- * ```ts
27
- * analyze_event_body_yield_star("yield* save()");
28
- * ```
29
- *
30
- * @since 2.0.0
31
- * @param body - Event handler body text after the outer arrow has been
32
- * stripped.
33
- * @returns Whether the body has top-level yield* expressions and whether any
34
- * yield* appears inside a nested non-generator callback.
35
- */
36
8
  export declare function analyze_event_body_yield_star(body: string): {
37
9
  has_top_level_yield_star: boolean;
38
10
  has_nested_invalid_yield_star: boolean;
39
11
  };
40
- /**
41
- * Collects free identifiers that must be captured as reactive dependencies.
42
- *
43
- * @since 2.0.0
44
- * @param expr_text - Markup expression text to inspect.
45
- * @returns Identifier names referenced by the expression.
46
- */
47
12
  export declare function collect_free_identifiers(expr_text: string): string[];
@@ -1,28 +1,9 @@
1
+ import type { SvelteEffectSourceScan } from "../../compiler/source-scan.js";
1
2
  import type { MarkupCandidate } from "./types.js";
2
3
  interface SanitizeResult {
3
- code: string;
4
+ parse_code: string;
4
5
  candidates: MarkupCandidate[];
5
6
  }
6
- /**
7
- * Replaces markup `yield*` expressions with placeholders before Svelte parses
8
- * the component.
9
- *
10
- * @example
11
- * ```ts
12
- * const sanitized = sanitize_markup(
13
- * `<p>{yield* loadLabel()}</p>`,
14
- * "Label.svelte",
15
- * );
16
- * ```
17
- *
18
- * @since 2.0.0
19
- * @param content - Raw Svelte component source to scan for effectful markup
20
- * expressions.
21
- * @param filename - Source filename used when validation errors need to point
22
- * back to the component being transformed.
23
- * @returns Sanitized source plus placeholder candidates that should be lowered
24
- * after Svelte classifies their markup positions.
25
- */
26
- export declare function sanitize_markup(content: string, filename: string): SanitizeResult;
7
+ export declare function sanitize_markup(source_scan: SvelteEffectSourceScan): SanitizeResult;
27
8
  export {};
28
9
  /** Free identifier collection helpers for generated closures. */
@@ -46,21 +46,6 @@ export interface MarkupTransformOptions {
46
46
  /** Legacy emission target retained for compatibility with older callers. */
47
47
  target?: MarkupTransformTarget;
48
48
  }
49
- /**
50
- * Offset mapping between original markup and generated helper code.
51
- *
52
- * @example
53
- * ```ts
54
- * const relocation: MarkupRelocation = {
55
- * originalStart: 4,
56
- * originalEnd: 17,
57
- * generatedStart: 32,
58
- * generatedEnd: 45,
59
- * };
60
- * ```
61
- *
62
- * @since 3.2.3
63
- */
64
49
  export interface MarkupRelocation {
65
50
  /** Start offset in the original source. */
66
51
  originalStart: number;
@@ -71,23 +56,6 @@ export interface MarkupRelocation {
71
56
  /** End offset in the transformed source. */
72
57
  generatedEnd: number;
73
58
  }
74
- /**
75
- * Describes a brace expression that contains `yield*` and needs lowering.
76
- *
77
- * @example
78
- * ```ts
79
- * const candidate: MarkupCandidate = {
80
- * placeholder: "__SER___0",
81
- * start: 4,
82
- * end: 19,
83
- * expr_text: "yield* load()",
84
- * filename: "App.svelte",
85
- * key: "plain",
86
- * };
87
- * ```
88
- *
89
- * @since 2.0.0
90
- */
91
59
  export interface MarkupCandidate {
92
60
  /** The placeholder identifier injected into the sanitized markup. */
93
61
  placeholder: string;
@@ -102,31 +70,7 @@ export interface MarkupCandidate {
102
70
  /** Whether this expression is a key context (each/promise/render key). */
103
71
  key: TagKind;
104
72
  }
105
- /**
106
- * Markup AST context where a lowered `yield*` expression was discovered.
107
- *
108
- * @example
109
- * ```ts
110
- * const kind: TagKind = "event";
111
- * ```
112
- *
113
- * @since 2.0.0
114
- */
115
- export type TagKind = "plain" | "each" | "await" | "event" | "render" | "render_argument";
116
- /**
117
- * Source edit emitted for one lowered markup candidate.
118
- *
119
- * @example
120
- * ```ts
121
- * const replacement: Replacement = {
122
- * start: 4,
123
- * end: 19,
124
- * text: "__SER___value",
125
- * };
126
- * ```
127
- *
128
- * @since 2.0.0
129
- */
73
+ export type TagKind = "plain" | "each" | "await" | "event" | "html" | "render" | "render_argument";
130
74
  export interface Replacement {
131
75
  start: number;
132
76
  end: number;
@@ -134,98 +78,26 @@ export interface Replacement {
134
78
  helpers?: HelperDeclaration[];
135
79
  relocation?: PendingRelocation;
136
80
  }
137
- /**
138
- * Helper declaration emitted alongside markup replacements.
139
- *
140
- * @example
141
- * ```ts
142
- * const helper: HelperDeclaration = {
143
- * text: "const __SER___value = dispatcher.value(...);",
144
- * };
145
- * ```
146
- *
147
- * @since 2.0.0
148
- */
149
81
  export interface HelperDeclaration {
150
82
  text: string;
151
83
  relocation?: PendingRelocation;
152
84
  }
153
- /**
154
- * Relocation range that is relative to a pending replacement.
155
- *
156
- * @example
157
- * ```ts
158
- * const relocation: PendingRelocation = {
159
- * originalStart: 4,
160
- * originalEnd: 17,
161
- * generatedStartInReplacement: 6,
162
- * generatedEndInReplacement: 19,
163
- * };
164
- * ```
165
- *
166
- * @since 3.2.3
167
- */
168
85
  export interface PendingRelocation {
169
86
  originalStart: number;
170
87
  originalEnd: number;
171
88
  generatedStartInReplacement: number;
172
89
  generatedEndInReplacement: number;
173
90
  }
174
- /**
175
- * Helper-code insertion point with optional relocation metadata.
176
- *
177
- * @example
178
- * ```ts
179
- * const insertion: Insertion = {
180
- * start: 42,
181
- * text: "<script>const dispatcher = get_dispatcher();</script>",
182
- * };
183
- * ```
184
- *
185
- * @since 2.0.0
186
- */
187
91
  export interface Insertion {
188
92
  start: number;
189
93
  text: string;
190
94
  relocations?: PendingRelocation[];
191
95
  }
192
- /**
193
- * Generated binding names used by markup helper injection.
194
- *
195
- * @example
196
- * ```ts
197
- * const bindings: MarkupHelperBindings = {
198
- * codes: "__SER___codes",
199
- * dispatcher: "__SER___dispatcher",
200
- * };
201
- * ```
202
- *
203
- * @since 2.0.0
204
- */
205
96
  export interface MarkupHelperBindings {
206
97
  codes: string;
207
98
  dispatcher: string;
208
99
  yieldable: string;
209
100
  }
210
- /**
211
- * Allocator that reserves collision-free helper names for generated markup.
212
- *
213
- * @example
214
- * ```ts
215
- * const allocator: MarkupNameAllocator = {
216
- * reserve: (name) => name,
217
- * };
218
- * ```
219
- *
220
- * @since 2.0.0
221
- */
222
101
  export interface MarkupNameAllocator {
223
- /**
224
- * Reserves a generated name.
225
- *
226
- * @param name - Preferred identifier to reserve.
227
- * @returns A collision-free identifier that can be emitted into generated
228
- * markup helper code.
229
- */
230
102
  reserve(name: string): string;
231
103
  }
@@ -1,2 +1,2 @@
1
- import { t as transform_markup_effect } from "../chunks/transform-jNUr65K9.js";
1
+ import { t as transform_markup_effect } from "../chunks/transform-BXyYUAez.js";
2
2
  export { transform_markup_effect };
@@ -1,20 +1,3 @@
1
1
  import type { Effect } from "effect";
2
- /**
3
- * Runtime helper emitted by the markup transform for `{yield* expr}`
4
- * expressions in Svelte templates. Delegates to the dispatcher's
5
- * cached reactive value mechanism — returns the fallback synchronously,
6
- * then the resolved value once the effect completes in the browser. During
7
- * SSR the client dispatcher is not touched, so browser-only layers cannot
8
- * turn server rendering into a 500.
9
- *
10
- * @since 2.0.0
11
- * @param id - Stable identifier generated from the expression's source
12
- * position, used for cache lookups.
13
- * @param deps - Array of reactive dependencies (free identifiers in the
14
- * expression). When any dep changes, the previous fiber is cancelled
15
- * and a new one starts.
16
- * @param fallback - Value returned while the effect is running.
17
- * @param factory - Generator function that yields the effect to run.
18
- * @returns The cached value if resolved, or the fallback.
19
- */
2
+ /** Reads a transform-generated reactive value through the active dispatcher. */
20
3
  export declare function value<A, F, E, R>(id: string, deps: readonly unknown[], fallback: F, factory: () => Effect.gen.Return<A, E, R>): A | F;
@@ -1,23 +1,6 @@
1
- import { n as get_dispatcher } from "../chunks/dispatcher-H-Ia0Os4.js";
1
+ import { n as get_dispatcher } from "../chunks/dispatcher-BA0PLQhA.js";
2
2
  //#region src/markup/value.ts
3
- /**
4
- * Runtime helper emitted by the markup transform for `{yield* expr}`
5
- * expressions in Svelte templates. Delegates to the dispatcher's
6
- * cached reactive value mechanism — returns the fallback synchronously,
7
- * then the resolved value once the effect completes in the browser. During
8
- * SSR the client dispatcher is not touched, so browser-only layers cannot
9
- * turn server rendering into a 500.
10
- *
11
- * @since 2.0.0
12
- * @param id - Stable identifier generated from the expression's source
13
- * position, used for cache lookups.
14
- * @param deps - Array of reactive dependencies (free identifiers in the
15
- * expression). When any dep changes, the previous fiber is cancelled
16
- * and a new one starts.
17
- * @param fallback - Value returned while the effect is running.
18
- * @param factory - Generator function that yields the effect to run.
19
- * @returns The cached value if resolved, or the fallback.
20
- */
3
+ /** Reads a transform-generated reactive value through the active dispatcher. */
21
4
  function value(id, deps, fallback, factory) {
22
5
  if (is_server_render()) return fallback;
23
6
  return get_dispatcher().value({
@@ -1 +1 @@
1
- {"version":3,"file":"value.js","names":[],"sources":["../../../modules/svelte-effect-runtime/src/markup/value.ts"],"sourcesContent":["import { get_dispatcher } from \"$/generated/dispatcher.ts\";\nimport type { Effect } from \"effect\";\n\n/**\n * Runtime helper emitted by the markup transform for `{yield* expr}`\n * expressions in Svelte templates. Delegates to the dispatcher's\n * cached reactive value mechanism — returns the fallback synchronously,\n * then the resolved value once the effect completes in the browser. During\n * SSR the client dispatcher is not touched, so browser-only layers cannot\n * turn server rendering into a 500.\n *\n * @since 2.0.0\n * @param id - Stable identifier generated from the expression's source\n * position, used for cache lookups.\n * @param deps - Array of reactive dependencies (free identifiers in the\n * expression). When any dep changes, the previous fiber is cancelled\n * and a new one starts.\n * @param fallback - Value returned while the effect is running.\n * @param factory - Generator function that yields the effect to run.\n * @returns The cached value if resolved, or the fallback.\n */\nexport function value<A, F, E, R>(\n\tid: string,\n\tdeps: readonly unknown[],\n\tfallback: F,\n\tfactory: () => Effect.gen.Return<A, E, R>,\n): A | F {\n\tif (is_server_render()) {\n\t\treturn fallback;\n\t}\n\n\treturn get_dispatcher().value<A | F>({ id, deps, fallback, factory });\n}\n\nfunction is_server_render(): boolean {\n\treturn typeof document === \"undefined\";\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAqBA,SAAgB,MACf,IACA,MACA,UACA,SACQ;CACR,IAAI,iBAAiB,GACpB,OAAO;CAGR,OAAO,eAAe,CAAC,CAAC,MAAa;EAAE;EAAI;EAAM;EAAU;CAAQ,CAAC;AACrE;AAEA,SAAS,mBAA4B;CACpC,OAAO,OAAO,aAAa;AAC5B"}
1
+ {"version":3,"file":"value.js","names":[],"sources":["../../../modules/svelte-effect-runtime/src/markup/value.ts"],"sourcesContent":["import { get_dispatcher } from \"$/generated/dispatcher.ts\";\nimport type { Effect } from \"effect\";\n\n/** Reads a transform-generated reactive value through the active dispatcher. */\nexport function value<A, F, E, R>(\n\tid: string,\n\tdeps: readonly unknown[],\n\tfallback: F,\n\tfactory: () => Effect.gen.Return<A, E, R>,\n): A | F {\n\tif (is_server_render()) {\n\t\treturn fallback;\n\t}\n\n\treturn get_dispatcher().value<A | F>({ id, deps, fallback, factory });\n}\n\nfunction is_server_render(): boolean {\n\treturn typeof document === \"undefined\";\n}\n"],"mappings":";;;AAIA,SAAgB,MACf,IACA,MACA,UACA,SACQ;CACR,IAAI,iBAAiB,GACpB,OAAO;CAGR,OAAO,eAAe,CAAC,CAAC,MAAa;EAAE;EAAI;EAAM;EAAU;CAAQ,CAAC;AACrE;AAEA,SAAS,mBAA4B;CACpC,OAAO,OAAO,aAAa;AAC5B"}
package/.dist/mod.d.ts CHANGED
@@ -1,6 +1,6 @@
1
+ import type { CommandFactory, FormFactory, PrerenderFactory, QueryFactory, ServerRuntimeFactory } from "./server/types.js";
1
2
  import type { ErrorEffectFactory, RedirectEffectFactory } from "./server/control-flow.js";
2
3
  import type { RequestEvent as RequestEventShape } from "./server/runtime.js";
3
- import type { CommandFactory, FormFactory, PrerenderFactory, QueryFactory, ServerRuntimeFactory } from "./server/types.js";
4
4
  import type { Context, Layer, ManagedRuntime } from "effect";
5
5
  /**
6
6
  * Public API surface for `svelte-effect-runtime`.
@@ -170,15 +170,10 @@ export declare const RequestEvent: Context.Reference<RequestEventShape>;
170
170
  * @since 2.0.0
171
171
  */
172
172
  export declare const get_server_runtime_or_throw: () => ManagedRuntime.ManagedRuntime<unknown, never>;
173
- /** Re-export error types users need for typed catch handlers. */
174
173
  export type { FormError, FormIssue, RemoteFailure, RemoteHttpError, RemoteTransportError, RemoteValidationError, } from "./remote/shared.js";
175
- export { AsyncEffectInEventCallbackError, AsyncEffectInSyncRuneError, AwaitInEffectWorkError, BatchQueryHandlerMissingError, DispatcherDisposedError, EmptyStreamYieldError, InvalidCommandFactoryError, InvalidLiveQueryFactoryError, InvalidLiveQueryReturnError, InvalidQueryFactoryError, InvalidRemoteFormResponseError, PreprocessError, RemoteErrorDecodeError, RemoteFormEndpointMissingError, RemoteHelperContextError, RemoteHelperError, RequestEventUnavailableError, RuntimeAlreadyInitializedError, RuntimeError, ServerOnlyImportError, SvelteKitServerExportUnavailableError, UncheckedCommandHandlerMissingError, UncheckedFormHandlerMissingError, UncheckedLiveQueryHandlerMissingError, UncheckedPrerenderHandlerMissingError, UncheckedQueryHandlerMissingError, UnsupportedMarkupEffectPositionError, UnsupportedRemoteFormResponseError, YieldStarInEventCallbackError, } from "./errors.js";
174
+ export { AsyncEffectInEventCallbackError, AsyncEffectInSyncRuneError, AwaitInEffectWorkError, BatchQueryHandlerMissingError, DispatcherDisposedError, EmptyStreamYieldError, InvalidCommandFactoryError, InvalidLiveQueryFactoryError, InvalidLiveQueryReturnError, InvalidPrerenderFactoryError, InvalidQueryFactoryError, InvalidRemoteFormResponseError, InvalidYieldableError, PreprocessError, RemoteErrorDecodeError, RemoteFormEndpointMissingError, RemoteHelperContextError, RemoteHelperError, RequestEventUnavailableError, RuntimeAlreadyInitializedError, RuntimeError, ServerOnlyImportError, SvelteKitServerExportUnavailableError, UncheckedCommandHandlerMissingError, UncheckedFormHandlerMissingError, UncheckedLiveQueryHandlerMissingError, UncheckedPrerenderHandlerMissingError, UncheckedQueryHandlerMissingError, UnsupportedMarkupEffectPositionError, UnsupportedRemoteFormResponseError, YieldStarInEventCallbackError, } from "./errors.js";
176
175
  export { is_form_error, is_remote_http_error, is_remote_transport_error, is_remote_validation_error, } from "./remote/shared.js";
177
- /** Re-export app setup helpers so users can import them from root. */
178
176
  export { effect, type EffectOptions } from "./compiler.js";
179
- /** Re-export server helper types from the root entrypoint. */
180
177
  export type { ErrorBody, ErrorEffectFactory, ErrorProperties, ErrorStatus, ErrorStatusName, RedirectEffectFactory, RedirectOptions, RedirectStatus, RedirectStatusName, } from "./server/control-flow.js";
181
- /** Re-export server helper types from the root entrypoint. */
182
178
  export type { LiveFactory, LiveStatus, RemoteLiveStream } from "./live.js";
183
- /** Re-export server helper types from the root entrypoint. */
184
- export type { CommandFactory, EffectLike, EffectRemoteBatchHandler, EffectRemoteCommand, EffectRemoteForm, EffectRemoteFunction, EffectRemoteLiveQuery, EffectRemoteLiveQueryFunction, EffectRemoteQuery, EffectRemoteQueryFunction, FormFactory, FormInvalid, PrerenderFactory, PrerenderOptions, QueryBatchFactory, QueryFactory, QueryLiveFactory, RemoteFormHandler, RemoteHandler, RemoteLiveHandler, RemoteLiveSource, SchemaEncodedInput, SchemaInput, ServerRuntimeFactory, StandardSchema, StandardSchemaInput, StandardSchemaOutput, } from "./server/types.js";
179
+ export type { CommandFactory, EffectLike, EffectRemoteBatchHandler, EffectRemoteCommand, EffectRemoteCommandCall, EffectRemoteForm, EffectRemoteFunction, EffectRemoteLiveQuery, EffectRemoteLiveQueryFunction, EffectRemotePrerender, EffectRemotePrerenderFunction, EffectRemoteQuery, EffectRemoteQueryFunction, FormFactory, FormInvalid, PrerenderFactory, PrerenderInputs, PrerenderOptions, QueryBatchFactory, QueryFactory, QueryLiveFactory, RemoteFormHandler, RemoteHandler, RemoteLiveHandler, RemoteLiveSource, SchemaEncodedInput, SchemaInput, ServerRuntimeFactory, StandardSchema, StandardSchemaInput, StandardSchemaOutput, } from "./server/types.js";
package/.dist/mod.js CHANGED
@@ -1,8 +1,8 @@
1
- import { C as UncheckedFormHandlerMissingError, D as UnsupportedMarkupEffectPositionError, E as UncheckedQueryHandlerMissingError, O as UnsupportedRemoteFormResponseError, S as UncheckedCommandHandlerMissingError, T as UncheckedPrerenderHandlerMissingError, _ as RequestEventUnavailableError, a as DispatcherDisposedError, b as ServerOnlyImportError, c as InvalidLiveQueryFactoryError, d as InvalidRemoteFormResponseError, f as PreprocessError, g as RemoteHelperError, h as RemoteHelperContextError, i as BatchQueryHandlerMissingError, k as YieldStarInEventCallbackError, l as InvalidLiveQueryReturnError, m as RemoteFormEndpointMissingError, n as AsyncEffectInSyncRuneError, o as EmptyStreamYieldError, p as RemoteErrorDecodeError, r as AwaitInEffectWorkError, s as InvalidCommandFactoryError, t as AsyncEffectInEventCallbackError, u as InvalidQueryFactoryError, v as RuntimeAlreadyInitializedError, w as UncheckedLiveQueryHandlerMissingError, x as SvelteKitServerExportUnavailableError, y as RuntimeError } from "./chunks/errors-IJjsUwrE.js";
2
- import { t as Dispatcher } from "./chunks/dispatcher-DOx8iC6r.js";
3
- import { t as Live } from "./chunks/live-BXAKre_4.js";
1
+ import { A as UnsupportedRemoteFormResponseError, C as SvelteKitServerExportUnavailableError, D as UncheckedPrerenderHandlerMissingError, E as UncheckedLiveQueryHandlerMissingError, O as UncheckedQueryHandlerMissingError, S as ServerOnlyImportError, T as UncheckedFormHandlerMissingError, _ as RemoteHelperContextError, a as DispatcherDisposedError, b as RuntimeAlreadyInitializedError, c as InvalidLiveQueryFactoryError, d as InvalidQueryFactoryError, f as InvalidRemoteFormResponseError, g as RemoteFormEndpointMissingError, h as RemoteErrorDecodeError, i as BatchQueryHandlerMissingError, j as YieldStarInEventCallbackError, k as UnsupportedMarkupEffectPositionError, l as InvalidLiveQueryReturnError, m as PreprocessError, n as AsyncEffectInSyncRuneError, o as EmptyStreamYieldError, p as InvalidYieldableError, r as AwaitInEffectWorkError, s as InvalidCommandFactoryError, t as AsyncEffectInEventCallbackError, u as InvalidPrerenderFactoryError, v as RemoteHelperError, w as UncheckedCommandHandlerMissingError, x as RuntimeError, y as RequestEventUnavailableError } from "./chunks/errors-CLsbGjIa.js";
2
+ import { t as Dispatcher } from "./chunks/dispatcher-_x0MQZBS.js";
4
3
  import { is_form_error, is_remote_http_error, is_remote_transport_error, is_remote_validation_error } from "./remote/shared.js";
5
- import { t as effect } from "./chunks/compiler-BBPNyXmQ.js";
4
+ import { t as Live } from "./chunks/live-BundLSoY.js";
5
+ import { t as effect } from "./chunks/compiler-COVzgLYo.js";
6
6
  //#region src/mod.ts
7
7
  /**
8
8
  * Public API surface for `svelte-effect-runtime`.
@@ -192,6 +192,6 @@ function make_server_only_error(name) {
192
192
  return new ServerOnlyImportError(name);
193
193
  }
194
194
  //#endregion
195
- export { AsyncEffectInEventCallbackError, AsyncEffectInSyncRuneError, AwaitInEffectWorkError, BatchQueryHandlerMissingError, ClientRuntime, Command, DispatcherDisposedError, EmptyStreamYieldError, Error, Form, InvalidCommandFactoryError, InvalidLiveQueryFactoryError, InvalidLiveQueryReturnError, InvalidQueryFactoryError, InvalidRemoteFormResponseError, Live, PreprocessError, Prerender, Query, Redirect, RemoteErrorDecodeError, RemoteFormEndpointMissingError, RemoteHelperContextError, RemoteHelperError, RequestEvent, RequestEventUnavailableError, RuntimeAlreadyInitializedError, RuntimeError, ServerOnlyImportError, ServerRuntime, SvelteKitServerExportUnavailableError, UncheckedCommandHandlerMissingError, UncheckedFormHandlerMissingError, UncheckedLiveQueryHandlerMissingError, UncheckedPrerenderHandlerMissingError, UncheckedQueryHandlerMissingError, UnsupportedMarkupEffectPositionError, UnsupportedRemoteFormResponseError, YieldStarInEventCallbackError, effect, get_server_runtime_or_throw, is_form_error, is_remote_http_error, is_remote_transport_error, is_remote_validation_error };
195
+ export { AsyncEffectInEventCallbackError, AsyncEffectInSyncRuneError, AwaitInEffectWorkError, BatchQueryHandlerMissingError, ClientRuntime, Command, DispatcherDisposedError, EmptyStreamYieldError, Error, Form, InvalidCommandFactoryError, InvalidLiveQueryFactoryError, InvalidLiveQueryReturnError, InvalidPrerenderFactoryError, InvalidQueryFactoryError, InvalidRemoteFormResponseError, InvalidYieldableError, Live, PreprocessError, Prerender, Query, Redirect, RemoteErrorDecodeError, RemoteFormEndpointMissingError, RemoteHelperContextError, RemoteHelperError, RequestEvent, RequestEventUnavailableError, RuntimeAlreadyInitializedError, RuntimeError, ServerOnlyImportError, ServerRuntime, SvelteKitServerExportUnavailableError, UncheckedCommandHandlerMissingError, UncheckedFormHandlerMissingError, UncheckedLiveQueryHandlerMissingError, UncheckedPrerenderHandlerMissingError, UncheckedQueryHandlerMissingError, UnsupportedMarkupEffectPositionError, UnsupportedRemoteFormResponseError, YieldStarInEventCallbackError, effect, get_server_runtime_or_throw, is_form_error, is_remote_http_error, is_remote_transport_error, is_remote_validation_error };
196
196
 
197
197
  //# sourceMappingURL=mod.js.map