diff --git a/client/changelog.md b/client/changelog.md index 240975c0f125..3ec5fca42e35 100644 --- a/client/changelog.md +++ b/client/changelog.md @@ -1,3 +1,6 @@ +### 2018-10-01 1.0.6 +- export `EventHubConnectionConfig` from the library. + ### 2018-10-01 1.0.5 - Moved `lib/amqp-common` to `"@azure/amqp-common"` package and took a dependency on it. - Moved `lib/rhea-promise` to `"rhea-promise"` package and took a dependency on it. diff --git a/client/lib/eventHubClient.ts b/client/lib/eventHubClient.ts index 4a54abeda571..2620d16ad9be 100644 --- a/client/lib/eventHubClient.ts +++ b/client/lib/eventHubClient.ts @@ -117,7 +117,7 @@ export class EventHubClient { * Instantiates a client pointing to the Event Hub given by this configuration. * * @constructor - * @param {ConnectionConfig} config - The connection configuration to create the EventHub Client. + * @param {EventHubConnectionConfig} config - The connection configuration to create the EventHub Client. * @param {ClientOptions} options - The optional parameters that can be provided to the EventHub * Client constructor. */ diff --git a/client/lib/index.ts b/client/lib/index.ts index 12b1e8d1be76..efff53e5ac2f 100644 --- a/client/lib/index.ts +++ b/client/lib/index.ts @@ -16,6 +16,6 @@ export { delay, Timeout, EventHubConnectionStringModel, parseConnectionString, IotHubConnectionStringModel, StorageConnectionStringModel, isIotHubConnectionString, ErrorNameConditionMapper, ConditionStatusMapper, ConditionErrorNameMapper, MessagingError, - DataTransformer, DefaultDataTransformer, ConnectionConfig, TokenType, TokenProvider, TokenInfo, - AadTokenProvider, SasTokenProvider + DataTransformer, DefaultDataTransformer, TokenType, TokenProvider, TokenInfo, AadTokenProvider, + SasTokenProvider, ConnectionConfig, EventHubConnectionConfig } from "@azure/amqp-common"; diff --git a/client/package-lock.json b/client/package-lock.json index 8dc61a948b14..a322802c025e 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -1,6 +1,6 @@ { "name": "@azure/event-hubs", - "version": "1.0.5", + "version": "1.0.6", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -3383,6 +3383,15 @@ "rhea": "^0.3.2" } }, + "rimraf": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", + "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", + "dev": true, + "requires": { + "glob": "^7.0.5" + } + }, "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", diff --git a/client/package.json b/client/package.json index 33871aab6eb8..530072744183 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "@azure/event-hubs", - "version": "1.0.5", + "version": "1.0.6", "description": "Azure Event Hubs SDK for JS.", "author": "Microsoft Corporation", "license": "MIT", @@ -31,6 +31,7 @@ "dotenv": "^6.0.0", "mocha": "^5.2.0", "nyc": "^12.0.2", + "rimraf": "^2.6.2", "ts-node": "^5.0.1", "tslint": "^5.11.0", "typescript": "^3.0.1" @@ -38,6 +39,7 @@ "scripts": { "tslint": "tslint -p . -c tslint.json --exclude examples/**/*.ts --exclude tests/**/*.ts", "tsc": "tsc", + "prebuild": "rimraf dist && rimraf typings", "build": "npm run tslint && npm run tsc", "test": "npm run build", "unit": "nyc --reporter=lcov --reporter=text-lcov mocha -r ts-node/register -t 50000 ./tests/**/*.spec.ts --exit",