All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Breaking Support Node.js versions
>=22.
5.0.1 - 2025-05-02
- Ensure type declarations can be discovered in certain build setups.
5.0.0 - 2024-02-22
- Breaking Support Node.js versions
>=18.
- Fix Content-Length header size in UTF-8.
4.0.1 - 2023-09-01
- Build updated docs site at https://tumblr.github.io/tumblr.js.
- Some
@privateproperties ofClienthave been changed to#privatefields.
4.0.0 - 2023-08-28
The 4.0 release is a significant change that modernizes the library, adds NPF support, and removes a
dependency on the long-deprecated request library.
Some things to watch out for when migrating from v3:
The createPost and editPost methods were renamed to createLegacyPost and editLegacyPost.
createPost and editPost are now for working with NPF posts (via the /posts endpoint).
// Before v4
createPost(blogName, params);
editPost(blogName, params);
// After v4
createLegacyPost(blogName, params);
editLegacyPost(blogName, params);Some legacy post creation helper methods have been removed. For example:
// Before v4
createPhotoPost(blogName, params);
// After v4
createLegacyPost(blogName, { type: 'photo', ...params });Usage of returnPromises will now produce a warning. A promise will be returned if no callback is
provided.
- Integration test suites using the Tumblr API.
- Creation and edition of NPF posts is now supported via
createPost/editPost🎉
- Breaking Support Node.js versions
>=16. - Breaking
Clientconstructor accepts single options argument. - Breaking Credentials should be provided directly as options, not nested under the
credentialsproperty. - Breaking The (optional)
baseUrloption should be of the formhttps://example.comwith no pathname, search, hash, etc. BadbaseUrloptions will throw. - Breaking The
createPostmethod has been renamed tocreateLegacyPost.createPostis now used for NPF post creation. - Some API methods had documented signatures that were probably wrong. These have been updated.
- Bundled type declarations are now generated from source and should be improved.
- Dependencies have changed, notably
request(deprecated) andlodashhave been removed.
- The following legacy post methods are deprecated. Prefer NPF methods (
/postsendpoint)createLegacyPosteditLegacyPostreblogPost
- The callback API is considered deprecated in favor of the
PromiseAPI.
blogIdentifierparameters will not have.tumblr.comautomatically appended. Blog UUIDs can now be used asblogIdentifiers.
- Breaking API methods return promises when no callback is provided. The
returnPromisesmethod and option have no effect. - Breaking The
addGetMethodsandaddPostMethodsmethods have been removed. Additional methods can be implemented using thegetRequestorpostRequestmethods. - Breaking The following legacy post creation methods have been removed.
createAudioPost: usecreateLegacyPostwith{type: "audio"}.createChatPost: usecreateLegacyPostwith{type: "chat"}.createLinkPost: usecreateLegacyPostwith{type: "link"}.createPhotoPost: usecreateLegacyPostwith{type: "photo"}.createQuotePost: usecreateLegacyPostwith{type: "quote"}.createTextPost: usecreateLegacyPostwith{type: "text"}.createVideoPost: usecreateLegacyPostwith{type: "video"}.
- Breaking The
requestoption has been removed. - Request objects are no longer returned from API methods.