@adobe/helix-html-pipeline 3.8.2 → 3.8.4

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
@@ -1,3 +1,17 @@
1
+ ## [3.8.4](https://github.com/adobe/helix-html-pipeline/compare/v3.8.3...v3.8.4) (2023-01-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update adobe fixes ([254580c](https://github.com/adobe/helix-html-pipeline/commit/254580c688f8de430862042cb8f07914b023b419))
7
+
8
+ ## [3.8.3](https://github.com/adobe/helix-html-pipeline/compare/v3.8.2...v3.8.3) (2023-01-17)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * return contentbusId/path surrogate key for redirects ([d01d766](https://github.com/adobe/helix-html-pipeline/commit/d01d76612e9babd2c3f1d0499aca40b1f7c909ef))
14
+
1
15
  ## [3.8.2](https://github.com/adobe/helix-html-pipeline/compare/v3.8.1...v3.8.2) (2023-01-17)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "3.8.2",
3
+ "version": "3.8.4",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -39,10 +39,10 @@
39
39
  "node": ">=16.x"
40
40
  },
41
41
  "dependencies": {
42
- "@adobe/helix-markdown-support": "6.0.0",
42
+ "@adobe/helix-markdown-support": "6.0.1",
43
43
  "@adobe/helix-shared-utils": "2.2.0",
44
- "@adobe/mdast-util-gridtables": "1.0.3",
45
- "@adobe/remark-gridtables": "1.0.0",
44
+ "@adobe/mdast-util-gridtables": "1.0.5",
45
+ "@adobe/remark-gridtables": "1.0.1",
46
46
  "cookie": "0.5.0",
47
47
  "github-slugger": "2.0.0",
48
48
  "hast-util-raw": "8.0.0",
@@ -9,6 +9,7 @@
9
9
  * OF ANY KIND, either express or implied. See the License for the specific language
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
+ import { computeSurrogateKey } from '@adobe/helix-shared-utils';
12
13
  import { extractLastModified, updateLastModified } from '../utils/last-modified.js';
13
14
 
14
15
  /**
@@ -41,6 +42,7 @@ export default async function fetchContent(state, req, res) {
41
42
  res.status = 301;
42
43
  res.body = '';
43
44
  res.headers.set('location', redirectLocation);
45
+ res.headers.set('x-surrogate-key', await computeSurrogateKey(`${contentBusId}${info.path}`));
44
46
  res.error = 'moved';
45
47
  return;
46
48
  }