Skip to content

Commit

Permalink
Merge pull request #295 from iambumblehead/increment-resolvewithplus-…
Browse files Browse the repository at this point in the history
…improve-support-more-export-patterns

Increment resolvewithplus improve support more export patterns
  • Loading branch information
iambumblehead committed Feb 26, 2024
2 parents c41a63c + 45d2d29 commit 63e82e8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
10 changes: 6 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# changelog

* 2.6.? _tbd_
* 2.6.4 _Feb.26.2024_
* [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.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
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.][3] `swc` 👎 and `tsx` 👎 are demonstrated as **incompatible** with other loaders, including esmock._

`esmock` has the below signature
```js
await esmock(
Expand Down Expand Up @@ -93,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
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -60,14 +60,14 @@
"node": ">=14.16.0"
},
"dependencies": {
"resolvewithplus": "^2.1.4"
"resolvewithplus": "^2.1.5"
},
"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",
Expand Down
2 changes: 1 addition & 1 deletion tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 63e82e8

Please sign in to comment.