Skip to content

Files

Latest commit

author
Srinath Narayanan
Nov 14, 2017
7fff398 · Nov 14, 2017

History

History
221 lines (171 loc) · 10.3 KB

documentdb-sdk-node.md

File metadata and controls

221 lines (171 loc) · 10.3 KB
title description services documentationcenter author manager editor ms.assetid ms.service ms.workload ms.tgt_pltfrm ms.devlang ms.topic ms.date ms.author ms.custom
Azure Cosmos DB Node.js API, SDK & Resources | Microsoft Docs
Learn all about the Node.js API and SDK including release dates, retirement dates, and changes made between each version of the Azure Cosmos DB Node.js SDK.
cosmos-db
nodejs
rnagpal
jhubbard
cgronlun
9d5621fa-0e11-4619-a28b-a19d872bcf37
cosmos-db
data-services
na
nodejs
article
11/14/2017
rnagpal
H1Hack27Feb2017

Azure Cosmos DB Node.js SDK: Release notes and resources

[!div class="op_single_selector"]

**Download SDK**[NPM](https://www.npmjs.com/package/documentdb)
**API documentation**[Node.js API reference documentation](http://azure.github.io/azure-documentdb-node/DocumentClient.html)
**SDK installation instructions**[Installation instructions](http://azure.github.io/azure-documentdb-node/)
**Contribute to SDK**[GitHub](https://github.com/Azure/azure-documentdb-node/tree/master/source)
**Samples**[Node.js code samples](documentdb-nodejs-samples.md)
**Get started tutorial**[Get started with the Node.js SDK](documentdb-nodejs-get-started.md)
**Web app tutorial**[Build a Node.js web application using Azure Cosmos DB](documentdb-nodejs-application.md)
**Current supported platform** [Node.js v6.x](https://nodejs.org/en/blog/release/v6.10.3/)
[Node.js v4.2.0](https://nodejs.org/en/blog/release/v4.2.0/)
[Node.js v0.12](https://nodejs.org/en/blog/release/v0.12.0/)
[Node.js v0.10](https://nodejs.org/en/blog/release/v0.10.0/)

Release notes

  • Adds support for Session Consistency.
  • This SDK version requires the latest version of Azure Cosmos DB Emulator available for download from https://aka.ms/cosmosdb-emulator.
  • Splitproofed cross partition queries.
  • Adds supports for resource link with leading and trailing slashes (and corresponding tests).
  • npm documentation fixed.
  • Fixed a bug in executeStoredProcedure where documents involved had special Unicode characters (LS, PS).
  • Fixed a bug in handling documents with Unicode characters in the partition key.
  • Fixed support for creating collections with the name media. Github issue #114.
  • Fixed support for permission authorization token. Github issue #178.
  • Added support for a new consistency level called ConsistentPrefix.
  • Added support for UriFactory.
  • Fixed a Unicode support bug. GitHub issue #171.
  • Added the support for aggregation queries (COUNT, MIN, MAX, SUM, and AVG).
  • Added the option for controlling degree of parallelism for cross partition queries.
  • Added the option for disabling SSL verification when running against Azure Cosmos DB Emulator.
  • Lowered minimum throughput on partitioned collections from 10,100 RU/s to 2500 RU/s.
  • Fixed the continuation token bug for single partition collection. Github issue #107.
  • Fixed the executeStoredProcedure bug in handling 0 as single param. Github issue #155.
  • Fixed user-agent header to include the SDK version.
  • Minor code cleanup.
  • Disabling SSL verification when using the SDK to target the emulator(hostname=localhost).
  • Added support for enabling script logging during stored procedure execution.
  • Added support for cross partition parallel queries.
  • Added support for TOP/ORDER BY queries for partitioned collections.
  • Added retry policy support for throttled requests. (Throttled requests receive a request rate too large exception, error code 429.) By default, Azure Cosmos DB retries nine times for each request when error code 429 is encountered, honoring the retryAfter time in the response header. A fixed retry interval time can now be set as part of the RetryOptions property on the ConnectionPolicy object if you want to ignore the retryAfter time returned by server between the retries. Azure Cosmos DB now waits for a maximum of 30 seconds for each request that is being throttled (irrespective of retry count) and returns the response with error code 429. This time can also be overridden in the RetryOptions property on ConnectionPolicy object.
  • Cosmos DB now returns x-ms-throttle-retry-count and x-ms-throttle-retry-wait-time-ms as the response headers in every request to denote the throttle retry count and the cumulative time the request waited between the retries.
  • The RetryOptions class was added, exposing the RetryOptions property on the ConnectionPolicy class that can be used to override some of the default retry options.
  • Added the support for multi-region database accounts.
  • Added the support for Time To Live(TTL) feature for documents.
  • Fixed RangePartitionResolver.resolveForRead bug where it was not returning links due to a bad concat of results.
  • Fixed hashParitionResolver resolveForRead(): When no partition key supplied was throwing exception, instead of returning a list of all registered links.
  • Fixes issue #100 - Dedicated HTTPS Agent: Avoid modifying the global agent for Azure Cosmos DB purposes. Use a dedicated agent for all of the lib’s requests.
  • Fixes issue #81 - Properly handle dashes in media ids.
  • Fixes issue #95 - EventEmitter listener leak warning.
  • Fixes issue #92 - rename folder Hash to hash for case-sensitive systems.
  • Implement sharding support by adding hash & range partition resolvers.
  • Implement Upsert. New upsertXXX methods on documentClient.
  • Skipped to bring version numbers in alignment with other SDKs.
  • Split Q promises wrapper to new repository.
  • Update to package file for npm registry.
  • Implements ID Based Routing.
  • Fixes Issue #49 - current property conflicts with method current().
  • Added support for GeoSpatial index.
  • Validates id property for all resources. Ids for resources cannot contain ?, /, #, //, characters or end with a space.
  • Adds new header "index transformation progress" to ResourceResponse.
  • Implements V2 indexing policy.
  • Issue #40 - Implemented eslint and grunt configurations in the core and promise SDK.
  • Issue #45 - Promises wrapper does not include header with error.
  • Implemented ability to query for conflicts by adding readConflicts, readConflictAsync, and queryConflicts.
  • Updated API documentation.
  • Issue #41 - client.createDocumentAsync error.
  • GA SDK.

Release & Retirement Dates

Microsoft provides notification at least 12 months in advance of retiring an SDK in order to smooth the transition to a newer/supported version.

New features and functionality and optimizations are only added to the current SDK, as such it is recommended that you always upgrade to the latest SDK version as early as possible.

Any request to Cosmos DB using a retired SDK is be rejected by the service.


Version Release Date Retirement Date
1.14.0 November 9, 2017 ---
1.13.0 October 11, 2017 ---
1.12.2 August 10, 2017 ---
1.12.1 August 10, 2017 ---
1.12.0 May 10, 2017 ---
1.11.0 March 16, 2017 ---
1.10.2 January 27, 2017 ---
1.10.1 December 22, 2016 ---
1.10.0 October 03, 2016 ---
1.9.0 July 07, 2016 ---
1.8.0 June 14, 2016 ---
1.7.0 April 26, 2016 ---
1.6.0 March 29, 2016 ---
1.5.6 March 08, 2016 ---
1.5.5 February 02, 2016 ---
1.5.4 February 01, 2016 ---
1.5.2 January 26, 2016 ---
1.5.2 January 22, 2016 ---
1.5.1 January 4, 2016 ---
1.5.0 December 31, 2015 ---
1.4.0 October 06, 2015 ---
1.3.0 October 06, 2015 ---
1.2.2 September 10, 2015 ---
1.2.1 August 15, 2015 ---
1.2.0 August 05, 2015 ---
1.1.0 July 09, 2015 ---
1.0.3 June 04, 2015 ---
1.0.2 May 23, 2015 ---
1.0.1 May 15, 2015 ---
1.0.0 April 08, 2015 ---

FAQ

[!INCLUDE cosmos-db-sdk-faq]

See also

To learn more about Cosmos DB, see Microsoft Azure Cosmos DB service page.