Skip to content

chore: upgrade to typescript v6.0.2#340

Merged
climba03003 merged 1 commit intofastify:mainfrom
Tony133:chore/upgrade-typescript-v6
Mar 27, 2026
Merged

chore: upgrade to typescript v6.0.2#340
climba03003 merged 1 commit intofastify:mainfrom
Tony133:chore/upgrade-typescript-v6

Conversation

@Tony133
Copy link
Copy Markdown
Member

@Tony133 Tony133 commented Mar 24, 2026

Proposals:

  • Upgrade typescript dependency to v6.0.2 🔥

  • Update test/types/index.ts, changed import * as avvio to a default import import avvio, required by the stricter CJS/ESM interop rules enforced by module: node16

  • Update test/types/tsconfig.json

    • Updated target from es6 to es2022
    • Updated module from commonjs to node16
    • Added moduleResolution: node16
    • Added lib: ["es2022", "esnext.disposable"]
    • Added types: ["node"] to explicitly include Node.js type definitions, fixing a TS2591 error on node:events
    • Made strict: true explicit

Aligns the project with the latest TypeScript release and adopts modern compiler settings for Node.js ESM/CJS interop.

For more information about the update, see here: https://devblogs.microsoft.com/typescript/announcing-typescript-6-0/

@Tony133 Tony133 marked this pull request as ready for review March 24, 2026 10:24
@climba03003 climba03003 merged commit 7ce3ae0 into fastify:main Mar 27, 2026
14 checks passed
@Tony133 Tony133 deleted the chore/upgrade-typescript-v6 branch March 27, 2026 08:43
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.

2 participants