changelogs.md


azure/ms-rest-js

Repository  -  API  -  Source

2.0.3

July 11, 2019
  • Added support to not send default values while sending the request.
  • Added support to populate entities with it's default value if it is present in the mapper while deserializing the response.
  • During deserialization, if the service does not provide the discriminator property then we set it. While setting the discriminator property, we compare model property name and the clientName of the polymorphicDiscriminator instead of the serializedName of the polymorphicDiscriminator.
  • Added tests for serializing and deserializing additional properties.

2.0.2

July 8, 2019
  • Updated cookieJar.setCookie() with { ignoreError: true } for NodeFetchHttpClient. This should silently ignore things like parse errors and invalid domains. This should resolve issues where customers using the @azure/arm-appservice package get an error due to mismatch in the domain Azure/azure-sdk-for-js#1008. This behavior makes it consistent with the old package azure-arm-website which depends on the runtime ms-rest that depends on the request library which uses the tough-cookie package in { looseMode: true } by default with { ignoreError: true } as can be seen here.

2.0.1

June 26, 2019
  • Updated tests to include Pattern constraint

2.0.0

June 21, 2019
  • Change default HTTP client in Node.js environment from axios-based to node-fetch-based.
  • Add keepAlive option to WebResource which sets proper header in Node.js HTTP client.
  • Breaking changes:
    • AbortController
      • added required dispatchEvent method
      • added required (or null) onabort method
      • enforce type Event for ev parameter in listener in addEventListener and removeEventListener

1.8.13

June 12, 2019
  • Added DomainCredentials class for providing credentials to publish to an Azure EventGrid domain.

1.8.12

June 7, 2019
  • Added back the workaround of uppercasing method names otherwise axios causes issues with signing requests for storage data plane libraries.

1.8.11

June 6, 2019
  • Moved testing dependent projects from a script to Azure Devops Pipeline

1.8.10

June 5, 2019
  • axios changed the way it treats properties of the request config in 0.19.0. Previously we were setting trasnformResponse to undefined. This would indicate axios to not transform (JSON.parse()) the response body. In 0.19.0, they are setting the default response transformer if transformResponse is set to undefined. This breaks our pasrsing logic where we are doing JSON.parse() on operationResponse.bodyAsText. Moreover, we are exposing the bodyAsText property in the generated clients. Not populating this property or setting the value of this property to a parsed JSON would be a breaking change for our users. Hence we are setting the transformResponse property in the request config to an indentity function that returns the response body as-is.

1.8.9

June 4, 2019
  • Added build job to CI pipeline

1.8.8

June 3, 2019
  • Fixed vulnerabilities by bumping axios to ^0.19.0.
  • New version of axios fixed some issues hence removed one of the workarounds of uppercasing method names while following redirects axios PR.

1.8.7

May 16, 2019

1.8.6

May 10, 2019
  • Added script to run tests on dependent projects #345

1.8.4

May 7, 2019
  • Fixed incorrect undefined check in Axios client 62b65d
  • Added TSLint check. Fix TSLint errors #344

1.8.2

April 25, 2019
  • Fixed http over https bug #341

1.8.1

April 1, 2019
  • Fixed serialization issue when required object is empty #337

1.8.0

March 18, 2019
  • Added exports to several request policy factory methods #336

1.7.0

February 11, 2019
  • Added userAgentHeaderName to ServiceClientOptions #330

1.6.0

January 30, 2019
  • Fixed including proxy policy in browser 0c552f

1.5.3

January 25, 2019
  • Brought Axios interceptors back c33602

1.5.2

January 25, 2019
  • Added HTTP(S) over HTTP(S) proxy support 2b1844
  • Added @types/tunnel 0865a2

1.5.1

January 22, 2019
  • Fixed default HTTP client tests c75b87

1.5.0

January 15, 2019
  • Added support to specify proxy setting in ServiceClientOptions.

1.4.1

January 15, 2019
  • Movec browser-environment tests to Karma.

1.4.0

October 15, 2019
  • Allowed ServiceClientOptions.requestPolicyFactories to be a function.

1.3.0

January 15, 2019
  • Allowed ServiceClientOptions.userAgent property to be a function.

