fix: update default Angular Runtime version#1488
Conversation
✅ Deploy Preview for netlify-plugins ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis PR updates the Angular Runtime plugin version in Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@site/plugins.json`:
- Line 681: The Angular Runtime entry with "version": "4.0.0" in
site/plugins.json is missing a compatibility/migration guidance entry; add a
"compatibility": [...] object for the `@netlify/angular-runtime` v4.0.0 record
that includes a migrationGuide pointing to the release notes (e.g.,
https://github.com/netlify/angular-runtime/releases/tag/v4.0.0) and, optionally,
nodeVersion: ">=22.0.0" so consumers see the breaking changes (locate the record
by the version "4.0.0" and the `@netlify/angular-runtime` plugin name).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
| "package": "@netlify/angular-runtime", | ||
| "repo": "https://github.com/netlify/angular-runtime", | ||
| "version": "3.0.1" | ||
| "version": "4.0.0" |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Verify `@netlify/angular-runtime`@4.0.0 exists and check for migration guide
echo "Checking if `@netlify/angular-runtime`@4.0.0 exists on npm..."
npm view `@netlify/angular-runtime`@4.0.0 version 2>/dev/null
echo -e "\nFetching available versions..."
npm view `@netlify/angular-runtime` versions --json | jq -r '.[]' | tail -10
echo -e "\nChecking repository for migration documentation..."
gh api repos/netlify/angular-runtime/releases --jq '.[] | select(.tag_name | contains("4.0")) | {tag_name, name, body}' | head -50Repository: netlify/plugins
Length of output: 1768
🏁 Script executed:
#!/bin/bash
set -euo pipefail
# Locate how compatibility objects are structured in site/plugins.json
file="site/plugins.json"
echo "compatibility occurrences (showing nearby lines):"
rg -n '"compatibility"\s*:' "$file" | head -n 20
echo -e "\nShow Gatsby/Nextjs example blocks around first few compatibility occurrences:"
# Print a few relevant slices
for l in $(rg -n '"compatibility"\s*:' "$file" | head -n 5 | cut -d: -f1); do
start=$((l-5)); end=$((l+25))
echo -e "\n--- $file lines $start-$end (around $l) ---"
sed -n "${start},${end}p" "$file" | nl -ba -w2 -s': ' | head -n 70
doneRepository: netlify/plugins
Length of output: 547
🏁 Script executed:
#!/bin/bash
set -euo pipefail
file="site/plugins.json"
echo "== compatibility key occurrences (first 15) =="
rg -n '"compatibility"\s*:' "$file" | head -n 15
echo -e "\n== compatibility blocks: show lines around first 4 occurrences =="
for l in $(rg -n '"compatibility"\s*:' "$file" | head -n 4 | cut -d: -f1); do
start=$((l-5)); end=$((l+25))
echo -e "\n--- $file lines $start-$end ---"
sed -n "${start},${end}p" "$file" | awk '{printf "%6d: %s\n", NR+('$start'-1), $0}'
done
echo -e "\n== `@netlify/angular-runtime` entry around line 681 =="
sed -n '660,705p' "$file" | awk '{printf "%6d: %s\n", NR+660-1, $0}'
echo -e "\n== Search for angular-runtime entry =="
rg -n '"`@netlify/angular-runtime`"' "$file" -nRepository: netlify/plugins
Length of output: 7908
🏁 Script executed:
#!/bin/bash
set -euo pipefail
file="site/plugins.json"
echo "== Find nodeVersion usage inside compatibility entries =="
rg -n '"nodeVersion"\s*:' "$file" | head -n 30
echo -e "\n== Find any migrationGuide values that point to GitHub releases tags =="
rg -n '"migrationGuide"\s*:\s*"https?://github\.com/.*/releases/tag/' "$file" | head -n 30
echo -e "\n== Find any migrationGuide values that point to github compare links =="
rg -n '"migrationGuide"\s*:\s*"https?://github\.com/.*/compare/' "$file" | head -n 30
echo -e "\n== Show full Angular Runtime entry (name/package/repo/version) =="
rg -n '"name": "Angular Runtime"' -n "$file"
start=$(rg -n '"name": "Angular Runtime"' "$file" | head -n 1 | cut -d: -f1)
sed -n "${start},$((start+25))p" "$file"Repository: netlify/plugins
Length of output: 791
Add missing compatibility/migration guidance for @netlify/angular-runtime@4.0.0
@netlify/angular-runtime@4.0.0 exists on npm and its v4.0.0 release notes include breaking changes (Node 22+ / ESM). Add a "compatibility": [...] entry to the Angular Runtime record in site/plugins.json for "version": "4.0.0" including migrationGuide (e.g., https://github.com/netlify/angular-runtime/releases/tag/v4.0.0), optionally with nodeVersion: ">=22.0.0".
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@site/plugins.json` at line 681, The Angular Runtime entry with "version":
"4.0.0" in site/plugins.json is missing a compatibility/migration guidance
entry; add a "compatibility": [...] object for the `@netlify/angular-runtime`
v4.0.0 record that includes a migrationGuide pointing to the release notes
(e.g., https://github.com/netlify/angular-runtime/releases/tag/v4.0.0) and,
optionally, nodeVersion: ">=22.0.0" so consumers see the breaking changes
(locate the record by the version "4.0.0" and the `@netlify/angular-runtime`
plugin name).
Thanks for contributing the Netlify plugins directory!
Are you adding a plugin or updating one?
Have you completed the following?
Test plan
https://app.netlify.com/projects/angular-runtime-demo/deploys/6a1d7dc47e89880008e9979d