twitter / twitter-text

Twitter Text Libraries. This code is used at Twitter to tokenize and parse text to meet the expectations for what can be used on the platform.
https://developer.twitter.com/en/docs/counting-characters
Apache License 2.0
3.07k stars 520 forks source link

How to update to latest version of twiter-text since npm is giving error No matching version found for twitter-text taking 1.14.3 as latest one where as git hub docs shows it as 3.0.1 #293

Closed jayaramasaipavanmanda closed 4 years ago

jayaramasaipavanmanda commented 4 years ago

One line summary of the issue here.

Expected behavior

As concisely as possible, describe the expected behavior.

Actual behavior

As concisely as possible, describe the observed behavior.

Steps to reproduce the behavior

Please list all relevant steps to reproduce the observed behavior.

jayaramasaipavanmanda commented 4 years ago

I am currently trying to update character count which is getting calculated wrongly.

kaushlakers commented 4 years ago

Should be fixed now, sorry for the trouble! 3.0.1 should be available.

jayaramasaipavanmanda commented 4 years ago

@kaushlakers Its still installing twitter-text@1.14.3 when I use this command npm i twitter-text after deleting previous old modules.Could you please look into this.

kaushlakers commented 4 years ago

Are you saying it's not updating the package.json or that it's not installing itself? If you meant updating the package file, I think you are missing the --save flag i.e npm i twitter-text --save.

If it's not installing the modules itself, then I'm not sure what is causing the issue. I'm unfortunately not able to repro and this isn't a twitter-text library issue.

jayaramasaipavanmanda commented 4 years ago

@kaushlakers Since getTweetLength is giving wrong value and is getting deprecated , I am trying to use parseTweet which is currently not available in my @types/twitter-text file. I am trying to update to use parseTweet and I am getting same version installed.