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

ESM updates #68

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

ESM updates #68

wants to merge 3 commits into from

Conversation

dphiffer
Copy link

@dphiffer dphiffer commented Oct 2, 2024

This PR attempts to bring the project up to speed with modern node.js:

  1. Updates packages to use ESM style import and export rather than require() and module.exports (forced in part because dependency parse-favicon refused to work using CommonJS).
  2. Replaces deprecated request package with calls to native fetch().
  3. Updates other packages to latest versions.
  4. Adds an .nvmrc to nudge users toward node.js LTS v20.
  5. Updates package.json engines to v18.0.0 in order to get fetch() without needing to pass an experimental argument.
  6. Switches config.json to config.js to make it work more easily with ESM imports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant