feat: upgrade drizzle-orm to 1.0.0-rc.2 - #45
Closed
zuohuadong wants to merge 42 commits into
Closed
zuohuadong wants to merge 42 commits into
zuohuadong wants to merge 42 commits into
Conversation
Completed full package renaming process including: - Package name changes in package.json files - Directory structure updates - Documentation updates in README.md and CONTRIBUTING.md - Example file renaming and updates - Script command updates - .gitignore updates to exclude .kiro folder
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [drizzle-orm](https://github.com/drizzle-team/drizzle-orm) from 0.36.4 to 0.44.4. - [Release notes](https://github.com/drizzle-team/drizzle-orm/releases) - [Commits](drizzle-team/drizzle-orm@0.36.4...0.44.4) --- updated-dependencies: - dependency-name: drizzle-orm dependency-version: 0.44.4 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
…ns/checkout-5 ci(deps): bump actions/checkout from 4 to 5
…-orm-0.44.4 chore(deps): bump drizzle-orm from 0.36.4 to 0.44.4
🎯 主要更改: - 移除旧的 TypeScript 装饰器语法,改为直接在方法中实现 - 修复类继承问题:将 loadRelationshipsForResults 改为 protected - 优化调试代码:所有 console 语句仅在开发环境执行 - 添加模块化架构支持和 refine-orm 兼容层 - 新增 WASM 优化和 bundle 大小优化功能 - 完善文档和示例代码 🔧 技术改进: - 解决 TypeScript 装饰器语法错误 - 提升生产环境性能 - 简化代码结构,提高可维护性 - 增强跨平台兼容性 (Bun/Node.js/Cloudflare Workers) 📚 文档更新: - 添加装饰器迁移指南 - 完善 API 文档和使用示例 - 更新贡献指南和代码审查规范
- Updated README documentation - Removed @refine-orm/core-utils package description from README - Minor documentation improvements and formatting fixes
- Remove npm cache configuration from CI workflows since project uses Bun - Add Node.js setup to release workflow for npm publishing compatibility - Fix GitHub Actions dependency lock file error
- Add --no-frozen-lockfile flag to bun install commands - Allow lockfile updates during CI/CD to handle dependency changes - Fix GitHub Actions build failures due to lockfile constraints
- Add Bun dependency caching using bun.lock hash - Remove --no-frozen-lockfile flag and use standard bun install - Optimize CI/CD performance with proper cache strategy - Use Bun's native lockfile instead of trying to generate package-lock.json
- Add no-cache: true to prevent setup-bun from running frozen lockfile install - Explicitly run bun install --no-frozen-lockfile to allow lockfile updates - Fix GitHub Actions lockfile frozen error by controlling install behavior
- Fix decorator issues by replacing with utility functions - Fix BaseKey | undefined type error with proper null checks - Fix interface compatibility issues between CompatDataProvider and CoreDataProvider - Fix client type compatibility in CoreDataProvider - Add proper type constraints for generic parameters - Resolve cache key undefined issue in memoization
- Fix client variable initialization with proxy pattern for async resolution - Fix createMany interface compatibility by excluding from base interface - Ensure proper type safety for client access patterns
- Remove cache: false from setup-node actions that was causing cache errors - GitHub Actions cache system doesn't support explicit false values - Let setup-node use default caching behavior
- 修复 Node.js 22.x 设置中的依赖锁文件检测错误 - 统一项目中所有测试使用 vitest - 添加根目录 vitest.config.ts 配置文件 - 修复 Bun 特定测试在 Node.js 环境中的兼容性问题 - 更新 CI 工作流程以正确处理不同的测试环境 - 添加必要的依赖项:@refinedev/core, vitest, better-sqlite3, mysql2, postgres - 优化测试脚本和错误处理
- 更新 bun.lock 以包含新添加的依赖 - 修改 CI 配置使用 --frozen-lockfile 参数 - 确保 CI 构建的一致性和可重现性
Bumps [drizzle-orm](https://github.com/drizzle-team/drizzle-orm) from 0.36.4 to 0.44.4. - [Release notes](https://github.com/drizzle-team/drizzle-orm/releases) - [Commits](drizzle-team/drizzle-orm@0.36.4...0.44.4) --- updated-dependencies: - dependency-name: drizzle-orm dependency-version: 0.44.4 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
…-orm-0.44.4 chore(deps): bump drizzle-orm from 0.36.4 to 0.44.4
Bumps the development-dependencies group with 6 updates: | Package | From | To | | --- | --- | --- | | [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) | `9.33.0` | `9.34.0` | | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `8.39.1` | `8.40.0` | | [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `8.39.1` | `8.40.0` | | [eslint](https://github.com/eslint/eslint) | `9.33.0` | `9.34.0` | | [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) | `8.39.1` | `8.40.0` | | [@cloudflare/workers-types](https://github.com/cloudflare/workerd) | `4.20250816.0` | `4.20250823.0` | Updates `@eslint/js` from 9.33.0 to 9.34.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/commits/v9.34.0/packages/js) Updates `@typescript-eslint/eslint-plugin` from 8.39.1 to 8.40.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.40.0/packages/eslint-plugin) Updates `@typescript-eslint/parser` from 8.39.1 to 8.40.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.40.0/packages/parser) Updates `eslint` from 9.33.0 to 9.34.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v9.33.0...v9.34.0) Updates `typescript-eslint` from 8.39.1 to 8.40.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.40.0/packages/typescript-eslint) Updates `@cloudflare/workers-types` from 4.20250816.0 to 4.20250823.0 - [Release notes](https://github.com/cloudflare/workerd/releases) - [Changelog](https://github.com/cloudflare/workerd/blob/main/Dockerfile.release) - [Commits](https://github.com/cloudflare/workerd/commits) --- updated-dependencies: - dependency-name: "@eslint/js" dependency-version: 9.34.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: "@typescript-eslint/eslint-plugin" dependency-version: 8.40.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: "@typescript-eslint/parser" dependency-version: 8.40.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: eslint dependency-version: 9.34.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: typescript-eslint dependency-version: 8.40.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: "@cloudflare/workers-types" dependency-version: 4.20250823.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
- 更新运行时检测以支持 bun:sql MySQL (Bun 1.2.21+) - 实现 MySQL 适配器的 bun:sql 连接方法 - 启用 createMySQLProviderWithBunSql 工厂函数 - 更新工厂函数的驱动选择逻辑 - 更新 MySQL 适配器文档以反映新支持 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- 修复 MySQL 适配器返回类型与工厂函数的集成 - 更新 PostgreSQL 和 SQLite 适配器以返回 RefineOrmDataProvider - 添加调试日志以排查适配器问题 - 更新 CI/CD 工作流配置 - 修复类型定义和导入问题 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
…ment-dependencies-3fd2d977a0 chore(deps-dev): bump the development-dependencies group with 6 updates
- Fix formatting check command in ci.yml (format --check → format:check) - Remove Node.js 16.x from compatibility matrix due to project requirements - Replace deprecated actions/create-release@v1 with ncipollo/release-action@v1 - Fix Node.js integration test command in testing.yml - Ensure all workflow scripts reference correct package.json commands 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Fix Node.js compatibility tests to use Bun for dependency management - Replace npm commands with bun equivalents - Remove invalid npm cache configuration - Improve error handling in ESM/CJS compatibility checks - Update testing workflow commands to use bun 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
…ncies - Move build step before typecheck in all workflows - This ensures workspace dependencies like @refine-orm/core-utils are built - Fixes "Cannot find module '@refine-orm/core-utils'" errors 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add build packages step before tests in all testing workflow jobs - This ensures workspace dependencies are built for integration tests - Remove duplicate build step in unit-tests job 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Fix malformed testing.yml with duplicate job names and missing structure - Add missing build steps before tests in workflows - Add proper caching configuration for Bun dependencies - Fix test:integration-node script to use correct file extension - Standardize workflow configurations across all files - Add concurrency control to prevent workflow conflicts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Update test:integration-* scripts to use workspace scripts directly - Ensure consistency between root and package-level scripts - Fix script execution paths for Bun and Node.js integration tests 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Comprehensive refactoring across all packages including core utilities, ORM adapters, SQL modules, CI/CD workflows, documentation updates, and test configurations. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Bumps the development-dependencies group with 8 updates: | Package | From | To | | --- | --- | --- | | [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) | `9.33.0` | `9.34.0` | | [@ianvs/prettier-plugin-sort-imports](https://github.com/ianvs/prettier-plugin-sort-imports) | `4.6.2` | `4.7.0` | | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `8.39.1` | `8.40.0` | | [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `8.39.1` | `8.40.0` | | [eslint](https://github.com/eslint/eslint) | `9.33.0` | `9.34.0` | | [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) | `8.39.1` | `8.40.0` | | [@types/bun](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/bun) | `1.2.20` | `1.2.21` | | [@cloudflare/workers-types](https://github.com/cloudflare/workerd) | `4.20250823.0` | `4.20250829.0` | Updates `@eslint/js` from 9.33.0 to 9.34.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/commits/v9.34.0/packages/js) Updates `@ianvs/prettier-plugin-sort-imports` from 4.6.2 to 4.7.0 - [Release notes](https://github.com/ianvs/prettier-plugin-sort-imports/releases) - [Changelog](https://github.com/IanVS/prettier-plugin-sort-imports/blob/main/CHANGELOG.md) - [Commits](IanVS/prettier-plugin-sort-imports@4.6.2...v4.7.0) Updates `@typescript-eslint/eslint-plugin` from 8.39.1 to 8.40.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.40.0/packages/eslint-plugin) Updates `@typescript-eslint/parser` from 8.39.1 to 8.40.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.40.0/packages/parser) Updates `eslint` from 9.33.0 to 9.34.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v9.33.0...v9.34.0) Updates `typescript-eslint` from 8.39.1 to 8.40.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.40.0/packages/typescript-eslint) Updates `@types/bun` from 1.2.20 to 1.2.21 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/bun) Updates `@cloudflare/workers-types` from 4.20250823.0 to 4.20250829.0 - [Release notes](https://github.com/cloudflare/workerd/releases) - [Changelog](https://github.com/cloudflare/workerd/blob/main/Dockerfile.release) - [Commits](https://github.com/cloudflare/workerd/commits) --- updated-dependencies: - dependency-name: "@eslint/js" dependency-version: 9.34.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: "@ianvs/prettier-plugin-sort-imports" dependency-version: 4.7.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: "@typescript-eslint/eslint-plugin" dependency-version: 8.40.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: "@typescript-eslint/parser" dependency-version: 8.40.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: eslint dependency-version: 9.34.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: typescript-eslint dependency-version: 8.40.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: "@types/bun" dependency-version: 1.2.21 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: development-dependencies - dependency-name: "@cloudflare/workers-types" dependency-version: 4.20250829.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: development-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
…ment-dependencies-9830a08240 chore(deps-dev): bump the development-dependencies group with 8 updates
- Enhanced integration test cleanup with proper database closing for better-sqlite3 - Added DROP TABLE cleanup in afterEach hooks to ensure test isolation - Fixed formatting issues throughout the codebase - Improved test database lifecycle management to prevent state pollution between tests 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Update bun.lock to resolve CI dependency installation issues caused by peer dependency warnings and lockfile drift. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Fix duplicate YAML content in testing.yml - Add missing caching and proper step configuration - Fix prettier configuration by removing unsupported import order options - Fix TypeScript version consistency (downgrade to 5.9.2) - Fix vitest config indentation issue - Reinstall better-sqlite3 with proper compilation - Format all files to pass lint checks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Reorder build step to run before typecheck in compatibility workflow - Add build step before running tests in testing workflow - Fix duplicate workflow definition in testing.yml - Remove unnecessary cache configurations causing issues - Add proper SQLite table creation for in-memory databases in tests - Improve error handling in database setup for integration tests
…ilability - Fix SQLite provider function signature to support both object and separate parameter calling styles - Manually assign schema to Drizzle clients when not automatically set - Update workflow builds to ensure packages are built before running tests and typecheck - Improve error messages to show available tables when schema lookup fails - Clean up debug logging while preserving critical functionality Resolves GitHub Actions workflow failures and npm test issues.
- Upgrade drizzle-orm to 1.0.0-rc.2 with API compatibility fixes - Update refine, vitest, zod, and related dependencies - Fix schema access on Drizzle RC clients (fallback to config schema) - Fix MySQL pool creation error propagation - Fix chain query builder: pagination validation, empty result normalization - Fix data provider: input validation, filter edge cases, error type wrapping - Fix query builder: sort/filter/symbol-based column access for Drizzle RC - Update tests for new Drizzle RC behavior and Refine v5 pagination fields - Gate integration/compatibility tests behind explicit env vars
Owner
Author
|
Closed in favor of #46, which applies the Drizzle RC upgrade on the current main branch and has been merged/released as v0.10.3. |
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.
Summary
Upgrade drizzle-orm from 0.44.x to 1.0.0-rc.2, along with all related dependencies.
Dependency upgrades
drizzle-orm-> 1.0.0-rc.2@refinedev/core-> latest (Refine v5 pagination fields)vitest-> v4.1.5 (pool rework migration)zod,rollup,typescript, and other dev dependenciesCompatibility fixes
Test improvements
Verification
bun run test: 565 passed, 535 skipped (integration tests gated behind env vars)bun run --filter='*' typecheck: all packages passbun run build: all packages build successfullyNote
This branch is based on the pre-v0.10.2 codebase. Merge may require conflict resolution against the recent restructure in main.