JavaScript on Tumblr — Tumblr.js is back!

1.5M ratings
277k ratings

See, that’s what the app is perfect for.

Sounds perfect Wahhhh, I don’t wanna

Tumblr.js is back!

Hello Tumblr—your friendly neighborhood Tumblr web developers here. It’s been a while!

Remember the official JavaScript client library for the Tumblr API? tumblr.js? Well, we’ve picked it up, brushed it off, and released a new version of tumblr.js for you.

Having an official JavaScript client library for the Tumblr API means that you can interact with Tumblr in wild and wonderful ways. And we know as well as anybody how important it is to foster that kind of creativity.

Moving forward, this kind of creativity is something we’re committed to supporting. We’d love to hear about how you’re using it to build cool stuff here on Tumblr!

Some highlights:

  • NPF post creation is now supported via the createPost method.
  • The bundled TypeScript type declarations have been vastly improved and are generated from source.
  • Some deprecated dependencies with known vulnerabilities have been removed.

Intrigued? Have a look at the changelog or read on for more details.

Migrating

v4 includes breaking changes, so if you’re ready to upgrade to from a previous release, there are a few things to keep in mind:

  • The callback API has been deprecated and is expected to be removed in a future version. Please migrate to the promise API.
  • There is no need to use returnPromises (the method or the option). A promise will be returned when no callback is provided.
  • createPost is a new method for NPF posts.
  • Legacy post creation methods have been deprecated.
  • createLegacyPost is a new method with the same behavior as createPost in previous versions (rename createPost to createLegacyPost to maintain existing behavior).
  • The legacy post creation helpers like createPhotoPost have been removed. Use createLegacyPost(blogName, { type: ‘photo’ }).

See the changelog for detailed release notes.

What’s in store for the future?

We’ll continue to maintain tumblr.js, but we’d like to hear from you. What do you want? How can we provide the tools for you to continue making cool stuff that makes Tumblr great?

Let us know right here or file an issue on GitHub.

Some questions for you:

  • We’d like to improve types to make API methods easier to use. What methods are most important to you?
  • Are there API methods that you miss?
  • Tumblr.js is a Node.js library, would you use it in the browser to build web applications?
tumblr.js tumblr api open source

See more posts like this on Tumblr

#open source #tumblr.js #tumblr api