Skip to content

Commit

Permalink
feat!: Drop support for Node16 (#122)
Browse files Browse the repository at this point in the history
* feat!: Drop support for Node16
  • Loading branch information
Jason3S committed Mar 3, 2024
1 parent 5ea6242 commit 630bdc3
Show file tree
Hide file tree
Showing 11 changed files with 681 additions and 755 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x, 21.x]
os:
- ubuntu-latest

Expand Down
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -36,11 +36,11 @@ This is an example on how to create a package that exports both CommonJS and ESM
```jsonc
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
"declaration": true,
"module": "ES2020",
"moduleResolution": "node16",
"module": "ES2022",
"moduleResolution": "node",
"outDir": "dist/esm",
"sourceMap": true
},
Expand All @@ -53,11 +53,11 @@ This is an example on how to create a package that exports both CommonJS and ESM
```jsonc
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
"declaration": true,
"module": "CommonJS",
"moduleResolution": "node16",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "dist/cjs",
"sourceMap": true
},
Expand Down
2 changes: 1 addition & 1 deletion fixtures/sample/tsconfig.cjs.json
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
Expand Down
2 changes: 1 addition & 1 deletion fixtures/sample/tsconfig.json
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@tsconfig/node16/tsconfig.json",
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
"declaration": true,
"declarationMap": true,
Expand Down
22 changes: 11 additions & 11 deletions package.json
Expand Up @@ -51,16 +51,16 @@
},
"dependencies": {
"chalk": "^5.3.0",
"commander": "^11.1.0",
"globby": "^13.2.2",
"commander": "^12.0.0",
"globby": "^14.0.1",
"magic-string": "^0.30.7"
},
"devDependencies": {
"@tsconfig/node16": "^16.1.1",
"@tsconfig/node18": "^18.2.2",
"@types/node": "^18.19.21",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitest/coverage-istanbul": "^0.34.6",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"@vitest/coverage-istanbul": "^1.3.1",
"cspell": "^8.5.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
Expand All @@ -69,17 +69,17 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.1.1",
"inject-markdown": "^2.1.0",
"inject-markdown": "^3.0.0",
"prettier": "^3.2.5",
"shx": "^0.3.4",
"typescript": "^5.3.3",
"vite": "^4.5.2",
"vitest": "^0.34.6"
"vite": "^5.1.4",
"vitest": "^1.3.1"
},
"engines": {
"node": ">=16.0"
"node": ">=18.0"
},
"packageManager": "pnpm@8.6.12",
"packageManager": "pnpm@8.15.2",
"files": [
"bin.mjs",
"dist/**",
Expand Down

0 comments on commit 630bdc3

Please sign in to comment.