Skip to content

Refactor/codebase - #9

Merged
favorodera merged 30 commits into
mainfrom
refactor/codebase
Jun 26, 2026
Merged

Refactor/codebase#9
favorodera merged 30 commits into
mainfrom
refactor/codebase

Conversation

@favorodera

Copy link
Copy Markdown
Owner

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 tsup to tsdown

- 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
@pkg-pr-new

pkg-pr-new Bot commented Jun 26, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/zod-sqlite@9

commit: 9858a9e

@favorodera
favorodera merged commit 83299b2 into main Jun 26, 2026
5 checks passed
@favorodera
favorodera deleted the refactor/codebase branch June 26, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant