From 382707065e308b8cedd635b48b02a4555909b445 Mon Sep 17 00:00:00 2001 From: Tobias Bocanegra Date: Thu, 11 Mar 2021 18:44:13 +0900 Subject: [PATCH] fix(embed): use data-embed v2 (#1001) --- src/html/fetch-data.js | 2 +- test/testDataEmbeds.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/html/fetch-data.js b/src/html/fetch-data.js index 0a84e9983..9f9ecedda 100644 --- a/src/html/fetch-data.js +++ b/src/html/fetch-data.js @@ -29,7 +29,7 @@ function fetch({ content: { mdast } }, { uri = resolver.createURL({ package: 'helix-services', name: 'data-embed', - version: 'v1', + version: 'v2', }); } else { uri = new URL(versionLock.transformActionURL(DATA_EMBED_SERVICE)); diff --git a/test/testDataEmbeds.js b/test/testDataEmbeds.js index dac96534f..caff6c83f 100644 --- a/test/testDataEmbeds.js +++ b/test/testDataEmbeds.js @@ -621,7 +621,7 @@ describe('Integration Test with Data Embeds (resolver)', () => { .defaultReplyHeaders({ 'Cache-Control': 'max-age=3600', }) - .get('/api/v1/web/helix/helix-services/data-embed@v1') + .get('/api/v1/web/helix/helix-services/data-embed@v2') .query(true) .reply(() => [status, data]);