Skip to content

Update pnpm, CI and all dependencies, and build the docs with the ng-doc vite builders - #20

Merged
NetWin merged 6 commits into
masterfrom
refactor/upgrade-pnpm-setup
Nov 2, 2026
Merged

NetWin merged 6 commits into
masterfrom
refactor/upgrade-pnpm-setup

Conversation

@NetWin

@NetWin NetWin commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Summary

Updates pnpm, the CI workflows and all dependencies. The Angular 22.2 update breaks the docs playground demos with the legacy ng-doc builders, so the docs move to the ng-doc vite builders as well.

Changes

pnpm

  • packageManager is now pnpm@12.15.0.
  • minimumReleaseAge is raised from 1 day to 7 days, the @ng-doc/* exclusions are gone.
  • allowBuilds is unchanged apart from @swc/core, which is no longer installed.

Dependencies

  • All dependencies updated to their latest versions that are at least 7 days old (Angular 22.2, ng-doc 22.1, vitest 5, jsdom 30, ...).
  • TypeScript stays on 6.0, Angular 22.2 does not support 7.0 yet.
  • Removed unused dev dependencies: minify, @semantic-release/exec, istanbul-lib-instrument, and the semantic-release packages (now installed by the release action).
  • CHANGELOG.md is no longer formatted by oxfmt.

CI

  • All workflows use pnpm/setup@v3 instead of pnpm/action-setup + actions/setup-node. Node comes from .nvmrc (lts/*, currently Node 26).
  • publish.yml releases through cycjimmy/semantic-release-action@v8. The NPM_TOKEN is no longer passed, publishing relies on npm trusted publishing (OIDC).
  • All actions are updated to their latest major versions.

Docs

  • The docs are built with the ng-doc vite builders (vite-application / vite-dev-server) via src/vite.config.mjs.
  • Reason: since Angular 22.2, ViewContainerRef.createComponent() takes the host namespace from the parent node. With the legacy ng-doc builders the page content sits right below an @if that Angular records in the SVG namespace, so every playground gets created as an SVG element and renders with a size of 0x0.
  • The vite builder has no base href option, so the docs use relative URLs (<base href="./">, vite base: './'). Thanks to hash routing this works locally and on GitHub Pages.
  • Removed src/polyfills.ts and src/environments/*, which the vite builder no longer reads.

@NetWin NetWin self-assigned this Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

📋 Release Preview

Changelog

22.0.1 (2026-11-02)

🛠️ Code Refactoring

  • oxfmt: do not format CHANGELOG.md anymore (d19239e)

🏗 Dependency updates

  • deps: require a minimum release age of 7 days for dependencies (4871772)
  • deps: update dependencies to their latest versions and drop unused ones (6afdac4)
  • deps: update pnpm to 12.15.0 (a6dd81b)

🔄️ Continuous Integration

  • workflows: switch to pnpm/setup and the semantic-release action (4be16de)

Publishing relies on npm trusted publishing (OIDC), so the npm token is no longer passed.
The semantic-release packages are installed by the action and dropped from the devDependencies.
@NetWin
NetWin force-pushed the refactor/upgrade-pnpm-setup branch from 389b771 to 915e7f5 Compare November 2, 2026 14:54
@NetWin
NetWin marked this pull request as ready for review November 2, 2026 14:59
@NetWin
NetWin changed the base branch from release/next to master November 2, 2026 15:00
@NetWin
NetWin merged commit 12d01bb into master Nov 2, 2026
2 checks passed
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 22.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant