micro-contracts 0.17.15 → 0.17.16

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Contract-first OpenAPI toolchain for TypeScript Web/API systems. Generates contract packages, server routes, and frontend clients from OpenAPI specifications with enforceable guardrails.
4
4
 
5
- **Version:** 0.17.15
5
+ **Version:** 0.17.16
6
6
 
7
7
  ## Table of Contents
8
8
 
@@ -65,8 +65,8 @@ micro-contracts generate --force
65
65
  | `--config` | -c | No | | Path to config file (micro-contracts.config.yaml). |
66
66
  | `--module` | -m | No | | Module names, comma-separated. Generates all modules if omitted. |
67
67
  | `--contracts-only` | | No | `false` | Generate contract packages only. |
68
- | `--server-only` | | No | `false` | Generate server routes only. |
69
- | `--frontend-only` | | No | `false` | Generate frontend clients only. |
68
+ | `--server-only` | | No | `false` | Generate server outputs only: outputs whose id contains 'server', plus the built-in server section. Fails when no output matches. |
69
+ | `--frontend-only` | | No | `false` | Generate frontend outputs only: outputs whose id contains 'frontend' or 'client', plus the built-in frontend section. Fails when no output matches. |
70
70
  | `--docs-only` | | No | `false` | Generate documentation only. |
71
71
  | `--skip-lint` | | No | `false` | Skip Spectral linting before generation. |
72
72
  | `--manifest` | | No | `true` | Generate manifest after generation. Enabled by default when guardrails.yaml has a generated section. Use --no-manifest to disable. |
@@ -323,8 +323,8 @@ micro-contracts pipeline --contracts-only --skip-lint
323
323
  | `--manifest` | | No | `true` | Generate manifest after generation. Enabled by default. Use --no-manifest to disable. |
324
324
  | `--skip-lint` | | No | `false` | Skip Spectral linting before generation. |
325
325
  | `--contracts-only` | | No | `false` | Generate contract packages only. |
326
- | `--server-only` | | No | `false` | Generate server routes only. |
327
- | `--frontend-only` | | No | `false` | Generate frontend clients only. |
326
+ | `--server-only` | | No | `false` | Generate server outputs only: outputs whose id contains 'server', plus the built-in server section. Fails when no output matches. |
327
+ | `--frontend-only` | | No | `false` | Generate frontend outputs only: outputs whose id contains 'frontend' or 'client', plus the built-in frontend section. Fails when no output matches. |
328
328
  | `--docs-only` | | No | `false` | Generate documentation only. |
329
329
  | `--force` | | No | `false` | Bypass input hash cache and always regenerate. |
330
330
  | `--cache` | | No | `true` | Enable input hash caching. Enabled by default. Use --no-cache to disable both reading and writing cache. |
@@ -462,6 +462,7 @@ export function useHomePageEvents() {
462
462
  | `SCREEN_MISSING_NAME` | Error | `x-screen-id` present but `x-screen-name` missing |
463
463
  | `SCREEN_MISSING_OPERATION_ID` | Error | Screen operation missing `operationId` |
464
464
  | `SCREEN_INVALID_X_EVENT` | Error | `x-event` is not a string, `{name}` object, or `{$ref}` |
465
+ | `SCREEN_UNKNOWN_EVENT_REF` | Error | `x-event` `$ref` has no matching `components.x-event-defs` entry |
465
466
  | `SCREEN_CONFLICTING_EVENT_DEFS` | Error | `x-events` and `x-event` coexist on the same operation |
466
467
  | `SCREEN_INVALID_INTERACTIONS` | Error | `x-interactions` is not an array |
467
468
  | `SCREEN_INVALID_INTERACTION` | Error | `x-interactions` entry missing `name` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "micro-contracts",
3
- "version": "0.17.15",
3
+ "version": "0.17.16",
4
4
  "description": "Contract-first OpenAPI toolchain that keeps TypeScript UI and microservices aligned via code generation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",