Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: opt in to import.meta.* properties #2597

Merged
merged 1 commit into from
Mar 26, 2024
Merged

fix: opt in to import.meta.* properties #2597

merged 1 commit into from
Mar 26, 2024

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This is a very early PR to make this module compatible with changes we expect to release in Nuxt v5.

In Nuxt v3.7.0 we added support for import.meta.* (see original PR) and we've been gradually updating docs and moving across from the old process.* patterned variables.

As I'm sure you're aware, these variables are replaced at build-time and enable tree-shaking in bundled code.
This change affects runtime code (that is, that is processed by the Nuxt bundler, like vite or webpack) rather than code running in Node. So it really doesn't matter what the string is, but it makes more sense in an ESM-world to use import.meta rather than process.

(It might be worth updating the module compatibility as well to indicate it needs to have Nuxt v3.7.0+, but I'll leave that with you if you think this is a good approach.)

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Copy link

Deploying nuxt-content with Β Cloudflare Pages Β Cloudflare Pages

Latest commit: ec09080
Status:Β βœ…Β  Deploy successful!
Preview URL: https://95156e8d.nuxt-content-1il.pages.dev
Branch Preview URL: https://process-client.nuxt-content-1il.pages.dev

View logs

@atinux atinux requested a review from farnabaz March 25, 2024 14:37
@farnabaz farnabaz merged commit 9943c00 into main Mar 26, 2024
3 checks passed
@farnabaz farnabaz deleted the process-client branch March 26, 2024 16:37
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants