Skip to content

Commit f7acf83

Browse files
authored
Drop support for Node.js 10 and 11 (#432)
The Node.js team no longer support these versions according to their releases page: https://nodejs.org/en/about/releases/ According to our policy, also drop support for unmaintained versions of a language: https://github.com/appsignal/integration-guide/blob/aaf1c35249effa9da8f8715ae7f7be8641437865/maintain/version-support.md (private link) This will help make maintenance easier as we do not need to support very long versions of Node.js anymore and don't have to add polyfills for missing features and fixes. Both package bumps are a major version, because they are backwards incompatible changes. I've also bumped the version in the `.tool-versions` file used by the asdf language version manager. ## Background I was trying to make a PR work and it didn't work on Node.js 10 and 11 a package used something called `globalThis`, which is only available on Node.js 12 or higher. #421 Then I found out Node.js 10 and 11 are no longer maintained and we can drop support.
1 parent 3d6a5c9 commit f7acf83

File tree

8 files changed

+14
-162
lines changed

8 files changed

+14
-162
lines changed

.semaphore/semaphore.yml

-156
Original file line numberDiff line numberDiff line change
@@ -444,159 +444,3 @@ blocks:
444444
commands:
445445
- script/install_test_example_packages nextjs [email protected] [email protected] [email protected]
446446
- script/test_package_integration nextjs
447-
- name: Node.js 11 - Build
448-
dependencies:
449-
- Validation
450-
task:
451-
env_vars:
452-
- name: NODE_VERSION
453-
value: '11'
454-
prologue:
455-
commands:
456-
- cache restore
457-
- mono bootstrap --ci
458-
- cache store
459-
jobs:
460-
- name: Build
461-
commands:
462-
- mono build
463-
- mono run --package @appsignal/nodejs-ext -- npm run build:ext
464-
- cache store $_PACKAGES_CACHE-packages-$SEMAPHORE_GIT_SHA-v$NODE_VERSION packages
465-
- cache store $_PACKAGES_CACHE-install-report-$SEMAPHORE_GIT_SHA-v$NODE_VERSION
466-
/tmp/appsignal-*-install.report
467-
- name: Node.js 11 - Tests
468-
dependencies:
469-
- Node.js 11 - Build
470-
task:
471-
env_vars:
472-
- name: NODE_VERSION
473-
value: '11'
474-
prologue:
475-
commands:
476-
- cache restore
477-
- cache restore $_PACKAGES_CACHE-packages-$SEMAPHORE_GIT_SHA-v$NODE_VERSION
478-
- cache restore $_PACKAGES_CACHE-install-report-$SEMAPHORE_GIT_SHA-v$NODE_VERSION
479-
- mono bootstrap --ci
480-
jobs:
481-
- name: "@appsignal/nodejs - nodejs"
482-
commands:
483-
- mono test --package=@appsignal/nodejs
484-
- name: "@appsignal/nodejs - nodejs - diagnose"
485-
commands:
486-
- git submodule init
487-
- git submodule update
488-
- LANGUAGE=nodejs test/integration/diagnose/bin/test
489-
- name: "@appsignal/nodejs-ext - nodejs-ext"
490-
commands:
491-
- mono test --package=@appsignal/nodejs-ext
492-
- mono run --package @appsignal/nodejs-ext -- npm run test:failure
493-
- name: "@appsignal/express - express@latest - integrations"
494-
commands:
495-
- script/install_test_example_packages express express@latest
496-
- script/test_package_integration express
497-
- name: "@appsignal/express - [email protected] - integrations"
498-
commands:
499-
- script/install_test_example_packages express [email protected]
500-
- script/test_package_integration express
501-
- name: "@appsignal/koa - koa@latest - integrations"
502-
commands:
503-
- script/install_test_example_packages koa koa@latest
504-
- script/test_package_integration koa
505-
- name: "@appsignal/koa - [email protected] - integrations"
506-
commands:
507-
- script/install_test_example_packages koa [email protected]
508-
- script/test_package_integration koa
509-
- name: "@appsignal/koa - [email protected] - integrations"
510-
commands:
511-
- script/install_test_example_packages koa [email protected]
512-
- script/test_package_integration koa
513-
- name: "@appsignal/nextjs - next.js@latest - integrations"
514-
commands:
515-
- script/install_test_example_packages nextjs next@latest react@latest react-dom@latest
516-
- script/test_package_integration nextjs
517-
- name: "@appsignal/nextjs - [email protected] - integrations"
518-
commands:
519-
- script/install_test_example_packages nextjs [email protected] [email protected] [email protected]
520-
- script/test_package_integration nextjs
521-
- name: "@appsignal/nextjs - [email protected] - integrations"
522-
commands:
523-
- script/install_test_example_packages nextjs [email protected] [email protected] [email protected]
524-
- script/test_package_integration nextjs
525-
- name: Node.js 10 - Build
526-
dependencies:
527-
- Validation
528-
task:
529-
env_vars:
530-
- name: NODE_VERSION
531-
value: '10'
532-
prologue:
533-
commands:
534-
- cache restore
535-
- mono bootstrap --ci
536-
- cache store
537-
jobs:
538-
- name: Build
539-
commands:
540-
- mono build
541-
- mono run --package @appsignal/nodejs-ext -- npm run build:ext
542-
- cache store $_PACKAGES_CACHE-packages-$SEMAPHORE_GIT_SHA-v$NODE_VERSION packages
543-
- cache store $_PACKAGES_CACHE-install-report-$SEMAPHORE_GIT_SHA-v$NODE_VERSION
544-
/tmp/appsignal-*-install.report
545-
- name: Node.js 10 - Tests
546-
dependencies:
547-
- Node.js 10 - Build
548-
task:
549-
env_vars:
550-
- name: NODE_VERSION
551-
value: '10'
552-
prologue:
553-
commands:
554-
- cache restore
555-
- cache restore $_PACKAGES_CACHE-packages-$SEMAPHORE_GIT_SHA-v$NODE_VERSION
556-
- cache restore $_PACKAGES_CACHE-install-report-$SEMAPHORE_GIT_SHA-v$NODE_VERSION
557-
- mono bootstrap --ci
558-
jobs:
559-
- name: "@appsignal/nodejs - nodejs"
560-
commands:
561-
- mono test --package=@appsignal/nodejs
562-
- name: "@appsignal/nodejs - nodejs - diagnose"
563-
commands:
564-
- git submodule init
565-
- git submodule update
566-
- LANGUAGE=nodejs test/integration/diagnose/bin/test
567-
- name: "@appsignal/nodejs-ext - nodejs-ext"
568-
commands:
569-
- mono test --package=@appsignal/nodejs-ext
570-
- mono run --package @appsignal/nodejs-ext -- npm run test:failure
571-
- name: "@appsignal/express - express@latest - integrations"
572-
commands:
573-
- script/install_test_example_packages express express@latest
574-
- script/test_package_integration express
575-
- name: "@appsignal/express - [email protected] - integrations"
576-
commands:
577-
- script/install_test_example_packages express [email protected]
578-
- script/test_package_integration express
579-
- name: "@appsignal/koa - koa@latest - integrations"
580-
commands:
581-
- script/install_test_example_packages koa koa@latest
582-
- script/test_package_integration koa
583-
- name: "@appsignal/koa - [email protected] - integrations"
584-
commands:
585-
- script/install_test_example_packages koa [email protected]
586-
- script/test_package_integration koa
587-
- name: "@appsignal/koa - [email protected] - integrations"
588-
commands:
589-
- script/install_test_example_packages koa [email protected]
590-
- script/test_package_integration koa
591-
- name: "@appsignal/nextjs - next.js@latest - integrations"
592-
commands:
593-
- script/install_test_example_packages nextjs next@latest react@latest react-dom@latest
594-
- script/test_package_integration nextjs
595-
- name: "@appsignal/nextjs - [email protected] - integrations"
596-
commands:
597-
- script/install_test_example_packages nextjs [email protected] [email protected] [email protected]
598-
- script/test_package_integration nextjs
599-
- name: "@appsignal/nextjs - [email protected] - integrations"
600-
commands:
601-
- script/install_test_example_packages nextjs [email protected] [email protected] [email protected]
602-
- script/test_package_integration nextjs

.tool-versions

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs 10.24.1
1+
nodejs 12.22.5

build_matrix.yml

-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ matrix:
6262
- nodejs: "14"
6363
- nodejs: "13"
6464
- nodejs: "12"
65-
- nodejs: "11"
66-
- nodejs: "10"
6765
packages:
6866
- package: "@appsignal/nodejs"
6967
path: "packages/nodejs"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "dist/index",
66
"license": "MIT",
77
"engines": {
8-
"node": ">= 10",
8+
"node": ">= 12",
99
"npm": ">= 7"
1010
},
1111
"workspaces": [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
bump: "major"
3+
---
4+
5+
Drop support for Node.js 10 and 11. These are unmaintained versions of Node.js.

packages/nodejs-ext/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"x86"
3131
],
3232
"engines": {
33-
"node": ">= 10"
33+
"node": ">= 12"
3434
},
3535
"publishConfig": {
3636
"access": "public"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
bump: "major"
3+
---
4+
5+
Drop support for Node.js 10 and 11. These are unmaintained versions of Node.js.

packages/nodejs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"version": "npm run versionfile"
3939
},
4040
"engines": {
41-
"node": ">= 10"
41+
"node": ">= 12"
4242
},
4343
"publishConfig": {
4444
"access": "public"

0 commit comments

Comments
 (0)