Skip to content

ESM: remove code for Node versions <10 - #4736

Merged
juergba merged 1 commit into
masterfrom
juergba/esm-debris
Sep 4, 2021
Merged

juergba merged 1 commit into
masterfrom
juergba/esm-debris

Conversation

@juergba

@juergba juergba commented Aug 29, 2021

Copy link
Copy Markdown
Contributor

Description

  • remove ESM code which adressed Node versions <10
  • move lib/esm-utils.js to lib/nodejs/esm-utils.js

@juergba juergba self-assigned this Aug 29, 2021
@juergba juergba added type: chore generally involving deps, tooling, configuration, etc. area: node.js command-line-or-Node.js-specific semver-patch implementation requires increase of "patch" version number; "bug fixes" labels Aug 29, 2021
@juergba
juergba requested a review from a team August 29, 2021 16:45

@nicojs nicojs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I guess this means a new major version?

@juergba

juergba commented Aug 30, 2021

Copy link
Copy Markdown
Contributor Author

@nicojs no, semver-patch.

We already have dropped Node v8 support with Mocha v8 more than 14 months ago.
Currently Mocha supports Node >=v12, and inofficially it still runs with Node v10.
So this PR just removes old code debris.

lib/esm-utils.js and lib/utils/supportsEsModules() are not part of a public API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: node.js command-line-or-Node.js-specific semver-patch implementation requires increase of "patch" version number; "bug fixes" type: chore generally involving deps, tooling, configuration, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants