Skip to content

Releases: cyberuni/resolve.imports

[email protected]

05 Jan 07:08
Compare
Choose a tag to compare

Patch Changes

  • cde5df7: Add missing slash in error message

[email protected]

04 Jan 04:28
Compare
Choose a tag to compare

Patch Changes

  • b4d6e0c: Fix array pattern handling.

    The array pattern actually does not return an array of resolved paths.
    It returns the first match with condition support.

    i.e.:

    //=> "./a.js"
    {
      "imports": {
        "#a": ["./a.js", "./b.js"]
      }
    }
    
    // `conditions: ["node"] => "./node.js"`
    // `conditions: undefined => "./browser.js"`
    {
      "imports": {
        "#a": [
          { "node": "./node.js" },
          "./browser.js"
        ]
      }
    }

[email protected]

03 Jan 09:56
Compare
Choose a tag to compare

Patch Changes

  • 691671b: Ignore conditions order.

    The implementation in Node.js is not order-sensitive, so we should not be either.

[email protected]

03 Jan 07:15
Compare
Choose a tag to compare

Major Changes

  • e0c6e74: Throwing errors as in Node.js implementation.

    The API have changed to receive a manifest object so that it can throw errors as in Node.js.

Patch Changes

[email protected]

03 Jan 07:15
Compare
Choose a tag to compare

Major Changes

  • 392cf7c: Update to latest specification

[email protected]

02 Jan 20:54
Compare
Choose a tag to compare

Patch Changes

  • 1cb455e: Filter out non expensionKeys.
    This does not affect the behavior of the package.
    Just that it match closer to the spec.

    Even if the non expensionKeys are not filtered,
    the behavior is the same.
    It's actually not sure if doing a filter first is faster or not.

[email protected]

01 Jan 23:29
Compare
Choose a tag to compare

Patch Changes

  • b137fa2: Extract patternKeyCompare to pattern-key-compare package.

  • 71f87b3: Add ts folder to distribution.
    It is needed for declarationMap to work.

    Remove extra typing files in cjs folder.

  • Updated dependencies [b137fa2]

[email protected]

01 Jan 22:32
Compare
Choose a tag to compare

Patch Changes

  • 1d87f1c: Remove slice(). It is not needed.

[email protected]

01 Jan 21:39
Compare
Choose a tag to compare

Patch Changes

[email protected]

01 Jan 23:29
Compare
Choose a tag to compare

Major Changes

  • b137fa2: Initial release.
    Extract from resolve.imports.