Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/nuxt/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const module: NuxtModule<ModuleOptions> = defineNuxtModule<ModuleOptions>({
name: 'pinia',
configKey: 'pinia',
compatibility: {
nuxt: '^3.15.0 || ^4.0.0-0',
nuxt: '^3.15.0 || ^4.0.0-0 || ^4.0.0',
Copy link
Member

Choose a reason for hiding this comment

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

Thanks! This might be a bug in the semver check instead: https://jubianchi.github.io/semver-check/#/^4.0.0-0/4.0.0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems like we can simplify it further even
https://jubianchi.github.io/semver-check/#/^4.0.0/4.0.0-alpha

Copy link
Member

Choose a reason for hiding this comment

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

Interesting! That didn't use to be the case with npm 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed it is! But at least its a simpler syntax, so no harm in adopting it =)

Choose a reason for hiding this comment

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

This is really strange that it works because 4.0.0-alpha is clearly behind a 4.0.0 release and ^ means 'after' on the second and third digit.

Choose a reason for hiding this comment

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

image

4.0.0-alpha isn't in this range.

Copy link
Contributor Author

@GalacticHypernova GalacticHypernova Jul 19, 2025

Choose a reason for hiding this comment

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

@Barbapapazes in that case, could it actually be a display error on semver's end? I guess we should support stable releases more than alpha pre-releases, but maybe in order to support both we would need to combine the previous compatibility string with this PR's?

Copy link
Member

Choose a reason for hiding this comment

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

The current version with just the stable is fine

},
},
defaults: {},
Expand Down