From 6c41886395163a855f06300dc3aca46823b98eab Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 19 Sep 2023 11:34:56 +0200 Subject: [PATCH 1/2] feat: support compatibility version map (for image) --- lib/types.ts | 3 +++ modules/image.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/types.ts b/lib/types.ts index 9e3f4e3d3..2376705e3 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -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' }, } diff --git a/modules/image.yml b/modules/image.yml index afee369c8..1c2f4bbb7 100644 --- a/modules/image.yml +++ b/modules/image.yml @@ -27,3 +27,6 @@ compatibility: nuxt: ^2.0.0 || ^3.0.0 requires: bridge: optional + versionMap: + ^2.0.0: latest + ^3.0.0: rc From 3b03549d99cb883059d13abaf6008eb0e79872ac Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 19 Sep 2023 11:45:26 +0200 Subject: [PATCH 2/2] simplify --- modules/image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/image.yml b/modules/image.yml index 1c2f4bbb7..f93137e97 100644 --- a/modules/image.yml +++ b/modules/image.yml @@ -28,5 +28,5 @@ compatibility: requires: bridge: optional versionMap: - ^2.0.0: latest - ^3.0.0: rc + 2.x: latest + 3.x: rc