From 0dab7304b77d7f2595a1f31e5b7ae1e2bd4b21da Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Wed, 12 Feb 2025 19:53:21 +0100 Subject: [PATCH 1/2] chore: don't create separate renovate PRs for angular and angular-cli --- renovate.json5 | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/renovate.json5 b/renovate.json5 index 44207d26..aaef9a1f 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -2,23 +2,24 @@ $schema: 'https://docs.renovatebot.com/renovate-schema.json', extends: ['github>netlify/renovate-config:default'], ignorePresets: [':prHourlyLimit2'], + prHourlyLimit: 0, semanticCommits: true, // The config we're extending ignores test dirs, but we want to bump some fixture deps ignorePaths: ['**/node_modules/**'], packageRules: [ - // Since we've enabled Renovate (see above) for fixture sites, adjust the config for these. + // Since we've enabled Renovate (see above) for demo and fixture sites, adjust the config for these. { - matchFileNames: ['tests/**/fixtures/**/package.json'], + matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'], // If a fixture requires a specific framework version, never bump it. updatePinnedDependencies: false, // Always use `chore:` (since these are test fixtures), to avoid no-op releases. extends: [':semanticCommitTypeAll(chore)'], }, { - description: 'Stable & unstable Angular bumps in test fixtures', - matchFileNames: ['tests/**/fixtures/**/package.json'], - // See https://docs.renovatebot.com/presets-monorepo/#monorepoangular. - matchSourceUrls: ['https://github.com/angular/angular'], + description: 'Stable & unstable Angular bumps in demo and test fixtures', + groupName: 'Angular packages', + matchFileNames: ['tests/**/fixtures/**/package.json', 'demo/package.json'], + matchPackageNames: ['@angular/**', 'zone.js', '@angular-devkit/**'], // Override the schedule to get immediate PRs. schedule: null, // Apply a unique label so we can trigger additional workflows for these PRs. @@ -31,5 +32,25 @@ // difficult (or impossible) to implement so we just disable it entirely. automerge: false, }, + // Angular major version updates attempt to upgrade fixtures for Angular 17, 18 etc + // we never want to upgrade those, so we disable them in fixtures. + // Angular major versions are being released on 6 months schedule and we will need to handle them + // manually anyway (even if it's just creating test fixtures for them, without adjusting the runtime + // itself) + { + description: 'Disable angular major version upgrades in fixtures', + matchFileNames: ['tests/**/fixtures/**/package.json'], + matchPackageNames: ['@angular/**', '@angular-devkit/**'], + matchUpdateTypes: ['major'], + enabled: false, + }, + // zone.js is in 0.x.y version range, so we also disable minor updates for those + { + description: 'Disable zone.js minor version upgrades in fixtures', + matchFileNames: ['tests/**/fixtures/**/package.json'], + matchPackageNames: ['zone.js'], + matchUpdateTypes: ['minor', 'major'], + enabled: false, + }, ], } From 399e47125783b44ed0f6e1f640966a6243ca9099 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 10 Apr 2025 07:15:53 +0000 Subject: [PATCH 2/2] chore(deps): update angular packages to v20 --- demo/package.json | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/demo/package.json b/demo/package.json index 8672585f..c883f483 100644 --- a/demo/package.json +++ b/demo/package.json @@ -11,16 +11,16 @@ }, "private": true, "dependencies": { - "@angular/animations": "^19.1.5", - "@angular/common": "^19.1.5", - "@angular/compiler": "^19.1.5", - "@angular/core": "^19.1.5", - "@angular/forms": "^19.1.5", - "@angular/platform-browser": "^19.1.5", - "@angular/platform-browser-dynamic": "^19.1.5", - "@angular/platform-server": "^19.1.5", - "@angular/router": "^19.1.5", - "@angular/ssr": "^19.1.6", + "@angular/animations": "^20.0.0-next", + "@angular/common": "^20.0.0-next", + "@angular/compiler": "^20.0.0-next", + "@angular/core": "^20.0.0-next", + "@angular/forms": "^20.0.0-next", + "@angular/platform-browser": "^20.0.0-next", + "@angular/platform-browser-dynamic": "^20.0.0-next", + "@angular/platform-server": "^20.0.0-next", + "@angular/router": "^20.0.0-next", + "@angular/ssr": "^20.0.0-next", "@netlify/angular-runtime": "file:..", "@netlify/edge-functions": "^2.11.1", "express": "^4.21.0", @@ -29,9 +29,9 @@ "zone.js": "~0.15.0" }, "devDependencies": { - "@angular-devkit/build-angular": "^19.1.6", - "@angular/cli": "^19.1.6", - "@angular/compiler-cli": "^19.1.5", + "@angular-devkit/build-angular": "^20.0.0-next", + "@angular/cli": "^20.0.0-next", + "@angular/compiler-cli": "^20.0.0-next", "@types/express": "^4.17.21", "@types/jasmine": "~5.1.0", "@types/node": "^18.19.13",