Skip to content

chore: update dependencies and migrate tooling (lefthook, vitest, TypeScript 6.0 fixes)#140

Merged
Himenon merged 10 commits intomainfrom
feat/update-deps
Apr 30, 2026
Merged

chore: update dependencies and migrate tooling (lefthook, vitest, TypeScript 6.0 fixes)#140
Himenon merged 10 commits intomainfrom
feat/update-deps

Conversation

@Himenon
Copy link
Copy Markdown
Owner

@Himenon Himenon commented Apr 30, 2026

Summary

This PR updates all dependencies to their latest versions and migrates the development tooling to keep the project maintainable.

Dependency updates

  • Upgraded all packages to their latest versions, including TypeScript 6.0.3

Tooling migration: simple-git-hooks + lint-staged → lefthook

  • Replaced simple-git-hooks and lint-staged with lefthook for Git hook management
  • Added lefthook.yml with equivalent pre-commit rules (biome format + sort-package-json)
  • Removed simple-git-hooks and lint-staged from devDependencies

Tooling migration: Jest → Vitest

  • Replaced jest, jest-cli, @swc/jest, ts-jest, @types/jest, and cross-env with vitest and @vitest/coverage-v8
  • Added vitest.config.ts for unit tests and vitest.snapshot.config.ts for snapshot tests
  • Removed jest.config.cjs and jest.snapshot.config.cjs
  • Converted require() in test/utils.ts to ESM import
  • Updated snapshot headers from Jest to Vitest format

TypeScript 6.0 compatibility fixes

  • tsconfig.build.json: added "ignoreDeprecations": "6.0" to suppress the deprecated baseUrl error emitted by tsup's DTS build
  • tsconfig.build.json: added "types": ["node"] to restore @types/node resolution under moduleResolution: "bundler"
  • src/internal/TsGenerator/factory/LiteralTypeNode.ts: fixed a runtime crash where createNumericLiteral was called with a negative number. TypeScript 6.0 asserts that negative numbers must be expressed as a PrefixUnaryExpression with MinusToken

Test Plan

  • pnpm run build — CJS, ESM, and DTS outputs all succeed
  • pnpm run test:vitest — 3 unit tests pass (same count as before with Jest)
  • pnpm run test:code:gen — all code generation scripts complete without errors
  • pnpm run test:snapshot — 49 snapshot tests pass after updating snapshots with pnpm run update:snapshot

Himenon and others added 6 commits April 30, 2026 22:05
Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
…ation

fix: TypeScript 6.0 での DTS ビルドエラーを修正

Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
…ary expression

fix: TypeScript 6.0 で負の数リテラルを PrefixUnaryExpression で生成するよう修正

Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
@Himenon Himenon changed the title chore(deps): update chore: update dependencies and migrate tooling (lefthook, vitest, TypeScript 6.0 fixes) Apr 30, 2026
Himenon and others added 4 commits April 30, 2026 22:23
fix: increase timeout for kubernetes JSON generation test to 30s

Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
fix(examples/apis): fix type errors caused by TypeScript 6.0 and updated package APIs

- Add types: ["node"] to tsconfig.json for @types/node resolution under moduleResolution: "bundler"
- Update all sample files to use RequestArgs object signature for ApiClient.request()
- Replace new Client<T>() with createClient<T>() factory function
- Fix superagent import to use default import (import superagent from "superagent")
- Remove unsupported timeout option from node-fetch v3 request options
- Update dependencies: axios 1.15.2, superagent 10.3.0, typescript 6.0.3

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@Himenon Himenon merged commit 748dc94 into main Apr 30, 2026
2 checks passed
@Himenon Himenon deleted the feat/update-deps branch April 30, 2026 13:52
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