close
Skip to content

Bump typescript from 5.9.3 to 6.0.3 in /src/highlightjs#19488

Open
dependabot[bot] wants to merge 3 commits intomainfrom
dependabot/npm_and_yarn/src/highlightjs/typescript-6.0.3
Open

Bump typescript from 5.9.3 to 6.0.3 in /src/highlightjs#19488
dependabot[bot] wants to merge 3 commits intomainfrom
dependabot/npm_and_yarn/src/highlightjs/typescript-6.0.3

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 19, 2026

Bumps typescript from 5.9.3 to 6.0.3.

Release notes

Sourced from typescript's releases.

TypeScript 6.0.3

For release notes, check out the release announcement blog post.

Downloads are available on:

TypeScript 6.0

For release notes, check out the release announcement blog post.

Downloads are available on:

TypeScript 6.0 Beta

For release notes, check out the release announcement.

Downloads are available on:

Commits
  • 050880c Bump version to 6.0.3 and LKG
  • eeae9dd 🤖 Pick PR #63401 (Also check package name validity in...) into release-6.0 (#...
  • ad1c695 🤖 Pick PR #63368 (Harden ATA package name filtering) into release-6.0 (#63372)
  • 0725fb4 🤖 Pick PR #63310 (Mark class property initializers as...) into release-6.0 (#...
  • 607a22a Bump version to 6.0.2 and LKG
  • 9e72ab7 🤖 Pick PR #63239 (Fix missing lib files in reused pro...) into release-6.0 (#...
  • 35ff23d 🤖 Pick PR #63163 (Port anyFunctionType subtype fix an...) into release-6.0 (#...
  • e175b69 Bump version to 6.0.1-rc and LKG
  • af4caac Update LKG
  • 8efd7e8 Merge remote-tracking branch 'origin/main' into release-6.0
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 19, 2026
@microsoft-github-policy-service microsoft-github-policy-service Bot enabled auto-merge (squash) April 19, 2026 23:35
Copy link
Copy Markdown
Contributor

@microsoft-github-policy-service microsoft-github-policy-service Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@microsoft-github-policy-service microsoft-github-policy-service Bot added the auto-merge Automatically merge this PR label Apr 19, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 19, 2026

Test this change out locally with the following install scripts (Action run 24908836215)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 24908836215
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 24908836215"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 24908836215
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 24908836215"

@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/src/highlightjs/typescript-6.0.3 branch from 4486d1a to e5a9267 Compare April 22, 2026 20:34
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v5.9.3...v6.0.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 6.0.3
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/src/highlightjs/typescript-6.0.3 branch from e5a9267 to 198f527 Compare April 22, 2026 20:58
@anthony-c-martin
Copy link
Copy Markdown
Member

@copilot fix pls

Agent-Logs-Url: https://github.com/Azure/bicep/sessions/6ab4914c-0932-4dba-9a31-c9497115756c

Co-authored-by: anthony-c-martin <38542602+anthony-c-martin@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 24, 2026

@copilot fix pls

Fixed in 641b987. TypeScript 6.0 deprecated moduleResolution: "node" (now called "node10") and treated it as a hard error, which caused emit to be skipped and triggered the confusing ts-jest "outDir" error. Added "ignoreDeprecations": "6.0" to src/highlightjs/tsconfig.json to silence the deprecation and allow compilation to proceed.

@anthony-c-martin
Copy link
Copy Markdown
Member

@copilot this feels more like a temporary bandaid. Is there a "proper" solution to this?

…le resolution migration

Agent-Logs-Url: https://github.com/Azure/bicep/sessions/69af16ff-48f9-43b9-a875-5bf9ccfd4c6b

Co-authored-by: anthony-c-martin <38542602+anthony-c-martin@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 24, 2026

@copilot this feels more like a temporary bandaid. Is there a "proper" solution to this?

Done in 6458005. The proper fix migrates to module: "node16" + moduleResolution: "node16" (the correct modern Node.js settings). Two additional changes were needed:

  • isolatedModules: true — required by ts-jest when using hybrid Node16/Next module modes
  • jest.config.tsjest.config.js — when Jest loads a .ts config, it uses ts-node with a hard-coded module: "CommonJS" override; this conflicted with moduleResolution: "node16", so converting to plain JS bypasses that entirely

Since the package has no "type": "module", TypeScript's node16 mode treats all .ts files as CommonJS context, so no import syntax changes were needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge Automatically merge this PR dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants