@ui5/server 4.0.5 → 4.0.7

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 CHANGED
@@ -2,7 +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...HEAD).
5
+ A list of unreleased changes can be found [here](https://github.com/SAP/ui5-server/compare/v4.0.7...HEAD).
6
+
7
+ <a name="v4.0.7"></a>
8
+ ## [v4.0.7] - 2025-09-11
9
+ ### Bug Fixes
10
+ - Rename project to UI5 CLI [`ece7424`](https://github.com/SAP/ui5-server/commit/ece7424419f39eab655027043871048e0476d272)
11
+
12
+
13
+ <a name="v4.0.6"></a>
14
+ ## [v4.0.6] - 2025-06-06
15
+ ### Bug Fixes
16
+ - 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)
17
+
6
18
 
7
19
  <a name="v4.0.5"></a>
8
20
  ## [v4.0.5] - 2024-09-11
@@ -393,6 +405,8 @@ Only Node.js v10 or higher is supported.
393
405
 
394
406
  <a name="v0.0.1"></a>
395
407
  ## v0.0.1 - 2018-06-06
408
+ [v4.0.7]: https://github.com/SAP/ui5-server/compare/v4.0.6...v4.0.7
409
+ [v4.0.6]: https://github.com/SAP/ui5-server/compare/v4.0.5...v4.0.6
396
410
  [v4.0.5]: https://github.com/SAP/ui5-server/compare/v4.0.4...v4.0.5
397
411
  [v4.0.4]: https://github.com/SAP/ui5-server/compare/v4.0.3...v4.0.4
398
412
  [v4.0.3]: https://github.com/SAP/ui5-server/compare/v4.0.2...v4.0.3
package/CONTRIBUTING.md CHANGED
@@ -1,3 +1,3 @@
1
- # Contributing to the UI5 Tooling
1
+ # Contributing to the UI5 CLI
2
2
 
3
- See CONTRIBUTING.md in the [SAP/ui5-tooling](https://github.com/SAP/ui5-tooling/blob/main/CONTRIBUTING.md) repository.
3
+ See CONTRIBUTING.md in the [UI5/cli](https://github.com/UI5/cli/blob/main/CONTRIBUTING.md) repository.
package/LICENSE.txt CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2018-2024 SAP SE or an SAP affiliate company and UI5 Tooling contributors
189
+ Copyright [yyyy] [name of copyright owner]
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-tooling/main/docs/images/UI5_logo_wide.png)
1
+ ![UI5 icon](https://raw.githubusercontent.com/UI5/cli/main/docs/images/UI5_logo_wide.png)
2
2
 
3
3
  # ui5-server
4
4
  > Modules for running a UI5 development server
5
- > Part of the [UI5 Tooling](https://github.com/SAP/ui5-tooling)
5
+ > Part of the [UI5 CLI](https://github.com/UI5/cli)
6
6
 
7
7
  [![REUSE status](https://api.reuse.software/badge/github.com/SAP/ui5-server)](https://api.reuse.software/info/github.com/SAP/ui5-server)
8
8
  [![Build Status](https://dev.azure.com/sap/opensource/_apis/build/status/SAP.ui5-server?branchName=main)](https://dev.azure.com/sap/opensource/_build/latest?definitionId=34&branchName=main)
@@ -10,17 +10,17 @@
10
10
  [![Coverage Status](https://coveralls.io/repos/github/SAP/ui5-server/badge.svg)](https://coveralls.io/github/SAP/ui5-server)
11
11
 
12
12
  ## Documentation
13
- UI5 Server documentation can be found here: [sap.github.io/ui5-tooling](https://sap.github.io/ui5-tooling/v4/pages/Server/)
13
+ UI5 Server documentation can be found here: [ui5.github.io/cli](https://ui5.github.io/cli/v4/pages/Server/)
14
14
 
15
- The UI5 Server API Reference can be found here: [`@ui5/server`](https://sap.github.io/ui5-tooling/v4/api/module-@ui5_server.html)
15
+ The UI5 Server API Reference can be found here: [`@ui5/server`](https://ui5.github.io/cli/v4/api/module-@ui5_server.html)
16
16
 
17
17
  ## Contributing
18
- Please check our [Contribution Guidelines](https://github.com/SAP/ui5-tooling/blob/main/CONTRIBUTING.md).
18
+ Please check our [Contribution Guidelines](https://github.com/UI5/cli/blob/main/CONTRIBUTING.md).
19
19
 
20
20
  ## Support
21
- Please follow our [Contribution Guidelines](https://github.com/SAP/ui5-tooling/blob/main/CONTRIBUTING.md#report-an-issue) on how to report an issue.
21
+ Please follow our [Contribution Guidelines](https://github.com/UI5/cli/blob/main/CONTRIBUTING.md#report-an-issue) on how to report an issue.
22
22
 
23
- Please report issues in the main [UI5 Tooling](https://github.com/SAP/ui5-tooling) repository.
23
+ Please report issues in the main [UI5 CLI](https://github.com/UI5/cli) repository.
24
24
 
25
25
  ## Release History
26
26
  See [CHANGELOG.md](CHANGELOG.md).
package/jsdoc.json CHANGED
@@ -25,11 +25,11 @@
25
25
  }
26
26
  },
27
27
  "openGraph": {
28
- "title": "UI5 Tooling - API Reference",
28
+ "title": "UI5 CLI - API Reference",
29
29
  "type": "website",
30
- "image": "https://sap.github.io/ui5-tooling/v4/images/UI5_logo_wide.png",
31
- "site_name": "UI5 Tooling - API Reference",
32
- "url": "https://sap.github.io/ui5-tooling/"
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 Tooling - API Reference - UI5 Server",
47
- "description": "UI5 Tooling - API Reference - UI5 Server",
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 Tooling and can't be referenced anymore. ` +
105
- `Please see the migration guide at https://sap.github.io/ui5-tooling/updates/migrate-v3/`);
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 Tooling changes
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
@@ -3,7 +3,9 @@ import portscanner from "portscanner";
3
3
  import MiddlewareManager from "./middleware/MiddlewareManager.js";
4
4
  import {createReaderCollection} from "@ui5/fs/resourceFactory";
5
5
  import ReaderCollectionPrioritized from "@ui5/fs/ReaderCollectionPrioritized";
6
+ import {getLogger} from "@ui5/logger";
6
7
 
8
+ const log = getLogger("server");
7
9
  /**
8
10
  * @public
9
11
  * @module @ui5/server
@@ -178,6 +180,12 @@ export async function serve(graph, {
178
180
  await middlewareManager.applyMiddleware(app);
179
181
 
180
182
  if (h2) {
183
+ const nodeVersion = parseInt(process.versions.node.split(".")[0], 10);
184
+ if (nodeVersion >= 24) {
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
+ process.exit(1);
187
+ }
188
+
181
189
  app = await _addSsl({app, key, cert});
182
190
  }
183
191
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ui5/server",
3
- "version": "4.0.5",
4
- "description": "UI5 Tooling - Server",
3
+ "version": "4.0.7",
4
+ "description": "UI5 CLI - Server",
5
5
  "author": {
6
6
  "name": "SAP SE",
7
7
  "email": "openui5@sap.com",
@@ -117,47 +117,47 @@
117
117
  "url": "git@github.com:SAP/ui5-server.git"
118
118
  },
119
119
  "dependencies": {
120
- "@ui5/builder": "^4.0.3",
121
- "@ui5/fs": "^4.0.1",
122
- "@ui5/logger": "^4.0.1",
120
+ "@ui5/builder": "^4.0.11",
121
+ "@ui5/fs": "^4.0.2",
122
+ "@ui5/logger": "^4.0.2",
123
123
  "body-parser": "^1.20.2",
124
- "compression": "^1.7.4",
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",
128
128
  "etag": "^1.8.1",
129
- "express": "^4.20.0",
129
+ "express": "^4.21.2",
130
130
  "fresh": "^0.5.2",
131
131
  "graceful-fs": "^4.2.11",
132
132
  "mime-types": "^2.1.35",
133
133
  "parseurl": "^1.3.3",
134
134
  "portscanner": "^2.2.0",
135
135
  "replacestream": "^4.0.3",
136
- "router": "^2.0.0",
136
+ "router": "^2.2.0",
137
137
  "spdy": "^4.0.2",
138
138
  "yesno": "^0.4.0"
139
139
  },
140
140
  "devDependencies": {
141
141
  "@eslint/js": "^9.8.0",
142
- "@istanbuljs/esm-loader-hook": "^0.2.0",
143
- "@ui5/project": "^4.0.3",
144
- "ava": "^6.1.3",
142
+ "@istanbuljs/esm-loader-hook": "^0.3.0",
143
+ "@ui5/project": "^4.0.5",
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.10.0",
149
+ "eslint": "^9.35.0",
150
150
  "eslint-config-google": "^0.14.0",
151
- "eslint-plugin-ava": "^15.0.1",
152
- "eslint-plugin-jsdoc": "^50.2.2",
153
- "esmock": "^2.6.7",
154
- "globals": "^15.9.0",
155
- "jsdoc": "^4.0.3",
156
- "nyc": "^17.0.0",
151
+ "eslint-plugin-ava": "^15.1.0",
152
+ "eslint-plugin-jsdoc": "^52.0.4",
153
+ "esmock": "^2.7.2",
154
+ "globals": "^16.4.0",
155
+ "jsdoc": "^4.0.4",
156
+ "nyc": "^17.1.0",
157
157
  "open-cli": "^8.0.0",
158
158
  "rimraf": "^6.0.1",
159
- "sinon": "^18.0.1",
160
- "supertest": "^7.0.0",
159
+ "sinon": "^21.0.0",
160
+ "supertest": "^7.1.4",
161
161
  "tap-xunit": "^2.4.1"
162
162
  }
163
163
  }
package/.reuse/dep5 DELETED
@@ -1,40 +0,0 @@
1
- Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2
- Upstream-Name: ui5-server
3
- Upstream-Contact: SAP OpenUI5 <openui5@sap.com>
4
- Source: https://github.com/SAP/ui5-server
5
- Disclaimer: The code in this project may include calls to APIs (“API Calls”) of
6
- SAP or third-party products or services developed outside of this project
7
- (“External Products”).
8
- “APIs” means application programming interfaces, as well as their respective
9
- specifications and implementing code that allows software to communicate with
10
- other software.
11
- API Calls to External Products are not licensed under the open source license
12
- that governs this project. The use of such API Calls and related External
13
- Products are subject to applicable additional agreements with the relevant
14
- provider of the External Products. In no event shall the open source license
15
- that governs this project grant any rights in or to any External Products,or
16
- alter, expand or supersede any terms of the applicable additional agreements.
17
- If you have a valid license agreement with SAP for the use of a particular SAP
18
- External Product, then you may make use of any API Calls included in this
19
- project’s code for that SAP External Product, subject to the terms of such
20
- license agreement. If you do not have a valid license agreement for the use of
21
- a particular SAP External Product, then you may only make use of any API Calls
22
- in this project for that SAP External Product for your internal, non-productive
23
- and non-commercial test and evaluation of such API Calls. Nothing herein grants
24
- you any rights to use or access any SAP External Product, or provide any third
25
- parties the right to use of access any SAP External Product, through API Calls.
26
-
27
- Files: *
28
- Copyright: 2018-2024 SAP SE or an SAP affiliate company and UI5 Tooling contributors
29
- License: Apache-2.0
30
-
31
- Files: lib/middleware/serveIndex/*
32
- Copyright: 2010 Sencha Inc.
33
- 2011 LearnBoost
34
- 2011 TJ Holowaychuk
35
- 2014-2015 Douglas Christopher Wilson
36
- License: MIT
37
-
38
- Files: lib/middleware/testRunner/*
39
- Copyright: 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
40
- License: Apache-2.0