@peripheries/renderer 0.27.0 → 0.28.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.
@@ -0,0 +1,2 @@
1
+ export declare const META_ROOT: Record<string, unknown>;
2
+ export declare const META_VOCABULARIES: Array<Record<string, unknown>>;
@@ -1 +1,2 @@
1
1
  export { checkCatalog, validatePageProps, type CatalogInput } from './check.js';
2
+ export { resetUnrunnableSchemas, unrunnableSchemas } from './json-schema.js';
@@ -0,0 +1,15 @@
1
+ import { type OutputUnit } from '@cfworker/json-schema';
2
+ export type Verdict = {
3
+ valid: true;
4
+ } | {
5
+ valid: false;
6
+ message: string;
7
+ };
8
+ export declare class SchemaUnrunnable extends Error {
9
+ readonly name = "SchemaUnrunnable";
10
+ }
11
+ export declare const unrunnableSchemas: () => number;
12
+ export declare const resetUnrunnableSchemas: () => void;
13
+ export declare function words(errors: readonly OutputUnit[]): string;
14
+ export declare function judge(schema: object, value: unknown): Verdict;
15
+ export declare function schemaProblems(schema: unknown, at?: string): string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peripheries/renderer",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "description": "The one renderer for pages of federated component bundles: a framework-free core, a React renderer, the runtime a page boots with, and golden pages for testing.",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -47,8 +47,8 @@
47
47
  "LICENSE"
48
48
  ],
49
49
  "dependencies": {
50
+ "@cfworker/json-schema": "4.1.1",
50
51
  "@peripheries/runtime": "0.25.0",
51
- "ajv": "8.20.0",
52
52
  "graphql": "17.0.2"
53
53
  },
54
54
  "peerDependencies": {
@@ -58,6 +58,9 @@
58
58
  "react-dom": "^19.2.4",
59
59
  "zustand": "^5.0.0"
60
60
  },
61
+ "devDependencies": {
62
+ "ajv": "8.20.0"
63
+ },
61
64
  "license": "UNLICENSED",
62
65
  "repository": {
63
66
  "type": "git",