1.1.1

November 13, 2018
  • Improved debugging by adding rollup-plugin-sourcemaps.

1.1.0

November 9, 2018
  • Renamed NPM package to @azure/ms-rest-js.

1.0.0

October 4, 2018
  • Moved to Rollup for node and browser bundles
  • Moved browser bundle from ./msRestBundle.js to ./dist/msRest.browser.js.

0.22.1

September 27, 2018
  • Added Authenticator type.

0.22.0

September 5, 2018
  • Added support for EventGrid TopicCredentials object.

0.21.0

August 30, 2018
  • Flatten response body properties, headers, etc. into one object for convenience

0.20.0

August 24, 2018
  • Fixed bug where operationSpec.baseUrl might get mutated
  • Fixed some edge cases in response headers parsing in browser
  • Refinements to support LRO work in ms-rest-azure-js

0.19.0

August 22, 2018
  • Improved type definitions of generated operation responses

0.18.0

August 8, 2018
  • Replaced RequestPolicyCreator function with RequestPolicyFactory interface with create() method.

0.17.0

August 3, 2018
  • Refactored mappers interfaces
  • Added "sideEffects": false to package.json

0.16.0

July 26, 2018
  • Added timeout parameter to request options
  • Call onDownload/UploadProgress callbacks in nodejs

0.15.0

July 16, 2018
  • Support x-nullable in Swagger
  • Added architecture overview in docs/ folder
  • Added withCredentials flag to request options

0.12.0

June 25, 2018
  • Moved header deserialization to runtime
  • Using XhrHttpClient in browser
  • Miscellaneous internal breaking changes

0.11.0

June 21, 2018
  • Support x-ms-header-collection-prefix in Swagger

0.10.0

June 18, 2018
  • Export RequestPolicyOptions

0.9.0

June 14, 2018
  • Fix base64 encoding in browser
  • Add es6 module build
  • withCredentials fixes
  • Allow bundling individual operation groups instead of all operations

0.8.0

May 31, 2018
  • Add onDownloadProgress/onUploadProgress handlers for browser

0.7.0

May 25, 2018
  • Add parsed response headers support

0.6.0

May 22, 2018
  • Added URLBuilder to parse and build URLs
  • Removed fetch responses from public APIs
  • Added AbortSignal optional parameter to operations for cancellation

0.5.0

May 8, 2018
  • Replaced BaseFilter type with RequestPolicy.
  • Removed ServiceClient.pipeline() in favor of ServiceClient.sendRequest().
  • Started work on OperationSpecs to replace the imperative generated operations.

0.4.0

May 3, 2018
  • Added isomorphic-xml2js dependency to reduce browser package size
  • Removed moment.js dependency, instead passing ISO 8601 strings for durations.

0.2.8

April 2, 2018
  • Relaxed validation for object types
  • Relaxed handling of unrecognized polymorphic discriminator
  • Added ApiKeyCredentials type

0.2.7

March 23, 2018

0.2.6

February 22, 2018

0.2.5

January 25, 2018
  • Compiled target to ES5 for supporting IE11 #13.

0.2.4

January 24, 2018
  • Removed dependency on detect-node and added a utility method to detect whether the app is being executed in a node.js environment. Fixes #10.

0.2.3

October 25, 2017
  • We will return the actual response when the return type of a method in the generated code is stream. Hence, removing bodyAsStream property from HttpOperationResponse.

0.2.2

October 17, 2017
  • replacing eval by traversing recursively in the object.

0.2.1

October 10, 2017
  • moment version 2.19.0 has lot of issues. Hence fixing the dependency strictly to 2.18.1.

0.2.0

October 10, 2017
  • Reverting the change made in #2.

0.1.0

September 16, 2017
  • Initial version of ms-rest-js
    • Provides support for basic credentials
    • Supports serialization and deserialization of basic and complex types
    • Supports sending requests in the node environment and also in the browser
    • Builds the request pipeline by adding predefined filters
    • Provides mechanism to add custom flters in the pipeline
    • Provides a bundled file named msRestBundle.js that can be used in the browser
    • Please take a look at the samples directory for node and browser samples