diff --git a/packages/cli/lib/init/init.js b/packages/cli/lib/init/init.js
index 3ad20b2fad9..cb1314f0ed9 100644
--- a/packages/cli/lib/init/init.js
+++ b/packages/cli/lib/init/init.js
@@ -72,7 +72,7 @@ function getProjectType(hasWebapp, hasSrc, hasTest) {
*/
async function init({cwd = "./"} = {}) {
const projectConfig = {
- specVersion: "4.0",
+ specVersion: "5.0",
metadata: {}
};
let pkg;
diff --git a/packages/cli/test/lib/init/init.js b/packages/cli/test/lib/init/init.js
index c47dcfe0f09..92eb6c304f2 100644
--- a/packages/cli/test/lib/init/init.js
+++ b/packages/cli/test/lib/init/init.js
@@ -18,7 +18,7 @@ test("Init for application", async (t) => {
});
t.deepEqual(projectConfig, {
- specVersion: "4.0",
+ specVersion: "5.0",
type: "application",
metadata: {
name: "init-application"
@@ -32,7 +32,7 @@ test("Init for library", async (t) => {
});
t.deepEqual(projectConfig, {
- specVersion: "4.0",
+ specVersion: "5.0",
type: "library",
metadata: {
name: "init-library"
diff --git a/packages/documentation/docs/index.md b/packages/documentation/docs/index.md
index 421519b3921..bbc44f91f53 100644
--- a/packages/documentation/docs/index.md
+++ b/packages/documentation/docs/index.md
@@ -22,14 +22,6 @@ An open and modular toolchain to develop state-of-the-art applications based on
Read the announcement blog post: **[SAP Community: Goodbye UI5 Tooling - Hello UI5 CLI!](https://community.sap.com/t5/technology-blog-posts-by-sap/goodbye-ui5-tooling-hello-ui5-cli/ba-p/14211769)**
:::
-::: tip New Release
-**UI5 CLI V4 is here 🎉**
-
-Read the announcement blog post: **[SAP Community: UI5 CLI 4.0](https://community.sap.com/t5/technology-blogs-by-sap/ui5-tooling-4-0/ba-p/13769578)**
-
-And checkout the **[Migrate to v4](./updates/migrate-v4.md)** documentation.
-:::
-
@@ -57,7 +49,7 @@ Configure your project for use with UI5 CLI.
❯ ui5 init
Wrote ui5.yaml:
-specVersion: "4.0"
+specVersion: "5.0"
metadata:
name: my-app
type: application
diff --git a/packages/documentation/docs/pages/Configuration.md b/packages/documentation/docs/pages/Configuration.md
index 511a8743f9d..336860e2211 100644
--- a/packages/documentation/docs/pages/Configuration.md
+++ b/packages/documentation/docs/pages/Configuration.md
@@ -18,7 +18,7 @@ See the list of [clients](https://github.com/redhat-developer/yaml-language-serv
## Example
```yaml
-specVersion: "4.0"
+specVersion: "5.0"
type: application|library|theme-library|module
metadata:
name: some.project.name
@@ -36,22 +36,22 @@ The type defines the default path mappings and build tasks. See [UI5 Builder: Ty
:::code-group Example
```yaml [application]
-specVersion: "4.0"
+specVersion: "5.0"
type: application
```
```yaml [library]
-specVersion: "4.0"
+specVersion: "5.0"
type: library
```
```yaml [theme-library]
-specVersion: "4.0"
+specVersion: "5.0"
type: theme-library
```
```yaml [module]
-specVersion: "4.0"
+specVersion: "5.0"
type: module
```
@@ -276,7 +276,7 @@ Projects that use the OpenUI5 framework cannot depend on projects that use the S
::: code-group Example
```yaml [application]
-specVersion: "4.0"
+specVersion: "5.0"
type: application
metadata:
name: my.company.app
@@ -291,7 +291,7 @@ framework:
```
```yaml [library]
-specVersion: "4.0"
+specVersion: "5.0"
type: library
metadata:
name: my.company.library
@@ -646,12 +646,12 @@ The default and configured server ports can always be overwritten with the CLI p
::: details Example
```yaml
-specVersion: "4.0"
+specVersion: "5.0"
type: application
metadata:
name: my.application
---
-specVersion: "4.0"
+specVersion: "5.0"
kind: extension
type: project-shim
metadata:
@@ -659,7 +659,7 @@ metadata:
shims:
configurations:
lodash:
- specVersion: "4.0"
+ specVersion: "5.0"
type: module
metadata:
name: lodash
@@ -752,7 +752,7 @@ A list of bundle definitions. A `bundleDefinition` contains of the following opt
A project must define a specification version by setting the `specVersion` property. UI5 CLI uses this information to detect whether the currently installed version is compatible to a project's configuration.
```yaml
-specVersion: "4.0"
+specVersion: "5.0"
[...]
```
@@ -771,6 +771,7 @@ Unless otherwise noted in the table below, UI5 CLI modules are backward compatib
Version | UI5 CLI Release
--- | ---
+**5.0** | v5.0.0+
**4.0** | v4.0.0+
**3.2** | v3.8.0+
**3.1** | v3.5.0+
@@ -786,6 +787,10 @@ Version | UI5 CLI Release
**1.0** | v1.0.0+
**0.1** | v0.0.1+
+### Specification Version 5.0
+
+Specification Version 5.0 projects are supported by [UI5 CLI](https://github.com/UI5/cli) v5.0.0 and above.
+
### Specification Version 4.0
**Breaking changes:**
diff --git a/packages/documentation/docs/pages/OpenUI5.md b/packages/documentation/docs/pages/OpenUI5.md
index 08a3a99058a..a0d207aa4ac 100644
--- a/packages/documentation/docs/pages/OpenUI5.md
+++ b/packages/documentation/docs/pages/OpenUI5.md
@@ -27,7 +27,7 @@ ui5 add sap.ui.core sap.m sap.ui.table themelib_sap_fiori_3
**Example ui5.yaml of an application**
```yaml
-specVersion: "4.0"
+specVersion: "5.0"
type: application
metadata:
name: some.project.name
@@ -43,7 +43,7 @@ framework:
**Example ui5.yaml of a library**
```yaml
-specVersion: "4.0"
+specVersion: "5.0"
type: library
metadata:
name: some.library
diff --git a/packages/documentation/docs/pages/SAPUI5.md b/packages/documentation/docs/pages/SAPUI5.md
index 36e02adc907..20b7f291e05 100644
--- a/packages/documentation/docs/pages/SAPUI5.md
+++ b/packages/documentation/docs/pages/SAPUI5.md
@@ -40,7 +40,7 @@ ui5 add -D sap.ushell
**Example ui5.yaml of an application**
```yaml
-specVersion: "4.0"
+specVersion: "5.0"
type: application
metadata:
name: some.project.name
@@ -58,7 +58,7 @@ framework:
**Example ui5.yaml of a library**
```yaml
-specVersion: "4.0"
+specVersion: "5.0"
type: library
metadata:
name: some.library
diff --git a/packages/documentation/docs/pages/extensibility/CustomServerMiddleware.md b/packages/documentation/docs/pages/extensibility/CustomServerMiddleware.md
index 2e8a9a6b2fa..1b5f22cb0aa 100644
--- a/packages/documentation/docs/pages/extensibility/CustomServerMiddleware.md
+++ b/packages/documentation/docs/pages/extensibility/CustomServerMiddleware.md
@@ -15,7 +15,7 @@ A middleware may be executed before or after any other middleware. This can eith
### Example: Basic configuration
```yaml
-specVersion: "4.0"
+specVersion: "5.0"
type: application
metadata:
name: my.application
@@ -45,7 +45,7 @@ A custom middleware extension consists of a `ui5.yaml` and a [custom middleware
### Example: ui5.yaml
```yaml
-specVersion: "4.0"
+specVersion: "5.0"
kind: extension
type: server-middleware
metadata:
@@ -65,7 +65,7 @@ The UI5 Server will detect the custom middleware configuration of the project an
```yaml
# Project configuration for the above example
-specVersion: "4.0"
+specVersion: "5.0"
kind: project
type: application
metadata:
@@ -76,7 +76,7 @@ server:
beforeMiddleware: serveResources
---
# Custom middleware extension as part of your project
-specVersion: "4.0"
+specVersion: "5.0"
kind: extension
type: server-middleware
metadata:
diff --git a/packages/documentation/docs/pages/extensibility/CustomTasks.md b/packages/documentation/docs/pages/extensibility/CustomTasks.md
index 82d5fd9eb75..b35dfc71046 100644
--- a/packages/documentation/docs/pages/extensibility/CustomTasks.md
+++ b/packages/documentation/docs/pages/extensibility/CustomTasks.md
@@ -20,7 +20,7 @@ Another custom task called `render-markdown-files` is then executed immediately
```yaml
# In this example configuration, two custom tasks are defined: 'babel' and 'render-markdown-files'.
-specVersion: "4.0"
+specVersion: "5.0"
type: library
metadata:
name: my.library
@@ -41,7 +41,7 @@ You can also connect multiple custom tasks with each other. The order in the con
```yaml
# In this example, 'my-custom-task-2' gets executed after 'my-custom-task-1'.
-specVersion: "4.0"
+specVersion: "5.0"
type: library
metadata:
name: my.library
@@ -60,7 +60,7 @@ A custom task extension consists of a `ui5.yaml` and a [task implementation](#ta
### Example: ui5.yaml
```yaml
-specVersion: "4.0"
+specVersion: "5.0"
kind: extension
type: task
metadata:
@@ -80,7 +80,7 @@ The task extension will then be automatically collected and processed during the
```yaml
# Project configuration for the above example
-specVersion: "4.0"
+specVersion: "5.0"
kind: project
type: library
metadata:
@@ -94,7 +94,7 @@ builder:
firstH1IsTitle: true
---
# Task extension as part of your project
-specVersion: "4.0"
+specVersion: "5.0"
kind: extension
type: task
metadata:
diff --git a/packages/documentation/docs/pages/extensibility/ProjectShims.md b/packages/documentation/docs/pages/extensibility/ProjectShims.md
index bdda5bd2cb8..2c9cc39656f 100644
--- a/packages/documentation/docs/pages/extensibility/ProjectShims.md
+++ b/packages/documentation/docs/pages/extensibility/ProjectShims.md
@@ -5,7 +5,7 @@ Also see [RFC 0002 Project Shims](https://github.com/UI5/cli/blob/main/rfcs/0002
#### Structure
```yaml
-specVersion: "4.0"
+specVersion: "5.0"
kind: extension
type: project-shim
metadata:
@@ -13,12 +13,12 @@ metadata:
shims:
configurations:
:
- specVersion: "4.0"
+ specVersion: "5.0"
type:
metadata:
name:
:
- specVersion: "4.0"
+ specVersion: "5.0"
type:
metadata:
name:
@@ -61,12 +61,12 @@ An application "my-application" defines a npm dependency to [lodash](https://lod
**ui5.yaml**
```yaml
-specVersion: "4.0"
+specVersion: "5.0"
type: application
metadata:
name: my.application
--- # Everything below this line could also be put into the ui5.yaml of a standalone extension module
-specVersion: "4.0"
+specVersion: "5.0"
kind: extension
type: project-shim
metadata:
@@ -74,7 +74,7 @@ metadata:
shims:
configurations:
lodash: # name as defined in package.json
- specVersion: "4.0"
+ specVersion: "5.0"
type: module # Use module type
metadata:
name: lodash
@@ -142,12 +142,12 @@ application-a/
The shim defined in the application configures the legacy libraries and defines their dependencies. This shim might as well be a standalone module that is added to the applications dependencies. That would be the typical reuse scenario for shims.
```yaml
-specVersion: "4.0"
+specVersion: "5.0"
type: application
metadata:
name: application.a
----
-specVersion: "4.0"
+specVersion: "5.0"
kind: extension
type: project-shim
metadata:
@@ -155,17 +155,17 @@ metadata:
shims:
configurations:
legacy-library-a:
- specVersion: "4.0"
+ specVersion: "5.0"
type: library
metadata:
name: legacy.library.a
legacy-library-b:
- specVersion: "4.0"
+ specVersion: "5.0"
type: library
metadata:
name: legacy.library.b
legacy-library-x:
- specVersion: "4.0"
+ specVersion: "5.0"
type: library
metadata:
name: legacy.library.x
diff --git a/packages/project/lib/specifications/SpecificationVersion.js b/packages/project/lib/specifications/SpecificationVersion.js
index 6448f1638ad..bff0a656de8 100644
--- a/packages/project/lib/specifications/SpecificationVersion.js
+++ b/packages/project/lib/specifications/SpecificationVersion.js
@@ -5,7 +5,8 @@ const SUPPORTED_VERSIONS = [
"0.1", "1.0", "1.1",
"2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6",
"3.0", "3.1", "3.2",
- "4.0"
+ "4.0",
+ "5.0",
];
/**
diff --git a/packages/project/lib/validation/schema/specVersion/kind/extension.json b/packages/project/lib/validation/schema/specVersion/kind/extension.json
index 274d67748a2..5c91fca6820 100644
--- a/packages/project/lib/validation/schema/specVersion/kind/extension.json
+++ b/packages/project/lib/validation/schema/specVersion/kind/extension.json
@@ -5,7 +5,7 @@
"type": "object",
"required": ["specVersion", "kind", "type", "metadata"],
"properties": {
- "specVersion": { "enum": ["4.0", "3.2", "3.1", "3.0", "2.6", "2.5", "2.4", "2.3", "2.2", "2.1", "2.0"] },
+ "specVersion": { "enum": ["5.0", "4.0", "3.2", "3.1", "3.0", "2.6", "2.5", "2.4", "2.3", "2.2", "2.1", "2.0"] },
"kind": {
"enum": ["extension"]
},
diff --git a/packages/project/lib/validation/schema/specVersion/kind/extension/project-shim.json b/packages/project/lib/validation/schema/specVersion/kind/extension/project-shim.json
index d7877e3af93..1284eec8a29 100644
--- a/packages/project/lib/validation/schema/specVersion/kind/extension/project-shim.json
+++ b/packages/project/lib/validation/schema/specVersion/kind/extension/project-shim.json
@@ -6,14 +6,14 @@
"required": ["specVersion", "kind", "type", "metadata", "shims"],
"if": {
"properties": {
- "specVersion": { "enum": ["3.0", "3.1", "3.2", "4.0"] }
+ "specVersion": { "enum": ["3.0", "3.1", "3.2", "4.0", "5.0"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
"specVersion": {
- "enum": ["3.0", "3.1", "3.2", "4.0"]
+ "enum": ["3.0", "3.1", "3.2", "4.0", "5.0"]
},
"kind": {
"enum": ["extension"]
diff --git a/packages/project/lib/validation/schema/specVersion/kind/extension/server-middleware.json b/packages/project/lib/validation/schema/specVersion/kind/extension/server-middleware.json
index de4628ecb92..d1b99ac426f 100644
--- a/packages/project/lib/validation/schema/specVersion/kind/extension/server-middleware.json
+++ b/packages/project/lib/validation/schema/specVersion/kind/extension/server-middleware.json
@@ -7,13 +7,13 @@
"required": ["specVersion", "kind", "type", "metadata", "middleware"],
"if": {
"properties": {
- "specVersion": { "enum": ["3.0", "3.1", "3.2", "4.0"] }
+ "specVersion": { "enum": ["3.0", "3.1", "3.2", "4.0", "5.0"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
- "specVersion": { "enum": ["3.0", "3.1", "3.2", "4.0"] },
+ "specVersion": { "enum": ["3.0", "3.1", "3.2", "4.0", "5.0"] },
"kind": {
"enum": ["extension"]
},
diff --git a/packages/project/lib/validation/schema/specVersion/kind/extension/task.json b/packages/project/lib/validation/schema/specVersion/kind/extension/task.json
index 4fb3496a2d4..22a8b6b9df5 100644
--- a/packages/project/lib/validation/schema/specVersion/kind/extension/task.json
+++ b/packages/project/lib/validation/schema/specVersion/kind/extension/task.json
@@ -6,13 +6,13 @@
"required": ["specVersion", "kind", "type", "metadata", "task"],
"if": {
"properties": {
- "specVersion": { "enum": ["3.0", "3.1", "3.2", "4.0"] }
+ "specVersion": { "enum": ["3.0", "3.1", "3.2", "4.0", "5.0"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
- "specVersion": { "enum": ["3.0", "3.1", "3.2", "4.0"] },
+ "specVersion": { "enum": ["3.0", "3.1", "3.2", "4.0", "5.0"] },
"kind": {
"enum": ["extension"]
},
diff --git a/packages/project/lib/validation/schema/specVersion/kind/project.json b/packages/project/lib/validation/schema/specVersion/kind/project.json
index d1167eba986..278dd340d6a 100644
--- a/packages/project/lib/validation/schema/specVersion/kind/project.json
+++ b/packages/project/lib/validation/schema/specVersion/kind/project.json
@@ -5,7 +5,7 @@
"type": "object",
"required": ["specVersion", "type"],
"properties": {
- "specVersion": { "enum": ["4.0", "3.2", "3.1", "3.0", "2.6", "2.5", "2.4", "2.3", "2.2", "2.1", "2.0"] },
+ "specVersion": { "enum": ["5.0", "4.0", "3.2", "3.1", "3.0", "2.6", "2.5", "2.4", "2.3", "2.2", "2.1", "2.0"] },
"kind": {
"enum": ["project", null],
"$comment": "Using null to allow not defining 'kind' which defaults to project"
diff --git a/packages/project/lib/validation/schema/specVersion/kind/project/application.json b/packages/project/lib/validation/schema/specVersion/kind/project/application.json
index 46f05b9753b..ba49da7314f 100644
--- a/packages/project/lib/validation/schema/specVersion/kind/project/application.json
+++ b/packages/project/lib/validation/schema/specVersion/kind/project/application.json
@@ -6,13 +6,13 @@
"required": ["specVersion", "type", "metadata"],
"if": {
"properties": {
- "specVersion": { "enum": ["4.0"] }
+ "specVersion": { "enum": ["4.0", "5.0"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
- "specVersion": { "enum": ["4.0"] },
+ "specVersion": { "enum": ["4.0", "5.0"] },
"kind": {
"enum": ["project", null]
},
diff --git a/packages/project/lib/validation/schema/specVersion/kind/project/library.json b/packages/project/lib/validation/schema/specVersion/kind/project/library.json
index 8a039254010..0adabfbd0a4 100644
--- a/packages/project/lib/validation/schema/specVersion/kind/project/library.json
+++ b/packages/project/lib/validation/schema/specVersion/kind/project/library.json
@@ -6,13 +6,13 @@
"required": ["specVersion", "type", "metadata"],
"if": {
"properties": {
- "specVersion": { "enum": ["4.0"] }
+ "specVersion": { "enum": ["4.0", "5.0"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
- "specVersion": { "enum": ["4.0"] },
+ "specVersion": { "enum": ["4.0", "5.0"] },
"kind": {
"enum": ["project", null]
},
diff --git a/packages/project/lib/validation/schema/specVersion/kind/project/module.json b/packages/project/lib/validation/schema/specVersion/kind/project/module.json
index 1e38cfcdf0f..7df469a6cb6 100644
--- a/packages/project/lib/validation/schema/specVersion/kind/project/module.json
+++ b/packages/project/lib/validation/schema/specVersion/kind/project/module.json
@@ -6,13 +6,13 @@
"required": ["specVersion", "type", "metadata"],
"if": {
"properties": {
- "specVersion": { "enum": ["3.1", "3.2", "4.0"] }
+ "specVersion": { "enum": ["3.1", "3.2", "4.0", "5.0"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
- "specVersion": { "enum": ["3.1", "3.2", "4.0"] },
+ "specVersion": { "enum": ["3.1", "3.2", "4.0", "5.0"] },
"kind": {
"enum": ["project", null]
},
diff --git a/packages/project/lib/validation/schema/specVersion/kind/project/theme-library.json b/packages/project/lib/validation/schema/specVersion/kind/project/theme-library.json
index db0853b33a2..a08b1f7aa3b 100644
--- a/packages/project/lib/validation/schema/specVersion/kind/project/theme-library.json
+++ b/packages/project/lib/validation/schema/specVersion/kind/project/theme-library.json
@@ -6,13 +6,13 @@
"required": ["specVersion", "type", "metadata"],
"if": {
"properties": {
- "specVersion": { "enum": ["3.0", "3.1", "3.2", "4.0"] }
+ "specVersion": { "enum": ["3.0", "3.1", "3.2", "4.0", "5.0"] }
}
},
"then": {
"additionalProperties": false,
"properties": {
- "specVersion": { "enum": ["3.0", "3.1", "3.2", "4.0"] },
+ "specVersion": { "enum": ["3.0", "3.1", "3.2", "4.0", "5.0"] },
"kind": {
"enum": ["project", null]
},
diff --git a/packages/project/lib/validation/schema/specVersion/specVersion.json b/packages/project/lib/validation/schema/specVersion/specVersion.json
index 1126cb0e8a7..0eb21bdd9af 100644
--- a/packages/project/lib/validation/schema/specVersion/specVersion.json
+++ b/packages/project/lib/validation/schema/specVersion/specVersion.json
@@ -5,7 +5,7 @@
"type": "object",
"required": ["specVersion"],
"properties": {
- "specVersion": { "enum": ["4.0", "3.2", "3.1", "3.0", "2.6", "2.5", "2.4", "2.3", "2.2", "2.1", "2.0"] },
+ "specVersion": { "enum": ["5.0", "4.0", "3.2", "3.1", "3.0", "2.6", "2.5", "2.4", "2.3", "2.2", "2.1", "2.0"] },
"kind": {
"enum": ["project", "extension", null],
"$comment": "Using null to allow not defining 'kind' which defaults to project"
diff --git a/packages/project/lib/validation/schema/ui5.json b/packages/project/lib/validation/schema/ui5.json
index 0511c7fdd2a..11b732a63db 100644
--- a/packages/project/lib/validation/schema/ui5.json
+++ b/packages/project/lib/validation/schema/ui5.json
@@ -10,18 +10,19 @@
"properties": {
"specVersion": {
"enum": [
+ "5.0",
"4.0",
"3.2", "3.1", "3.0",
"2.6", "2.5", "2.4", "2.3", "2.2", "2.1", "2.0",
"1.1", "1.0", "0.1"
],
- "errorMessage": "Unsupported \"specVersion\"\nYour UI5 CLI installation might be outdated.\nSupported specification versions: \"4.0\", \"3.2\", \"3.1\", \"3.0\", \"2.6\", \"2.5\", \"2.4\", \"2.3\", \"2.2\", \"2.1\", \"2.0\", \"1.1\", \"1.0\", \"0.1\"\nFor details, see: https://ui5.github.io/cli/pages/Configuration/#specification-versions"
+ "errorMessage": "Unsupported \"specVersion\"\nYour UI5 CLI installation might be outdated.\nSupported specification versions: \"5.0\", \"4.0\", \"3.2\", \"3.1\", \"3.0\", \"2.6\", \"2.5\", \"2.4\", \"2.3\", \"2.2\", \"2.1\", \"2.0\", \"1.1\", \"1.0\", \"0.1\"\nFor details, see: https://ui5.github.io/cli/pages/Configuration/#specification-versions"
}
},
"if": {
"properties": {
- "specVersion": { "enum": ["4.0", "3.2", "3.1", "3.0", "2.6", "2.5", "2.4", "2.3", "2.2", "2.1", "2.0"] }
+ "specVersion": { "enum": ["5.0", "4.0", "3.2", "3.1", "3.0", "2.6", "2.5", "2.4", "2.3", "2.2", "2.1", "2.0"] }
}
},
"then": {
diff --git a/packages/project/test/lib/specifications/SpecificationVersion.js b/packages/project/test/lib/specifications/SpecificationVersion.js
index 45d90a39fe1..6ad82351c30 100644
--- a/packages/project/test/lib/specifications/SpecificationVersion.js
+++ b/packages/project/test/lib/specifications/SpecificationVersion.js
@@ -73,6 +73,7 @@ test("(instance) satisfies", (t) => {
t.is(new SpecificationVersion("2.3").satisfies(">=2.2"), true);
t.is(new SpecificationVersion("3.1").satisfies(">=2.2"), true);
t.is(new SpecificationVersion("4.0").satisfies(">=2.2"), true);
+ t.is(new SpecificationVersion("5.0").satisfies(">=2.2"), true);
// range: > 1.0
t.is(new SpecificationVersion("1.0").satisfies("> 1.0"), false);
@@ -239,14 +240,14 @@ test("(static) getVersionsForRange", (t) => {
// range: >=2.2
t.deepEqual(SpecificationVersion.getVersionsForRange(">=2.2"), [
"2.2", "2.3", "2.4", "2.5", "2.6",
- "3.0", "3.1", "3.2", "4.0"
+ "3.0", "3.1", "3.2", "4.0", "5.0"
]);
// range: > 1.0
t.deepEqual(SpecificationVersion.getVersionsForRange("> 1.0"), [
"1.1",
"2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6",
- "3.0", "3.1", "3.2", "4.0"
+ "3.0", "3.1", "3.2", "4.0", "5.0"
]);
// range: 2.2 - 2.4
diff --git a/packages/project/test/lib/validation/schema/ui5.js b/packages/project/test/lib/validation/schema/ui5.js
index 7cdf1df7423..be965ca7daf 100644
--- a/packages/project/test/lib/validation/schema/ui5.js
+++ b/packages/project/test/lib/validation/schema/ui5.js
@@ -102,7 +102,7 @@ test("Invalid specVersion", async (t) => {
message:
"Unsupported \"specVersion\"\n" +
"Your UI5 CLI installation might be outdated.\n" +
-"Supported specification versions: \"4.0\", \"3.2\", \"3.1\", \"3.0\", \"2.6\", " +
+"Supported specification versions: \"5.0\", \"4.0\", \"3.2\", \"3.1\", \"3.0\", \"2.6\", " +
"\"2.5\", \"2.4\", \"2.3\", \"2.2\", \"2.1\", \"2.0\", \"1.1\", \"1.0\", \"0.1\"\n" +
"For details, see: https://ui5.github.io/cli/pages/Configuration/#specification-versions",
params: {
@@ -113,6 +113,7 @@ test("Invalid specVersion", async (t) => {
message: "should be equal to one of the allowed values",
params: {
allowedValues: [
+ "5.0",
"4.0",
"3.2",
"3.1",