@ui5/server 3.0.0-rc.0 → 3.0.0-rc.2

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/.reuse/dep5 CHANGED
@@ -25,7 +25,7 @@ Disclaimer: The code in this project may include calls to APIs (“API Calls”)
25
25
  parties the right to use of access any SAP External Product, through API Calls.
26
26
 
27
27
  Files: *
28
- Copyright: 2018-2022 SAP SE or an SAP affiliate company and UI5 Tooling contributors
28
+ Copyright: 2018-2023 SAP SE or an SAP affiliate company and UI5 Tooling contributors
29
29
  License: Apache-2.0
30
30
 
31
31
  Files: lib/middleware/serveIndex/*
@@ -36,5 +36,5 @@ Copyright: 2010 Sencha Inc.
36
36
  License: MIT
37
37
 
38
38
  Files: lib/middleware/testRunner/*
39
- Copyright: 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
39
+ Copyright: 2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
40
40
  License: Apache-2.0
package/CHANGELOG.md CHANGED
@@ -2,7 +2,13 @@
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/v3.0.0-rc.0...HEAD).
5
+ A list of unreleased changes can be found [here](https://github.com/SAP/ui5-server/compare/v3.0.0-rc.2...HEAD).
6
+
7
+ <a name="v3.0.0-rc.2"></a>
8
+ ## [v3.0.0-rc.2] - 2023-01-24
9
+
10
+ <a name="v3.0.0-rc.1"></a>
11
+ ## [v3.0.0-rc.1] - 2023-01-23
6
12
 
7
13
  <a name="v3.0.0-rc.0"></a>
8
14
  ## [v3.0.0-rc.0] - 2022-12-23
@@ -327,6 +333,8 @@ Only Node.js v10 or higher is supported.
327
333
  <a name="v0.0.1"></a>
328
334
  ## v0.0.1 - 2018-06-06
329
335
 
336
+ [v3.0.0-rc.2]: https://github.com/SAP/ui5-server/compare/v3.0.0-rc.1...v3.0.0-rc.2
337
+ [v3.0.0-rc.1]: https://github.com/SAP/ui5-server/compare/v3.0.0-rc.0...v3.0.0-rc.1
330
338
  [v3.0.0-rc.0]: https://github.com/SAP/ui5-server/compare/v3.0.0-beta.4...v3.0.0-rc.0
331
339
  [v3.0.0-beta.4]: https://github.com/SAP/ui5-server/compare/v3.0.0-beta.3...v3.0.0-beta.4
332
340
  [v3.0.0-beta.3]: https://github.com/SAP/ui5-server/compare/v3.0.0-beta.2...v3.0.0-beta.3
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-2021 SAP SE or an SAP affiliate company and UI5 Tooling contributors
189
+ Copyright 2018-2023 SAP SE or an SAP affiliate company and UI5 Tooling contributors
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
@@ -10,7 +10,9 @@
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
- Can be found here: [sap.github.io/ui5-tooling](https://sap.github.io/ui5-tooling/pages/Server/)
13
+ UI5 Server documentation can be found here: [sap.github.io/ui5-tooling](https://sap.github.io/ui5-tooling/v3/pages/Server/)
14
+
15
+ The UI5 Server API Reference can be found here: [`@ui5/server`](https://sap.github.io/ui5-tooling/v3/api/module-@ui5_server.html)
14
16
 
15
17
  ## Contributing
16
18
  Please check our [Contribution Guidelines](https://github.com/SAP/ui5-tooling/blob/main/CONTRIBUTING.md).
@@ -1,6 +1,6 @@
1
1
  import middlewareRepository from "./middlewareRepository.js";
2
2
  import MiddlewareUtil from "./MiddlewareUtil.js";
3
- import logger from "@ui5/logger";
3
+ import {getLogger} from "@ui5/logger";
4
4
  const hasOwn = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
5
5
 
6
6
  /**
@@ -300,7 +300,7 @@ class MiddlewareManager {
300
300
  const specVersion = customMiddleware.getSpecVersion();
301
301
  if (specVersion.gte("3.0")) {
302
302
  params.options.middlewareName = middlewareName;
303
- params.log = logger.getLogger(`server:custom-middleware:${middlewareDef.name}`);
303
+ params.log = getLogger(`server:custom-middleware:${middlewareDef.name}`);
304
304
  }
305
305
  const middlewareUtilInterface = middlewareUtil.getInterface(specVersion);
306
306
  if (middlewareUtilInterface) {
@@ -108,6 +108,7 @@ class MiddlewareUtil {
108
108
  * @property {Function} getNamespace Get the project namespace
109
109
  * @property {Function} getRootReader Get the project rootReader
110
110
  * @property {Function} getReader Get the project reader
111
+ * @property {Function} getSourcePath Get the local File System path of the project's source directory
111
112
  * @property {Function} getCustomConfiguration Get the project Custom Configuration
112
113
  * @property {Function} isFrameworkProject Check whether the project is a UI5-Framework project
113
114
  */
