Skip to content

chore(deps-major): migrate typescript to 6.0.3 2026-06-29#19

Open
ericmaster wants to merge 1 commit into
mainfrom
deps-ts-zod-16253482569276034942
Open

chore(deps-major): migrate typescript to 6.0.3 2026-06-29#19
ericmaster wants to merge 1 commit into
mainfrom
deps-ts-zod-16253482569276034942

Conversation

@ericmaster

Copy link
Copy Markdown
Owner

This pull request migrates the project to TypeScript 6.0.3, Zod 4, and updates @types/node alongside it.

This introduces a few explicit fixes to adapt to the breaking changes from the major version bumps:

  1. z.record() now requires an explicit key type; updated z.record(z.any()) to z.record(z.string(), z.any()).
  2. TypeScript 6.0 tightened overlap validations for interface widening. Type assertions when reading env properties iteratively using dynamic keys are adjusted using an unknown cast (env as unknown as DynamicEnv).
  3. An obsolete @ts-expect-error over Llama model string identifiers has been removed.
  4. Resolved a typing inheritance mismatch for RESEND_DOMAIN_KEYS between worker-configuration.d.ts and workers/types.ts.
  5. Suppressed TS6 baseUrl deprecation diagnostics for the bundler-based workflow where we currently utilize project references and TS 6 verbatimModuleSyntax.

PR created automatically by Jules for task 16253482569276034942 started by @ericmaster

* Bump `typescript` to 6.0.3, `zod` to ^4, and `@types/node` to latest.
* Fix Zod 4 type errors (`z.record(z.any())` to `z.record(z.string(), z.any())`).
* Fix strict TypeScript 6 overlap validation (`env as unknown as DynamicEnv`).
* Remove obsolete `@ts-expect-error` in AI prompt code.
* Match explicit `Cloudflare.Env` enum type string union for `RESEND_DOMAIN_KEYS` in the `Env` wrapper.
* Suppress `baseUrl` warning in `tsconfig.cloudflare.json`.

Co-authored-by: ericmaster <389548+ericmaster@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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