Refactor/codebase - #9
Merged
Merged
Conversation
- set standard indentation to 2 spaces - enforce consistent line endings and charset - configure whitespace trimming rules
- configure git to use lf line endings automatically
- add support for common build and log directories - include environment and editor configuration patterns - group rules by category for better maintainability
- adopt contributor covenant v2.0 - establish community behavior standards - define enforcement and reporting guidelines
- remove eslint.config.mjs - add eslint.config.ts - adopt factory-based configuration - customize project-specific rules
- Migrate to module type and tsdown for builds - Update Node.js and pnpm engine requirements - Implement pnpm catalogs for dependency management - Standardize project scripts and linting config
- remove changesets configuration and readme - add relizy configuration file
- Update target to esnext and lib to es2023 - Simplify compiler options for bundler usage - Update include path to src directory
- remove tsup configuration - add tsdown configuration
- remove unnecessary reporters and projects - set testTimeout to 0
- Add issue and PR templates - Configure CI pipeline for linting and testing - Implement manual release workflow with Relizy - Add renovate dependency management - Clean up unused funding platforms
- Implement SQL column definition builder - Support constraints, defaults, and foreign keys - Integrate zod schema to SQLite type mapping
- implement buildIndexStatements function - support unique and partial index generation
- update import path for createTable - cleanup whitespace in index.ts
- Implement function for primary key SQL generation - Support single and composite primary keys
- add createTable function - generate SQL table and index statements - derive Zod schema from column configuration
- Define SQLite storage and support types - Add interfaces for columns, indexes, and tables - Include foreign key and primary key configurations - Integrate Zod schema support for validation
- Implement dynamic Zod schema builder - Map column configurations to Zod object - Add type-safe schema generation
- Delete core logic for SQL and Zod schema generation - Remove all associated unit and integration tests - Remove type definitions for SQLite schema configuration
- replace replace with replaceAll - update return types to use undefined - add missing eslint disable for loop - format code for consistency
- add curly braces to switch cases - replace global string replace with replaceAll - simplify boolean conversion logic - update JSDoc formatting
- add missing braces to switch blocks - enable perfectionist sort for switch cases - clean up function signature formatting
- Import zod as a type-only import - Clean up variable initialization - Standardize JSDoc formatting - Reorder return object properties
- add tests for primary and foreign key constraints - verify index creation and partial index support - test check constraints and unique column validation
- Add tests for standard index creation - Add tests for partial index generation
- verify SQL generation for simple tables - test complex column constraints and types - validate nullable and optional column behavior - ensure composite primary key support - check foreign key reference constraints
- add tests for schema validation - verify typescript type inference
- Add project badges for license, stars, and npm - Improve visual layout with header container - Clean up whitespace and formatting - Update README content for better readability
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a full codebase refactor which includes code styles, dependecies organisation and updates, file organisation, test refactor,, release configurations and pipelines and bundler migration from
tsuptotsdown