@ui5/server 4.0.10 → 4.0.12
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 +15 -1
- package/lib/server.js +7 -6
- package/package.json +18 -17
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
|
+
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-server/compare/v4.0.12...HEAD).
|
|
6
|
+
|
|
7
|
+
<a name="v4.0.12"></a>
|
|
8
|
+
## [v4.0.12] - 2026-02-16
|
|
9
|
+
### Dependency Updates
|
|
10
|
+
- Bump body-parser from 1.20.3 to 2.2.0 ([#715](https://github.com/SAP/ui5-server/issues/715)) [`98b2ee2`](https://github.com/SAP/ui5-server/commit/98b2ee23d36c155c9d1a5541276ffb08e1cfe2f6)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<a name="v4.0.11"></a>
|
|
14
|
+
## [v4.0.11] - 2026-01-23
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
- Explicitly bind to IPv4 loopback [`9d3c252`](https://github.com/SAP/ui5-server/commit/9d3c2522667eea923aca571070bf65a514e9dd34)
|
|
17
|
+
|
|
6
18
|
|
|
7
19
|
<a name="v4.0.10"></a>
|
|
8
20
|
## [v4.0.10] - 2025-12-02
|
|
@@ -414,6 +426,8 @@ Only Node.js v10 or higher is supported.
|
|
|
414
426
|
|
|
415
427
|
<a name="v0.0.1"></a>
|
|
416
428
|
## v0.0.1 - 2018-06-06
|
|
429
|
+
[v4.0.12]: https://github.com/SAP/ui5-server/compare/v4.0.11...v4.0.12
|
|
430
|
+
[v4.0.11]: https://github.com/SAP/ui5-server/compare/v4.0.10...v4.0.11
|
|
417
431
|
[v4.0.10]: https://github.com/SAP/ui5-server/compare/v4.0.9...v4.0.10
|
|
418
432
|
[v4.0.9]: https://github.com/SAP/ui5-server/compare/v4.0.8...v4.0.9
|
|
419
433
|
[v4.0.8]: https://github.com/SAP/ui5-server/compare/v4.0.7...v4.0.8
|
package/lib/server.js
CHANGED
|
@@ -26,10 +26,11 @@ function _listen(app, port, changePortIfInUse, acceptRemoteConnections) {
|
|
|
26
26
|
const options = {};
|
|
27
27
|
|
|
28
28
|
if (!acceptRemoteConnections) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
// Unless remote connections are allowed, bind to the IPv4 loopback address
|
|
30
|
+
options.host = "127.0.0.1";
|
|
31
|
+
} // If remote connections are allowed, do not set host so the server listens on all supported interfaces
|
|
31
32
|
|
|
32
|
-
const
|
|
33
|
+
const portScanHost = options.host || "127.0.0.1";
|
|
33
34
|
let portMax;
|
|
34
35
|
if (changePortIfInUse) {
|
|
35
36
|
portMax = port + 30;
|
|
@@ -37,7 +38,7 @@ function _listen(app, port, changePortIfInUse, acceptRemoteConnections) {
|
|
|
37
38
|
portMax = port;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
|
-
portscanner.findAPortNotInUse(port, portMax,
|
|
41
|
+
portscanner.findAPortNotInUse(port, portMax, portScanHost, function(error, foundPort) {
|
|
41
42
|
if (error) {
|
|
42
43
|
reject(error);
|
|
43
44
|
return;
|
|
@@ -49,7 +50,7 @@ function _listen(app, port, changePortIfInUse, acceptRemoteConnections) {
|
|
|
49
50
|
`EADDRINUSE: Could not find available ports between ${port} and ${portMax}.`);
|
|
50
51
|
error.code = "EADDRINUSE";
|
|
51
52
|
error.errno = "EADDRINUSE";
|
|
52
|
-
error.address =
|
|
53
|
+
error.address = portScanHost;
|
|
53
54
|
error.port = portMax;
|
|
54
55
|
reject(error);
|
|
55
56
|
return;
|
|
@@ -57,7 +58,7 @@ function _listen(app, port, changePortIfInUse, acceptRemoteConnections) {
|
|
|
57
58
|
const error = new Error(`EADDRINUSE: Port ${port} is already in use.`);
|
|
58
59
|
error.code = "EADDRINUSE";
|
|
59
60
|
error.errno = "EADDRINUSE";
|
|
60
|
-
error.address =
|
|
61
|
+
error.address = portScanHost;
|
|
61
62
|
error.port = portMax;
|
|
62
63
|
reject(error);
|
|
63
64
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/server",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.12",
|
|
4
4
|
"description": "UI5 CLI - Server",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SAP SE",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"npm": ">= 8"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
|
-
"test": "npm run lint && npm run jsdoc-generate && npm run coverage
|
|
32
|
+
"test": "npm run lint && npm run jsdoc-generate && npm run coverage",
|
|
33
33
|
"test-azure": "npm run coverage-xunit",
|
|
34
34
|
"lint": "eslint ./",
|
|
35
35
|
"unit": "rimraf test/tmp && ava",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"coverage": "rimraf test/tmp && nyc ava --node-arguments=\"--experimental-loader=@istanbuljs/esm-loader-hook\"",
|
|
41
41
|
"coverage-xunit": "nyc --reporter=text --reporter=text-summary --reporter=cobertura npm run unit-xunit",
|
|
42
42
|
"jsdoc": "npm run jsdoc-generate && open-cli jsdocs/index.html",
|
|
43
|
-
"jsdoc-generate": "jsdoc -c ./jsdoc.json -t $(
|
|
43
|
+
"jsdoc-generate": "jsdoc -c ./jsdoc.json -t $(npm ls docdash --parseable | head -1) ./lib/ || (echo 'Error during JSDoc generation! Check log.' && exit 1)",
|
|
44
44
|
"jsdoc-watch": "npm run jsdoc && chokidar \"./lib/**/*.js\" -c \"npm run jsdoc-generate\"",
|
|
45
45
|
"preversion": "npm test",
|
|
46
46
|
"version": "git-chglog --sort semver --next-tag v$npm_package_version -o CHANGELOG.md v4.0.0.. && git add CHANGELOG.md",
|
|
47
47
|
"prepublishOnly": "git push --follow-tags",
|
|
48
48
|
"release-note": "git-chglog --sort semver -c .chglog/release-config.yml v$npm_package_version",
|
|
49
|
-
"
|
|
49
|
+
"knip": "knip --config knip.config.js"
|
|
50
50
|
},
|
|
51
51
|
"files": [
|
|
52
52
|
"CHANGELOG.md",
|
|
@@ -84,7 +84,8 @@
|
|
|
84
84
|
"coverage/**",
|
|
85
85
|
"test/**",
|
|
86
86
|
".eslintrc.cjs",
|
|
87
|
-
"jsdoc-plugin.cjs"
|
|
87
|
+
"jsdoc-plugin.cjs",
|
|
88
|
+
"knip.config.js"
|
|
88
89
|
],
|
|
89
90
|
"check-coverage": true,
|
|
90
91
|
"statements": 90,
|
|
@@ -117,12 +118,12 @@
|
|
|
117
118
|
"url": "git@github.com:SAP/ui5-server.git"
|
|
118
119
|
},
|
|
119
120
|
"dependencies": {
|
|
120
|
-
"@ui5/builder": "^4.1.
|
|
121
|
-
"@ui5/fs": "^4.0.
|
|
121
|
+
"@ui5/builder": "^4.1.4",
|
|
122
|
+
"@ui5/fs": "^4.0.5",
|
|
122
123
|
"@ui5/logger": "^4.0.2",
|
|
123
|
-
"body-parser": "^
|
|
124
|
+
"body-parser": "^2.2.2",
|
|
124
125
|
"compression": "^1.8.1",
|
|
125
|
-
"cors": "^2.8.
|
|
126
|
+
"cors": "^2.8.6",
|
|
126
127
|
"devcert-sanscache": "^0.5.1",
|
|
127
128
|
"escape-html": "^1.0.3",
|
|
128
129
|
"etag": "^1.8.1",
|
|
@@ -140,24 +141,24 @@
|
|
|
140
141
|
"devDependencies": {
|
|
141
142
|
"@eslint/js": "^9.8.0",
|
|
142
143
|
"@istanbuljs/esm-loader-hook": "^0.3.0",
|
|
143
|
-
"@ui5/project": "^4.0.
|
|
144
|
+
"@ui5/project": "^4.0.10",
|
|
144
145
|
"ava": "^6.4.1",
|
|
145
146
|
"chokidar-cli": "^3.0.0",
|
|
146
|
-
"cross-env": "^
|
|
147
|
-
"depcheck": "^1.4.7",
|
|
147
|
+
"cross-env": "^10.1.0",
|
|
148
148
|
"docdash": "^2.0.2",
|
|
149
|
-
"eslint": "^9.39.
|
|
149
|
+
"eslint": "^9.39.2",
|
|
150
150
|
"eslint-config-google": "^0.14.0",
|
|
151
151
|
"eslint-plugin-ava": "^15.1.0",
|
|
152
|
-
"eslint-plugin-jsdoc": "
|
|
152
|
+
"eslint-plugin-jsdoc": "61.5.0",
|
|
153
153
|
"esmock": "^2.7.3",
|
|
154
154
|
"globals": "^16.5.0",
|
|
155
155
|
"jsdoc": "^4.0.5",
|
|
156
|
+
"knip": "^5.83.1",
|
|
156
157
|
"nyc": "^17.1.0",
|
|
157
158
|
"open-cli": "^8.0.0",
|
|
158
|
-
"rimraf": "^6.1.
|
|
159
|
-
"sinon": "^21.0.
|
|
160
|
-
"supertest": "^7.
|
|
159
|
+
"rimraf": "^6.1.3",
|
|
160
|
+
"sinon": "^21.0.1",
|
|
161
|
+
"supertest": "^7.2.2",
|
|
161
162
|
"tap-xunit": "^2.4.1"
|
|
162
163
|
}
|
|
163
164
|
}
|