@@ -225,7 +226,8 @@ class MiddlewareUtil {
225
226
  const baseProjectInterface = {};
226
227
  bindFunctions(project, baseProjectInterface, [
227
228
  "getType", "getName", "getVersion", "getNamespace",
228
- "getRootReader", "getReader", "getCustomConfiguration", "isFrameworkProject"
229
+ "getRootReader", "getReader", "getSourcePath",
230
+ "getCustomConfiguration", "isFrameworkProject"
229
231
  ]);
230
232
  return baseProjectInterface;
231
233
  };
@@ -1,10 +1,10 @@
1
1
  import parseurl from "parseurl";
2
2
  import Router from "router";
3
3
  import querystring from "node:querystring";
4
- import logger from "@ui5/logger";
4
+ import {getLogger} from "@ui5/logger";
5
5
  import bodyParser from "body-parser";
6
6
 
7
- const log = logger.getLogger("server:middleware:csp");
7
+ const log = getLogger("server:middleware:csp");
8
8
 
9
9
  const HEADER_CONTENT_SECURITY_POLICY = "Content-Security-Policy";
10
10
  const HEADER_CONTENT_SECURITY_POLICY_REPORT_ONLY = "Content-Security-Policy-Report-Only";
@@ -1,5 +1,5 @@
1
- import logger from "@ui5/logger";
2
- const log = logger.getLogger("server:middleware:serveIndex");
1
+ import {getLogger} from "@ui5/logger";
2
+ const log = getLogger("server:middleware:serveIndex");
3
3
  import mime from "mime-types";
4
4
  import serveIndex from "./serveIndex/serveIndex.cjs";
5
5
 
