From bc95a9984f6bf5e581bc2b9095a7bccbd4549b62 Mon Sep 17 00:00:00 2001
From: Benjamin Lupton
Date: Sun, 12 Nov 2023 21:52:02 +0800
Subject: [PATCH] v10.0.0 - boundation, changelog, version bump
---
HISTORY.md | 5 ++++
README.md | 14 +++++++-----
index.cjs | 8 +++++++
package-lock.json | 16 ++++++-------
package.json | 58 ++++++++++++++++++++++++++++++++++++++---------
test.cjs | 8 +++++++
6 files changed, 83 insertions(+), 26 deletions(-)
create mode 100644 index.cjs
create mode 100644 test.cjs
diff --git a/HISTORY.md b/HISTORY.md
index 49898d1..6e7e677 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -1,5 +1,10 @@
# History
+## v10.0.0 2023 November 12
+
+- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation)
+- Minimum required node version changed from `node: >=14` to `node: >=6` to keep up with mandatory ecosystem changes
+
## v9.0.0 2023 November 12
- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation)
diff --git a/README.md b/README.md
index 816f95b..fef8e9b 100644
--- a/README.md
+++ b/README.md
@@ -51,7 +51,7 @@ Common utilities and helpers to make testing assertions easier
``` html
```
@@ -59,7 +59,7 @@ Common utilities and helpers to make testing assertions easier
``` html
```
@@ -67,7 +67,7 @@ Common utilities and helpers to make testing assertions easier
``` html
```
@@ -75,11 +75,13 @@ Common utilities and helpers to make testing assertions easier
This package is published with the following editions:
-assert-helpers/source/index.ts
is TypeScript source code with Import for modules
+assert-helpers
aliases assert-helpers/index.cjs
which uses the Editions Autoloader to automatically select the correct edition for the consumer's environment
+assert-helpers/source/index.ts
is TypeScript source code with Import for modules
assert-helpers/edition-browsers/index.js
is TypeScript compiled against ES2022 for web browsers with Import for modules
-assert-helpers
aliases assert-helpers/edition-es2022/index.js
assert-helpers/edition-es2022/index.js
is TypeScript compiled against ES2022 for Node.js 14 || 16 || 18 || 20 || 21 with Require for modules
-assert-helpers/edition-es2022-esm/index.js
is TypeScript compiled against ES2022 for Node.js 14 || 16 || 18 || 20 || 21 with Import for modules
+assert-helpers/edition-es2019/index.js
is TypeScript compiled against ES2019 for Node.js 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules
+assert-helpers/edition-es2017/index.js
is TypeScript compiled against ES2017 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules
+assert-helpers/edition-es2019-esm/index.js
is TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules
diff --git a/index.cjs b/index.cjs
new file mode 100644
index 0000000..f938ba0
--- /dev/null
+++ b/index.cjs
@@ -0,0 +1,8 @@
+'use strict'
+// auto-generated by boundation, do not update manually
+/** @type {typeof import("./compiled-types/index.d.ts") } */
+module.exports = require('editions').requirePackage(
+ __dirname,
+ require,
+ 'index.js',
+)
diff --git a/package-lock.json b/package-lock.json
index 73a2a15..c4a19a1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,15 +1,16 @@
{
"name": "assert-helpers",
- "version": "9.0.0",
+ "version": "10.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "assert-helpers",
- "version": "9.0.0",
+ "version": "10.0.0",
"license": "Artistic-2.0",
"dependencies": {
"@bevry/ansi": "^4.0.0",
+ "editions": "^6.8.0",
"errlop": "^4.6.0"
},
"devDependencies": {
@@ -32,7 +33,7 @@
"valid-module": "^2.1.0"
},
"engines": {
- "node": ">=4"
+ "node": ">=14"
},
"funding": {
"url": "https://bevry.me/fund"
@@ -777,9 +778,9 @@
"dev": true
},
"node_modules/badges": {
- "version": "4.29.0",
- "resolved": "https://registry.npmjs.org/badges/-/badges-4.29.0.tgz",
- "integrity": "sha512-fAzm/xvqy8vteLOB9/enostfJnPgNqPp1vxrYZApQlBwJAkGkcGWjqfSersEkLHLuMil6JoU2OqbRhhXeC7ICg==",
+ "version": "4.30.0",
+ "resolved": "https://registry.npmjs.org/badges/-/badges-4.30.0.tgz",
+ "integrity": "sha512-3pR22FsshWWSGevL16EVEvv5fquJYWAIT7lpmf4hcM5ksN3amfxiXuaxgbUWBO256d1rs+fuT1H+GtYL5O+1dg==",
"dev": true,
"engines": {
"node": ">=10"
@@ -1237,7 +1238,6 @@
"version": "6.8.0",
"resolved": "https://registry.npmjs.org/editions/-/editions-6.8.0.tgz",
"integrity": "sha512-N4HL1Jy7GuwRY0SM+k3SCCq0rCpQ8Y+hJg05Yg3XT0gxmtxytfIgYV/4jbUFWLvlREqxpwaYhws8p+hisWkLEw==",
- "dev": true,
"dependencies": {
"version-range": "^1.4.0"
},
@@ -4316,7 +4316,6 @@
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/version-compare/-/version-compare-1.5.0.tgz",
"integrity": "sha512-uyseECqCI6Ix6Vlh5bE1b53RPUAy48Wwy5itj/cl7LciSLIARObR35oH52vA5lcq/WwcWVvhTHNL9Vvt4WRXmA==",
- "dev": true,
"engines": {
"node": ">=4"
},
@@ -4328,7 +4327,6 @@
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/version-range/-/version-range-1.5.0.tgz",
"integrity": "sha512-+tHAV0jemmfzYV6fLBfCxyI3ypBwNpYhoceDOJFrhi2T8XZvEL1whiPIO3BKXsAzCj4eSyGRqFI1NnfzG0XkiQ==",
- "dev": true,
"dependencies": {
"version-compare": "^1.4.0"
},
diff --git a/package.json b/package.json
index 7009961..73fe279 100644
--- a/package.json
+++ b/package.json
@@ -1,13 +1,15 @@
{
"title": "Assert Helpers",
"name": "assert-helpers",
- "version": "9.0.0",
+ "version": "10.0.0",
"description": "Common utilities and helpers to make testing assertions easier",
"homepage": "https://github.com/bevry/assert-helpers",
"license": "Artistic-2.0",
"keywords": [
"assert",
"browser",
+ "es2017",
+ "es2019",
"es2022",
"expect",
"module",
@@ -72,7 +74,7 @@
"url": "https://github.com/bevry/assert-helpers.git"
},
"engines": {
- "node": ">=14"
+ "node": ">=6"
},
"editions": [
{
@@ -116,27 +118,58 @@
}
},
{
- "description": "TypeScript compiled against ES2022 for Node.js 14 || 16 || 18 || 20 || 21 with Import for modules",
- "directory": "edition-es2022-esm",
+ "description": "TypeScript compiled against ES2019 for Node.js 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules",
+ "directory": "edition-es2019",
"entry": "index.js",
"tags": [
"compiled",
"javascript",
- "es2022",
+ "es2019",
+ "require"
+ ],
+ "engines": {
+ "node": "8 || 10 || 12 || 14 || 16 || 18 || 20 || 21",
+ "browsers": false
+ }
+ },
+ {
+ "description": "TypeScript compiled against ES2017 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules",
+ "directory": "edition-es2017",
+ "entry": "index.js",
+ "tags": [
+ "compiled",
+ "javascript",
+ "es2017",
+ "require"
+ ],
+ "engines": {
+ "node": "6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21",
+ "browsers": false
+ }
+ },
+ {
+ "description": "TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules",
+ "directory": "edition-es2019-esm",
+ "entry": "index.js",
+ "tags": [
+ "compiled",
+ "javascript",
+ "es2019",
"import"
],
"engines": {
- "node": "14 || 16 || 18 || 20 || 21",
+ "node": "12 || 14 || 16 || 18 || 20 || 21",
"browsers": false
}
}
],
"types": "./compiled-types/",
"type": "module",
- "main": "edition-es2022/index.js",
+ "main": "index.cjs",
"exports": {
"node": {
- "import": "./edition-es2022-esm/index.js",
+ "import": "./edition-es2019-esm/index.js",
+ "default": "./index.cjs",
"require": "./edition-es2022/index.js"
},
"browser": {
@@ -147,6 +180,7 @@
"module": "edition-browsers/index.js",
"dependencies": {
"@bevry/ansi": "^4.0.0",
+ "editions": "^6.8.0",
"errlop": "^4.6.0"
},
"devDependencies": {
@@ -170,10 +204,12 @@
},
"scripts": {
"our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
- "our:compile": "npm run our:compile:edition-browsers && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:types",
+ "our:compile": "npm run our:compile:edition-browsers && npm run our:compile:edition-es2017 && npm run our:compile:edition-es2019 && npm run our:compile:edition-es2019-esm && npm run our:compile:edition-es2022 && npm run our:compile:types",
"our:compile:edition-browsers": "tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )",
+ "our:compile:edition-es2017": "tsc --module commonjs --target ES2017 --outDir ./edition-es2017 --project tsconfig.json && ( test ! -d edition-es2017/source || ( mv edition-es2017/source edition-temp && rm -Rf edition-es2017 && mv edition-temp edition-es2017 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2017/package.json",
+ "our:compile:edition-es2019": "tsc --module commonjs --target ES2019 --outDir ./edition-es2019 --project tsconfig.json && ( test ! -d edition-es2019/source || ( mv edition-es2019/source edition-temp && rm -Rf edition-es2019 && mv edition-temp edition-es2019 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2019/package.json",
+ "our:compile:edition-es2019-esm": "tsc --module ESNext --target ES2019 --outDir ./edition-es2019-esm --project tsconfig.json && ( test ! -d edition-es2019-esm/source || ( mv edition-es2019-esm/source edition-temp && rm -Rf edition-es2019-esm && mv edition-temp edition-es2019-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2019-esm/package.json",
"our:compile:edition-es2022": "tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -Rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json",
- "our:compile:edition-es2022-esm": "tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -Rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json",
"our:compile:types": "tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )",
"our:deploy": "printf '%s\n' 'no need for this project'",
"our:meta": "npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz",
@@ -195,7 +231,7 @@
"our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source",
"our:verify:module": "valid-module",
"our:verify:prettier": "prettier --write .",
- "test": "node ./edition-es2022/test.js"
+ "test": "node ./test.cjs"
},
"eslintConfig": {
"extends": [
diff --git a/test.cjs b/test.cjs
new file mode 100644
index 0000000..c486767
--- /dev/null
+++ b/test.cjs
@@ -0,0 +1,8 @@
+'use strict'
+// auto-generated by boundation, do not update manually
+/** @type {typeof import("./compiled-types/test.d.ts") } */
+module.exports = require('editions').requirePackage(
+ __dirname,
+ require,
+ 'test.js',
+)