From b398bec8b38c63a3fd6b67192a446bba03da3956 Mon Sep 17 00:00:00 2001 From: Victorien Elvinger Date: Mon, 22 Jan 2024 12:54:07 +0100 Subject: [PATCH] refactor: require NodeJS 16.11 BREAKING CHANGES: require NodeJS 16.11 This will allow us to use the `cause` property` of `Error`. --- CHANGELOG.md | 16 +++++++++++----- package-lock.json | 10 +++++----- package.json | 4 ++-- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e8efcf2..12a6a4a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,15 @@ This project adheres to [Semantic Versioning][semver]. The format of this changelog is [a variant][lib9-versionning] of [Keep a Changelog][keep-changelog]. New entries must be placed in a section entitled `Unreleased`. +## Unreleased + +- BREAKING CHANGES: require NodeJS 16.11.0 or above + + This will allow us to use the `cause` property of `Error`. + ## 0.15.0 (2023-10-19) -- BREAKING CHANGES: require node 16.9.0 or above +- BREAKING CHANGES: require NodeJS 16.9.0 or above - BREAKING CHANGES: promote regular comments to doc-comments @@ -324,7 +330,7 @@ This release **widely improves the usage of unions and flat unions**. bare-ts now publishes _ES2020_ builds. This outputs smaller builds. - This should cause no issue since we require a node version `^14.18` or `>=16`. + This should cause no issue since we require a NodeJS version `^14.18` or `>=16`. - Add option `--lib` to prevent `decode` and `encode` generation @@ -363,7 +369,7 @@ This release **widely improves the usage of unions and flat unions**. type Message union { Person } ``` -- BREAKING CHANGES: Require Node `>=14.18.0` +- BREAKING CHANGES: Require NodeJS `>=14.18.0` This enables _bare-ts_ to internally use `node:` prefixes for importing nodes' built-ins. @@ -580,7 +586,7 @@ This release **widely improves the usage of unions and flat unions**. ## 0.7.0 (2022-04-24) -- BREAKING CHANGES: require node versions that support _ESM_ +- BREAKING CHANGES: require NodeJS versions that support _ESM_ _bare-ts_ requires now a node versions that support _ECMAScript Modules_. @@ -908,4 +914,4 @@ This release **widely improves the usage of unions and flat unions**. [keep-changelog]: https://keepachangelog.com/en/1.0.0/ [lib9-versionning]: https://github.com/lib9/guides/blob/main/lib9-versioning-style-guide.md#keep-a-changelog -[semver]: https://semver.org/spec/v2.0.0.html \ No newline at end of file +[semver]: https://semver.org/spec/v2.0.0.html diff --git a/package-lock.json b/package-lock.json index 162aef36..bef8abfb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,14 +17,14 @@ "devDependencies": { "@bare-ts/lib": "~0.4.0", "@biomejs/biome": "1.5.3", - "@types/node": "16.9.6", + "@types/node": "16.11.68", "esbuild": "0.19.11", "oletus": "4.0.0", "typescript": "5.3.3", "validate-commit-message": "3.2.0" }, "engines": { - "node": ">=16.9.0" + "node": ">=16.11.0" }, "peerDependencies": { "@bare-ts/lib": ">=0.3.0 <=0.4.0" @@ -563,9 +563,9 @@ } }, "node_modules/@types/node": { - "version": "16.9.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.9.6.tgz", - "integrity": "sha512-YHUZhBOMTM3mjFkXVcK+WwAcYmyhe1wL4lfqNtzI0b3qAy7yuSetnM7QJazgE5PFmgVTNGiLOgRFfJMqW7XpSQ==", + "version": "16.11.68", + "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.68.tgz", + "integrity": "sha512-JkRpuVz3xCNCWaeQ5EHLR/6woMbHZz/jZ7Kmc63AkU+1HxnoUugzSWMck7dsR4DvNYX8jp9wTi9K7WvnxOIQZQ==", "dev": true }, "node_modules/commander": { diff --git a/package.json b/package.json index 9dcced70..7a9508ac 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "url": "https://github.com/bare-ts/tools/issues" }, "engines": { - "node": ">=16.9.0" + "node": ">=16.11.0" }, "type": "module", "bin": { @@ -66,7 +66,7 @@ "devDependencies": { "@bare-ts/lib": "~0.4.0", "@biomejs/biome": "1.5.3", - "@types/node": "16.9.6", + "@types/node": "16.11.68", "esbuild": "0.19.11", "oletus": "4.0.0", "typescript": "5.3.3",