@markless/core 0.4.0 → 0.6.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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @markless/core
2
2
 
3
- Markless core authoring APIs: resumable TSRX apps with no hydration and no VDOM.
3
+ Markless core authoring APIs: resumable TSRX apps. Server HTML arrives already wired, and code loads only when an event needs it.
4
4
 
5
5
  ```sh
6
6
  npm install @markless/core
package/agent/markless.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Markless agent playbook
2
2
 
3
- Use this file as the guidance for the installed `@markless/core` version in the current project. Markless compiles `.tsrx` authoring into fine-grained DOM work; it does not use a virtual DOM or hydrate by rerunning component bodies in the browser.
3
+ Use this file as the guidance for the installed `@markless/core` version in the current project. Markless compiles `.tsrx` authoring into fine-grained DOM work; it does not use a virtual DOM, and component bodies never rerun in the browser: the page resumes from the server's HTML and loads code only when an event needs it.
4
4
 
5
5
  ## Authoring
6
6
 
@@ -34,5 +34,5 @@ Do not copy channel protocol strings or configuration constants into application
34
34
  2. Run the doctor and fix version skew or build failures first.
35
35
  3. Use the analyzer's public payload-wiring and locator-resolution collectors to compare served payload claims, runtime registrations, and resolved DOM targets.
36
36
  4. Use the preload-integrity and request-window helpers for code that arrives too late, and the debug-strip evaluator to distinguish debug-enabled evidence from an unflagged production artifact.
37
- 5. When testing explicit resume entry points, import the public resume helpers from `@markless/core` or its documented runtime entry points. Do not invent hydration or rerender as a recovery path.
37
+ 5. When testing explicit resume entry points, import the public resume helpers from `@markless/core` or its documented runtime entry points. Do not invent a rerender or a second run of component bodies as a recovery path.
38
38
  6. Preserve the smallest failing application case and its receipts, then run that application's checks after the fix.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { CsrRenderArtifact, CsrRenderContainer, CsrRenderOptions, CsrRenderOutput, CsrRenderable, RenderTarget, render } from "@markless/web/render";
2
2
  import { RenderToStringOptions, SsrRenderArtifact, SsrRenderOutput, SsrRenderable, renderToString } from "@markless/web/render-to-string";
3
3
  import { ResumePayloadDocumentInput, ResumePayloadScriptsInput, ResumePayloadScriptsResult, resumeFromPayloadDocument, resumeFromPayloadScripts } from "@markless/web/resume";
4
-
5
4
  //#region src/framework-api.d.ts
6
5
  type AsyncComputedValue<T> = T extends Promise<infer Value> ? Awaited<Value> : T;
7
6
  type ElementHandle<T extends Element | readonly Element[] = Element> = T extends readonly (infer E extends Element)[] ? E[] : T | undefined;
@@ -23,7 +22,7 @@ type FrameworkApiRuntimeDiagnostic = {
23
22
  }>;
24
23
  readonly docsUrl: string;
25
24
  };
26
- declare class FrameworkApiRuntimeError extends Error implements FrameworkApiRuntimeDiagnostic {
25
+ export declare class FrameworkApiRuntimeError extends Error implements FrameworkApiRuntimeDiagnostic {
27
26
  readonly code: "MARKLESS_FRAMEWORK_API_RUNTIME_CALL";
28
27
  readonly severity: "error";
29
28
  readonly phase: "runtime";
@@ -36,13 +35,13 @@ declare class FrameworkApiRuntimeError extends Error implements FrameworkApiRunt
36
35
  readonly docsUrl = "https://markless.dev/errors/MARKLESS_FRAMEWORK_API_RUNTIME_CALL";
37
36
  constructor(apiName: FrameworkApiName);
38
37
  }
39
- declare function state<T>(initial: T): T;
40
- declare function computed<T>(derive: () => T): AsyncComputedValue<T>;
41
- declare function element<T extends Element | Element[] = Element>(): ElementHandle<T>;
38
+ export declare function state<T>(initial: T): T;
39
+ export declare function computed<T>(derive: () => T): AsyncComputedValue<T>;
40
+ export declare function element<T extends Element | Element[] = Element>(): ElementHandle<T>;
42
41
  type SharedDefinition<T> = () => T;
43
- declare function shared<T>(create: () => T, options?: SharedOptions): SharedDefinition<T>;
44
- declare function storage(fallback: string): string;
45
- declare function storage(key: string, fallback: string): string;
42
+ export declare function shared<T>(create: () => T, options?: SharedOptions): SharedDefinition<T>;
43
+ export declare function storage(fallback: string): string;
44
+ export declare function storage(key: string, fallback: string): string;
46
45
  //#endregion
47
46
  //#region src/jsx-types.d.ts
48
47
  /** Anything that can sit in a component's `children` position. */
@@ -62,7 +61,7 @@ type PropsOf<Tag extends __MarklessTypeService.IntrinsicTagName> = __MarklessTyp
62
61
  * consumer knows, made required and mutable, because a prop is optional to the
63
62
  * consumer while the root assigns every one of them on every render.
64
63
  */
65
- type Seeded<Props, Keys extends keyof Props> = { -readonly [Field in Keys]-?: Props[Field] };
64
+ type Seeded<Props, Keys extends keyof Props> = { -readonly [Field in Keys]-?: Props[Field]; };
66
65
  /**
67
66
  * A compiled TSRX component, as a value: what a `.tsrx` module's default export
68
67
  * is, what test harnesses mount, and what composition renders. The runtime's
@@ -70,4 +69,4 @@ type Seeded<Props, Keys extends keyof Props> = { -readonly [Field in Keys]-?: Pr
70
69
  */
71
70
  type Component = CsrRenderable;
72
71
  //#endregion
73
- export { type AsyncComputedValue, type Children, type Component, type CsrRenderArtifact, type CsrRenderContainer, type CsrRenderOptions, type CsrRenderOutput, type CsrRenderable, type ElementHandle, type FrameworkApiName, type FrameworkApiRuntimeDiagnostic, FrameworkApiRuntimeError, type PropsOf, type RenderTarget, type RenderToStringOptions, type ResumePayloadDocumentInput, type ResumePayloadScriptsInput, type ResumePayloadScriptsResult, type Seeded, type SharedDefinition, type SharedOptions, type SharedScope, type SsrRenderArtifact, type SsrRenderOutput, type SsrRenderable, computed, element, render, renderToString, resumeFromPayloadDocument, resumeFromPayloadScripts, shared, state, storage };
72
+ export { type AsyncComputedValue, type Children, type Component, type CsrRenderArtifact, type CsrRenderContainer, type CsrRenderOptions, type CsrRenderOutput, type CsrRenderable, type ElementHandle, type FrameworkApiName, type FrameworkApiRuntimeDiagnostic, type PropsOf, type RenderTarget, type RenderToStringOptions, type ResumePayloadDocumentInput, type ResumePayloadScriptsInput, type ResumePayloadScriptsResult, type Seeded, type SharedDefinition, type SharedOptions, type SharedScope, type SsrRenderArtifact, type SsrRenderOutput, type SsrRenderable, render, renderToString, resumeFromPayloadDocument, resumeFromPayloadScripts };
package/dist/preload.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { AppendedModulePreloads, LazySymbolPreloadView, MarklessBundleGraph, ModulePreloadFetchPriority, ModulePreloadPlanEntry, ModulePreloadPlanInput, ModulePreloadPriority, ModulePreloadRoot, PreloadLazySymbolModulesInput, planModulePreloadUrls, planModulePreloads, preloadLazySymbolModules } from "@markless/bundler/preload";
2
- export { type AppendedModulePreloads, type LazySymbolPreloadView, type MarklessBundleGraph, type ModulePreloadFetchPriority, type ModulePreloadPlanEntry, type ModulePreloadPlanInput, type ModulePreloadPriority, type ModulePreloadRoot, type PreloadLazySymbolModulesInput, planModulePreloadUrls, planModulePreloads, preloadLazySymbolModules };
1
+ import { AppendedModulePreloads, LazySymbolPreloadView, MarklessBundleGraph, ModulePreloadFetchPriority, ModulePreloadPlanEntry, ModulePreloadPlanInput, ModulePreloadPriority, ModulePreloadRoot, PreloadLazySymbolModulesInput, isExecutionLogChunk, planModulePreloadUrls, planModulePreloads, preloadLazySymbolModules } from "@markless/bundler/preload";
2
+ export { type AppendedModulePreloads, type LazySymbolPreloadView, type MarklessBundleGraph, type ModulePreloadFetchPriority, type ModulePreloadPlanEntry, type ModulePreloadPlanInput, type ModulePreloadPriority, type ModulePreloadRoot, type PreloadLazySymbolModulesInput, isExecutionLogChunk, planModulePreloadUrls, planModulePreloads, preloadLazySymbolModules };
package/dist/preload.js CHANGED
@@ -1,2 +1,2 @@
1
- import { planModulePreloadUrls, planModulePreloads, preloadLazySymbolModules } from "@markless/bundler/preload";
2
- export { planModulePreloadUrls, planModulePreloads, preloadLazySymbolModules };
1
+ import { isExecutionLogChunk, planModulePreloadUrls, planModulePreloads, preloadLazySymbolModules } from "@markless/bundler/preload";
2
+ export { isExecutionLogChunk, planModulePreloadUrls, planModulePreloads, preloadLazySymbolModules };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@markless/core",
3
- "version": "0.4.0",
4
- "description": "Markless core authoring APIs: resumable TSRX apps with no hydration and no VDOM.",
3
+ "version": "0.6.0",
4
+ "description": "Markless core authoring APIs: resumable TSRX apps whose server HTML arrives already wired and loads code only when an event needs it.",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -113,9 +113,9 @@
113
113
  "provenance": true
114
114
  },
115
115
  "dependencies": {
116
- "@markless/router": "0.4.0",
117
- "@markless/web": "0.4.0",
118
- "@markless/bundler": "0.4.0"
116
+ "@markless/bundler": "0.6.0",
117
+ "@markless/web": "0.6.0",
118
+ "@markless/router": "0.6.0"
119
119
  },
120
120
  "scripts": {}
121
121
  }