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

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

Merged
merged 1 commit into from
Mar 25, 2024
Merged

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

merged 1 commit into from
Mar 25, 2024

Conversation

danielroe
Copy link
Member

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.)

Copy link

netlify bot commented Mar 25, 2024

Deploy Preview for pinia-playground canceled.

Name Link
🔨 Latest commit 26ef213
🔍 Latest deploy log https://app.netlify.com/sites/pinia-playground/deploys/660181ba3eb3050008664fa2

Copy link

netlify bot commented Mar 25, 2024

Deploy Preview for pinia-official ready!

Name Link
🔨 Latest commit 26ef213
🔍 Latest deploy log https://app.netlify.com/sites/pinia-official/deploys/660181ba3b30e500081d5128
😎 Deploy Preview https://deploy-preview-2622--pinia-official.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.42%. Comparing base (f695b62) to head (26ef213).
Report is 12 commits behind head on v2.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##               v2    #2622   +/-   ##
=======================================
  Coverage   95.42%   95.42%           
=======================================
  Files          11       11           
  Lines        2886     2886           
  Branches      190      190           
=======================================
  Hits         2754     2754           
  Misses        131      131           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

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

Looks good! I think it's fine not to add a peerdep version as it's broken things with npm in the past and I think 3.7 was released a while ago

@posva posva merged commit 0a94c3c into v2 Mar 25, 2024
8 checks passed
@posva posva deleted the process-client branch March 25, 2024 14:08
niceplugin added a commit to niceplugin/Vuejs-Pinia-KO that referenced this pull request Mar 31, 2024
niceplugin added a commit to niceplugin/Vuejs-Pinia-KO that referenced this pull request Mar 31, 2024
* docs: project sync init

* docs: zh docs delete and some docs translate using gpt-4-turbo

* docs: overlay

* docs: markup

* fix: opt in to `import.meta.*` properties (vuejs#2622)

* docs: certificate links
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.

None yet

3 participants