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

♻️ Migrate from CommonJS to ESM #227

Merged
merged 9 commits into from
Apr 2, 2023
Merged

♻️ Migrate from CommonJS to ESM #227

merged 9 commits into from
Apr 2, 2023

Commits on Apr 2, 2023

  1. Configuration menu
    Copy the full SHA
    bd59546 View commit details
    Browse the repository at this point in the history
  2. ♻️ Rewrite source code from CommonJS to ESM

    + Add file extensions to the filepath in the import statement
    + Read the `package.json` file using the `readJSONFile()` function instead of the `require()` function
    + Use top-level await
    + Modified `readJSONFile()` and `relativePath()` functions to allow `URL` objects to be specified as arguments
    sounisi5011 committed Apr 2, 2023
    Configuration menu
    Copy the full SHA
    e463a9c View commit details
    Browse the repository at this point in the history
  3. ✅ Rewrite test code from CommonJS to ESM

    + Add file extensions to the filepath in the import statement
    + Use `import.meta.url` instead of `__dirname` variable
    + Fix type declarations in `is-promise` package
    sounisi5011 committed Apr 2, 2023
    Configuration menu
    Copy the full SHA
    b44285c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6758e67 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ebfa9c4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c8f0e60 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6cb013d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5b43d52 View commit details
    Browse the repository at this point in the history
  9. 📝 Update CHANGELOG

    sounisi5011 committed Apr 2, 2023
    Configuration menu
    Copy the full SHA
    5133c65 View commit details
    Browse the repository at this point in the history