Scoped Packages #108
Labels
breaking change
Issue contains breaking changes
contributors welcome!
Open to outside contributors
enhancement
New feature or request
This is changing the Fontsource package names from
fontsource-<font name>
to the scoped@fontsource/<font name>
, which means everyone would have to redownload the renamed package from NPM.After randomly reading the Emotion 11 blog post, I saw it's somewhat acceptable to just rename packages and migrate them to new namespaces on a breaking change. However, Fontsource is on another scale as it has almost 1100 packages that would have to migrate over to the new namespace.
Why?
The only benefits associated with this is:
We never have to worry about package name conflicts as we have our own namespace. No other random developer can upload a package under the fontsource scope. While I believe it is still possible to contact NPM support to gain rights to a taken package name that blatantly uses our upload format, it isn't guaranteed to work and is messy, to say the least.
Possible impersonators may upload under the fontsource name which could be an entry point for one of those famous NPM package malware stories. If it is under @fontsource, you know it is authentic.
All packages would be stored in the same scoped folder in node_modules, which may make it easier for developers in some niche cases.
Cons:
I'd love to hear some opinions and whether this should be included in the next breaking change update or not. In the long term, I agree this may be the best solution moving forward and I'm inclined to approve this, but I'm more than open to change my mind here.
The text was updated successfully, but these errors were encountered: