From f371ccd9e5d3502046e23abf6da0642b6c65e081 Mon Sep 17 00:00:00 2001 From: Nazar Gargol Date: Mon, 16 Sep 2019 23:05:12 +0200 Subject: [PATCH] Bumped default engines.ghost-api to v3 --- core/frontend/services/themes/engines/create.js | 4 ++-- core/frontend/services/themes/engines/defaults.json | 2 +- core/test/unit/services/themes/engines/create_spec.js | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/frontend/services/themes/engines/create.js b/core/frontend/services/themes/engines/create.js index ace0d49233..c1aa51abb5 100644 --- a/core/frontend/services/themes/engines/create.js +++ b/core/frontend/services/themes/engines/create.js @@ -16,7 +16,7 @@ const allowedKeys = ['ghost-api']; * v2 * v0.1 * canary - * + * * Goal: Extract major version from input. * * @param packageJson @@ -43,7 +43,7 @@ module.exports = (packageJson) => { if (availableApiVersions[apiVersionMajor]) { packageJson.engines['ghost-api'] = availableApiVersions[apiVersionMajor]; } else { - packageJson.engines['ghost-api'] = 'v0.1'; + packageJson.engines['ghost-api'] = 'v3'; } } diff --git a/core/frontend/services/themes/engines/defaults.json b/core/frontend/services/themes/engines/defaults.json index b91acae5cf..127de56eb3 100644 --- a/core/frontend/services/themes/engines/defaults.json +++ b/core/frontend/services/themes/engines/defaults.json @@ -1,3 +1,3 @@ { - "ghost-api": "v0.1" + "ghost-api": "v3" } diff --git a/core/test/unit/services/themes/engines/create_spec.js b/core/test/unit/services/themes/engines/create_spec.js index 87568a6573..f7de298d5a 100644 --- a/core/test/unit/services/themes/engines/create_spec.js +++ b/core/test/unit/services/themes/engines/create_spec.js @@ -10,7 +10,7 @@ describe('Themes: engines', function () { it('no engines', function () { const engines = themeEngines.create(); engines.should.eql({ - 'ghost-api': 'v0.1' + 'ghost-api': 'v3' }); }); @@ -35,7 +35,7 @@ describe('Themes: engines', function () { }); engines.should.eql({ - 'ghost-api': 'v0.1' + 'ghost-api': 'v3' }); }); @@ -47,7 +47,7 @@ describe('Themes: engines', function () { }); engines.should.eql({ - 'ghost-api': 'v0.1' + 'ghost-api': 'v3' }); }); @@ -131,7 +131,7 @@ describe('Themes: engines', function () { }); engines.should.eql({ - 'ghost-api': 'v0.1' + 'ghost-api': 'v3' }); }); });