Skip to content

Inline a few dependencies, update all dependencies#652

Merged
mgol merged 8 commits intojquery:mainfrom
mgol:inline-dependencies
Mar 13, 2026
Merged

Inline a few dependencies, update all dependencies#652
mgol merged 8 commits intojquery:mainfrom
mgol:inline-dependencies

Conversation

@mgol
Copy link
Member

@mgol mgol commented Mar 11, 2026

Inline four jQuery-owned dependencies:

to make it easier to update deep vulnerable dependencies - and then update them. Those dependencies are not used in any other maintained jQuery project.

Tests were migrated from Mocha to QUnit.

builder-amd-css depends on require-css via Bower. That package is available on npm, but builder-amd-css contained custom patches (patch 1, patch 2), so instead require-css is inlined with these patches into lib/external/require-css. The original source is committed as well for easier audit and jQuery modifications are marked clearly with code comments.

Tests pass, plus I tested the Download Builder & the Themeroller locally with these changes.

@mgol mgol force-pushed the inline-dependencies branch 2 times, most recently from bdde50b to a5082c4 Compare March 11, 2026 21:35
@mgol mgol requested a review from fnagel March 11, 2026 21:36
@mgol mgol self-assigned this Mar 11, 2026
Copy link
Member

@fnagel fnagel left a comment

Choose a reason for hiding this comment

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

+1 by reading (checked each commit)

@mgol mgol force-pushed the inline-dependencies branch from a5082c4 to f4b7ead Compare March 13, 2026 10:31
@mgol mgol merged commit 3fd2446 into jquery:main Mar 13, 2026
6 checks passed
mgol added a commit that referenced this pull request Mar 13, 2026
mgol added a commit that referenced this pull request Mar 13, 2026
mgol added a commit that referenced this pull request Mar 13, 2026
mgol added a commit that referenced this pull request Mar 13, 2026
1. Rename `bower_components` to `external` since we now maintain it patched.
2. Remove non-needed files.
3. Enumerate the needed JS files directly instead of globbing.

Ref gh-652
mgol added a commit that referenced this pull request Mar 13, 2026
mgol added a commit that referenced this pull request Mar 13, 2026
@mgol mgol deleted the inline-dependencies branch March 13, 2026 10:34
@mgol mgol removed the Needs review label Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants