LearningWebAppDev
LearningWebAppDev copied to clipboard
ntwitter is deprecated
I was afraid this might happen eventually, but as of 5 days ago ntwitter
is "officially" deprecated (see the README file in the ntwitter
repository). This means it probably shouldn't be used in any code that you're hoping to keep or maintain long-term.
That said, I just tried it with the examples that are contained in the book, and they are all still working. So everything can stay the way it is for the time being. But if anyone hits a major snag with it, please report the issue here.
In the event that there's a breaking change with the Twitter API that causes the book examples to fail, our best course of action will be to fork ntwitter
and make it work with the examples in the book, and then update the errata list so that it directs readers to install our fork. I don't think this will be necessary since our examples are pretty straight-forward, but only time will tell.
If/when we do a second edition of the book, I'll update it to use a newer, more maintained Twitter module.
It turns out the twitter
module has a compatible API that seems to work with most of the examples in the book. You can find it here: https://www.npmjs.org/package/twitter
And you can install it with
$ npm install twitter
I'll update the errata soon.
Hi, Semmy! I posted an alternative solution to this on my github: https://github.com/NessaRibeiro/SolucaoAlternativa_LivroDoSemmy
I didn't use twitter package, but I've been used twit package.