Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for esm named exports #325

Closed
wants to merge 2 commits into from
Closed

Commits on May 13, 2021

  1. add support for esm named exports

    Through an ESM wrapper and package.exports this change allows the
    semver module to be both imported and required while still supporting
    legacy versions of Node.js. An important advantage to this change is that
    semver will now support named imports, which are unsupported in commonjs
    modules.
    
    One thing to note. This change introduces the package.exports field
    which locks down what modules can be deeply imported.
    
    Currently support is maintained to allow deep imports of all files
    currently included in package.files to keep the change Semver Minor.
    In the future this interface could be further locked down.
    MylesBorins committed May 13, 2021
    Configuration menu
    Copy the full SHA
    08c28bd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8b3684d View commit details
    Browse the repository at this point in the history