Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import type { categories } from './categories'
// TODO: Support version matrix
export interface ModuleCompatibility {
nuxt: string
versionMap: {
[nuxtVersion: string]: string
}
requires: { bridge?: boolean | 'optional' },
}

Expand Down
3 changes: 3 additions & 0 deletions modules/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ compatibility:
nuxt: ^2.0.0 || ^3.0.0
requires:
bridge: optional
versionMap:
2.x: latest
Copy link
Copy Markdown
Member

@danielroe danielroe Sep 19, 2023

Choose a reason for hiding this comment

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

would it make sense for the map to be [any semver string]: any semver string rather than requiring it to be a tag?

edit: or maybe this is already what you have in mind

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes both sides are semver compatible (righthand is basically whatever npm i pkg@contraint allows)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good for me!

3.x: rc