@webstir-io/module-contract 0.3.0 → 0.4.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
@@ -346,12 +346,12 @@ bun install
346
346
  bun run clean # remove dist/schema artifacts
347
347
  bun run build # compiles TypeScript, regenerates schema/*.schema.json
348
348
  bun run test # type-checks the Accounts example module
349
- # From the repository root, prepare the synchronized production release set
350
- bun run release:prepare -- webstir patch
349
+ # From the repository root, describe the change for the next release
350
+ bun run changeset
351
351
  ```
352
352
 
353
353
  - The `schema/` folder contains `*-definition.schema.json` files derived from the exported Zod schemas. Commit them with contract changes.
354
- - The release-set workflow publishes the contract, backend, frontend, and CLI together after exact-commit CI succeeds.
354
+ - Merging the "Version packages" pull request publishes the contract, backend, frontend, and CLI together.
355
355
 
356
356
  ## License
357
357
 
@@ -1,4 +1,4 @@
1
- import { type RenderProgram, type RenderSourceLocation } from './render-program.js';
1
+ import type { RenderProgram, RenderSourceLocation } from './render-program.js';
2
2
  export declare const RENDER_CSRF_FIELD = "_csrf";
3
3
  export declare class RenderProgramError extends Error {
4
4
  readonly loc: RenderSourceLocation;
@@ -1,4 +1,4 @@
1
- import { RENDER_PROGRAM_VERSION, } from './render-program.js';
1
+ import { RENDER_PROGRAM_VERSION } from './render-version.js';
2
2
  export const RENDER_CSRF_FIELD = '_csrf';
3
3
  const SAFE_URL_SCHEMES = new Set(['http', 'https', 'mailto', 'tel']);
4
4
  const BLOCKED_URL = 'about:invalid';
@@ -1,6 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const RENDER_PROGRAM_VERSION = 1;
3
- export declare const RENDER_PROGRAM_FILE = "index.program.json";
2
+ export { RENDER_PROGRAM_FILE, RENDER_PROGRAM_VERSION } from './render-version.js';
4
3
  export declare const renderSourceLocationSchema: z.ZodObject<{
5
4
  file: z.ZodString;
6
5
  line: z.ZodNumber;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- export const RENDER_PROGRAM_VERSION = 1;
3
- export const RENDER_PROGRAM_FILE = 'index.program.json';
2
+ import { RENDER_PROGRAM_VERSION } from './render-version.js';
3
+ export { RENDER_PROGRAM_FILE, RENDER_PROGRAM_VERSION } from './render-version.js';
4
4
  export const renderSourceLocationSchema = z.object({
5
5
  file: z.string().min(1),
6
6
  line: z.number().int().positive(),
@@ -0,0 +1,2 @@
1
+ export declare const RENDER_PROGRAM_VERSION = 1;
2
+ export declare const RENDER_PROGRAM_FILE = "index.program.json";
@@ -0,0 +1,2 @@
1
+ export const RENDER_PROGRAM_VERSION = 1;
2
+ export const RENDER_PROGRAM_FILE = 'index.program.json';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstir-io/module-contract",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Public contract definitions for Webstir frontend and backend module providers.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -16,6 +16,11 @@
16
16
  "import": "./dist/client-nav.js",
17
17
  "default": "./dist/client-nav.js"
18
18
  },
19
+ "./render": {
20
+ "types": "./dist/render-execute.d.ts",
21
+ "import": "./dist/render-execute.js",
22
+ "default": "./dist/render-execute.js"
23
+ },
19
24
  "./ts-rest": {
20
25
  "types": "./dist/adapters/ts-rest.d.ts",
21
26
  "import": "./dist/adapters/ts-rest.js",