Skip to content

CSS: Include show, hide & toggle methods in the jQuery slim build #4704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2020

Conversation

mgol
Copy link
Member

@mgol mgol commented May 4, 2020

Summary

The show(), hide() & toggle() methods were included in the 3.x jQuery slim
build. The jQuery master build accidentally started to exclude them as they were
only imported in the effects module and the new Rollup-based build system
follows the module dependency graph when excluding modules.

To resolve the issue, import the css/showHide.js file directly in the main
jquery.js file.

We don't really have tests for what gets into the slim build so I didn't add anything.

Checklist

Sorry, something went wrong.

@mgol mgol added CSS Needs review Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. labels May 4, 2020
@mgol mgol added this to the 4.0.0 milestone May 4, 2020
@mgol mgol self-assigned this May 4, 2020
@mgol
Copy link
Member Author

mgol commented May 4, 2020

@mgol mgol added the 4.x-only label May 4, 2020
@mgol mgol removed Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. Needs review labels May 4, 2020
The `show()`, `hide()` & `toggle()` methods were included in the 3.x jQuery slim
build. The jQuery master build accidentally started to exclude them as they were
only imported in the effects module and the new Rollup-based build system
follows the module dependency graph when excluding modules.

To resolve the issue, import the `css/showHide.js` file directly in the main
`jquery.js` file.
@mgol mgol merged commit 297d18d into jquery:master May 5, 2020
@mgol mgol deleted the show-slim branch May 5, 2020 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants