From 8a46901cfec35ca83291511a34b2ae81556bf7ae Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Mon, 28 Aug 2023 15:06:29 +0200 Subject: [PATCH] Remove returnPromises mention from README --- README.md | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 932d11d3..ebb143a6 100644 --- a/README.md +++ b/README.md @@ -58,19 +58,8 @@ const client = new tumblr.Client({ }); ``` -The request methods return `Request` objects by default, but you can have it return `Promise` -objects instead, if that's more your thing. Pass `returnPromises: true` in the options to -`createClient`: - -```js -const tumblr = require('tumblr.js'); -const client = tumblr.createClient({ - credentials: { - // ... - }, - returnPromises: true, -}); -``` +The request methods will return promises. The callback form is considered deprecated and should not +be used. ### In the Browser