🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@mgol
Copy link
Member

@mgol mgol commented Jul 10, 2023

Summary

Bring some changes from 3.x-stable:

  • rename rtrim to rtrimCSS to distinguish from the previous rtrim regex used for jQuery.trim
  • backport one id selector test that avoids the selector engine path
  • remove the inner function wrapper from selector.js by renaming the imported document.js value

The changes also improve the size a little.

Checklist

@mgol mgol self-assigned this Jul 10, 2023
@mgol mgol removed the Needs review label Jul 10, 2023
@mgol mgol marked this pull request as draft July 10, 2023 21:52
@mgol mgol marked this pull request as ready for review July 10, 2023 22:09
@mgol
Copy link
Member Author

mgol commented Jul 10, 2023

Size impact:

   raw     gz Compared to main @ 8be4c0e4f89d6c8f780e5937a0534921d8c7815e      
  +113     -9 dist/jquery.min.js                                               
  +113     -7 dist/jquery.slim.min.js                                          
  +113    -11 dist-module/jquery.module.min.js                                 
  +113     -3 dist-module/jquery.slim.module.min.js                            

@timmywil
Copy link
Member

Pending conflict resolution

Bring some changes from `3.x-stable`:
* rename `rtrim` to `rtrimCSS` to distinguish from the previous `rtrim` regex
  used for `jQuery.trim`
* backport one `id` selector test that avoids the selector engine path
* remove the inner function wrapper from `selector.js` by renaming the imported
  `document.js` value

The changes also improve the size a little.
Core tests had a spy set up for `jQuery.error` that wasn't cleaned up,
influencing Selector tests when all were run together.
@mgol mgol removed the Needs review label Sep 19, 2023
@mgol mgol added this to the 4.0.0 milestone Sep 19, 2023
@mgol mgol merged commit 53cf724 into jquery:main Sep 20, 2023
@mgol mgol deleted the tweaks branch September 20, 2023 00:31
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Development

Successfully merging this pull request may close these issues.

2 participants