@ui5/server 3.1.0 → 3.1.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/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/v3.1.0...HEAD).
5
+ A list of unreleased changes can be found [here](https://github.com/SAP/ui5-server/compare/v3.1.2...HEAD).
6
+
7
+ <a name="v3.1.2"></a>
8
+ ## [v3.1.2] - 2023-04-06
9
+ ### Bug Fixes
10
+ - Fix JSDoc names of typedefs in MiddlewareUtil. [`dbd6fe1`](https://github.com/SAP/ui5-server/commit/dbd6fe19c229471ba2b8621b97b8f5a9bca56a78)
11
+
12
+
13
+ <a name="v3.1.1"></a>
14
+ ## [v3.1.1] - 2023-03-16
15
+ ### Bug Fixes
16
+ - Allow serving of propertyfiles of non component project types [`1bc6ec7`](https://github.com/SAP/ui5-server/commit/1bc6ec72a15ae7df558c4938b2670d0e78af710b)
17
+
6
18
 
7
19
  <a name="v3.1.0"></a>
8
20
  ## [v3.1.0] - 2023-03-01
@@ -302,6 +314,8 @@ Only Node.js v10 or higher is supported.
302
314
 
303
315
  <a name="v0.0.1"></a>
304
316
  ## v0.0.1 - 2018-06-06
317
+ [v3.1.2]: https://github.com/SAP/ui5-server/compare/v3.1.1...v3.1.2
318
+ [v3.1.1]: https://github.com/SAP/ui5-server/compare/v3.1.0...v3.1.1
305
319
  [v3.1.0]: https://github.com/SAP/ui5-server/compare/v3.0.1...v3.1.0
306
320
  [v3.0.1]: https://github.com/SAP/ui5-server/compare/v3.0.0...v3.0.1
307
321
  [v3.0.0]: https://github.com/SAP/ui5-server/compare/v2.4.0...v3.0.0
@@ -101,7 +101,7 @@ class MiddlewareUtil {
101
101
  * For details on individual functions, see [Project]{@link @ui5/project/specifications/Project}
102
102
  *
103
103
  * @public
104
- * @typedef {object} @ui5/project/build/helpers/MiddlewareUtill~ProjectInterface
104
+ * @typedef {object} @ui5/server/middleware/MiddlewareUtil~ProjectInterface
105
105
  * @property {Function} getType Get the project type
106
106
  * @property {Function} getName Get the project name
107
107
  * @property {Function} getVersion Get the project version
@@ -127,7 +127,7 @@ class MiddlewareUtil {
127
127
  * @param {string|@ui5/fs/Resource} [projectNameOrResource]
128
128
  * Name of the project to retrieve or a Resource instance to retrieve the associated project for.
129
129
  * Defaults to the name of the current root project
130
- * @returns {@ui5/project/build/helpers/MiddlewareUtill~ProjectInterface|undefined}
130
+ * @returns {@ui5/server/middleware/MiddlewareUtil~ProjectInterface|undefined}
131
131
  * Specification Version-dependent interface to the Project instance or <code>undefined</code>
132
132
  * if the project name is unknown or the provided resource is not associated with any project.
133
133
  * @public
@@ -170,7 +170,7 @@ class MiddlewareUtil {
170
170
  * For details on individual functions, see [@ui5/fs/resourceFactory]{@link @ui5/fs/resourceFactory}
171
171
  *
172
172
  * @public
173
- * @typedef {object} @ui5/project/build/helpers/MiddlewareUtill~resourceFactory
173
+ * @typedef {object} @ui5/server/middleware/MiddlewareUtil~resourceFactory
174
174
  * @property {Function} createResource Creates a [Resource]{@link @ui5/fs/Resource}.
175
175
  * Accepts the same parameters as the [Resource]{@link @ui5/fs/Resource} constructor.
176
176
  * @property {Function} createReaderCollection Creates a reader collection:
@@ -192,7 +192,7 @@ class MiddlewareUtil {
192
192
  * This attribute is only available to custom server middleware extensions defining
193
193
  * <b>Specification Version 3.0 and above</b>.
194
194
  *
195
- * @type {@ui5/project/build/helpers/MiddlewareUtill~resourceFactory}
195
+ * @type {@ui5/server/middleware/MiddlewareUtil~resourceFactory}
196
196
  * @public
197
197
  */
198
198
  resourceFactory = {
@@ -39,7 +39,7 @@ function createMiddleware({resources, middlewareUtil}) {
39
39
  // Special handling for *.properties files escape non ascii characters.
40
40
  const {default: nonAsciiEscaper} = await import("@ui5/builder/processors/nonAsciiEscaper");
41
41
  const project = resource.getProject();
42
- let propertiesFileSourceEncoding = project?.getPropertiesFileSourceEncoding();
42
+ let propertiesFileSourceEncoding = project?.getPropertiesFileSourceEncoding?.();
43
43
 
44
44
  if (!propertiesFileSourceEncoding) {
45
45
  if (project && project.getSpecVersion().lte("1.1")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/server",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "UI5 Tooling - Server",
5
5
  "author": {
6
6
  "name": "SAP SE",
@@ -114,7 +114,7 @@
114
114
  "url": "git@github.com:SAP/ui5-server.git"
115
115
  },
116
116
  "dependencies": {
117
- "@ui5/builder": "^3.0.1",
117
+ "@ui5/builder": "^3.0.2",
118
118
  "@ui5/fs": "^3.0.2",
119
119
  "@ui5/logger": "^3.0.0",
120
120
  "body-parser": "^1.20.2",
@@ -125,7 +125,7 @@
125
125
  "etag": "^1.8.1",
126
126
  "express": "^4.18.2",
127
127
  "fresh": "^0.5.2",
128
- "graceful-fs": "^4.2.10",
128
+ "graceful-fs": "^4.2.11",
129
129
  "mime-types": "^2.1.35",
130
130
  "parseurl": "^1.3.3",
131
131
  "portscanner": "^2.2.0",
@@ -136,22 +136,22 @@
136
136
  },
137
137
  "devDependencies": {
138
138
  "@istanbuljs/esm-loader-hook": "^0.2.0",
139
- "@ui5/project": "^3.0.2",
139
+ "@ui5/project": "^3.1.0",
140
140
  "ava": "^5.2.0",
141
141
  "chokidar-cli": "^3.0.0",
142
142
  "cross-env": "^7.0.3",
143
143
  "depcheck": "^1.4.3",
144
144
  "docdash": "^2.0.1",
145
- "eslint": "^8.35.0",
145
+ "eslint": "^8.38.0",
146
146
  "eslint-config-google": "^0.14.0",
147
147
  "eslint-plugin-ava": "^14.0.0",
148
- "eslint-plugin-jsdoc": "^40.0.0",
149
- "esmock": "^2.1.0",
148
+ "eslint-plugin-jsdoc": "^40.3.0",
149
+ "esmock": "^2.2.1",
150
150
  "jsdoc": "^4.0.2",
151
151
  "nyc": "^15.1.0",
152
- "open-cli": "^7.1.0",
153
- "rimraf": "^4.1.2",
154
- "sinon": "^15.0.1",
152
+ "open-cli": "^7.2.0",
153
+ "rimraf": "^4.4.1",
154
+ "sinon": "^15.0.3",
155
155
  "supertest": "^6.3.3",
156
156
  "tap-xunit": "^2.4.1"
157
157
  }