Skip to content

Releases: iambumblehead/esmock

support node v23

18 Oct 21:54
5db199a
Compare
Choose a tag to compare

Add node 23 ro the test matrix and update to support node 23,

add pnpm test

18 Oct 01:53
a57eb3a
Compare
Choose a tag to compare

fixes an issue that prevented esmock from being used with pnpm,

add swc tests

16 Jul 21:20
253eec5
Compare
Choose a tag to compare

migrate eslint 9 add tsx tests

15 Jun 20:44
a16a6fb
Compare
Choose a tag to compare

add node v22 to test matrix

25 Apr 19:08
7d0f56d
Compare
Choose a tag to compare

add node 22 to ci test pipeline and use with { type: 'json' } import syntax for node >= 20,

improve esm wildcard expansion

26 Feb 19:42
63e82e8
Compare
Choose a tag to compare

Essentially, this release enables esmock to resolve the following esm export, see #293

{
  "exports": {
    "./*": {
      "require": "./*.js",
      "import": "./*.js"
    }
  }
}

the following is added to the README,

Note: Typescript loaders ts-node 👍 and tsm 👍 are compatible with other loaders, including esmock. swc 👎 and tsx 👎 are demonstrated as incompatible with other loaders, including esmock.

Full list of changes,

improved pattern resolution

23 Jan 19:47
85d386d
Compare
Choose a tag to compare

resolve nested exports defined on named-properties with wildcards, eg exports: { './*': { default: './src/*/index.js' } } resolves this issue at esmock thanks @dschnare

remove reserved keywords from export names list

14 Jan 06:57
26cfb9b
Compare
Choose a tag to compare

remove reserved keywords from export names lists, allows express to be mocked, thanks @lcapel

resolve mocking builtins imported globally with `await import`

14 Jan 04:05
06973b4
Compare
Choose a tag to compare

mostly this release resolves an issue mocking builtins imported globally with await import

typings <T = any> MockFunction

07 Nov 18:21
cbe83c1
Compare
Choose a tag to compare