github Azure/azure-sdk-for-js @azure/cosmos_3.7.0

latest releases: @azure-tools/test-recorder_3.5.0, @azure/storage-queue_12.17.0, @azure/storage-file-datalake_12.17.0...
3 years ago

3.7.0 (2020-6-08)

  • BUGFIX: Support crypto functions in Internet Explorer browser
  • BUGFIX: Incorrect key casing in object returned by setAuthorizationHeader
  • FEATURE: Adds readOffer methods to container and database
  • FEATURE: Allows string value partitionKey parameter when creating containers

The following result in the same behavior:

const containerDefinition = {
  id: "sample container",
  indexingPolicy: { indexingMode: IndexingMode.consistent },
  throughput: 400,
  partitionKey: { paths: ["/key"] }
};
database.container.create(containerDefinition);

// OR as a string

const containerDefinition = {
  id: "sample container",
  indexingPolicy: { indexingMode: IndexingMode.consistent },
  throughput: 400,
  partitionKey: "/key" } // must have leading slash "/"
};
database.container.create(containerDefinition);

Don't miss a new azure-sdk-for-js release

NewReleases is sending notifications on new releases.