@sap/ux-ui5-tooling 1.5.4 → 1.6.1

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,6 +2,14 @@
2
2
  All notable changes to this project are documented in this file.
3
3
 
4
4
  This project adheres to [Semantic Versioning](http://semver.org/) and the changelog is formatted based on [Keep a Changelog](http://keepachangelog.com/).
5
+ ## [1.6.0] - 2022-05-05
6
+ ### Changed
7
+ - The `fiori-tools-proxy` is now using the [@sap-ux/ui5-proxy-middleware](https://www.npmjs.com/package/@sap-ux/ui5-proxy-middleware) for proxying the UI5 sources
8
+
9
+ ## [1.5.5] - 2022-04-21
10
+ ### Fixed
11
+ - Fixed an issue with the `fiori-tools-servestatic` middleware not serving files starting with a dot
12
+
5
13
  ## [1.5.4] - 2022-04-07
6
14
  ### Fixed
7
15
  - Fixed an issue with escaping runtime arguments on Windows with Node.js version 16
package/README.md CHANGED
@@ -204,6 +204,21 @@ By using the `version` parameter one can choose the SAPUI5 version which will us
204
204
  directLoad: true
205
205
  ```
206
206
 
207
+ Starting with version `1.6.0` one can use the following syntax for proxying different UI5 requests to different URLs, e.g.
208
+
209
+ ```
210
+ - name: fiori-tools-proxy
211
+ afterMiddleware: compression
212
+ configuration:
213
+ ui5:
214
+ paths:
215
+ - path: /resources
216
+ url: https://ui5.sap.com
217
+ - path: /test-resources
218
+ src: https://sapui5.hana.ondemand.com
219
+ version: '1.100.1'
220
+ ```
221
+
207
222
  ### [**3. Serve Static**](#3-serve-static)
208
223
 
209
224
  The serve static middleware provides the capability to serve any static resources locally from your machine. E.g. you can serve SAPUI5 locally or any other resources.
@@ -245,9 +260,10 @@ server:
245
260
  src: "Path/To/libs"
246
261
  ```
247
262
 
248
- ### Configuration options
263
+ ### [Configuration options](#configuration-options-1)
264
+ Additionaly you can specify any of the configuration options (excluding `setHeaders`!) of the [serve-static](https://www.npmjs.com/package/serve-static) middleware.
249
265
 
250
- - **`fallthrough`** (default: true) - client errors fall-through as just unhandled requests, otherwise forward a client error. E.g. If set to true, then the `fiori-tools-servestatic` middleware will not return 404 error, when it can't find a file on the local system, but it will simply pass the request to the next available middleware. Otherwise 404 error will be returned.
266
+ E.g. you can set `fallthrough: false`, which will cause the middleware to return 404 error, when it can't find a file on the local system:
251
267
 
252
268
  ```
253
269
  server:
@@ -256,9 +272,27 @@ server:
256
272
  afterMiddleware: compression
257
273
  configuration:
258
274
  paths:
259
- - path: /libs
260
- src: "Path/To/libs"
275
+ - path: /resources
276
+ src: "Path/To/SAPUI5-SDK"
277
+ - path: /test-resources
278
+ src: "Path/To/SAPUI5-SDK"
279
+ fallthrough: false
280
+ ```
281
+
282
+ Alternatively you can set e.g. `fallthrough: false` only for specific requests:
283
+
284
+ ```
285
+ server:
286
+ customMiddleware:
287
+ - name: fiori-tools-servestatic
288
+ afterMiddleware: compression
289
+ configuration:
290
+ paths:
291
+ - path: /resources
292
+ src: "Path/To/SAPUI5-SDK"
261
293
  fallthrough: false
294
+ - path: /test-resources
295
+ src: "Path/To/SAPUI5-SDK"
262
296
  ```
263
297
 
264
298
  ### [**4. Preview**](#4-preview)