Skip to content

Commit 0db1b68

Browse files
authored
Remove support for Node 12.x (#542)
* Remove support for Node 12.x * Remove deprecated code
1 parent b36b6df commit 0db1b68

File tree

15 files changed

+13
-23
lines changed

15 files changed

+13
-23
lines changed

.github/workflows/pr-build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
- ubuntu-latest
1818
- windows-latest
1919
node-version:
20-
- 12.x
2120
- 14.x
2221
- 16.x
2322
include:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ If you want additional features when tracing your Node.js applications, please [
1212

1313
## Installing
1414

15-
The AWS X-Ray SDK for Node.js is compatible with Node.js version 12.x and later.
15+
The AWS X-Ray SDK for Node.js is compatible with Node.js version 14.x and later.
1616
There may be issues when running on the latest odd-numbered release of Node.js.
1717

1818
The latest stable version of the SDK is available from NPM. For local development, install the SDK in your project directory with npm.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"upath": "^1.2.0"
5454
},
5555
"engines": {
56-
"node": ">= 12.x",
56+
"node": ">= 14.x",
5757
"npm": ">= 2.x"
5858
},
5959
"dependencies": {

packages/core/lib/patchers/http_p.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,6 @@ function enableCapture(module, downstreamXRayEnabled, subsegmentCallback) {
143143
subsegment.addRemoteRequestData(this, null, madeItToDownstream && downstreamXRayEnabled);
144144
subsegment.close(e);
145145
}
146-
147-
// Only need to remove our listener & re-emit if we're not listening using the errorMonitor,
148-
// e.g. the app is running on Node 10. Otherwise the errorMonitor will re-emit automatically.
149-
// See: https://github.com/aws/aws-xray-sdk-node/issues/318
150-
// TODO: Remove this logic once node 12 support is deprecated
151-
if (!events.errorMonitor && this.listenerCount('error') <= 1) {
152-
this.removeListener('error', errorCapturer);
153-
this.emit('error', e);
154-
}
155146
};
156147

157148
const optionsCopy = Utils.objectWithoutProperties(options, ['Segment'], true);

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"main": "dist/lib/index.js",
1717
"types": "dist/lib/index.d.ts",
1818
"engines": {
19-
"node": ">= 12.x"
19+
"node": ">= 14.x"
2020
},
2121
"directories": {
2222
"test": "test"

packages/express/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"main": "lib/index.js",
1010
"types": "lib/index.d.ts",
1111
"engines": {
12-
"node": ">= 12.x"
12+
"node": ">= 14.x"
1313
},
1414
"directories": {
1515
"test": "test"

packages/full_sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"main": "lib/index.js",
1111
"types": "lib/index.d.ts",
1212
"engines": {
13-
"node": ">= 12.x"
13+
"node": ">= 14.x"
1414
},
1515
"dependencies": {
1616
"aws-xray-sdk-core": "file:../core",

packages/mysql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"main": "lib/index.js",
1010
"types": "lib/index.d.ts",
1111
"engines": {
12-
"node": ">= 12.x"
12+
"node": ">= 14.x"
1313
},
1414
"directories": {
1515
"test": "test"

packages/postgres/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"main": "lib/index.js",
1010
"types": "lib/index.d.ts",
1111
"engines": {
12-
"node": ">= 12.x"
12+
"node": ">= 14.x"
1313
},
1414
"directories": {
1515
"test": "test"

packages/restify/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"main": "lib/index.js",
1010
"types": "lib/index.d.ts",
1111
"engines": {
12-
"node": ">= 12.x"
12+
"node": ">= 14.x"
1313
},
1414
"directories": {
1515
"test": "test"

0 commit comments

Comments
 (0)