Skip to content

Branch v6.0.2 patch#20

Open
bartlomieju wants to merge 4 commits intobranch_v6.0.2from
branch_v6.0.2_patch
Open

Branch v6.0.2 patch#20
bartlomieju wants to merge 4 commits intobranch_v6.0.2from
branch_v6.0.2_patch

Conversation

@bartlomieju
Copy link
Copy Markdown
Member

Fixes #

bartlomieju and others added 2 commits March 24, 2026 07:50
Applies all Deno-specific changes from branch_v5.5.2_patch to v6.0.2:
- Add src/compiler/deno.ts (DenoForkContext, npm specifier parsing)
- Split globals/globalThisSymbol into deno/node variants in checker.ts
- Update createNameResolver for deno/node global separation
- Add sourceFile param to getAmbientModules for context-aware resolution
- Add data: URL handling in path.ts
- Add dom.extras lib entry
- Add Temporal protocol types in es5.d.ts and es2020.intl.d.ts
- Adapt canHaveSyntheticDefault for 6.0's refactored module API
- Add npm: specifier resolution in resolveExternalModule

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Restore APIs that were lost during the TypeScript 6.0.2 rebase:
- setTypesNodeIgnorableNames: needed by 97_ts_host.js to configure
  @types/node collision avoidance
- @types/node collision avoidance in mergeGlobalSymbolTable
  (isTypesNodeSourceFile check, symbolHasAnyTypesNodePkgDecl,
  isTypesNodePkgPath)
- Span/tracing APIs (enterSpan, exitSpan, setEnterSpan, setExitSpan,
  spanned)
- isTypesNodePkgPath exported function

Also rebuilds LKG which was out of sync with the fork commit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
bartlomieju added a commit to denoland/deno that referenced this pull request Apr 8, 2026
Update 00_typescript.js from the fixed TypeScript fork
(denoland/TypeScript#20) which restores APIs that were lost
during the 6.0.2 rebase:
- setTypesNodeIgnorableNames
- @types/node collision avoidance in mergeGlobalSymbolTable
- Span/tracing APIs (enterSpan, exitSpan, spanned, etc.)
- isTypesNodePkgPath

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
bartlomieju and others added 2 commits April 8, 2026 22:46
Patches lost during the 6.0.2 rebase:

- program.ts: disable fileExists cache (Deno always returns false)
- program.ts: add lib.node.d.ts skip logic — when @types/node is
  detected in the project, skip loading the built-in node type stubs
  to avoid duplicate declaration conflicts (shouldLoadNodeTypes /
  foundNodeTypes / hasTypesNodePackage)
- dom.generated.d.ts, webworker.generated.d.ts: add ReadableStream.from()
- exportInfoMap.ts: remove @internal from ExportKind, SymbolExportInfo,
  ExportInfoMap (needed for LSP)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
In workspace setups where different members have different JSX import
sources (e.g., one uses react, another uses preact), the per-file
resolution callback allows Deno to provide the correct jsxImportSource
for each file. Without this, all files get the root config's source.

Originally added in denoland/deno#31654.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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