Skip to content

Releases: iambumblehead/resolvewithplus

correctly resolve openai package

24 Jan 21:19
ef770ae
Compare
Choose a tag to compare

fix problem resolving the openai module

improve wildcard nesting expansion

26 Feb 18:40
0f680a2
Compare
Choose a tag to compare

Essentially, this release enables resolvewithplus to resolve the following esm export

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

Full list of changes,

resolve wildcard-using pattern resolution

23 Jan 19:27
d3e2912
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

resolves criticaal error

20 Oct 18:10
f22a56d
Compare
Choose a tag to compare

resolve full path from package.json "main", "browser" and "module" definitions. resolves this issue at esmock.

remove unused condition

19 Oct 21:39
0fa3bf3
Compare
Choose a tag to compare

remove unused condition and resolved error where fileurl path was not correctly resolved for package.json "main", "browser" and "module" definitions

support user-defined `priority` list

19 Oct 17:09
30ebb6a
Compare
Choose a tag to compare

when user-defined priority list includes "import" return packagejson.module before packagejson.main

support user-defined priority list when resolving nested export expressions

resolve error preventing module resolution

15 Oct 15:29
1274be5
Compare
Choose a tag to compare

resolve error preventing module resolution. There is a condition that alters lookup paths for the situation when resolvewithplus is being developed and tested from inside another package's node_modules. The condition caused lookup errors. The condition was changed and a unit-test added

remove un-necessary sort

11 Oct 18:41
c244cad
Compare
Choose a tag to compare

use package type to determine 'import' or 'require' lookup

06 Oct 22:10
ae08e15
Compare
Choose a tag to compare

use package type to determine lookup: 'import' or 'require'

(wiki is updated with details)

prioritize module resolutions

06 Oct 16:15
20ab159
Compare
Choose a tag to compare

With this release resolvewithplus supports optional isbrowser, istypescript and isimport fields and when one of these is specified the resolver prioritizes browser-exported files, typecript and module files. By default, isimport is true

resolvewithplus('react-dom/server', '/resolvewith/test/', {
  isbrowser: true
}) // 'file:///resolvewith/node_modules/react-dom/server.browser.js'

resolvewithplus now also supports an advanced priority option. When a package.json is parsed, a default priority list determines the priority of named-exports in this order: browser (if isbrowser), then import then node then default. Define a custom priority list to specify a custom ordering. If you are using nodejs, this is probably not needed,

resolvewithplus('react-dom/server', '/resolvewith/test/', {
  priority: ['deno', 'default']
}) // 'file:///resolvewith/node_modules/react-dom/server.deno.js'

resolvewithplus('react-dom/server', '/resolvewith/test/', {
  priority: ['browser', 'default']
}) // 'file:///resolvewith/node_modules/react-dom/server.browser.js'

changelog: