From 067e0c8d951c9bd97e619eb4cd66007417ac95d9 Mon Sep 17 00:00:00 2001 From: plivo-sdks Date: Thu, 18 Jan 2018 19:11:41 +0530 Subject: [PATCH] Bump version to 4.0.0 out of beta and update changelog --- CHANGELOG.md | 4 ++++ README.md | 4 ++-- lib/rest/client.js | 2 +- package.json | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9c80ce5..213adbd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Change Log +## [4.0.0](https://github.com/plivo/plivo-node/releases/tag/v4.0.0)(2018-01-18) +- Add timeout support while making the API requests +- Add meta property to list responses + ## [4.0.0-beta.1](https://github.com/plivo/plivo-node/releases/tag/v4.0.0-beta.1)(2017-10-24) - The new SDK works with Node.js >= 4. It has been tested against the versions 4, 5, 6, 7 and 8. - The API interfaces are consistent and guessable diff --git a/README.md b/README.md index a08cd83e..30a1ebe3 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The Node.js SDK makes it simpler to integrate communications into your Node.js a ## Installation Install the SDK using [npm](https://www.npmjs.com/package/plivo) - $ npm install plivo@beta + $ npm install plivo If you have the `0.4.1` version (a.k.a legacy) already installed, you may have to first uninstall it before installing the new version. @@ -96,4 +96,4 @@ This generates the following XML: Refer to the [Plivo API Reference](https://api-reference.plivo.com/latest/node/introduction/overview) for more examples. Also refer to the [guide to setting up dev environment](https://developers.plivo.com/getting-started/setting-up-dev-environment/) on [Plivo Developers Portal](https://developers.plivo.com) to setup an Express server & use it to test out your integration in under 5 minutes. ## Reporting issues -Report any feedback or problems with this beta version by [opening an issue on Github](https://github.com/plivo/plivo-node/issues). +Report any feedback or problems with this version by [opening an issue on Github](https://github.com/plivo/plivo-node/issues). diff --git a/lib/rest/client.js b/lib/rest/client.js index 6d6ac125..894db589 100644 --- a/lib/rest/client.js +++ b/lib/rest/client.js @@ -46,7 +46,7 @@ export class Client { authToken: authToken, version: 'v1', url: 'https://api.plivo.com/v1/Account/' + authId, - userAgent: `${name || 'plivo-node'}/${version || 'Unknown Version'} (Node: ${process.version})`, + userAgent: `${'plivo-node'}/${version || 'Unknown Version'} (Node: ${process.version})`, }, options); let client = camelCaseRequestWrapper(Request(options)); diff --git a/package.json b/package.json index f560f53d..761d2afa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.0.0-beta.1", + "version": "4.0.0", "description": "A Node.js SDK to make voice calls & send SMS using Plivo and to generate Plivo XML", "homepage": "https://github.com/plivo/plivo-node", "files": [