diff --git a/.nvmrc b/.nvmrc index ee09fac..deed13c 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v20.11.1 +lts/jod diff --git a/README.md b/README.md index 47cd71b..0e97930 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,8 @@ We use lerna to manage the packages. ## ES Version We support two runtimes: `node` and `latest browser versions`. -### Node 20 -Node 20 (which is also supported by AWS Lambda) supports [97%](https://node.green/#ES2022) of `es2022` features +### Node 22 +Node 22 (which is also supported by AWS Lambda) supports [97%](https://node.green/#ES2022) of `es2022` features (no version supports 100%) and [100%](https://node.green/#ES2023) of `es2023` features. The only `es2022` feature that is currently not supported and needs a polyfill when using it is [RegExp Match Indices (shows up in flags)](https://node.green/#ES2022-features-RegExp-Match-Indices---hasIndices-----d--flag-) (see [2ality blog](https://2ality.com/2019/12/regexp-match-indices.html) for insights). diff --git a/package-lock.json b/package-lock.json index bad2c34..226725a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "@commitlint/config-angular": "^19.3.0", "@commitlint/prompt-cli": "^19.3.1", "@types/jest": "^29.5.12", - "@types/node": "^20.11.1", + "@types/node": "^22.15.0", "@typescript-eslint/eslint-plugin": "^7.16.0", "eslint": "^8.56.0", "husky": "^9.0.11", @@ -30,7 +30,7 @@ "typescript": "^5.5.3" }, "engines": { - "node": ">=20.11.1" + "node": ">=22.15.0" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -3431,13 +3431,13 @@ "integrity": "sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==" }, "node_modules/@types/node": { - "version": "20.14.10", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.10.tgz", - "integrity": "sha512-MdiXf+nDuMvY0gJKxyfZ7/6UFsETO7mGKF54MVD/ekJS6HdFtpZFBgrh6Pseu64XTb2MLyFPlbW6hj8HYRQNOQ==", + "version": "22.15.17", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.17.tgz", + "integrity": "sha512-wIX2aSZL5FE+MR0JlvF87BNVrtFWf6AE6rxSE9X7OwnVvoyCQjpzSRJ+M87se/4QCkCiebQAqrJ0y6fwIyi7nw==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~5.26.4" + "undici-types": "~6.21.0" } }, "node_modules/@types/normalize-package-data": { @@ -13162,9 +13162,9 @@ } }, "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", "dev": true, "license": "MIT" }, @@ -13675,7 +13675,7 @@ }, "packages/branch-utilities": { "name": "@shiftcode/branch-utilities", - "version": "3.1.0", + "version": "3.1.1-pr999.1", "license": "MIT", "peerDependencies": { "tslib": "^2.3.0" @@ -14082,15 +14082,18 @@ }, "packages/logger": { "name": "@shiftcode/logger", - "version": "1.1.0-pr12.0", + "version": "1.1.0-pr999.2", "license": "UNLICENSED", + "devDependencies": { + "@shiftcode/utilities": "^3.0.1 || ^3.0.1-pr999.0" + }, "peerDependencies": { - "@shiftcode/utilities": "^3.0.0 || ^3.0.0-pr28.3" + "@shiftcode/utilities": "^3.0.1 || ^3.0.1-pr999.0" } }, "packages/publish-helper": { "name": "@shiftcode/publish-helper", - "version": "3.0.1", + "version": "3.0.2-pr999.1", "license": "MIT", "dependencies": { "conventional-changelog-angular": "^5.0.13", @@ -14101,7 +14104,7 @@ "publish-lib": "dist/publish-lib.js" }, "devDependencies": { - "@shiftcode/branch-utilities": "^3.1.0", + "@shiftcode/branch-utilities": "^3.1.1-pr999.1", "@types/yargs": "^17.0.32" }, "peerDependencies": { @@ -14112,7 +14115,7 @@ }, "packages/utilities": { "name": "@shiftcode/utilities", - "version": "3.0.0", + "version": "3.0.1-pr999.1", "license": "MIT", "peerDependencies": { "tslib": "^2.3.0" diff --git a/package.json b/package.json index dfca3c4..4f754cc 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "@commitlint/config-angular": "^19.3.0", "@commitlint/prompt-cli": "^19.3.1", "@types/jest": "^29.5.12", - "@types/node": "^20.11.1", + "@types/node": "^22.15.0", "@typescript-eslint/eslint-plugin": "^7.16.0", "eslint": "^8.56.0", "husky": "^9.0.11", @@ -38,6 +38,6 @@ "typescript": "^5.5.3" }, "engines": { - "node": ">=20.11.1" + "node": ">=22.15.0" } } diff --git a/packages/branch-utilities/jest.config.js b/packages/branch-utilities/jest.config.js index 78ad18a..c015ff4 100644 --- a/packages/branch-utilities/jest.config.js +++ b/packages/branch-utilities/jest.config.js @@ -1,5 +1,8 @@ +// eslint-disable-next-line import/no-extraneous-dependencies import {pathsToModuleNameMapper} from 'ts-jest' -import tsConfig from './tsconfig.jest.json' assert {type: 'json'} +import { readFileSync } from 'node:fs' + +const tsConfig = JSON.parse(readFileSync('./tsconfig.jest.json', 'utf-8')) export default { testEnvironment: 'node', diff --git a/packages/branch-utilities/package.json b/packages/branch-utilities/package.json index a19c9b4..17a248c 100644 --- a/packages/branch-utilities/package.json +++ b/packages/branch-utilities/package.json @@ -1,6 +1,6 @@ { "name": "@shiftcode/branch-utilities", - "version": "3.1.0", + "version": "3.1.1-pr999.1", "description": "Utilities for local and ci to get branch name and stage", "repository": "https://github.com/shiftcode/sc-commons-public", "license": "MIT", diff --git a/packages/logger/package.json b/packages/logger/package.json index 79f1988..94512e7 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -1,6 +1,6 @@ { "name": "@shiftcode/logger", - "version": "1.1.0-pr12.0", + "version": "1.1.0-pr999.2", "description": "logger for local and aws lambda execution", "repository": "https://github.com/shiftcode/sc-commons-public", "license": "UNLICENSED", @@ -34,8 +34,11 @@ "test:ci": "npm run test", "test:watch": "npm run test -- --watch" }, + "devDependencies": { + "@shiftcode/utilities": "^3.0.1 || ^3.0.1-pr999.0" + }, "peerDependencies": { - "@shiftcode/utilities": "^3.0.0 || ^3.0.0-pr28.3" + "@shiftcode/utilities": "^3.0.1 || ^3.0.1-pr999.0" }, "publishConfig": { "directory": "dist" diff --git a/packages/publish-helper/jest.config.js b/packages/publish-helper/jest.config.js index 367c99f..96f26bd 100644 --- a/packages/publish-helper/jest.config.js +++ b/packages/publish-helper/jest.config.js @@ -1,5 +1,8 @@ +// eslint-disable-next-line import/no-extraneous-dependencies import {pathsToModuleNameMapper} from 'ts-jest' -import tsConfig from './tsconfig.jest.json' assert {type: 'json'} +import { readFileSync } from 'node:fs' + +const tsConfig = JSON.parse(readFileSync('./tsconfig.jest.json', 'utf-8')) export default { testEnvironment: 'node', diff --git a/packages/publish-helper/package.json b/packages/publish-helper/package.json index 8cb215a..a94ba4e 100644 --- a/packages/publish-helper/package.json +++ b/packages/publish-helper/package.json @@ -1,6 +1,6 @@ { "name": "@shiftcode/publish-helper", - "version": "3.0.1", + "version": "3.0.2-pr999.1", "description": "scripts for conventional (pre)releases", "repository": "https://github.com/shiftcode/sc-commons-public", "license": "MIT", @@ -30,7 +30,7 @@ "yargs": "^17.7.2" }, "devDependencies": { - "@shiftcode/branch-utilities": "^3.1.0", + "@shiftcode/branch-utilities": "^3.1.1-pr999.1", "@types/yargs": "^17.0.32" }, "peerDependencies": { diff --git a/packages/utilities/jest.config.js b/packages/utilities/jest.config.js index ac2a165..dc4a62f 100644 --- a/packages/utilities/jest.config.js +++ b/packages/utilities/jest.config.js @@ -1,5 +1,8 @@ +// eslint-disable-next-line import/no-extraneous-dependencies import {pathsToModuleNameMapper} from 'ts-jest' -import tsConfig from './tsconfig.jest.json' assert {type: 'json'} +import { readFileSync } from 'node:fs' + +const tsConfig = JSON.parse(readFileSync('./tsconfig.jest.json', 'utf-8')) export default { testEnvironment: 'node', diff --git a/packages/utilities/package.json b/packages/utilities/package.json index 778c4d0..5d7b649 100644 --- a/packages/utilities/package.json +++ b/packages/utilities/package.json @@ -1,6 +1,6 @@ { "name": "@shiftcode/utilities", - "version": "3.0.0", + "version": "3.0.1-pr999.1", "description": "Contains some utilities", "repository": "https://github.com/shiftcode/sc-commons-public", "license": "MIT",