From 636c673a9de766bfbb67c90c767d01a1e02bd0c8 Mon Sep 17 00:00:00 2001 From: marksylee Date: Fri, 19 Feb 2021 23:25:45 +0800 Subject: [PATCH 1/5] Update fontawesome from 5.12.0 to 5.15.2 --- src/hexo/helper/cdn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hexo/helper/cdn.js b/src/hexo/helper/cdn.js index 00464b55..3a49ed8b 100644 --- a/src/hexo/helper/cdn.js +++ b/src/hexo/helper/cdn.js @@ -19,8 +19,8 @@ const PROVIDERS = { loli: 'https://fonts.loli.net/${ type }?family=${ fontname }', }, ICON: { - loli: 'https://cdnjs.loli.net/ajax/libs/font-awesome/5.12.0/css/all.min.css', - fontawesome: 'https://use.fontawesome.com/releases/v5.12.0/css/all.css', + loli: 'https://cdnjs.loli.net/ajax/libs/font-awesome/5.15.2/css/all.min.css', + fontawesome: 'https://use.fontawesome.com/releases/v5.15.2/css/all.css', }, }; From b551cc3d5a213c388ff9750607bf0f73c00389ff Mon Sep 17 00:00:00 2001 From: marksylee Date: Sat, 20 Feb 2021 11:09:24 +0800 Subject: [PATCH 2/5] update test --- src/hexo/helper/cdn.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hexo/helper/cdn.test.js b/src/hexo/helper/cdn.test.js index c7bf9fba..d062bd9e 100644 --- a/src/hexo/helper/cdn.test.js +++ b/src/hexo/helper/cdn.test.js @@ -204,7 +204,7 @@ describe('Get icon font URL', () => { test('fontawesome', () => { hexo.config.providers = { iconcdn: 'fontawesome' }; - const expected = ['https://use.fontawesome.com/releases/v5.12.0/css/all.css']; + const expected = ['https://use.fontawesome.com/releases/v5.15.2/css/all.css']; cases.forEach((func, i) => expect(func()).toBe(expected[i])); }); From ab106fcd8912f0ccd5c12133502ea7d6cac4d3ef Mon Sep 17 00:00:00 2001 From: marksylee Date: Sat, 20 Feb 2021 11:13:16 +0800 Subject: [PATCH 3/5] downgrade --- src/hexo/helper/cdn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hexo/helper/cdn.js b/src/hexo/helper/cdn.js index 3a49ed8b..b314ec3d 100644 --- a/src/hexo/helper/cdn.js +++ b/src/hexo/helper/cdn.js @@ -20,7 +20,7 @@ const PROVIDERS = { }, ICON: { loli: 'https://cdnjs.loli.net/ajax/libs/font-awesome/5.15.2/css/all.min.css', - fontawesome: 'https://use.fontawesome.com/releases/v5.15.2/css/all.css', + fontawesome: 'https://use.fontawesome.com/releases/v5.15.1/css/all.css', }, }; From 995c2eb94e3a0e6743ee09a375a83a6ec807c263 Mon Sep 17 00:00:00 2001 From: marksylee Date: Sat, 20 Feb 2021 11:13:34 +0800 Subject: [PATCH 4/5] upgrade --- src/hexo/helper/cdn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hexo/helper/cdn.js b/src/hexo/helper/cdn.js index b314ec3d..3a49ed8b 100644 --- a/src/hexo/helper/cdn.js +++ b/src/hexo/helper/cdn.js @@ -20,7 +20,7 @@ const PROVIDERS = { }, ICON: { loli: 'https://cdnjs.loli.net/ajax/libs/font-awesome/5.15.2/css/all.min.css', - fontawesome: 'https://use.fontawesome.com/releases/v5.15.1/css/all.css', + fontawesome: 'https://use.fontawesome.com/releases/v5.15.2/css/all.css', }, }; From c8ffec1fb8bf8763d5f7089fa8a0bf7e03cf1bf3 Mon Sep 17 00:00:00 2001 From: marksylee Date: Sat, 20 Feb 2021 15:55:40 +0800 Subject: [PATCH 5/5] fix lint error --- src/hexo/helper/cdn.js | 2 +- src/hexo/helper/cdn.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hexo/helper/cdn.js b/src/hexo/helper/cdn.js index 3a49ed8b..3517ffff 100644 --- a/src/hexo/helper/cdn.js +++ b/src/hexo/helper/cdn.js @@ -91,7 +91,7 @@ const UNPKG_FIXTURES = { * * // Use the function below to insert FontAwesome icon font CSS URL. * iconcdn(); - * // -> https://use.fontawesome.com/releases/v5.12.0/css/all.css + * // -> https://use.fontawesome.com/releases/v5.15.2/css/all.css */ module.exports = function (hexo) { function applyFixture(fixture, _package, version, filename) { diff --git a/src/hexo/helper/cdn.test.js b/src/hexo/helper/cdn.test.js index d062bd9e..d798b615 100644 --- a/src/hexo/helper/cdn.test.js +++ b/src/hexo/helper/cdn.test.js @@ -210,7 +210,7 @@ describe('Get icon font URL', () => { test('loli', () => { hexo.config.providers = { iconcdn: 'loli' }; - const expected = ['https://cdnjs.loli.net/ajax/libs/font-awesome/5.12.0/css/all.min.css']; + const expected = ['https://cdnjs.loli.net/ajax/libs/font-awesome/5.15.2/css/all.min.css']; cases.forEach((func, i) => expect(func()).toBe(expected[i])); });