Skip to content

Releases: iambumblehead/esmock

typescript support

20 Jul 01:01
312f7ab
Compare
Choose a tag to compare
  • add basic typescript support, using ts-node/esm
  • add examples and tests showing how to use with ts loader
  • resolve recursive load hook crash when using esmock with other loader

use strict-mocking by default

18 Jul 09:02
db63e0e
Compare
Choose a tag to compare

The previous default behaviour was "partial mock". To use the previous behaviour or to enable "partial mock", change esmock( ) to esmock.px( )

add node-native test runner

17 Jul 17:29
0407687
Compare
Choose a tag to compare
  • add tests using the node native test-runner
  • update README to use node native test-runner

support node v18.6.0 loader changes

14 Jul 08:46
4734667
Compare
Choose a tag to compare

update for compatibility with node 17.8

27 Mar 17:03
9c7876a
Compare
Choose a tag to compare

node 17.8 returns a promise from node's default resolver

-  const resolved = defaultResolve(specifier, context, defaultResolve);
+  const resolved = await defaultResolve(specifier, context, defaultResolve);

update resolvewithplus to support stringy style exports

15 Feb 19:24
483e92d
Compare
Choose a tag to compare
  • update resolvewithplus to support stringy style exports, used by the "got" package

increment resolvewithplus resolve yargs package.json export pattern

08 Feb 23:19
a628268
Compare
Choose a tag to compare
  • increment resolvewithplus resolve yargs package.json export pattern

remove README from npm package

15 Dec 07:03
1bc6f11
Compare
Choose a tag to compare

remove README from npm package

increment resolvewithplus

15 Dec 06:48
bd23ece
Compare
Choose a tag to compare

increment resolvewithplus. newest version has tests and comments in it related to windows vs linux paths.

use decodeURI on paths at moduleLoader, per @aladdin-add

14 Dec 05:22
855ccb9
Compare
Choose a tag to compare

use decodeURI on paths at moduleLoader, per @aladdin-add