-
Notifications
You must be signed in to change notification settings - Fork 13
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
Correct package.json name to rdfjs org #4
Conversation
What is the benefit of this change? Keeping the name If we do this, however, everyone will have to update all of their imports. |
Nothing has to break, we can publish over rdf-js to proxy this package. Bringing the package under the rdfjs org aligns it with this repo and signals that it is endorsed and maintained by the RDFJS team. |
That sounds awesome, I do agree it would bring clarity and consistency! I still find it hard to find my way through the RDF JS ecosystem and its many libraries. Having an authoritative namespace under which a few packages are maintained and considered canonical implementations is a big plus to not be discouraged. As a developer, I find it much more intuitive and less confusing to install Also, rdf-js was last published two years ago anyway and this is a major release so for someone updating their types, the simple action of installing a new package seems like a fairly small overhead. Which brings me to think it's a sensible time to do it. |
So we then agree to publish both |
Alternatively, The other question that seemed more important is how to proxy |
I'm still not convinced. Keeping
You mean what happens when we finally start publishing our own package? I have not experienced it first hand as typings author but Definitely Typed has a policy for removing packages. They recommend removing the |
The current situation is already disruptive since there are two concurrent packages As a result and for the past 2 years, I think most people (including me and most of the recent repositories I've encountered) have been relying on First, deprecating Second, there is nothing in the Third, The brand name RDF/JS is a great asset, it would be a shame not to use it. Including it in the package name makes the endorsement/source clear and it's very helpful/reassuring, even more so to new developers of which we can only hope there will be more in the future. Thanks for the link to the policy for removing packages on DefinitelyTyped, it makes things clearer. Great to see that this process properly deprecates |
Curious that I have never experience the confusion you refer to. Let me give you a complete example.
You only consider Thus, in code you will find imports like: import { NamedNode } from 'rdf-js' By reviving
Again, the current package will not be removed. It will simply proxy to a new "real" package to ease adoption. How it "is a problem in comparison"? Read below Now, changing the name to The problem is similar to what can happen if you somehow end up with multiple versions of So while I agree that if we were starting from a clean slate, I too would opt for a more natural, less confusing package name, at this point we do not have that luxury. We're looking at an existing ecosystem which we cannot afford to break and that should trump the arguments about people being confused. |
@blake-regalia, so you propose to publish export * from '@rdfjs/types` |
Apologies for the late reply, but I agree with @tpluscode's stance on this. Using this other package name will be break all existing packages, requiring them to change all imports. So I'm against merging this PR. |
Coming back to this thread, I suggest we deprecate the other packages and point to o |
@blake-regalia you agree with my #4 (comment) ? As long as we won't have everyone change their imports right away I can agree with what happen's here |
I initially proposed making More technically: I would propose publishing a new minor semver version of |
Word of caution The proxy package could just have a single version and a dependency on |
Started an open discussion in DefinitelyTyped gitter channel to clarify the removal/deprecation process here: https://gitter.im/DefinitelyTyped/DefinitelyTyped?at=609382c70845c416dcc8497b |
After a productive discussion with @tpluscode - I agree with the proxy package which has a wildcard dependency on the I will be merging this PR now that we have resolved how to proceed with the DefinitelyTyped package. |
I believe we need a new repo for |
Isn't that the purpose of this repo here? Also #3.
That's just a stub package, we can easily publish over that when we get to that point :-) |
In which case I come back to proposing a monorepo, albeit with one of the two packages really not changing much, and changesets to make publishing easy for maintainers
we are very close to that point |
What packages do you have in mind? |
|
Ah ok, so actually there will be 2 proxy packages: Since |
Yes, also an option :) |
Sounds good to me |
The package has been moved off DefinitelyTyped by upstream: DefinitelyTyped/DefinitelyTyped#51756 and rdfjs/types#4.
The package has been moved off DefinitelyTyped by upstream: DefinitelyTyped/DefinitelyTyped#51756 and rdfjs/types#4.
No description provided.