Skip to content

Releases: iambumblehead/resolvewithplus

improve typescript resolution

13 Sep 02:44
46e7a2b
Compare
Choose a tag to compare

this PR changes the location of isTypescript detection to occur in one place that is more widely used so that it can be engaged more frequently to improve typescript resolution.

detect typescript parent to apply typescript condtions

13 Sep 00:34
c8a80f8
Compare
Choose a tag to compare

When the resolver detects a typescript parent it can apply typescript conditions to resolve the moduleId. New conditions can be added for typescript situations as needed, this new behaviour is a starting point,

v2.0.2 use node v20 ci, increment dependencies

19 Apr 04:10
d348343
Compare
Choose a tag to compare

@mshima windows drive letter patch

26 Nov 18:41
ec236c7
Compare
Choose a tag to compare

resolve windows modules with correct drive letter using patch from @mshima

return encoded url same as import.meta.resolve

20 Oct 16:58
c27c3c4
Compare
Choose a tag to compare

return encoded url same as import.meta.resolve ,

  • this, 'file:///path/to/indexfile/file%20name%20with%20spaces.js'
  • rather than, 'file:///path/to/indexfile/file name with spaces.js'

add test and changes to support import.meta.url parent

24 Sep 07:05
8fd70bc
Compare
Choose a tag to compare

Add test and changes to support import.meta.url parent. While exploring changes at esmock, it was discovered that esmock slightly modifies import.meta.url from the callee before passing along when calling resolvewithplus,

resolvewithplus('../../index.js', import.meta.url)

reduce install size 1kB

15 Sep 06:39
4f6a8f9
Compare
Choose a tag to compare

minified resolvewithplus.js is 50% smaller and total install size becomes 5.78kB, from 6.79kB

return fileurl-formatted paths, eg file:///path/to/module.js

27 Aug 23:32
e7f79c7
Compare
Choose a tag to compare

Returning fileurl-formatted paths allows esmock to be simplified, where esmock previously needed to detect and convert resolvewithplus paths to fileurl-formatted paths. Returning fileurl-formatted paths also makes resolvewithplus more interchangeable with import.meta.resolve, which also returns fileurl-formatted paths,

parse esm patterns from nodejs' documentation

23 Aug 07:50
a021b3b
Compare
Choose a tag to compare

resolve "pg" package's cjs package.main

19 Aug 15:19
758f433
Compare
Choose a tag to compare