From 5c262f79add1ba354e0d7726176fbaa757792660 Mon Sep 17 00:00:00 2001 From: Soapbox Bot Date: Fri, 30 Dec 2022 21:17:00 +0000 Subject: [PATCH 1/2] fix(deps): update dependency blurhash to v2 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e4b1598ec..2770c1a2f 100644 --- a/package.json +++ b/package.json @@ -105,7 +105,7 @@ "babel-plugin-react-intl": "^7.5.20", "babel-plugin-transform-react-remove-prop-types": "^0.4.24", "babel-plugin-transform-require-context": "^0.1.1", - "blurhash": "^1.1.5", + "blurhash": "^2.0.0", "bootstrap-icons": "^1.5.0", "bowser": "^2.11.0", "browserslist": "^4.16.6", diff --git a/yarn.lock b/yarn.lock index 5523b8cbf..fcb346567 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3874,10 +3874,10 @@ binary-extensions@^2.0.0: resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== -blurhash@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/blurhash/-/blurhash-1.1.5.tgz#3034104cd5dce5a3e5caa871ae2f0f1f2d0ab566" - integrity sha512-a+LO3A2DfxTaTztsmkbLYmUzUeApi0LZuKalwbNmqAHR6HhJGMt1qSV/R3wc+w4DL28holjqO3Bg74aUGavGjg== +blurhash@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/blurhash/-/blurhash-2.0.4.tgz#60642a823b50acaaf3732ddb6c7dfd721bdfef2a" + integrity sha512-r/As72u2FbucLoK5NTegM/GucxJc3d8GvHc4ngo13IO/nt2HU4gONxNLq1XPN6EM/V8Y9URIa7PcSz2RZu553A== body-parser@1.20.0: version "1.20.0" From b31c5ff06c42cfbb598b3c9ed0301fdcb9e7eed5 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 1 Jan 2023 00:46:52 -0600 Subject: [PATCH 2/2] Jest: transform blurhash with babel --- jest.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index 74e38cfdd..804234ebc 100644 --- a/jest.config.js +++ b/jest.config.js @@ -41,7 +41,7 @@ module.exports = { 'transformIgnorePatterns': [ // FIXME: react-sticky-box doesn't provide a CJS build, so transform it for now // https://github.com/codecks-io/react-sticky-box/issues/79 - `/node_modules/(?!(react-sticky-box|.+\\.(${ASSET_EXTS})$))`, + `/node_modules/(?!(react-sticky-box|blurhash|.+\\.(${ASSET_EXTS})$))`, // Ignore node_modules, except static assets // `/node_modules/(?!.+\\.(${ASSET_EXTS})$)`, ],