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

Replace import assertion with import attribute #2342

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

wojtekmaj
Copy link
Contributor

@wojtekmaj wojtekmaj commented Oct 1, 2024

Summary

Import assertions are already deprecated. Failing to fix this will cause everyone on Node.js 22 (LTS this month!) unable to push their changes, as build is a part of prepush hook.

Description

Motivation and Context

Todos

  • Implemented feature
  • Feature with pending implementation

Screenshots (if appropriate):

@wojtekmaj wojtekmaj requested a review from a team as a code owner October 1, 2024 13:31
@axe312ger
Copy link
Collaborator

axe312ger commented Oct 3, 2024

Thanks for the info! We overlooked this!

Do you know if the with will also work with older Node versions? We still need to support v18 and v20 for now.

@wojtekmaj
Copy link
Contributor Author

As long as you're on the latest minor, you should be fine.

Import attributes work on Node.js ^18.20.0 || ^19.0.0 || >=20.10.0.

Import assertions are already deprecated. Failing to fix this will cause everyone on Node.js 22 (LTS this month!) unable to push their changes.
@jjolton-contentful jjolton-contentful merged commit eab44b3 into contentful:master Oct 9, 2024
3 checks passed
@contentful-automation
Copy link
Contributor

🎉 This PR is included in version 11.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants