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
set jQuery as a peer dependency #2248
Conversation
Thx for the PR. I had to lookup what peerDependencies are. It reads like this is usefull for our library use-case. @Arkni what do you think? |
I'm +1 to this change. But, is it ok to release this in a minor/patch version instead of a major one? |
any update to decision here? |
Hi @aigdonia, Sorry for taking so long to respond, the last month (and still have limited time) was crazy for me. As I said before, I'm +1 to the idea of removing jQuery from the dependencies and moving it to peer dependencies. The only thing I lack information on is should we release this as part of a patch/minor version or a major one? If you have any information/recommendation about that, please feel free to provide them. Thanks a lot for working on this and thanks for your patience :) |
as per the definition of semver.org so I suggest this to be a minor/patch release. |
A minor release it is then. Thanks @aigdonia for the information :) I'm going to merge this proposal in a moment. Thanks :) |
Thank you guys 😎 |
Thanks for the merge |
Would it be possible to publish a beta build or public build of this to bring in via npm? I'm currently having issues with this using webpack due since this commit isn't in a built package. |
Until a new build is published, simply add the following to
(Thanks @marcwieland95 for coming up with the fix in #2272) |
I tried this solution but it's still using the jquery from the inside node_module folder. |
I just published jquery-validateion 1.19.1 to npm. most important change is that jquery is now defined as a peer dependency, so we dont get into your way. see #2248 sorry this took us so long. jq-validation is not top priority atm |
After bundle with
webpack
this package includes its own jquery to the bundle and no way to get rid of it except by add jquery as apeerDependency
to thepackage.json
I found a non merged PR from 2016 here #1858 but setting as a
devDependency
is not the best fit, so I created this PRthanks