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
Publish Sizzle to npm #266
Conversation
Maybe I should've used the |
That's right. It should be the dist version. |
@timmywil fixed. Also, is sizzle published anywhere on I'm sure he'd be fine with it if the official repo gets published in its place |
That'd be fine with me. |
@ded @ryanve do you want to fill in some context here re Ender and see if an Ender bridge is something that they can accommodate so we can pass off the sizzle package in npm? I personally don't know anyone using it as the selector engine for Ender but it's obviously in use in a bunch of places: So if we can transition over to an official release while maintaining Ender compatibility and making Browserify happy then it'd be win/win/win. |
i think the browser + ender compat should remain intact. it's not difficult to do, and there's no reason to break things for anyone. |
@ded could you guys point out which changes are needed to make |
Would following these guidelines be enough? Doing something like var sizzle = require('./sizzle');
ender.ender(sizzle); and adding the |
@ded There are other issues besides the difficulty of supporting ender, politics not withstanding. It really comes down to 2 options. We can either drop a package that hasn't been updated in 2 years and publish Sizzle under the name |
|
Not sure why it's that hard to support Ender? |
I meant the difficulty (or lack thereof) is not really a factor. |
Exactly. It's not politics, it's not difficult, so why not? |
Well, no, it is somewhat political. There's more involved when adding this sort of thing. If Sizzle does it, then sooner or later maintainers for other jQuery projects will be asked why they do not also support Ender. Consistency across our projects has become a quality to which we aspire. I am saying that the Ender bridge will not be added because I can predict that even if the suggestion went through the proper channels (i.e. a ticket or forum discussion), it would get shot down. That leaves us with the 2 options I laid out. |
Given the excessive politicisation of jquery, I'd suggest an alternative path that avoids interacting with them. @bevacqua I can give you commit access to the repo that maintains our fork and you can keep it in sync with what you need from here and maintain then ender bridge and whatever else you want for Browserify support and we'll publish with the frequency you need. |
I'd rather not have to maintain a fork, but I guess unless a |
As @timmywil points out, Ender support would possibly be shot down in discussion. However, I'm open to discussing it anyway, as discussing compatibility pain points usually ends up in interesting solutions regardless. However... that discussion is immaterial to whether or not the I'm not sure what demonstrates an "excess politicisation of jquery", but it seems like there is an easy and straightforward way to resolve this. |
Wow, that's a bit of an overreaction. jQuery wants to do what is best for our users. I'm sorry to offend the ender guys, but I personally don't think an ender bridge should be added to Sizzle (this is just me talking by the way, not jQuery as a whole). That said, I do think we should support Browserify. I would like to register Sizzle under its own name, but I can see I have offended the people who could make that possible. Sorry about that. Nevertheless, I'm not sure why there so much reluctance. Your repo hasn't been updated for a long time and I suspect the majority of those downloading the package are not ender users. Why not switch it to ender-sizzle to make it explicit and avoid the confusion? |
@bevacqua Rest assured I want to publish to npm regardless of how this conversation turns out. If we're stuck with another name, it will be confusing for the developer community, but so be it. |
@ded @rvagg I propose we work together. I apologize for not showing concern for existing ender + sizzle users. However, what if we had a way to ensure that nothing broke for anyone, but the official sizzle could still be published to npm as "sizzle". In other words, since the existing package hasn't been updated for a while, we could leave all of the existing versions untouched. That way, nothing will break for anyone. But the latest versions that have not yet been published could be published with the warning that the ender bridge is no longer present. We can then direct anyone who is updating and still requires the ender bridge to the ender-sizzle package. What do you think? |
yeah that would be great. i trust the jQuery team as a whole would want things to work. why don't you send me your npm username and point to a commit where the work is being done and then move forward from there |
@ded Thank you. The npm username that needs to be added with |
This sounds great guys, thanks for dealing with the politics on this one (to both parts)! |
@ded Oh, as far as re-publishing sizzle with the ender bridge under a different name, I think that's as simple as changing the name in the |
We really shouldn't be using shared accounts. |
@ded @scottgonzalez In that case, make it "timmywil". I can add other jQuery team members later. |
Cool. When I get a free moment at my desktop I'll add timmywil
|
Thanks @ded. And thanks for the list. Just so you know, Sizzle already supports AMD and CommonJS-like require. |
Major version has been bumped. |
Now merge this one in! :) |
@bevacqua Actually, the main property has already been set. That change made it in with a batch of changes to the |
ok you should be good to go |
Sizzle 2.0 has been published. Thank you everyone! Release notes: https://github.com/jquery/sizzle/releases/tag/2.0.0 |
🤘 |
Defined an entry point so that sizzle can be browserified