You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The QUnit TestRunner (`testrunner.html`, `testrunner.css`,
`TestRunner.js`) is now provided by the UI5 framework (`sap.ui.core`).
All supported UI5 releases ship the relevant testrunner resources,
so the dedicated middleware is no longer needed.
JIRA: CPOUI5FOUNDATION-1158
Copy file name to clipboardExpand all lines: internal/documentation/docs/pages/Server.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,9 @@ Please be aware of the following risks when using the server:
28
28
::: info Removed Middleware
29
29
The `serveThemes` middleware has been removed in UI5 CLI v5. Theme compilation is now handled by the `buildThemes` build task, which pre-compiles all theme CSS files. The resulting CSS files (including `library.css`, `library-RTL.css`, `library-parameters.json`, and CSS Variables resources) are served via the `serveResources` middleware, providing the same functionality with better performance through build-time compilation and caching.
30
30
31
-
Custom middleware previously referencing `serveThemes` via `beforeMiddleware` or `afterMiddleware` will continue to work with automatic remapping and a deprecation warning. See the [v5 migration guide](../updates/migrate-v5.md) for details.
31
+
The `testRunner` middleware has also been removed in UI5 CLI v5. The QUnit TestRunner (`testrunner.html`, `testrunner.css`, `TestRunner.js`) is now provided by the UI5 framework (`sap.ui.core`) and is served via the `serveResources` middleware.
32
+
33
+
Custom middleware previously referencing `serveThemes` or `testRunner` via `beforeMiddleware` or `afterMiddleware` will continue to work with automatic remapping and a deprecation warning. See the [v5 migration guide](../updates/migrate-v5.md) for details.
32
34
:::
33
35
34
36
All available standard middleware are listed below in the order of their execution.
@@ -43,7 +45,6 @@ A project can also add custom middleware to the server by using the [Custom Serv
43
45
|`liveReloadClient`| See chapter [liveReload](#livereload)|
44
46
|`discovery`| See chapter [discovery](#discovery)|
45
47
|`serveResources`| See chapter [serveResources](#serveresources)|
46
-
|`testRunner`| See chapter [testRunner](#testrunner)|
47
48
|`versionInfo`| See chapter [versionInfo](#versioninfo)|
48
49
|`nonReadRequests`| See chapter [nonReadRequests](#nonreadrequests)|
49
50
|`serveIndex`| See chapter [serveIndex](#serveindex)|
@@ -105,9 +106,6 @@ The following file content transformations are executed:
105
106
- Escaping non-ASCII characters in `.properties` translation files based on a project's [configuration](./Configuration.md#encoding-of-properties-files)
106
107
- Enhancing the `manifest.json` with supported locales determined by available `.properties`[translation files](./Builder.md#generation-of-supported-locales)
107
108
108
-
### testRunner
109
-
Serves a static version of the UI5 QUnit TestRunner at `/test-resources/sap/ui/qunit/testrunner.html`.
110
-
111
109
### versionInfo
112
110
Generates and serves the version info file `/resources/sap-ui-version.json`, which is required for several framework functionalities.
Copy file name to clipboardExpand all lines: internal/documentation/docs/updates/migrate-v5.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ Or update your global install via: `npm i --global @ui5/cli@next`
19
19
20
20
-**@ui5/server: Live Reload is enabled by default for `ui5 serve`**
21
21
22
+
-**@ui5/server: Standard middleware `serveThemes` and `testRunner` have been removed**
22
23
23
24
## Node.js and npm Version Support
24
25
@@ -268,21 +269,23 @@ If your project uses a custom middleware that provides live reload functionality
268
269
The following middleware has been removed from the [standard middlewares list](../pages/Server.md#standard-middleware):
269
270
270
271
*`serveThemes` — The `buildThemes` build task now handles theme compilation (LESS to CSS). Because server sessions now also perform builds, this task runs during a server start instead of on demand during runtime. The resulting CSS files are served by the `serveResources` middleware. This change improves performance through build-time compilation and caching while maintaining the same functionality.
272
+
*`testRunner` — The UI5 QUnit TestRunner resources (`testrunner.html`, `testrunner.css`, `TestRunner.js`) are now provided by the UI5 framework (`sap.ui.core`) and served via the `serveResources` middleware. All supported UI5 releases ship the relevant testrunner resources, so the dedicated middleware is no longer needed.
271
273
272
274
**Backward Compatibility:**
273
-
If your project or any custom middleware references a removed middleware via `beforeMiddleware` or `afterMiddleware`, UI5 CLI will automatically remap the reference to the nearest remaining middleware and log a deprecation warning. Your custom middleware will still be executed in the expected order.
275
+
If your project or any custom middleware references a removed middleware via `beforeMiddleware` or `afterMiddleware`, UI5 CLI keeps a no-op placeholder in the middleware execution order at the original slot. The custom middleware is executed in the same position as before and a deprecation warning is logged.
274
276
275
277
**What Changed:**
276
278
- Theme CSS files (`library.css`, `library-RTL.css`, etc.) are now **pre-built**
277
-
-Files are served via `serveResources` instead of being compiled on demand
278
-
-The same CSS files are available at the same URLs as before
279
+
-Theme files are served via `serveResources` instead of being compiled on demand
280
+
-TestRunner resources are served via `serveResources` from the UI5 framework instead of being shipped with UI5 CLI
279
281
280
282
**Recommended Action:**
281
283
Update your `ui5.yaml` configuration to reference an existing middleware instead.
0 commit comments