cds-plugin-ui5 0.6.5 → 0.6.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
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.6.7](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/cds-plugin-ui5@0.6.6...cds-plugin-ui5@0.6.7) (2023-09-13)
7
+
8
+ **Note:** Version bump only for package cds-plugin-ui5
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.6.6](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/cds-plugin-ui5@0.6.5...cds-plugin-ui5@0.6.6) (2023-09-13)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **cds-plugin-ui5:** disable compression for CDS livereload ([#841](https://github.com/ui5-community/ui5-ecosystem-showcase/issues/841)) ([9589436](https://github.com/ui5-community/ui5-ecosystem-showcase/commit/9589436ac6891a35335e857ddef7afbdf5ed323f))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.6.5](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/cds-plugin-ui5@0.6.4...cds-plugin-ui5@0.6.5) (2023-09-10)
7
26
 
8
27
 
@@ -20,6 +20,13 @@ module.exports = async function createPatchedRouter() {
20
20
  // rewite the path to simulate requests on the root level
21
21
  req.originalUrl = req.url;
22
22
  req.baseUrl = "/";
23
+ // disable the compression when livereload is used
24
+ // for loading html-related content (via accept header)
25
+ // otherwise we run into compression issue with CDS livereload
26
+ const accept = req.headers["accept"]?.indexOf("html") !== -1;
27
+ if (accept && res._livereload) {
28
+ req.headers["accept-encoding"] = "identity";
29
+ }
23
30
  // override UI5 server directory listing if:
24
31
  // 1.) not handled by the CDS Plugin UI5 already
25
32
  // 2.) only if it ends with a slash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cds-plugin-ui5",
3
- "version": "0.6.5",
3
+ "version": "0.6.7",
4
4
  "description": "A CAP server cds-plugin to inject the middlewares of all related UI5 tooling based projects.",
5
5
  "author": "Peter Muessig",
6
6
  "license": "Apache-2.0",
@@ -24,5 +24,5 @@
24
24
  "@sap/cds": ">=6.8.2",
25
25
  "express": ">=4.18.2"
26
26
  },
27
- "gitHead": "99dbd6efb0b14a10c9598042ae6bd472b125b3fe"
27
+ "gitHead": "200f3ee62e330102e204a502f93307e09911cab7"
28
28
  }