Skip to content

Update Koenig packages#26907

Merged
kevinansfield merged 1 commit intomainfrom
renovate/koenig-packages
Mar 23, 2026
Merged

Update Koenig packages#26907
kevinansfield merged 1 commit intomainfrom
renovate/koenig-packages

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Mar 20, 2026

The upstream Koenig packages have been migrated from JavaScript to TypeScript, which changes their module format and export structure. This update bumps all @tryghost/kg-* and @tryghost/koenig-lexical packages to their latest versions and adapts Ghost's codebase to work with the new builds:

  • Updated CJS require() calls to use .default where the TypeScript build uses default exports (mobiledoc.js, json-to-html.js, email-renderer.js, markdown-renderer.js, clean-basic-html util)
  • Fixed the UnsplashSearchModal onImageInsert prop to match the exported InsertImagePayload type from kg-unsplash-selector
  • Added react/jsx-runtime and react-dom/server as UMD globals in the Ember app route so Koenig UMD bundles resolve them at runtime
  • Increased test timeout for HTML conversion tests to accommodate slower first-run initialization of the new TypeScript-built packages

@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Mar 20, 2026
@renovate
Copy link
Copy Markdown
Contributor Author

renovate bot commented Mar 21, 2026

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.12%. Comparing base (248fe42) to head (dc012cc).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #26907      +/-   ##
==========================================
- Coverage   73.12%   73.12%   -0.01%     
==========================================
  Files        1537     1537              
  Lines      121397   121403       +6     
  Branches    14666    14666              
==========================================
- Hits        88775    88773       -2     
- Misses      31593    31623      +30     
+ Partials     1029     1007      -22     
Flag Coverage Δ
admin-tests 54.38% <100.00%> (+0.02%) ⬆️
e2e-tests 73.12% <100.00%> (-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.

@github-actions
Copy link
Copy Markdown
Contributor

E2E Tests Failed

To view the Playwright test report locally, run:

REPORT_DIR=$(mktemp -d) && gh run download 23383375709 -n playwright-report -D "$REPORT_DIR" && npx playwright show-report "$REPORT_DIR"

The upstream Koenig packages have been migrated from JavaScript to
TypeScript, which changes their module format and export structure.
This update bumps all @tryghost/kg-* and @tryghost/koenig-lexical
packages to their latest versions and adapts Ghost's codebase to
work with the new builds:

- Updated CJS require() calls to use .default where the TypeScript
  build uses default exports (mobiledoc.js, json-to-html.js,
  email-renderer.js, markdown-renderer.js, clean-basic-html util)
- Fixed the UnsplashSearchModal onImageInsert prop to match the
  exported InsertImagePayload type from kg-unsplash-selector
- Added react/jsx-runtime and react-dom/server as UMD globals in
  the Ember app route so Koenig UMD bundles resolve them at runtime
- Increased test timeout for HTML conversion tests to accommodate
  slower first-run initialization of the new TypeScript-built packages
@kevinansfield kevinansfield force-pushed the renovate/koenig-packages branch from d1ccab8 to dc012cc Compare March 23, 2026 11:00
@kevinansfield kevinansfield enabled auto-merge (squash) March 23, 2026 11:02
@kevinansfield kevinansfield merged commit 52dc410 into main Mar 23, 2026
36 checks passed
@kevinansfield kevinansfield deleted the renovate/koenig-packages branch March 23, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant