v0.4.0
Pre-releaseBREAKING: Faster coverage map generation
Coverage map generation performance has been improved significantly for larger files (1k+ lines).
The tradeoff was made to make coverage maps less acurate, by using a diff algorithm that only groups per line, rather than per character.
BREAKING: Remove finishCoverageMapWrites()
finishCoverageMapWrites()
was supposed to prevent Deno tests from failing because of pending promises, but in reality the opposite was true. When importing a module before a test was started, the promises that would write coverage maps to disk had a chance to resolve during tests, causing Deno sanitizers to complain.
Generally you would want to wait for the coverage maps to be written to disk right after you import a module, so this is now done automatically.
This means it might take a little longer for dynamic import promises to resolve, but if you don't have coverage map generation enabled this does not affect performance.