Skip to content

Releases: iambumblehead/esmock

esmock.d.ts correction

14 Aug 00:30
31cc298
Compare
Choose a tag to compare

resolve critical error, restore exports main

02 Aug 15:53
5a84239
Compare
Choose a tag to compare

define package.json exports to improve TS support

31 Jul 14:10
96d2754
Compare
Choose a tag to compare

mock modules that use exports.import path string

30 Jul 23:01
58424e6
Compare
Choose a tag to compare

resolve runtime error

25 Jul 16:03
f9a6eb3
Compare
Choose a tag to compare

resolve node v14 runtime error

25 Jul 05:49
7480cd4
Compare
Choose a tag to compare

add jest-light-runner support

25 Jul 01:04
Compare
Choose a tag to compare
  • adds a jest-light-runner unit-test and README script entry. cc @nicolo-ribaudo

add tsm support

23 Jul 23:42
6e53950
Compare
Choose a tag to compare

This release adds support for tsm and many stability improvements,

  • Adds a tsm unit test and example to the README
  • Adds typescript and node-native runner tests for windows CI. Previously, these were disabled because there was no condition to detect node v18+ in windows CI. The detect-node package is added to enable tests requiring node v18+,
  • Renames esmockLoader.mjs to esmockLoader.js. Esbuild minification would not preserve the .mjs extension and the extension isn't needed because it was used to trigger "esm" mode when esmock previously attempted to support cjs unit-tests,
  • Uses runner-specific test folders. These allow each test folder to define their own tsconfig.json, specific version of a dependency and other things,
  • Updates a test that depended on an old package version --removes the old package and use a local module instead. The old package and new local module reproduce a babel-generated type of CJS file.

esmock is 50% smaller! 16.6kB (from 31.8kB)

22 Jul 06:16
9b79c6e
Compare
Choose a tag to compare

esmock is 50% smaller and minified sources are verified by the CI pipeline. Unit-tests are moved to a sub-directory to prepare for testing situations using specific runner and loader combinations, for example ava + ts-node/esm

get the latest version with npm install -D esmock@latest

The size of esmock was reduced from 31.8kB to 16.6kB with the following changes,

  • (6.3kB), minified resolvewithplus, 72
  • (1.4kB), moved test details to tests/ directory, 74
  • (0.5kB), changed license from MIT to ISC, 75
  • (5.5kB), minified src files with esbuild, 76

improved support for symlinked paths

20 Jul 05:54
0c12b6a
Compare
Choose a tag to compare