mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 06:14:59 +00:00
- Added migrationQueue to SchemaRegistry for tracking pending migrations. - Implemented clear method to reset the registry state. - Enhanced schema registration and retrieval methods to support entity normalization. - Updated loadSchemaRegistry to handle entities and migrationQueue from JSON. - Introduced saveSchemaRegistry to persist entities and migrationQueue. - Added functions for approving and rejecting migrations. feat(schema-scanner): implement package scanning for schema registration - Created scanAllPackages function to scan directories for package metadata. - Extracted and validated schema entities from package metadata. - Registered schemas in the SchemaRegistry based on scanned packages. fix(load-page-from-db): improve tenantId handling and null checks - Updated tenantId handling to use nullish coalescing for better clarity. - Refined null checks for page retrieval. feat(validation): add Zod validation utilities for standardized data validation - Introduced validation utilities for API requests and package data validation. - Created common reusable schemas for various data types. - Implemented package-specific validator factory for enhanced error reporting. test(package-integration): fix potential null checks in package dependency resolution - Updated package dependency resolution logic to handle undefined cases. chore(package.json): add jsdom as a dev dependency for testing - Included jsdom in devDependencies for improved testing capabilities. fix(metadata): update package metadata for consistency and clarity - Standardized packageId and name fields in metadata.json files across multiple packages.