chore: update dependencies and migrate tooling (lefthook, vitest, TypeScript 6.0 fixes)#140
Merged
chore: update dependencies and migrate tooling (lefthook, vitest, TypeScript 6.0 fixes)#140
Conversation
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>
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>
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
This PR updates all dependencies to their latest versions and migrates the development tooling to keep the project maintainable.
Dependency updates
Tooling migration: simple-git-hooks + lint-staged → lefthook
simple-git-hooksandlint-stagedwithlefthookfor Git hook managementlefthook.ymlwith equivalent pre-commit rules (biome format + sort-package-json)simple-git-hooksandlint-stagedfromdevDependenciesTooling migration: Jest → Vitest
jest,jest-cli,@swc/jest,ts-jest,@types/jest, andcross-envwithvitestand@vitest/coverage-v8vitest.config.tsfor unit tests andvitest.snapshot.config.tsfor snapshot testsjest.config.cjsandjest.snapshot.config.cjsrequire()intest/utils.tsto ESMimportTypeScript 6.0 compatibility fixes
tsconfig.build.json: added"ignoreDeprecations": "6.0"to suppress the deprecatedbaseUrlerror emitted by tsup's DTS buildtsconfig.build.json: added"types": ["node"]to restore@types/noderesolution undermoduleResolution: "bundler"src/internal/TsGenerator/factory/LiteralTypeNode.ts: fixed a runtime crash wherecreateNumericLiteralwas called with a negative number. TypeScript 6.0 asserts that negative numbers must be expressed as aPrefixUnaryExpressionwithMinusTokenTest Plan
pnpm run build— CJS, ESM, and DTS outputs all succeedpnpm run test:vitest— 3 unit tests pass (same count as before with Jest)pnpm run test:code:gen— all code generation scripts complete without errorspnpm run test:snapshot— 49 snapshot tests pass after updating snapshots withpnpm run update:snapshot