[1.4.0] - 2025-07-11
🚀 Major Features - Drizzle-Style Schema Management
- Centralized Schema Generation: New
--init-schema
command creates a single jsonboard.schema.ts
file
- TypeScript-First Approach: Generated schemas are fully typed with Zod and TypeScript support
- Drizzle-Like Experience: Import schemas like
import { usersSchema, productsSchema } from './jsonboard.schema'
- Validation Helpers: Auto-generated validation functions for each schema
- Type Exports: Full TypeScript type support with
UsersSchemaType
, ProductsSchemaType
, etc.
- File Index: Easy reference system for schema-to-file mapping
✨ Schema Management Features
- Single File Approach: All schemas in one
jsonboard.schema.ts
file (no folder pollution)
- Smart Schema Naming: Converts file paths to valid TypeScript identifiers
- Validation Functions: Pre-built validation helpers for each JSON file
- Type Safety: Full TypeScript support with inferred types
- Import/Export Ready: Clean ES6 imports and exports
🔧 Developer Experience
- Clean Documentation: Auto-generated JSDoc comments with usage examples
- Error Handling: Comprehensive error messages with path information
- Legacy Support:
--generate-schema
still available for individual files
- Zero Configuration: Works out of the box with any JSON project structure
🏗️ Technical Improvements
- Enhanced schema generator with TypeScript code generation
- Improved file scanning with better config file exclusion
- Better error handling and validation reporting
- Optimized schema generation performance
📖 Usage Examples
# Generate centralized schema file
jsonboard --init-schema