Skip to content

Commit

Permalink
Rename NPM package to @azure/ms-rest-azure-js (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpajdzik authored Nov 10, 2018
1 parent ab09348 commit 71b0b77
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 21 deletions.
16 changes: 11 additions & 5 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/azureServiceClient.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion lib/baseResource.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/cloudError.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/credentials/cognitiveServicesCredentials.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/lroPollStrategy.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion lib/lroPoller.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "ms-rest-azure-js",
"name": "@azure/ms-rest-azure-js",
"author": {
"name": "Microsoft Corporation",
"email": "[email protected]",
"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",
Expand Down Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down
2 changes: 1 addition & 1 deletion samples/node-sample.ts
Original file line number Diff line number Diff line change
@@ -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()]
Expand Down
2 changes: 1 addition & 1 deletion test/azureServiceClientTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion test/cloudErrorTests.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
2 changes: 1 addition & 1 deletion test/credentials/cognitiveServicesCredentialsTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion test/lroPollStrategyTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 71b0b77

Please sign in to comment.