Skip to content

Repair wp/5.8 branch Actions: Download objectFitPolyfill from jsDelivr - #84454

Closed
desrosj wants to merge 1 commit into
fix-actions-5.8/disable-remote-patterns-in-e2efrom
fix-actions-5.8/fix-object-fit-polyfill-cdn
Closed

desrosj wants to merge 1 commit into
fix-actions-5.8/disable-remote-patterns-in-e2efrom
fix-actions-5.8/fix-object-fit-polyfill-cdn

Conversation

@desrosj

@desrosj desrosj commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Part of #82935.

What?

Changes the objectFitPolyfill vendor script URL in lib/client-assets.php from unpkg to jsDelivr, keeping the same package, version (2.3.5) and file path.

Why?

https://unpkg.com/objectFitPolyfill@2.3.5/dist/objectFitPolyfill.min.js now returns 404 (Package not found). bin/build-plugin-zip.sh (npm run build:plugin-zip) downloads the registered vendor scripts and exits on any non-200 response, so the plugin zip for this branch can't be built at all. In development mode, gutenberg_register_vendor_script() also requests the URL at runtime and, when it can't download it, enqueues the dead URL instead.

unpkg lowercases package names since moving to Cloudflare Workers, so it can no longer serve legacy npm packages with capital letters in their names. The maintainers closed the report as not planned (unpkg/unpkg#453). The package itself is unchanged on npm.

Trunk removed the polyfill in #34536 (351e52c) and the build-time vendor downloads in #39534 (1639284). Neither is suitable here: this branch still supports WordPress 5.6, and #39534 rewrites the build pipeline.

How?

jsDelivr serves the same npm file (the 2.3.5 file is byte-identical to the npm tarball's). The file is still downloaded at build time and shipped in the plugin's vendor/ directory, so browsers never request it from the CDN. Only the vendor filename's hash changes; nothing references that filename directly.

Use of AI Tools

This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.

🤖 Generated with Claude Code

@desrosj desrosj added the [Type] Build Tooling Issues or PRs related to build tooling label Oct 9, 2026
@desrosj desrosj self-assigned this Oct 9, 2026
@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bc523a41-1b45-4e41-998f-1c9c3ce09fac

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@desrosj
desrosj removed this pull request from stack #84460 October 10, 2026 00:22
@desrosj
desrosj changed the base branch from fix-actions-5.8/disable-remote-patterns-in-e2e to wp/5.8 October 10, 2026 00:23
@desrosj
desrosj force-pushed the fix-actions-5.8/fix-object-fit-polyfill-cdn branch from a5fcb70 to 8575aa4 Compare October 10, 2026 00:24
@desrosj
desrosj changed the base branch from wp/5.8 to fix-actions-5.8/disable-remote-patterns-in-e2e October 10, 2026 00:26
@desrosj
desrosj added this pull request to stack #84492 October 10, 2026 00:27
@desrosj
desrosj marked this pull request as ready for review October 13, 2026 01:11
@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: desrosj <desrosj@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@desrosj

desrosj commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

Closing in favor of #84873, which removes the object-fit polyfill instead of moving its URL to another CDN. WordPress 5.8 registers its own polyfill, so the plugin's copy isn't needed on wp/5.8.

@desrosj desrosj closed this Oct 16, 2026
@desrosj
desrosj deleted the fix-actions-5.8/fix-object-fit-polyfill-cdn branch October 16, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant