-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revamp retry and remove unintended exports #69
Changes from all commits
0670a3f
a06d34f
9632e3d
977fa86
843486e
f92e0cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,12 +15,12 @@ from the ~/.aws/config file. | |
|
||
See [Setting Region](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-region.html) page for more information. | ||
|
||
### TypeScript 3.5.x | ||
### TypeScript 3.8.x | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is 3.8 needed, or can it stay at 3.5? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Honestly we don't even need 3.5. The real version we need is some undetermined previous version. Figured we'd align up our documentation and all and 3.8 was what I was playing with testing hash private functions. This ultimately doesn't matter because it's an independent dev dependency. |
||
|
||
The driver is written in, and requires, TypeScript 3.5.x. It will be automatically installed as a dependency. | ||
Please see the link below for more detail on TypeScript 3.5.x: | ||
The driver is written in, and requires, TypeScript 3.8.x. It will be automatically installed as a dependency. | ||
Please see the link below for more detail on TypeScript 3.8.x: | ||
|
||
* [TypeScript 3.5.x](https://www.npmjs.com/package/typescript) | ||
* [TypeScript 3.8.x](https://www.npmjs.com/package/typescript) | ||
|
||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
}, | ||
"name": "amazon-qldb-driver-nodejs", | ||
"description": "The Node.js driver for working with Amazon Quantum Ledger Database", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"engines": { | ||
|
@@ -19,7 +19,7 @@ | |
"@types/sinon": "^7.0.13", | ||
"@typescript-eslint/eslint-plugin": "^2.5.0", | ||
"@typescript-eslint/parser": "^2.5.0", | ||
"aws-sdk": "^2.815.0", | ||
"aws-sdk": "^2.841.0", | ||
"chai": "^4.2.0", | ||
"chai-as-promised": "^7.1.1", | ||
"cross-env": "^6.0.3", | ||
|
@@ -34,10 +34,10 @@ | |
"sinon": "^7.3.2", | ||
"ts-node": "^8.3.0", | ||
"typedoc": "^0.15.0", | ||
"typescript": "^3.5.3" | ||
"typescript": "^3.8.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be called out in CHANGELOG? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a dev dependency so it doesn't matter to users |
||
}, | ||
"peerDependencies": { | ||
"aws-sdk": "^2.815.0", | ||
"aws-sdk": "^2.841.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. any reason we aren't bumping the devDependency aws-sdk to the same verison? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will fix |
||
"ion-js": "^4.0.0", | ||
"jsbi": "^3.1.1" | ||
}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with | ||
* the License. A copy of the License is located at | ||
|
@@ -18,6 +18,8 @@ import { version } from "../package.json"; | |
/** | ||
* Logs a debug level message. | ||
* @param line The message to be logged. | ||
* | ||
* @internal | ||
*/ | ||
export function debug(line: string): void { | ||
if (isLoggerSet()) { | ||
|
@@ -28,6 +30,8 @@ export function debug(line: string): void { | |
/** | ||
* Logs an error level message. | ||
* @param line The message to be logged. | ||
* | ||
* @internal | ||
*/ | ||
export function error(line: string): void { | ||
if (isLoggerSet()) { | ||
|
@@ -38,6 +42,8 @@ export function error(line: string): void { | |
/** | ||
* Logs an info level message. | ||
* @param line The message to be logged. | ||
* | ||
* @internal | ||
*/ | ||
export function info(line: string): void { | ||
if (isLoggerSet()) { | ||
|
@@ -48,13 +54,15 @@ export function info(line: string): void { | |
/** | ||
* @returns A boolean indicating whether a logger has been set within the AWS SDK. | ||
*/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we need @internal here? Same with _prepend There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, because otherwise these are exported to the API |
||
export function isLoggerSet(): boolean { | ||
function isLoggerSet(): boolean { | ||
return config.logger !== null; | ||
} | ||
|
||
/** | ||
* Logs a message. | ||
* @param line The message to be logged. | ||
* | ||
* @internal | ||
*/ | ||
export function log(line: string): void { | ||
if (isLoggerSet()) { | ||
|
@@ -65,6 +73,8 @@ export function log(line: string): void { | |
/** | ||
* Logs a warning level message. | ||
* @param line The message to be logged. | ||
* | ||
* @internal | ||
*/ | ||
export function warn(line: string): void { | ||
if (isLoggerSet()) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add the date for when 2.1.1 was released
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we stopped doing that. The release date is also available on npm repository.