From a10ba9389ee7396175d9856446b74bbee64a1f48 Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Thu, 13 Feb 2025 09:29:53 +0100 Subject: [PATCH 1/3] test: mask file hashes to not have to update assertion everytime dependencies are updated --- demo.test.mjs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/demo.test.mjs b/demo.test.mjs index d9e11b42..ac6cf672 100644 --- a/demo.test.mjs +++ b/demo.test.mjs @@ -4,14 +4,16 @@ import { test } from 'node:test' test('edge function config', async () => { const { config } = await import('./demo/.netlify/edge-functions/angular-ssr/angular-ssr.mjs') - assert.deepEqual(config.excludedPath, [ + const excludedPathsWithMaskedHashes = config.excludedPath.map((path) => path.replace(/-[A-Z\d]{8}\./, '-HASHHASH.')) + + assert.deepEqual(excludedPathsWithMaskedHashes, [ '/.netlify/*', '/favicon.ico', '/heroes/index.html', '/index.csr.html', - '/main-KVCR6MBP.js', - '/polyfills-FFHMD2TL.js', - '/styles-5INURTSO.css', + '/main-HASHHASH.js', + '/polyfills-HASHHASH.js', + '/styles-HASHHASH.css', '/heroes', ]) }) From 1216aaabf2115c8e95e6f333de4996fb0c1ca5b0 Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Wed, 12 Feb 2025 19:53:21 +0100 Subject: [PATCH 2/3] chore: don't create separate renovate PRs for angular and angular-cli --- renovate.json5 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/renovate.json5 b/renovate.json5 index 44207d26..caf9aac3 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. From b108f5b7dd50b345bafa897eb4ab1f3940860538 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 13 Feb 2025 11:36:34 +0000 Subject: [PATCH 3/3] chore(deps): update dependency @opentelemetry/api to ~1.9.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5f18fa5d..ffc4cfe4 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "node": ">=18.13.0" }, "devDependencies": { - "@opentelemetry/api": "~1.8.0", + "@opentelemetry/api": "~1.9.0", "@netlify/eslint-config-node": "^7.0.1", "@types/node": "^18.19.0", "eslint-plugin-unicorn": "^49.0.0",