@ui5/server 4.0.6 → 4.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -2
- package/CONTRIBUTING.md +2 -2
- package/README.md +17 -8
- package/jsdoc.json +6 -6
- package/lib/middleware/MiddlewareManager.js +2 -2
- package/lib/middleware/serveResources.js +1 -1
- package/lib/server.js +1 -1
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -2,10 +2,19 @@
|
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
4
4
|
|
|
5
|
-
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-server/compare/v4.0.
|
|
5
|
+
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-server/compare/v4.0.8...HEAD).
|
|
6
|
+
|
|
7
|
+
<a name="v4.0.8"></a>
|
|
8
|
+
## [v4.0.8] - 2025-10-23
|
|
9
|
+
|
|
10
|
+
<a name="v4.0.7"></a>
|
|
11
|
+
## [v4.0.7] - 2025-09-11
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
- Rename project to UI5 CLI [`ece7424`](https://github.com/SAP/ui5-server/commit/ece7424419f39eab655027043871048e0476d272)
|
|
14
|
+
|
|
6
15
|
|
|
7
16
|
<a name="v4.0.6"></a>
|
|
8
|
-
## [v4.0.6] - 2025-06-
|
|
17
|
+
## [v4.0.6] - 2025-06-06
|
|
9
18
|
### Bug Fixes
|
|
10
19
|
- Log error in case UI5 Server uses HTTP/2 with Node 24 ([#722](https://github.com/SAP/ui5-server/issues/722)) [`71dd7af`](https://github.com/SAP/ui5-server/commit/71dd7afc946dd4d56005a9f430148670cae5e76c)
|
|
11
20
|
|
|
@@ -399,6 +408,8 @@ Only Node.js v10 or higher is supported.
|
|
|
399
408
|
|
|
400
409
|
<a name="v0.0.1"></a>
|
|
401
410
|
## v0.0.1 - 2018-06-06
|
|
411
|
+
[v4.0.8]: https://github.com/SAP/ui5-server/compare/v4.0.7...v4.0.8
|
|
412
|
+
[v4.0.7]: https://github.com/SAP/ui5-server/compare/v4.0.6...v4.0.7
|
|
402
413
|
[v4.0.6]: https://github.com/SAP/ui5-server/compare/v4.0.5...v4.0.6
|
|
403
414
|
[v4.0.5]: https://github.com/SAP/ui5-server/compare/v4.0.4...v4.0.5
|
|
404
415
|
[v4.0.4]: https://github.com/SAP/ui5-server/compare/v4.0.3...v4.0.4
|
package/CONTRIBUTING.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# Contributing to the UI5
|
|
1
|
+
# Contributing to the UI5 CLI
|
|
2
2
|
|
|
3
|
-
See CONTRIBUTING.md in the [
|
|
3
|
+
See CONTRIBUTING.md in the [UI5/cli](https://github.com/UI5/cli/blob/main/CONTRIBUTING.md) repository.
|
package/README.md
CHANGED
|
@@ -1,26 +1,35 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
# ui5-server
|
|
4
|
+
|
|
5
|
+
> ⚠️ **REPOSITORY MOVED**
|
|
6
|
+
>
|
|
7
|
+
> The `@ui5/server` package is now maintained in the [UI5 CLI monorepo](https://github.com/UI5/cli). This repository contains the code up to and including CLI version 4, with further development continuing in the monorepo.
|
|
8
|
+
>
|
|
9
|
+
> - **New location**: https://github.com/UI5/cli/tree/main/packages/server
|
|
10
|
+
> - **Issues & PRs**: Please submit to the [monorepo](https://github.com/UI5/cli/issues)
|
|
11
|
+
> - **Latest releases**: Available from the monorepo
|
|
12
|
+
|
|
4
13
|
> Modules for running a UI5 development server
|
|
5
|
-
> Part of the [UI5
|
|
14
|
+
> Part of the [UI5 CLI](https://github.com/UI5/cli)
|
|
6
15
|
|
|
7
16
|
[](https://api.reuse.software/info/github.com/SAP/ui5-server)
|
|
8
|
-
[](https://dev.azure.com/sap/opensource/_build/latest?definitionId=34&branchName=v4)
|
|
9
18
|
[](https://www.npmjs.com/package/@ui5/server)
|
|
10
19
|
[](https://coveralls.io/github/SAP/ui5-server)
|
|
11
20
|
|
|
12
21
|
## Documentation
|
|
13
|
-
UI5 Server documentation can be found here: [
|
|
22
|
+
UI5 Server documentation can be found here: [ui5.github.io/cli](https://ui5.github.io/cli/v4/pages/Server/)
|
|
14
23
|
|
|
15
|
-
The UI5 Server API Reference can be found here: [`@ui5/server`](https://
|
|
24
|
+
The UI5 Server API Reference can be found here: [`@ui5/server`](https://ui5.github.io/cli/v4/api/module-@ui5_server.html)
|
|
16
25
|
|
|
17
26
|
## Contributing
|
|
18
|
-
Please check our [Contribution Guidelines](https://github.com/
|
|
27
|
+
Please check our [Contribution Guidelines](https://github.com/UI5/cli/blob/main/CONTRIBUTING.md).
|
|
19
28
|
|
|
20
29
|
## Support
|
|
21
|
-
Please follow our [Contribution Guidelines](https://github.com/
|
|
30
|
+
Please follow our [Contribution Guidelines](https://github.com/UI5/cli/blob/main/CONTRIBUTING.md#report-an-issue) on how to report an issue.
|
|
22
31
|
|
|
23
|
-
Please report issues in the main [UI5
|
|
32
|
+
Please report issues in the main [UI5 CLI](https://github.com/UI5/cli) repository.
|
|
24
33
|
|
|
25
34
|
## Release History
|
|
26
35
|
See [CHANGELOG.md](CHANGELOG.md).
|
package/jsdoc.json
CHANGED
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"openGraph": {
|
|
28
|
-
"title": "UI5
|
|
28
|
+
"title": "UI5 CLI - API Reference",
|
|
29
29
|
"type": "website",
|
|
30
|
-
"image": "https://
|
|
31
|
-
"site_name": "UI5
|
|
32
|
-
"url": "https://
|
|
30
|
+
"image": "https://ui5.github.io/cli/v4/images/UI5_logo_wide.png",
|
|
31
|
+
"site_name": "UI5 CLI - API Reference",
|
|
32
|
+
"url": "https://ui5.github.io/cli/"
|
|
33
33
|
},
|
|
34
34
|
"docdash": {
|
|
35
35
|
"sectionOrder": [
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"Interfaces"
|
|
44
44
|
],
|
|
45
45
|
"meta": {
|
|
46
|
-
"title": "UI5
|
|
47
|
-
"description": "UI5
|
|
46
|
+
"title": "UI5 CLI - API Reference - UI5 Server",
|
|
47
|
+
"description": "UI5 CLI - API Reference - UI5 Server",
|
|
48
48
|
"keyword": "openui5 sapui5 ui5 build development tool api reference"
|
|
49
49
|
},
|
|
50
50
|
"search": true,
|
|
@@ -101,8 +101,8 @@ class MiddlewareManager {
|
|
|
101
101
|
throw new Error(
|
|
102
102
|
`Standard middleware "connectUi5Proxy", referenced by middleware "${middlewareName}" ` +
|
|
103
103
|
`in project ${this.middlewareUtil.getProject()}, ` +
|
|
104
|
-
`has been removed in this version of UI5
|
|
105
|
-
`Please see the migration guide at https://
|
|
104
|
+
`has been removed in this version of UI5 CLI and can't be referenced anymore. ` +
|
|
105
|
+
`Please see the migration guide at https://ui5.github.io/cli/updates/migrate-v3/`);
|
|
106
106
|
}
|
|
107
107
|
if (refMiddlewareIdx === -1) {
|
|
108
108
|
throw new Error(`Could not find middleware ${refMiddlewareName}, referenced by custom ` +
|
|
@@ -110,7 +110,7 @@ function createMiddleware({resources, middlewareUtil}) {
|
|
|
110
110
|
res.setHeader("ETag", etagHeader);
|
|
111
111
|
} else {
|
|
112
112
|
// Fallback to buffer if stats are not available or insufficient or resource is modified.
|
|
113
|
-
// Modified resources must use the buffer for cache invalidation so that UI5
|
|
113
|
+
// Modified resources must use the buffer for cache invalidation so that UI5 CLI changes
|
|
114
114
|
// invalidate the cache even when the original resource is not modified.
|
|
115
115
|
res.setHeader("ETag", etag(await resource.getBuffer()));
|
|
116
116
|
}
|
package/lib/server.js
CHANGED
|
@@ -182,7 +182,7 @@ export async function serve(graph, {
|
|
|
182
182
|
if (h2) {
|
|
183
183
|
const nodeVersion = parseInt(process.versions.node.split(".")[0], 10);
|
|
184
184
|
if (nodeVersion >= 24) {
|
|
185
|
-
log.error("ERROR: With Node v24, usage of HTTP/2 is no longer supported. Please check https://github.com/
|
|
185
|
+
log.error("ERROR: With Node v24, usage of HTTP/2 is no longer supported. Please check https://github.com/UI5/cli/issues/327 for updates.");
|
|
186
186
|
process.exit(1);
|
|
187
187
|
}
|
|
188
188
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/server",
|
|
3
|
-
"version": "4.0.
|
|
4
|
-
"description": "UI5
|
|
3
|
+
"version": "4.0.8",
|
|
4
|
+
"description": "UI5 CLI - Server",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SAP SE",
|
|
7
7
|
"email": "openui5@sap.com",
|
|
@@ -117,11 +117,11 @@
|
|
|
117
117
|
"url": "git@github.com:SAP/ui5-server.git"
|
|
118
118
|
},
|
|
119
119
|
"dependencies": {
|
|
120
|
-
"@ui5/builder": "^4.0
|
|
121
|
-
"@ui5/fs": "^4.0.
|
|
122
|
-
"@ui5/logger": "^4.0.
|
|
120
|
+
"@ui5/builder": "^4.1.0",
|
|
121
|
+
"@ui5/fs": "^4.0.3",
|
|
122
|
+
"@ui5/logger": "^4.0.2",
|
|
123
123
|
"body-parser": "^1.20.2",
|
|
124
|
-
"compression": "^1.8.
|
|
124
|
+
"compression": "^1.8.1",
|
|
125
125
|
"cors": "^2.8.5",
|
|
126
126
|
"devcert-sanscache": "^0.5.1",
|
|
127
127
|
"escape-html": "^1.0.3",
|
|
@@ -140,24 +140,24 @@
|
|
|
140
140
|
"devDependencies": {
|
|
141
141
|
"@eslint/js": "^9.8.0",
|
|
142
142
|
"@istanbuljs/esm-loader-hook": "^0.3.0",
|
|
143
|
-
"@ui5/project": "^4.0.
|
|
144
|
-
"ava": "^6.
|
|
143
|
+
"@ui5/project": "^4.0.7",
|
|
144
|
+
"ava": "^6.4.1",
|
|
145
145
|
"chokidar-cli": "^3.0.0",
|
|
146
146
|
"cross-env": "^7.0.3",
|
|
147
147
|
"depcheck": "^1.4.7",
|
|
148
148
|
"docdash": "^2.0.2",
|
|
149
|
-
"eslint": "^9.
|
|
149
|
+
"eslint": "^9.38.0",
|
|
150
150
|
"eslint-config-google": "^0.14.0",
|
|
151
|
-
"eslint-plugin-ava": "^15.0
|
|
152
|
-
"eslint-plugin-jsdoc": "^
|
|
153
|
-
"esmock": "^2.7.
|
|
154
|
-
"globals": "^16.
|
|
155
|
-
"jsdoc": "^4.0.
|
|
151
|
+
"eslint-plugin-ava": "^15.1.0",
|
|
152
|
+
"eslint-plugin-jsdoc": "^60.8.3",
|
|
153
|
+
"esmock": "^2.7.3",
|
|
154
|
+
"globals": "^16.4.0",
|
|
155
|
+
"jsdoc": "^4.0.5",
|
|
156
156
|
"nyc": "^17.1.0",
|
|
157
157
|
"open-cli": "^8.0.0",
|
|
158
158
|
"rimraf": "^6.0.1",
|
|
159
|
-
"sinon": "^
|
|
160
|
-
"supertest": "^7.1.
|
|
159
|
+
"sinon": "^21.0.0",
|
|
160
|
+
"supertest": "^7.1.4",
|
|
161
161
|
"tap-xunit": "^2.4.1"
|
|
162
162
|
}
|
|
163
163
|
}
|