Repository navigation
chore(deps): upgrade the renderer to Angular 22 - #4
Open
hazeliscoding wants to merge 4 commits into
Open
hazeliscoding wants to merge 4 commits into
hazeliscoding wants to merge 4 commits into
Conversation
- @angular/* 18.2.14 -> 19.2.25, @angular/cli and @angular-devkit/build-angular -> 19.2.27 - zone.js 0.14.10 -> 0.15.1 Migrations: standalone migration removed `standalone: true` from five components. Hand fix: restored the original decorator indentation and trailing comma that the migration had reformatted.
- @angular/* 19.2.25 -> 20.3.35, @angular/cli and @angular-devkit/build-angular -> 20.3.42 - typescript 5.5 -> 5.9.3 Migrations: angular.json gained schematic defaults that keep the previous style-guide file naming. No hand fixes.
- @angular/* 20.3.35 -> 21.2.26, @angular/cli and @angular-devkit/build-angular -> 21.2.29 Migrations: tsconfig.json drops the explicit "lib" (target ES2022 already implies it). No hand fixes.
- @angular/* 21.2.26 -> 22.2.5, @angular/cli and @angular-devkit/build-angular -> 22.2.6 - typescript 5.9.3 -> 6.0.3 Migrations: tsconfig.app.json suppresses the nullishCoalescingNotNullable and optionalChainNotNullable extended diagnostics (the migration's default, since `?.`/`??` now narrow types in templates). No hand fixes.
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.
The renderer goes from Angular 18.2.14 to 22.2.5, one commit per major. Every major builds clean and passes the renderer's design checks. None of it has run inside Electron yet, so this PR's CI run is the first real runtime check.
Only
desktop/rendererchanges:package.json,package-lock.json,angular.json, both tsconfigs and five component decorators. The workflows and the main process are untouched.Commits
6be5c6dAngular 19:@angular/*18.2.14 → 19.2.25, CLI and build-angular 18.2.21 → 19.2.27, zone.js 0.14.10 → 0.15.1.0f80aa8Angular 20:@angular/*→ 20.3.35, CLI and build-angular → 20.3.42, TypeScript 5.5.4 → 5.9.3.a77b128Angular 21:@angular/*→ 21.2.26, CLI and build-angular → 21.2.29.b9ef022Angular 22:@angular/*→ 22.2.5, CLI and build-angular → 22.2.6, TypeScript 5.9.3 → 6.0.3.Checks
Run in
desktop/rendereron Linux with Node 24.22.2, first on 18 and then after each major:ng build(production) passed with no warnings every time. The initial bundle went from 360.68 kB to 377.62 kB raw (93.12 to 98.24 kB transfer), under the 500 kB budget.node scripts/checks.test.mjs(contrast and assets, with their planted-violation controls) passed every time. The renderer has nong testtarget.ng serve(development build) in headless Chrome. The page served,app-rootfilled in, and the console showed the same four errors as on 18 (see below).Unknown argument: watch, since there's nong testtarget. The browser check failed on the same four console errors.Hand fix
template. I put the original formatting back, so the commit only removesstandalone: trueand matches the rest of the code. Build and design checks ran again after.Migrations to know about
standalone: trueis gone from the app, onboarding, board, settings and period-picker components, since standalone is the default from 19. The migration left it on the threeui/components, where it's redundant but valid.angular.json: a new top-levelschematicsblock keepsng generateon the pre-20 file naming, such as*.component.ts. Nothing changes at runtime.tsconfig.json:"lib": ["ES2022", "dom"]is gone. Withtarget: ES2022, TypeScript's default lib already includes both.tsconfig.app.json: suppresses thenullishCoalescingNotNullableandoptionalChainNotNullablediagnostics, because?.and??now narrow types in templates. Angular's guide calls this a temporary opt-out.changeDetection: OnPush, so the new OnPush default changes nothing. No template compares a?.result withnull, and?.now returnsundefined. The fourdata-densityattributes sit on plain<table>elements, sodata-*no longer binding to inputs doesn't touch them. The routes have no parameters, so the newparamsInheritanceStrategydefault doesn't either.Already failing before the upgrade, left as is
window.apicomes from the Electron preload, so the onboarding dialog andBoardStore.init()throw on their first line:Cannot read properties of undefined (reading 'oauthAvailable'), logged twice, and(reading 'onUpdateState').favicon.ico404: the renderer has no favicon, so the browser's default request misses.Known gaps
window.api. No data loaded, so the board, onboarding, the update badge and Settings were never exercised. The browser check only shows the bundle serves and starts the same way it did on 18. Users get the production build (outputHashing: all,baseHref: ./index.html), loaded withwin.loadFileoverfile://in Electron 31.7.7, and I haven't opened that yet.npm testand the Electron e2e suite (npm run test:e2e). CI runs both.Heads-up
^22.22.3 || ^24.15.0 || >=26(18 took^18.19.1 || ^20.11.1 || >=22.0.0). That covers CI, the release runners and any machine that runsnpm run devornpm run build.Available, not done
@angular/build: npm marks@angular-devkit/build-angular22.2.6 deprecated ("Angular's Webpack support is deprecated"). The build already uses theapplicationbuilder, song update @angular/cli --name use-application-buildershould come down to swapping both builders and the package. That drops 374 lockfile entries only build-angular pulls in, webpack among them. After it,ng servereadsPORTahead of--port, andnpm run devwaits on :4301, so keepPORTunset.desktop/renderer/srcimports@angular/animationsor@angular/platform-browser-dynamic, and npm's notice on their 20.x releases calls both deprecated. Bootstrap already usesbootstrapApplicationfrom@angular/platform-browser. Dropping both frompackage.jsonshould be the whole job.APP_INITIALIZER-style providers, noRouter.getCurrentNavigation, and the templates already use@if,@forand@switch.Before merging
ci.ymlrun in full. End-to-end tests is the first run of this renderer inside Electron, and Fixture screenshots waits on the update states in the top bar, the sprints preview, Copy standup and the token field. In Setup Node, check that Node resolved to 22.22.3 or later, since both workflows saynode-version: 22. If it's older, setnode-versionto 24 inci.ymlandrelease.yml.fixture-screenshotsartifact next to main's, in both themes, especiallyupdate-downloading,update-ready,update-portable,settings-setup,busy-standupandonboarding-token.npm run package:win, install it, and click through sign-in, the board, Settings with the sprints preview, and the update badge. PR CI builds only onubuntu-latest."suppress"lines intsconfig.app.jsonand build. If nothing warns, drop the block in this PR.@angular/*22.2.5 came out on 2026-11-06. Give it a few days and runnpm auditindesktop/rendererbefore tagging a release with it.