@@ -49,7 +49,7 @@ function createResourceInfo(resource) {
49
49
  const isDir = stat.isDirectory();
50
50
  return {
51
51
  path: resource.getPath() + (isDir ? "/" : ""),
52
- name: resource._name + (isDir ? "/" : ""),
52
+ name: resource.getName() + (isDir ? "/" : ""),
53
53
  isDir: isDir,
54
54
  mimetype: isDir ? "" : getMimeType(resource),
55
55
  lastModified: new Date(stat.mtime).toLocaleString(),
@@ -1,5 +1,5 @@
1
- import logger from "@ui5/logger";
2
- const log = logger.getLogger("server:middleware:serveResources");
1
+ import {getLogger} from "@ui5/logger";
2
+ const log = getLogger("server:middleware:serveResources");
3
3
  import replaceStream from "replacestream";
4
4
  import etag from "etag";
5
5
  import fresh from "fresh";
@@ -4,8 +4,8 @@ const readFile = promisify(fs.readFile);
4
4
  import {fileURLToPath} from "node:url";
5
5
  import mime from "mime-types";
6
6
  import parseurl from "parseurl";
7
- import logger from "@ui5/logger";
8
- const log = logger.getLogger("server:middleware:testRunner");
7
+ import {getLogger} from "@ui5/logger";
8
+ const log = getLogger("server:middleware:testRunner");
9
9
 
10
10
  const testRunnerResourceRegEx = /\/test-resources\/sap\/ui\/qunit\/(testrunner\.(html|css)|TestRunner.js)$/;
11
11
  const resourceCache = Object.create(null);
package/lib/sslUtil.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import os from "node:os";
2
2
  import {stat, readFile, writeFile, mkdir} from "node:fs/promises";
3
3
  import path from "node:path";
4
- import logger from "@ui5/logger";
4
+ import {getLogger} from "@ui5/logger";
5
5
 
6
- const log = logger.getLogger("server:sslUtil");
6
+ const log = getLogger("server:sslUtil");
7
7
 
8
8
  /**
9
9
  * @private
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/server",
3
- "version": "3.0.0-rc.0",
3
+ "version": "3.0.0-rc.2",
4
4
  "description": "UI5 Tooling - Server",
5
5
  "author": {
6
6
  "name": "SAP SE",
@@ -35,7 +35,6 @@
35
35
  "unit": "rimraf test/tmp && ava",
36
36
  "unit-verbose": "rimraf test/tmp && cross-env UI5_LOG_LVL=verbose ava --verbose --serial",
37
37
  "unit-watch": "npm run unit -- --watch",
38
- "unit-nyan": "npm run unit -- --tap | tnyan",
39
38
  "unit-xunit": "rimraf test/tmp && ava --node-arguments=\"--experimental-loader=@istanbuljs/esm-loader-hook\" --tap | tap-xunit --dontUseCommentsAsTestNames=true > test-results.xml",
40
39
  "unit-inspect": "cross-env UI5_LOG_LVL=verbose ava debug --break",
41
40
  "coverage": "rimraf test/tmp && nyc ava --node-arguments=\"--experimental-loader=@istanbuljs/esm-loader-hook\"",
@@ -115,9 +114,9 @@
115
114
  "url": "git@github.com:SAP/ui5-server.git"
116
115
  },
117
116
  "dependencies": {
118
- "@ui5/builder": "^3.0.0-rc.0",
119
- "@ui5/fs": "^3.0.0-rc.0",
120
- "@ui5/logger": "^3.0.1-rc.0",
117
+ "@ui5/builder": "^3.0.0-rc.3",
118
+ "@ui5/fs": "^3.0.0-rc.4",
119
+ "@ui5/logger": "^3.0.1-rc.2",
121
120
  "body-parser": "^1.20.1",
122
121
  "compression": "^1.7.4",
123
122
  "cors": "^2.8.5",
@@ -137,24 +136,23 @@
137
136
  },
138
137
  "devDependencies": {
139
138
  "@istanbuljs/esm-loader-hook": "^0.2.0",
140
- "@ui5/project": "^3.0.0-beta.5",
141
- "ava": "^5.1.0",
139
+ "@ui5/project": "^3.0.0-rc.6",
140
+ "ava": "^5.1.1",
142
141
  "chokidar-cli": "^3.0.0",
143
142
  "cross-env": "^7.0.3",
144
143
  "depcheck": "^1.4.3",
145
- "docdash": "^2.0.0",
146
- "eslint": "^8.30.0",
144
+ "docdash": "^2.0.1",
145
+ "eslint": "^8.32.0",
147
146
  "eslint-config-google": "^0.14.0",
148
- "eslint-plugin-ava": "^13.2.0",
149
- "eslint-plugin-jsdoc": "^39.6.4",
147
+ "eslint-plugin-ava": "^14.0.0",
148
+ "eslint-plugin-jsdoc": "^39.6.7",
150
149
  "esmock": "^2.1.0",
151
150
  "jsdoc": "^3.6.11",
152
151
  "nyc": "^15.1.0",
153
152
  "open-cli": "^7.1.0",
154
- "rimraf": "^3.0.2",
153
+ "rimraf": "^4.1.1",
155
154
  "sinon": "^15.0.1",
156
155
  "supertest": "^6.3.3",
157
- "tap-nyan": "^1.1.0",
158
156
  "tap-xunit": "^2.4.1"
159
157
  }
160
158
  }