diff --git a/Changelog.md b/Changelog.md index ff8d31c..ac326aa 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,22 +1,28 @@ -### 1.0.0 - 2018/10/04 +# Changelog + +## 1.1.0 - 2018/11/09 + +- Renamed NPM package to @azure/ms-rest-azure-js and updated renamed dependencies + +## 1.0.0 - 2018/10/04 - Moved to rollup for bundling - Moved browser bundle from ./msRestAzureBundle.js to ./dist/msRestAzure.js (same bundle for nodejs and browser) -### 0.2.8 - 2017/04/02 +## 0.2.8 - 2017/04/02 - Updated ms-rest-js to 0.2.8 - Added CognitiveServicesCredentials -### 0.2.1 - 2017/10/25 +## 0.2.1 - 2017/10/25 - Updating the minimum version of dependency "ms-rest-js": "^0.2.3". This brings in the change (removal of "bodyAsStream" property) done to HttpOperationResponse class -### 0.2.0 - 2017/10/11 +## 0.2.0 - 2017/10/11 - Updating the minimum version of dependency "ms-rest-js": "^0.2.1". This also gets a strict dependency to "moment" version 2.18.1 as 2.19.0 has bugs. -### 0.1.0 - 2017/09/16 +## 0.1.0 - 2017/09/16 - Initial version of the isomorphic azure runtime along with type definitions that works in the browser as well as the node.js environment - Supports polling for long running operations diff --git a/lib/azureServiceClient.ts b/lib/azureServiceClient.ts index 200bc7d..d63927e 100644 --- a/lib/azureServiceClient.ts +++ b/lib/azureServiceClient.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -import { HttpOperationResponse, OperationArguments, OperationSpec, RequestOptionsBase, RequestPrepareOptions, ServiceClient, ServiceClientCredentials, ServiceClientOptions, WebResource, getDefaultUserAgentValue as getDefaultUserAgentValueFromMsRest } from "ms-rest-js"; +import { HttpOperationResponse, OperationArguments, OperationSpec, RequestOptionsBase, RequestPrepareOptions, ServiceClient, ServiceClientCredentials, ServiceClientOptions, WebResource, getDefaultUserAgentValue as getDefaultUserAgentValueFromMsRest } from "@azure/ms-rest-js"; import { createLROPollerFromInitialResponse, createLROPollerFromPollState, LROPoller } from "./lroPoller"; import { LROPollState } from "./lroPollStrategy"; import * as Constants from "./util/constants"; diff --git a/lib/baseResource.ts b/lib/baseResource.ts index 26b04f4..86ba573 100644 --- a/lib/baseResource.ts +++ b/lib/baseResource.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -import { CompositeMapper } from "ms-rest-js"; +import { CompositeMapper } from "@azure/ms-rest-js"; /** * @class diff --git a/lib/cloudError.ts b/lib/cloudError.ts index 7e6c18a..c36897f 100644 --- a/lib/cloudError.ts +++ b/lib/cloudError.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -import { CompositeMapper } from "ms-rest-js"; +import { CompositeMapper } from "@azure/ms-rest-js"; /** * @class diff --git a/lib/credentials/cognitiveServicesCredentials.ts b/lib/credentials/cognitiveServicesCredentials.ts index 0c3600f..a904e1a 100644 --- a/lib/credentials/cognitiveServicesCredentials.ts +++ b/lib/credentials/cognitiveServicesCredentials.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -import { ApiKeyCredentials } from "ms-rest-js"; +import { ApiKeyCredentials } from "@azure/ms-rest-js"; /** * Creates a new CognitiveServicesCredentials object. diff --git a/lib/lroPollStrategy.ts b/lib/lroPollStrategy.ts index f11c009..07a2ee7 100644 --- a/lib/lroPollStrategy.ts +++ b/lib/lroPollStrategy.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -import { delay, HttpMethods, HttpOperationResponse, RequestOptionsBase, RestError, stripRequest, WebResource, OperationResponse, OperationSpec } from "ms-rest-js"; +import { delay, HttpMethods, HttpOperationResponse, RequestOptionsBase, RestError, stripRequest, WebResource, OperationResponse, OperationSpec } from "@azure/ms-rest-js"; import { AzureServiceClient } from "./azureServiceClient"; import { LongRunningOperationStates } from "./util/constants"; diff --git a/lib/lroPoller.ts b/lib/lroPoller.ts index 89525c2..84bf298 100644 --- a/lib/lroPoller.ts +++ b/lib/lroPoller.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -import { HttpOperationResponse, RequestOptionsBase, RestResponse, flattenResponse } from "ms-rest-js"; +import { HttpOperationResponse, RequestOptionsBase, RestResponse, flattenResponse } from "@azure/ms-rest-js"; import { AzureServiceClient } from "./azureServiceClient"; import { createLROPollStrategyFromInitialResponse, createLROPollStrategyFromPollState, LROPollState, LROPollStrategy } from "./lroPollStrategy"; import { LongRunningOperationStates } from "./util/constants"; diff --git a/package.json b/package.json index 7070397..8aa309f 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { - "name": "ms-rest-azure-js", + "name": "@azure/ms-rest-azure-js", "author": { "name": "Microsoft Corporation", "email": "azsdkteam@microsoft.com", "url": "https://github.com/Azure/ms-rest-azure-js" }, - "version": "1.0.0", + "version": "1.1.0", "description": "Isomorphic Azure client runtime for Typescript/node.js/browser javascript client libraries generated using AutoRest", "tags": [ "isomorphic", @@ -41,7 +41,7 @@ ], "license": "MIT", "dependencies": { - "ms-rest-js": "^1.0.457", + "@azure/ms-rest-js": "^1.0.457", "tslib": "^1.9.2" }, "devDependencies": { diff --git a/rollup.config.js b/rollup.config.js index c061589..c8eee95 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -11,14 +11,14 @@ const banner = `/** @license ms-rest-azure-js */ const config = { input: './es/lib/msRestAzure.js', - external: ["ms-rest-js"], + external: ["@azure/ms-rest-js"], output: { file: "./dist/msRestAzure.js", format: "umd", name: "msRestAzure", sourcemap: true, globals: { - "ms-rest-js": "msRest" + "@azure/ms-rest-js": "msRest" }, banner }, diff --git a/samples/node-sample.ts b/samples/node-sample.ts index 1f7b420..1fe9bdd 100644 --- a/samples/node-sample.ts +++ b/samples/node-sample.ts @@ -1,6 +1,6 @@ "use strict"; -import * as msRest from "ms-rest-js"; +import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "../lib/msRestAzure"; const clientOptions: msRestAzure.AzureServiceClientOptions = { filters: [new msRest.LogFilter()] diff --git a/test/azureServiceClientTests.ts b/test/azureServiceClientTests.ts index 59a2b93..9a9854f 100644 --- a/test/azureServiceClientTests.ts +++ b/test/azureServiceClientTests.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. import assert from "assert"; -import { HttpHeaders, HttpOperationResponse, RequestOptionsBase, RestError, TokenCredentials, WebResource, OperationArguments, OperationSpec, Serializer } from "ms-rest-js"; +import { HttpHeaders, HttpOperationResponse, RequestOptionsBase, RestError, TokenCredentials, WebResource, OperationArguments, OperationSpec, Serializer } from "@azure/ms-rest-js"; import { AzureServiceClient, AzureServiceClientOptions, updateOptionsWithDefaultValues } from "../lib/azureServiceClient"; import * as msAssert from "./msAssert"; import { LROPoller } from "../lib/lroPoller"; diff --git a/test/cloudErrorTests.ts b/test/cloudErrorTests.ts index b1beaf0..522bffe 100644 --- a/test/cloudErrorTests.ts +++ b/test/cloudErrorTests.ts @@ -1,4 +1,4 @@ -import { Serializer } from "ms-rest-js"; +import { Serializer } from "@azure/ms-rest-js"; import { CloudErrorMapper, CloudError } from "../lib/cloudError"; import { expect } from "chai"; diff --git a/test/credentials/cognitiveServicesCredentialsTests.ts b/test/credentials/cognitiveServicesCredentialsTests.ts index 904a517..24b1f02 100644 --- a/test/credentials/cognitiveServicesCredentialsTests.ts +++ b/test/credentials/cognitiveServicesCredentialsTests.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. import assert from "assert"; -import { WebResource } from "ms-rest-js"; +import { WebResource } from "@azure/ms-rest-js"; import { CognitiveServicesCredentials } from "../../lib/credentials/cognitiveServicesCredentials"; import * as msAssert from "../msAssert"; diff --git a/test/lroPollStrategyTests.ts b/test/lroPollStrategyTests.ts index 0426423..6d3ada3 100644 --- a/test/lroPollStrategyTests.ts +++ b/test/lroPollStrategyTests.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. import assert from "assert"; -import { HttpHeaders, HttpOperationResponse, TokenCredentials, WebResource } from "ms-rest-js"; +import { HttpHeaders, HttpOperationResponse, TokenCredentials, WebResource } from "@azure/ms-rest-js"; import { AzureServiceClient } from "../lib/azureServiceClient"; import { getDelayInSeconds, isFinished } from "../lib/lroPollStrategy";