Skip to content

Updated framework packages#28296

Merged
jonatansberg merged 1 commit into
mainfrom
update-framework-packages
Jun 2, 2026
Merged

Updated framework packages#28296
jonatansberg merged 1 commit into
mainfrom
update-framework-packages

Conversation

@jonatansberg
Copy link
Copy Markdown
Member

Summary

  • Updated Ghost to resolve @tryghost/api-framework from the shared catalog
  • Bumped the catalog entry to @tryghost/api-framework@3.2.3
  • Refreshed the lockfile and added temporary release-age exclusions for the just-published Framework packages used by this resolution

Testing

  • CI=true pnpm install --frozen-lockfile=false on Node 22.18.0
  • api-framework id validator smoke check
  • pnpm --dir ghost/core test:single test/unit/server/services/comments/comments-service.test.js

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 1, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0b509ee0-976c-43b6-b581-ecc016da46da

📥 Commits

Reviewing files that changed from the base of the PR and between af120dc and 81dc014.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • ghost/core/package.json
  • pnpm-workspace.yaml
🚧 Files skipped from review as they are similar to previous changes (2)
  • ghost/core/package.json
  • pnpm-workspace.yaml

Walkthrough

This PR adds @tryghost/api-framework@3.2.3 to the pnpm workspace catalog, switches ghost/core/package.json to resolve @tryghost/api-framework via the catalog: specifier (replacing the pinned 1.0.7), and rewrites pnpm-workspace.yaml's minimumReleaseAgeExclude to a consolidated @tryghost-focused list of pinned package versions.

Possibly related PRs

  • TryGhost/Ghost#27958: Also converts package.json dependencies to pnpm catalog: entries and adds corresponding catalog pins (bson-objectid).
  • TryGhost/Ghost#28197: Modifies pnpm-workspace.yaml supply-chain configuration (catalog/minimumReleaseAgeExclude), closely related to the workspace configuration changes here.
  • TryGhost/Ghost#27870: Changes CI publish behavior to rewrite catalog: refs during pnpm publish, coordinating with catalog-based dependency resolution.

Suggested reviewers

  • EvanHahn
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Updated framework packages' is somewhat vague and generic, referring broadly to framework package updates without specifying the key change, which is updating @tryghost/api-framework to use catalog resolution. Consider a more specific title such as 'Resolve @tryghost/api-framework from shared catalog' or 'Update @tryghost/api-framework to use catalog resolution' to better convey the primary intent of the changeset.
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The description is clearly related to the changeset, providing specific details about updating @tryghost/api-framework to version 3.2.3, moving to catalog resolution, and including testing steps that validate the changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch update-framework-packages

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jonatansberg jonatansberg marked this pull request as ready for review June 1, 2026 13:07
Updated Ghost to resolve the latest Framework package release.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: af120dc5fd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pnpm-workspace.yaml
'@tailwindcss/postcss': 4.2.2
'@tailwindcss/vite': 4.2.2
'@tanstack/react-query': 4.44.0
'@tryghost/api-framework': 3.2.3
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Pin api-framework to a published version

Because ghost/core now resolves @tryghost/api-framework through this catalog entry, fresh pnpm install/CI installs have to fetch @tryghost/api-framework@3.2.3. I checked the public TryGhost/framework tags and jsDelivr package listing, and the available api-framework releases currently only go up to 3.0.3, so this pin makes dependency resolution fail before the app can build or test.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are you going on about? These packages are available on npm.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
pnpm-workspace.yaml (1)

168-175: ⚡ Quick win

Align minimumReleaseAgeExclude entries with @tryghost/api-framework@3.2.3 transitive deps

In pnpm-workspace.yaml (minimumReleaseAgeExclude), the versions match what @tryghost/api-framework@3.2.3 declares: @tryghost/debug@2.2.2, @tryghost/promise@2.2.2, @tryghost/tpl@2.2.2, and @tryghost/validator@3.1.3; and @tryghost/debug@2.2.2 pulls in @tryghost/root-utils@2.2.2, so @tryghost/root-utils@2.2.2 is consistent too. Since these are temporary, leave a brief reminder to drop these exclusions once the 1-day window passes.

🤖 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 `@pnpm-workspace.yaml` around lines 168 - 175, Update the
minimumReleaseAgeExclude block so the package entries exactly match the
transitive dependency versions pulled by `@tryghost/api-framework`@3.2.3 (keep
`@tryghost/api-framework`@3.2.3, `@tryghost/debug`@2.2.2, `@tryghost/promise`@2.2.2,
`@tryghost/tpl`@2.2.2, `@tryghost/validator`@3.1.3 and `@tryghost/root-utils`@2.2.2)
and add a brief inline comment next to the list reminding maintainers to remove
these temporary exclusions after the 1-day release window; ensure you modify the
minimumReleaseAgeExclude block (the listed package entries) accordingly so they
stay consistent with the api-framework transitive deps.
🤖 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.

Nitpick comments:
In `@pnpm-workspace.yaml`:
- Around line 168-175: Update the minimumReleaseAgeExclude block so the package
entries exactly match the transitive dependency versions pulled by
`@tryghost/api-framework`@3.2.3 (keep `@tryghost/api-framework`@3.2.3,
`@tryghost/debug`@2.2.2, `@tryghost/promise`@2.2.2, `@tryghost/tpl`@2.2.2,
`@tryghost/validator`@3.1.3 and `@tryghost/root-utils`@2.2.2) and add a brief inline
comment next to the list reminding maintainers to remove these temporary
exclusions after the 1-day release window; ensure you modify the
minimumReleaseAgeExclude block (the listed package entries) accordingly so they
stay consistent with the api-framework transitive deps.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 7980f79e-867e-4a92-aba3-2e0071c4a2c0

📥 Commits

Reviewing files that changed from the base of the PR and between 5d44f66 and af120dc.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • ghost/core/package.json
  • pnpm-workspace.yaml

@jonatansberg jonatansberg force-pushed the update-framework-packages branch from af120dc to 81dc014 Compare June 1, 2026 13:11
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.63%. Comparing base (5d44f66) to head (81dc014).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #28296   +/-   ##
=======================================
  Coverage   73.63%   73.63%           
=======================================
  Files        1536     1536           
  Lines      130809   130812    +3     
  Branches    15652    15655    +3     
=======================================
+ Hits        96315    96328   +13     
+ Misses      33529    33496   -33     
- Partials      965      988   +23     
Flag Coverage Δ
admin-tests 54.18% <ø> (ø)
e2e-tests 73.63% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jonatansberg jonatansberg merged commit e802e82 into main Jun 2, 2026
55 checks passed
@jonatansberg jonatansberg deleted the update-framework-packages branch June 2, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant