From 064a55bc23835e6546c1e5c60c1ddc6a22a65b0f Mon Sep 17 00:00:00 2001 From: Keming He Date: Wed, 5 Jun 2024 22:14:59 -0400 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Minor=20patch=20bumping=20?= =?UTF-8?q?@biomejs/biome=20to=20new=201.8=20release.=20(#310)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ⬆️ Bumped BiomeJS to new 1.8 release. Added .nvmrc to specify using Node.js 18 (for devs like @KemingHe). Revised soon-deprecating BiomeJS configs such as 'trailingComma' -> 'trailingCommas' and '--apply' -> '--write'. Minor patches only. * 📝 Updated changeset with the latest BiomeJD version bump. Add multi-line, detailed description --- .changeset/slimy-socks-reflect.md | 5 ++ .github/workflows/build.yml | 9 ++- .nvmrc | 1 + biome.json | 2 +- package.json | 4 +- yarn.lock | 102 +++++++++++++++--------------- 6 files changed, 66 insertions(+), 57 deletions(-) create mode 100644 .changeset/slimy-socks-reflect.md create mode 100644 .nvmrc diff --git a/.changeset/slimy-socks-reflect.md b/.changeset/slimy-socks-reflect.md new file mode 100644 index 00000000..35932b85 --- /dev/null +++ b/.changeset/slimy-socks-reflect.md @@ -0,0 +1,5 @@ +--- +"socialify": patch +--- + +Bumped BiomeJS to new 1.8 release, updated soon-deprecating scripts. diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c981908e..9f3cbd32 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,16 +10,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - name: Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18 + - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT + - name: Cache yarn and next - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | ${{ steps.yarn-cache-dir-path.outputs.dir }} diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..25bf17fc --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +18 \ No newline at end of file diff --git a/biome.json b/biome.json index e7570493..a668525f 100644 --- a/biome.json +++ b/biome.json @@ -111,7 +111,7 @@ "formatter": { "jsxQuoteStyle": "double", "quoteProperties": "asNeeded", - "trailingComma": "es5", + "trailingCommas": "es5", "semicolons": "asNeeded", "arrowParentheses": "always", "bracketSpacing": true, diff --git a/package.json b/package.json index 7446c25d..f3a5185f 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "test:watch": "jest --watch", "start": "next start", "lint": "biome ci --verbose --max-diagnostics=999 .", - "lint:fix": "biome check --apply --verbose --max-diagnostics=999 .", - "lint:fix-unsafe": "biome check --apply-unsafe --verbose --max-diagnostics=999 .", + "lint:fix": "biome check --write --verbose --max-diagnostics=999 .", + "lint:fix-unsafe": "biome check --write-unsafe --verbose --max-diagnostics=999 .", "verify": "yarn lint && yarn test && yarn build", "download-font": "./fonts/download-font.sh", "postinstall": "cp ./node_modules/yoga-wasm-web/dist/yoga.wasm ./public/yoga.wasm; cp ./node_modules/@resvg/resvg-wasm/index_bg.wasm ./public/resvg_bg.wasm", diff --git a/yarn.lock b/yarn.lock index ae01a91a..a41b326f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -564,58 +564,58 @@ integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== "@biomejs/biome@^1.7.3": - version "1.7.3" - resolved "https://registry.yarnpkg.com/@biomejs/biome/-/biome-1.7.3.tgz#847a317b63c811534fc8108389b7a9fae8803eed" - integrity sha512-ogFQI+fpXftr+tiahA6bIXwZ7CSikygASdqMtH07J2cUzrpjyTMVc9Y97v23c7/tL1xCZhM+W9k4hYIBm7Q6cQ== + version "1.8.0" + resolved "https://registry.yarnpkg.com/@biomejs/biome/-/biome-1.8.0.tgz#393f4c530582509938d58c3856b5a50179254df8" + integrity sha512-34xcE2z8GWrIz1sCFEmlHT/+4d+SN7YOqqvzlAKXKvaWPRJ2/NUwxPbRsP01P9QODkQ5bvGvc9rpBihmP+7RJQ== optionalDependencies: - "@biomejs/cli-darwin-arm64" "1.7.3" - "@biomejs/cli-darwin-x64" "1.7.3" - "@biomejs/cli-linux-arm64" "1.7.3" - "@biomejs/cli-linux-arm64-musl" "1.7.3" - "@biomejs/cli-linux-x64" "1.7.3" - "@biomejs/cli-linux-x64-musl" "1.7.3" - "@biomejs/cli-win32-arm64" "1.7.3" - "@biomejs/cli-win32-x64" "1.7.3" - -"@biomejs/cli-darwin-arm64@1.7.3": - version "1.7.3" - resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.7.3.tgz#0b0f568f6fd2153aa1a53bddd0a55355df381952" - integrity sha512-eDvLQWmGRqrPIRY7AIrkPHkQ3visEItJKkPYSHCscSDdGvKzYjmBJwG1Gu8+QC5ed6R7eiU63LEC0APFBobmfQ== - -"@biomejs/cli-darwin-x64@1.7.3": - version "1.7.3" - resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.7.3.tgz#0eb0e9da1f869e65e6ce98a007a3341bb1c88446" - integrity sha512-JXCaIseKRER7dIURsVlAJacnm8SG5I0RpxZ4ya3dudASYUc68WGl4+FEN03ABY3KMIq7hcK1tzsJiWlmXyosZg== - -"@biomejs/cli-linux-arm64-musl@1.7.3": - version "1.7.3" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.7.3.tgz#e098110cc11552857ba46cae1e00e68805c1718a" - integrity sha512-c8AlO45PNFZ1BYcwaKzdt46kYbuP6xPGuGQ6h4j3XiEDpyseRRUy/h+6gxj07XovmyxKnSX9GSZ6nVbZvcVUAw== - -"@biomejs/cli-linux-arm64@1.7.3": - version "1.7.3" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.7.3.tgz#9e53c14acd7190ebd1e8b0a2f5a54083c118ce72" - integrity sha512-phNTBpo7joDFastnmZsFjYcDYobLTx4qR4oPvc9tJ486Bd1SfEVPHEvJdNJrMwUQK56T+TRClOQd/8X1nnjA9w== - -"@biomejs/cli-linux-x64-musl@1.7.3": - version "1.7.3" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.7.3.tgz#f27d4a267f69e663797e3204e51a373f3e33bc30" - integrity sha512-UdEHKtYGWEX3eDmVWvQeT+z05T9/Sdt2+F/7zmMOFQ7boANeX8pcO6EkJPK3wxMudrApsNEKT26rzqK6sZRTRA== - -"@biomejs/cli-linux-x64@1.7.3": - version "1.7.3" - resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64/-/cli-linux-x64-1.7.3.tgz#7112b22e32a8626d0f11d92e43d0cc034c50723d" - integrity sha512-vnedYcd5p4keT3iD48oSKjOIRPYcjSNNbd8MO1bKo9ajg3GwQXZLAH+0Cvlr+eMsO67/HddWmscSQwTFrC/uPA== - -"@biomejs/cli-win32-arm64@1.7.3": - version "1.7.3" - resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.7.3.tgz#91bed8a3ae3433c3feb6a11816b0eb19b60801ef" - integrity sha512-unNCDqUKjujYkkSxs7gFIfdasttbDC4+z0kYmcqzRk6yWVoQBL4dNLcCbdnJS+qvVDNdI9rHp2NwpQ0WAdla4Q== - -"@biomejs/cli-win32-x64@1.7.3": - version "1.7.3" - resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-x64/-/cli-win32-x64-1.7.3.tgz#41b65a940a360abb4a3205949370153ffe30c7de" - integrity sha512-ZmByhbrnmz/UUFYB622CECwhKIPjJLLPr5zr3edhu04LzbfcOrz16VYeNq5dpO1ADG70FORhAJkaIGdaVBG00w== + "@biomejs/cli-darwin-arm64" "1.8.0" + "@biomejs/cli-darwin-x64" "1.8.0" + "@biomejs/cli-linux-arm64" "1.8.0" + "@biomejs/cli-linux-arm64-musl" "1.8.0" + "@biomejs/cli-linux-x64" "1.8.0" + "@biomejs/cli-linux-x64-musl" "1.8.0" + "@biomejs/cli-win32-arm64" "1.8.0" + "@biomejs/cli-win32-x64" "1.8.0" + +"@biomejs/cli-darwin-arm64@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.8.0.tgz#b3eb9644b5bbb393e993ac5acc9570ef21907380" + integrity sha512-dBAYzfIJ1JmWigKlWourT3sJ3I60LZPjqNwwlsyFjiv5AV7vPeWlHVVIImV2BpINwNjZQhpXnwDfVnGS4vr7AA== + +"@biomejs/cli-darwin-x64@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.8.0.tgz#a31eada9b57cf33cb9655593b1df2b5ff2d4f092" + integrity sha512-ZTTSD0bP0nn9UpRDGQrQNTILcYSj+IkxTYr3CAV64DWBDtQBomlk2oVKWzDaA1LOhpAsTh0giLCbPJaVk2jfMQ== + +"@biomejs/cli-linux-arm64-musl@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.8.0.tgz#ca66b8635f8f55f320e247a5febed8bb56dc3b91" + integrity sha512-+ee/pZWsvhDv6eRI00krRNSgAg8DKSxzOv3LUsCjto6N1VzqatTASeQv2HRfG1nitf79rRKM75LkMJbqEfiKww== + +"@biomejs/cli-linux-arm64@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.8.0.tgz#147ab4d9bcfb4cc1baee90a367acf0fef5c42649" + integrity sha512-cx725jTlJS6dskvJJwwCQaaMRBKE2Qss7ukzmx27Rn/DXRxz6tnnBix4FUGPf1uZfwrERkiJlbWM05JWzpvvXg== + +"@biomejs/cli-linux-x64-musl@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.8.0.tgz#4c80358c178327fccee660f0cebcc7a78c20bcb0" + integrity sha512-VPA4ocrAOak50VYl8gOAVnjuFFDpIUolShntc/aWM0pZfSIMbRucxnrfUfp44EVwayxjK6ruJTR5xEWj93WvDA== + +"@biomejs/cli-linux-x64@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64/-/cli-linux-x64-1.8.0.tgz#de1ab7649324c72b74e16c5234ef6191a8bc34fd" + integrity sha512-cmgmhlD4QUxMhL1VdaNqnB81xBHb3R7huVNyYnPYzP+AykZ7XqJbPd1KcWAszNjUk2AHdx0aLKEBwCOWemxb2g== + +"@biomejs/cli-win32-arm64@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.8.0.tgz#1527e7bbcf9abd27302225591ef150da1656393a" + integrity sha512-J31spvlh39FfRHQacYXxJX9PvTCH/a8+2Jx9D1lxw+LSF0JybqZcw/4JrlFUWUl4kF3yv8AuYUK0sENScc3g9w== + +"@biomejs/cli-win32-x64@1.8.0": + version "1.8.0" + resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-x64/-/cli-win32-x64-1.8.0.tgz#d566d6d27ba262691eaac7c54b7a41560d390130" + integrity sha512-uPHHvu76JC1zYe9zZDcOU9PAg+1MZmPuNgWkb5jljaDeATvzLFPB+0nuJTilf603LXL+E8IdPQAO61Wy2VuEJA== "@changesets/apply-release-plan@^7.0.0": version "7.0.0"