fix(web-core): hide XMLHttpRequest from bts chunks#2580
Conversation
🦋 Changeset detectedLatest commit: dd94fd2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughXMLHttpRequest was removed from the BTS chunk entry API and from the chunk loader's injected globals: the ChangesXMLHttpRequest Removal from Chunk Initialization
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.changeset/comment-out-bts-xhr.md (1)
1-3:⚠️ Potential issue | 🟠 Major | ⚡ Quick winChangeset file is missing required metadata and description.
The changeset file contains only empty frontmatter delimiters with no content. This means:
- No packages will be versioned/bumped
- No changelog entry will be generated for this change
- The change won't be properly tracked in release notes
The frontmatter should specify which packages are affected and the bump type (patch/minor/major), and the body should describe the change for end users.
📝 Proposed fix: Add proper changeset content
--- +"@lynx/web-core": patch --- - + +Remove XMLHttpRequest injection from BTS chunk initialization to improve compatibility.🤖 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 @.changeset/comment-out-bts-xhr.md around lines 1 - 3, The changeset file .changeset/comment-out-bts-xhr.md contains only empty frontmatter delimiters ('---') and no metadata or description; update this file by adding proper frontmatter that lists the affected package(s) and the version bump type (patch/minor/major) and a short body description of the change for end users so the package will be versioned and a changelog entry generated. Locate the file by name and replace the empty frontmatter with YAML keys (e.g., the package name(s) and bump type) and add a concise human-readable summary below the frontmatter describing what was changed.
🤖 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.
Outside diff comments:
In @.changeset/comment-out-bts-xhr.md:
- Around line 1-3: The changeset file .changeset/comment-out-bts-xhr.md contains
only empty frontmatter delimiters ('---') and no metadata or description; update
this file by adding proper frontmatter that lists the affected package(s) and
the version bump type (patch/minor/major) and a short body description of the
change for end users so the package will be versioned and a changelog entry
generated. Locate the file by name and replace the empty frontmatter with YAML
keys (e.g., the package name(s) and bump type) and add a concise human-readable
summary below the frontmatter describing what was changed.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: c032664f-00d5-4922-a8d8-c7ae567fb6ab
📒 Files selected for processing (3)
.changeset/comment-out-bts-xhr.mdpackages/web-platform/web-core/ts/client/background/background-apis/createChunkLoading.tspackages/web-platform/web-core/ts/types/BTSChunk.ts
ec6dfc7 to
6b445fa
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Merging this PR will not alter performance
Comparing Footnotes
|
React External#1104 Bundle Size — 690.27KiB (0%).dd94fd2(current) vs 4b27356 main#1100(baseline) Bundle metrics
|
| Current #1104 |
Baseline #1100 |
|
|---|---|---|
0B |
0B |
|
0B |
0B |
|
0% |
0% |
|
0 |
0 |
|
3 |
3 |
|
17 |
17 |
|
5 |
5 |
|
8.59% |
8.59% |
|
0 |
0 |
|
0 |
0 |
Bundle analysis report Branch PupilTong:codex/comment-out-bts-... Project dashboard
Generated by RelativeCI Documentation Report issue
React Example#7990 Bundle Size — 235.77KiB (0%).dd94fd2(current) vs 4b27356 main#7986(baseline) Bundle metrics
|
| Current #7990 |
Baseline #7986 |
|
|---|---|---|
0B |
0B |
|
0B |
0B |
|
0% |
0% |
|
0 |
0 |
|
4 |
4 |
|
197 |
197 |
|
80 |
80 |
|
44.85% |
44.85% |
|
2 |
2 |
|
0 |
0 |
Bundle size by type no changes
| Current #7990 |
Baseline #7986 |
|
|---|---|---|
145.76KiB |
145.76KiB |
|
90.01KiB |
90.01KiB |
Bundle analysis report Branch PupilTong:codex/comment-out-bts-... Project dashboard
Generated by RelativeCI Documentation Report issue
Web Explorer#9562 Bundle Size — 899.99KiB (~-0.01%).dd94fd2(current) vs 4b27356 main#9558(baseline) Bundle metrics
Bundle size by type
Bundle analysis report Branch PupilTong:codex/comment-out-bts-... Project dashboard Generated by RelativeCI Documentation Report issue |
React Example with Element Template#255 Bundle Size — 197.77KiB (-0.01%).dd94fd2(current) vs 4b27356 main#251(baseline) Bundle metrics
Bundle size by type
Bundle analysis report Branch PupilTong:codex/comment-out-bts-... Project dashboard Generated by RelativeCI Documentation Report issue |
React MTF Example#1120 Bundle Size — 206.69KiB (+0.04%).dd94fd2(current) vs 4b27356 main#1116(baseline) Bundle metrics
Bundle size by type
Bundle analysis report Branch PupilTong:codex/comment-out-bts-... Project dashboard Generated by RelativeCI Documentation Report issue |
6b445fa to
c899f2a
Compare
c899f2a to
dd94fd2
Compare
Summary
Tests
Summary by CodeRabbit