Changed fragmenter to ESM and the maintained HTML extractor - #234
Conversation
✅ Deploy Preview for alg-helpcenter ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 29 minutes Limit details: You’ve used all 2 included reviews currently available under your plan. You completed 56 included PR reviews in the past 7 days; at that activity level, included reviews refill at 2 reviews per hour. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
🚧 Files skipped from review as they are similar to previous changes (5)
Included review availability: 0 reviews are currently available. Based on recent review activity, included reviews refill at 2 per hour. WalkthroughThe Algolia fragmenter now uses an ESM entry point with TypeScript declarations and workspace-based HTML extractor dependencies. It adds typed fragment and post transformation logic while preserving deprecated compatibility wrappers. Compatibility, package, TypeScript, source-map, and dependency-tracing acceptance tests were added. Algolia and Netlify consumers now use ESM imports and build required workspace packages before validation and packaging. Estimated code review effort: 4 (Complex) | ~60 minutes Merge Risk: ⚪ Minimal · up to The PR changes the fragmenter to ESM and updates its CLI and Netlify integrations, with the supplied build, compatibility, packaging, and acceptance checks passing; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
d89d920 to
8190398
Compare
8190398 to
302e35f
Compare
ref [#217](#217) Converted the fragmenter to strict TypeScript with ESM-only package exports while preserving its deprecated compatibility wrappers and exact final records. Replaced the abandoned extractor, adapted the CLI and Netlify consumers, enforced dependency-aware clean builds, and added packed runtime, declaration, compatibility, and function-tracing acceptance for the planned 0.3.0 release.
302e35f to
29e6234
Compare
Summary
@tryghost/algolia-fragmenterto a strict-TypeScript, ESM-only package while retaining its deprecated named/default wrappers and exact final Algolia records@tryghost/algolia-html-extractorsynchronous seamref #217
Verification
pnpm test— 122 tests passedpnpm test:coverage— 94.35% statements, 90.52% branches, 98.27% functions, 94.18% linespnpm nx run-many -t build0.3.0, Netlify0.4.4, and CLI0.3.3Release impact
The fragmenter release is the planned breaking pre-1.0 ESM migration. Netlify and the CLI receive direct adapter patches because their module-loading code changes; they are not dependency-only releases. Version
1.0.0remains reserved for the durablecreateAlgoliaRecordsmilestone. No package has been published by this PR branch.Rollback
The current published fragmenter
0.2.10, Netlify0.4.3, and CLI0.3.2remain the rollback set. Issue #217 should remain open until the selected artifacts are published and verified from clean installs.