From bf28a0579063a405e69c5f924fe71c45e1d0fd7c Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 26 Feb 2024 10:48:11 -0800 Subject: [PATCH 1/7] increment resolvewithplus version --- CHANGELOG.md | 9 +++++---- package.json | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a9934de..d5a9e26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,14 @@ # changelog - * 2.6.? _tbd_ + * 2.6.4 _Feb.26.2024_ + * [increment resolvewithplus](https://github.com/iambumblehead/resolvewithplus/pull/293) to support more export patterns, see [resolvewithplus v2.1.5](https://github.com/iambumblehead/resolvewithplus/releases/tag/v2.1.5) * [update publish spec job actions,](https://github.com/iambumblehead/esmock/pull/291) use checkout@v4 and setup-node@v4 * [remove node 16 from test job matrix,](https://github.com/iambumblehead/esmock/pull/292) eol 2023, Sep 11 #254 - * 2.6.3 _Jan.23.2023_ + * 2.6.3 _Jan.23.2024_ * [resolve nested exports defined on named-properties](https://github.com/iambumblehead/resolvewithplus/pull/65) with wildcards, eg `exports: { './*': { default: './src/*/index.js' } }` resolves [this issue at esmock](https://github.com/iambumblehead/esmock/issues/289) - * 2.6.2 _Jan.14.2023_ + * 2.6.2 _Jan.14.2024_ * [remove reserved keywords](https://github.com/iambumblehead/esmock/pull/287) from export names lists, allows express to be mocked, thanks @lcapel - * 2.6.1 _Jan.13.2023_ + * 2.6.1 _Jan.13.2024_ * [update ci job to use checkout v4](https://github.com/iambumblehead/esmock/pull/279) * [update README to work w/ eslint-plugin-markdown](https://github.com/iambumblehead/esmock/pull/275) * [update eslint](https://github.com/iambumblehead/esmock/pull/276) disallow trailing whitespace diff --git a/package.json b/package.json index 637026e..e14b0c8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "esmock", "type": "module", - "version": "2.6.3", + "version": "2.6.4", "license": "ISC", "readmeFilename": "README.md", "description": "provides native ESM import and globals mocking for unit tests", @@ -60,7 +60,7 @@ "node": ">=14.16.0" }, "dependencies": { - "resolvewithplus": "^2.1.4" + "resolvewithplus": "^2.1.5" }, "devDependencies": { "c8": "^9.1.0", From 2045a62043334339897c61fad9ff4b7177951ee9 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 26 Feb 2024 10:50:21 -0800 Subject: [PATCH 2/7] increment other package versions --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e14b0c8..359922f 100644 --- a/package.json +++ b/package.json @@ -64,10 +64,10 @@ }, "devDependencies": { "c8": "^9.1.0", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-plugin-markdown": "^3.0.1", - "@typescript-eslint/parser": "^6.18.1", - "@typescript-eslint/eslint-plugin": "^6.18.1" + "@typescript-eslint/parser": "^7.1.0", + "@typescript-eslint/eslint-plugin": "^7.1.0" }, "scripts": { "test:install": "cd tests && npm run install:all", From 0a3d52baeb9d2a26b9dabd0b840c9bb86eabae48 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 26 Feb 2024 10:57:49 -0800 Subject: [PATCH 3/7] increment test dependency to bump/prompt github test CI to run --- tests/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/package.json b/tests/package.json index 75edd54..805efe5 100644 --- a/tests/package.json +++ b/tests/package.json @@ -18,7 +18,7 @@ "express": "^4.18.2", "@aws-sdk/client-s3": "^3.408.0", "babelGeneratedDoubleDefault": "file:./local/babelGeneratedDoubleDefault", - "eslint": "^8.12.0", + "eslint": "^8.54.0", "form-urlencoded": "^6.0.7", "meow": "12.0.1", "npm-run-all": "^4.1.5", From 3dbb01eec9e5fcbc521566c8946ecc20b0bffe9e Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 26 Feb 2024 11:19:07 -0800 Subject: [PATCH 4/7] update README --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index dac2283..487dee3 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ _**Note: For versions of node prior to v20.6.0,** "--loader" command line arguments must be used with `esmock` as demonstrated [in the wiki.][4] Current versions of node do not require "--loader"._ +_**Note: typescript loaders** `ts-node` 👍 and `tsm` 👍 are compatible with other loaders, [including esmock.][11] `swc` 👎 and `tsx` 👎 are demonstrated as **incompatible** with other loaders, including esmock._ + `esmock` has the below signature ```js await esmock( @@ -101,3 +103,4 @@ test('esmock.strict mocks', async () => { [8]: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/iambumblehead/166d927bd0089d7bfdee4e98a537712c/raw/esmock__heads_master.json [9]: https://img.shields.io/npm/v/esmock [10]: https://badgen.now.sh/npm/dm/esmock +[11]: https://github.com/iambumblehead/esmock/tree/main/tests From 900e93a1684e126b5d97d8ef4cdbedb214d3a36c Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 26 Feb 2024 11:21:20 -0800 Subject: [PATCH 5/7] capitalize T --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 487dee3..449734c 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ _**Note: For versions of node prior to v20.6.0,** "--loader" command line arguments must be used with `esmock` as demonstrated [in the wiki.][4] Current versions of node do not require "--loader"._ -_**Note: typescript loaders** `ts-node` 👍 and `tsm` 👍 are compatible with other loaders, [including esmock.][11] `swc` 👎 and `tsx` 👎 are demonstrated as **incompatible** with other loaders, including esmock._ +_**Note: Typescript loaders** `ts-node` 👍 and `tsm` 👍 are compatible with other loaders, [including esmock.][11] `swc` 👎 and `tsx` 👎 are demonstrated as **incompatible** with other loaders, including esmock._ `esmock` has the below signature ```js From 1270ec006e0b35859e520d49fb6a2300e1838f85 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 26 Feb 2024 11:23:16 -0800 Subject: [PATCH 6/7] update CHANGELOG --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5a9e26..adc0bf5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,8 @@ # changelog * 2.6.4 _Feb.26.2024_ - * [increment resolvewithplus](https://github.com/iambumblehead/resolvewithplus/pull/293) to support more export patterns, see [resolvewithplus v2.1.5](https://github.com/iambumblehead/resolvewithplus/releases/tag/v2.1.5) + * [update README with notice](https://github.com/iambumblehead/resolvewithplus/pull/295) about incompatible typescript loaders + * [increment resolvewithplus](https://github.com/iambumblehead/resolvewithplus/pull/295) to support more export patterns, see [resolvewithplus v2.1.5](https://github.com/iambumblehead/resolvewithplus/releases/tag/v2.1.5) * [update publish spec job actions,](https://github.com/iambumblehead/esmock/pull/291) use checkout@v4 and setup-node@v4 * [remove node 16 from test job matrix,](https://github.com/iambumblehead/esmock/pull/292) eol 2023, Sep 11 #254 * 2.6.3 _Jan.23.2024_ From 45d2d29b3123fc97ac80845e37139653c5fe22bf Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 26 Feb 2024 11:27:19 -0800 Subject: [PATCH 7/7] update README --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 449734c..47dc991 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ _**Note: For versions of node prior to v20.6.0,** "--loader" command line arguments must be used with `esmock` as demonstrated [in the wiki.][4] Current versions of node do not require "--loader"._ -_**Note: Typescript loaders** `ts-node` 👍 and `tsm` 👍 are compatible with other loaders, [including esmock.][11] `swc` 👎 and `tsx` 👎 are demonstrated as **incompatible** with other loaders, including esmock._ +_**Note: Typescript loaders** `ts-node` 👍 and `tsm` 👍 are compatible with other loaders, [including esmock.][3] `swc` 👎 and `tsx` 👎 are demonstrated as **incompatible** with other loaders, including esmock._ `esmock` has the below signature ```js @@ -95,7 +95,7 @@ test('esmock.strict mocks', async () => { [0]: https://www.bumblehead.com "bumblehead" [1]: https://github.com/iambumblehead/esmock/workflows/nodejs-ci/badge.svg "nodejs-ci pipeline" [2]: https://github.com/iambumblehead/esmock "esmock" -[3]: https://github.com/iambumblehead/esmock/tree/master/tests "tests" +[3]: https://github.com/iambumblehead/esmock/tree/main/tests "tests" [4]: https://github.com/iambumblehead/esmock/wiki [5]: https://packagephobia.now.sh/result?p=esmock [6]: https://packagephobia.now.sh/badge?p=esmock @@ -103,4 +103,3 @@ test('esmock.strict mocks', async () => { [8]: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/iambumblehead/166d927bd0089d7bfdee4e98a537712c/raw/esmock__heads_master.json [9]: https://img.shields.io/npm/v/esmock [10]: https://badgen.now.sh/npm/dm/esmock -[11]: https://github.com/iambumblehead/esmock/tree/main/tests