Skip to content

Make jQuery a peer dependency and require it.#109

Open
jacksonrayhamilton wants to merge 2 commits intochaijs:masterfrom
jacksonrayhamilton:require-jquery
Open

Make jQuery a peer dependency and require it.#109
jacksonrayhamilton wants to merge 2 commits intochaijs:masterfrom
jacksonrayhamilton:require-jquery

Conversation

@jacksonrayhamilton
Copy link
Copy Markdown

Fixes #40. In CommonJS environments, jQuery would still need to be a global variable, which made using this library more difficult. Also, adding it as a "*" peer dependency causes NPM to warn that it needs to be installed, without restricting the user to a particular jQuery version.

I acknowledge that some people still might want to specify their own jQuery object, but I am choosing to treat that as a separate feature request. This change can be considered a "minor correction" independent of other loading enhancements, since it aligns with the way jQuery is currently loaded in AMD environments. In reaching that parallel, jQuery will be loaded in each of the supported environments' most common manners, respectively.

@revelt
Copy link
Copy Markdown

revelt commented Oct 22, 2018

hi all! Nearly a year passed, can somebody please either approve or close this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants