📌 Pin Deno to 2.9.1 in CI workflows#1202
Merged
Merged
Conversation
commit: |
jbolda
approved these changes
Jul 2, 2026
This was referenced Jul 4, 2026
taras
added a commit
that referenced
this pull request
Jul 5, 2026
Bumps `@deno/doc` 0.188.0 -> 0.199.0 and `@deno/graph` 0.89.0 -> 0.100.1, and aligns the www CI job to Deno v2.9.1 (matches #1202). `@deno/doc` >= 0.195.0 replaced the flat v1 `DocNode[]` model with the v2 `Document`/`Symbol`/`Declaration` model. The docs-rendering pipeline is migrated to consume it natively: - `doc()` returns `Record<url, Document>`; `Document.symbols` group declarations by name. `DocPageSection` holds a raw `Declaration`; render helpers receive the owning symbol via `type SymbolInfo = Omit<Symbol, "declarations">` (`extract(declaration, symbol)`, `Type({ declaration, symbol })`, `exportHash(declaration, symbol, i)`). - `.def` replaces the per-kind def fields; `ClassMethodDef.def`; every `TsType*Def` payload is `.value`; namespace members recurse over `NamespaceDef.elements` (member Symbols). - `kind === "import"` checks dropped; `Uint8Array` cast in blog-image-route.ts. Note: `@deno/doc` 0.200.0-0.202.0 ship broken wasm bindings that fail to instantiate under Deno (`__wbindgen_placeholder__`), so 0.199.0 is the newest usable v2 release.
taras
added a commit
that referenced
this pull request
Jul 5, 2026
* ⬆️ Upgrade @deno/doc to 0.199.0 and migrate docs pipeline to v2 Bumps `@deno/doc` 0.188.0 -> 0.199.0 and `@deno/graph` 0.89.0 -> 0.100.1, and aligns the www CI job to Deno v2.9.1 (matches #1202). `@deno/doc` >= 0.195.0 replaced the flat v1 `DocNode[]` model with the v2 `Document`/`Symbol`/`Declaration` model. The docs-rendering pipeline is migrated to consume it natively: - `doc()` returns `Record<url, Document>`; `Document.symbols` group declarations by name. `DocPageSection` holds a raw `Declaration`; render helpers receive the owning symbol via `type SymbolInfo = Omit<Symbol, "declarations">` (`extract(declaration, symbol)`, `Type({ declaration, symbol })`, `exportHash(declaration, symbol, i)`). - `.def` replaces the per-kind def fields; `ClassMethodDef.def`; every `TsType*Def` payload is `.value`; namespace members recurse over `NamespaceDef.elements` (member Symbols). - `kind === "import"` checks dropped; `Uint8Array` cast in blog-image-route.ts. Note: `@deno/doc` 0.200.0-0.202.0 ship broken wasm bindings that fail to instantiate under Deno (`__wbindgen_placeholder__`), so 0.199.0 is the newest usable v2 release. * 🐛 Fix off-by-one in API "View code" source links `@deno/doc` v2 changed `Location.line` from 1-indexed to 0-indexed (deno_doc #150/#777). GitHub's `#L<n>` anchor is 1-indexed, so the source links generated in package.ts / package/node.ts pointed one line above the symbol's declaration. Add `+ 1`. --------- Co-authored-by: Taras Mankovski <74687+taras@users.noreply.github.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.
Motivation
The
v2.xfloating tag ondenoland/setup-denoletsdeno fmtanddeno lintrules shift under us between CI runs, producing surprise reformatting churn on unrelated branches (see the recent "format website assets for Deno 2.9" commit). Pinning a specific patch makes formatting and linting output reproducible until we choose to bump.Approach
Replace
deno-version: v2.xwithv2.9.1(current 2.9.x) inverify.yaml,publish.yml,codspeed.yaml, andpreview.yml. andwww.yaml