Skip to content
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

NPM package versions #5

Closed
bytestream opened this issue Dec 4, 2020 · 8 comments
Closed

NPM package versions #5

bytestream opened this issue Dec 4, 2020 · 8 comments

Comments

@bytestream
Copy link

@ajmalafif Please could you explain the versions at NPM?

https://www.npmjs.com/package/typeface-inter appears to be in use by both https://github.com/KyleAMathews/typefaces & this repository. This repository is using v3, the other is using v1. https://github.com/KyleAMathews/typefaces is also deprecated and recommends using https://github.com/fontsource/fontsource

@ajmalafif
Copy link
Owner

ajmalafif commented Dec 5, 2020

hi @bytestream,

Thanks for the question and bring this to my attention as I wasn‘t aware.

I‘ll share you context first before answering your question. Having Inter on Google Font has been a long wait dated back in March 2018 (so that we can use them with Kyle‘s typefaces package): google/fonts#1455 (comment)

However I needed them for my projects so I decided to manually host them. We had a convo on Twitter which when the time comes (Inter available on Google Font), Kyle can just override the NPM package and make it work with his typefaces package: https://twitter.com/GatsbyJS/status/1093411095551692800

Also thanks for the fontsource recommendation.

@bytestream
Copy link
Author

Thanks for the reply, context and your work on this package @ajmalafif

Personally I don't think Kyle should be publishing v1's on this package name. I'll justify why:

Given the last point, for me, this package still has a use case.

Perhaps @KyleAMathews can weight in. It would be preferable if those versions were removed and published under a different package name. NPM should be able to show you were anyone is actually pulling those v1's. Or at the very least, the README updated to note that there are two independent GitHub repositories publishing under separate version numbers simultaneously.

@ajmalafif
Copy link
Owner

ajmalafif commented Dec 7, 2020

Hi @bytestream,

It took me awhile but I understand what‘s the issue is now and I am tempted to actually overwrite the NPM package to reflect this package. However I will probably mess things up as I am more of a designer than a programmer so I am worried of breaking stuffs unintentionally.

Do you mind doing a PR (like should I have a release tag for this package?) and more than happy to push the changes to NPM.

@bytestream
Copy link
Author

bytestream commented Dec 8, 2020

I'm not familiar with NPM. I don't think there's anything I can do from GitHub.

To remove the versions I think you need to do one of the below:

  • npm unpublish <package_name>@<version>
  • npm deprecate <package>@<version> "<message>"

See https://www.npmjs.com/policies/unpublish

To update the README / linked repository, it looks like you need to publish a new version:

https://docs.npmjs.com/about-package-readme-files

@ajmalafif
Copy link
Owner

Thanks for these insights!

As you probably could tell I am not really familiar myself other than trying to figure out for my own use case. Give me a couple of days to make sure I don‘t break things and will update the package accordingly.

@bytestream
Copy link
Author

No worries, take your time :) I just wanted to make you aware and find out why both versions exist

@ajmalafif
Copy link
Owner

Hi @bytestream,

I‘ve finally found the courage and reverted the npm package back to as per Inter‘s version 3.15 and since I can‘t republish the same version, I‘ve updated it to version 3.15.1 instead: https://www.npmjs.com/package/typeface-inter

Feel free to correct if I‘ve done any mistake with the package, more than happy to fix it.

Oh and Merry Christmas & happy holidays!

@bytestream
Copy link
Author

Thanks very much! I'll let you know if I notice anything.

Merry Christmas to you too! 🎅

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

No branches or pull requests

2 participants