Skip to content

Releases: cyberuni/resolve.imports

resolve.imports@2.0.4

Choose a tag to compare

@github-actions github-actions released this 01 Sep 16:35
486cae7

Patch Changes

  • 307158d: Upgrade @changesets/cli to v3.

  • eeb856f: Build with tsdown instead of two tsc passes.

    The published entry points, formats and file layout are unchanged, but the emitted
    JavaScript differs and the per-module .d.ts files are now rolled up into a single
    esm/index.d.ts. Declaration maps (.d.ts.map) are no longer emitted; the TypeScript
    sources still ship in ts/.

  • Updated dependencies [307158d]

  • Updated dependencies [eeb856f]

    • pattern-key-compare@2.0.1

pattern-key-compare@2.0.1

Choose a tag to compare

@github-actions github-actions released this 01 Sep 16:35
486cae7

Patch Changes

  • 307158d: Upgrade @changesets/cli to v3.

  • eeb856f: Build with tsdown instead of two tsc passes.

    The published entry points, formats and file layout are unchanged, but the emitted
    JavaScript differs and the per-module .d.ts files are now rolled up into a single
    esm/index.d.ts. Declaration maps (.d.ts.map) are no longer emitted; the TypeScript
    sources still ship in ts/.

resolve.imports@2.0.3

Choose a tag to compare

@unional unional released this 05 Jan 07:08

Patch Changes

  • cde5df7: Add missing slash in error message

resolve.imports@2.0.2

Choose a tag to compare

@unional unional released this 04 Jan 04:28

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"
        ]
      }
    }

resolve.imports@2.0.1

Choose a tag to compare

@unional unional released this 03 Jan 09:56

Patch Changes

  • 691671b: Ignore conditions order.

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

resolve.imports@2.0.0

Choose a tag to compare

@unional unional released this 03 Jan 07:15

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

  • Updated dependencies [392cf7c]
    • pattern-key-compare@2.0.0

pattern-key-compare@2.0.0

Choose a tag to compare

@unional unional released this 03 Jan 07:15

Major Changes

  • 392cf7c: Update to latest specification

resolve.imports@1.2.7

Choose a tag to compare

@unional unional released this 02 Jan 20:54

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.

resolve.imports@1.2.6

Choose a tag to compare

@unional unional released this 01 Jan 23:29

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]

    • pattern-key-compare@1.0.0

resolve.imports@1.2.5

Choose a tag to compare

@unional unional released this 01 Jan 22:32

Patch Changes

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