diff --git a/README.md b/README.md index 9e7650b65..d1c96cac1 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ - マージされていない本家版へのプルリクエストを独断でマージ - RTL Layout Support ([!10452](https://git.joinfirefish.org/firefish/firefish/-/merge_requests/10452)) - Add language picker to post form ([!10616](https://git.joinfirefish.org/firefish/firefish/-/merge_requests/10616)) + - chore: up swc ([!10649](https://git.joinfirefish.org/firefish/firefish/-/merge_requests/10649)) - `emojis` の API エンドポイント(Misskey v13- 互換)を追加([firefish-mkdir](https://git.mkdir.uk/hiira/firefish-mkdir) から取り込み) - Docker のベースイメージに Node v21 を使用 - HTML のコードに入るコメントアートを削除 diff --git a/neko/pnpm-lock.yaml b/neko/pnpm-lock.yaml index 858de71fa..5c864cb6e 100644 --- a/neko/pnpm-lock.yaml +++ b/neko/pnpm-lock.yaml @@ -427,10 +427,10 @@ importers: devDependencies: '@swc/cli': specifier: 0.1.63 - version: 0.1.63(@swc/core@1.3.78)(chokidar@3.3.1) + version: 0.1.63(@swc/core@1.3.101)(chokidar@3.3.1) '@swc/core': - specifier: 1.3.78 - version: 1.3.78 + specifier: 1.3.101 + version: 1.3.101 '@types/adm-zip': specifier: 0.5.4 version: 0.5.4 @@ -568,13 +568,13 @@ importers: version: 2.0.0 swc-loader: specifier: 0.2.3 - version: 0.2.3(@swc/core@1.3.78)(webpack@5.89.0) + version: 0.2.3(@swc/core@1.3.101)(webpack@5.89.0) ts-loader: specifier: 9.5.1 version: 9.5.1(typescript@5.2.2)(webpack@5.89.0) ts-node: specifier: 10.9.1 - version: 10.9.1(@swc/core@1.3.78)(@types/node@20.9.0)(typescript@5.2.2) + version: 10.9.1(@swc/core@1.3.101)(@types/node@20.9.0)(typescript@5.2.2) tsconfig-paths: specifier: 4.2.0 version: 4.2.0 @@ -583,7 +583,7 @@ importers: version: 5.2.2 webpack: specifier: 5.89.0 - version: 5.89.0(@swc/core@1.3.78) + version: 5.89.0(@swc/core@1.3.101) ws: specifier: 8.14.2 version: 8.14.2 @@ -852,10 +852,10 @@ importers: devDependencies: '@swc/cli': specifier: 0.1.63 - version: 0.1.63(@swc/core@1.3.78)(chokidar@3.3.1) + version: 0.1.63(@swc/core@1.3.101)(chokidar@3.3.1) '@swc/core': - specifier: 1.3.78 - version: 1.3.78 + specifier: 1.3.101 + version: 1.3.101 '@swc/types': specifier: 0.1.5 version: 0.1.5 @@ -864,7 +864,7 @@ importers: version: 20.9.0 ts-node: specifier: 10.9.1 - version: 10.9.1(@swc/core@1.3.78)(@types/node@20.9.0)(typescript@5.2.2) + version: 10.9.1(@swc/core@1.3.101)(@types/node@20.9.0)(typescript@5.2.2) tsd: specifier: 0.29.0 version: 0.29.0 @@ -998,10 +998,10 @@ importers: devDependencies: '@swc/cli': specifier: 0.1.63 - version: 0.1.63(@swc/core@1.3.78)(chokidar@3.3.1) + version: 0.1.63(@swc/core@1.3.101)(chokidar@3.3.1) '@swc/core': - specifier: 1.3.78 - version: 1.3.78 + specifier: 1.3.101 + version: 1.3.101 firefish-js: specifier: workspace:* version: link:../firefish-js @@ -3144,7 +3144,7 @@ packages: resolution: {integrity: sha512-Uy0+khmZqUrUGm5dmMqVlnvufZRSK0FbYzVgp0UMstm+F5+W2/jnEEQyc9vo1ZR/E5ZI/B1WjjoTqBqwJL6Krw==} dev: false - /@swc/cli@0.1.63(@swc/core@1.3.78)(chokidar@3.3.1): + /@swc/cli@0.1.63(@swc/core@1.3.101)(chokidar@3.3.1): resolution: {integrity: sha512-EM9oxxHzmmsprYRbGqsS2M4M/Gr5Gkcl0ROYYIdlUyTkhOiX822EQiRCpPCwdutdnzH2GyaTN7wc6i0Y+CKd3A==} engines: {node: '>= 12.13'} hasBin: true @@ -3156,7 +3156,7 @@ packages: optional: true dependencies: '@mole-inc/bin-wrapper': 8.0.1 - '@swc/core': 1.3.78 + '@swc/core': 1.3.101 chokidar: 3.3.1 commander: 7.2.0 fast-glob: 3.3.2 @@ -3176,88 +3176,88 @@ packages: dev: false optional: true - /@swc/core-darwin-arm64@1.3.78: - resolution: {integrity: sha512-596KRua/d5Gx1buHKKchSyHuwoIL4S1BRD/wCvYNLNZ3xOzcuBBmXOjrDVigKi1ztNDeS07p30RO5UyYur0XAA==} + /@swc/core-darwin-arm64@1.3.101: + resolution: {integrity: sha512-mNFK+uHNPRXSnfTOG34zJOeMl2waM4hF4a2NY7dkMXrPqw9CoJn4MwTXJcyMiSz1/BnNjjTCHF3Yhj0jPxmkzQ==} engines: {node: '>=10'} cpu: [arm64] os: [darwin] requiresBuild: true optional: true - /@swc/core-darwin-x64@1.3.78: - resolution: {integrity: sha512-w0RsD1onQAj0vuLAoOVi48HgnW6D6oBEIZP17l0HYejCDBZ+FRZLjml7wgNAWMqHcd2qNRqgtZ+v7aLza2JtBQ==} + /@swc/core-darwin-x64@1.3.101: + resolution: {integrity: sha512-B085j8XOx73Fg15KsHvzYWG262bRweGr3JooO1aW5ec5pYbz5Ew9VS5JKYS03w2UBSxf2maWdbPz2UFAxg0whw==} engines: {node: '>=10'} cpu: [x64] os: [darwin] requiresBuild: true optional: true - /@swc/core-linux-arm-gnueabihf@1.3.78: - resolution: {integrity: sha512-v1CpRn+H6fha1WIqmdRvJM40pFdjUHrGfhf4Ygci72nlAU41l5XimN8Iwkm8FgIwf2wnv0lLzedSM4IHvpq/yA==} + /@swc/core-linux-arm-gnueabihf@1.3.101: + resolution: {integrity: sha512-9xLKRb6zSzRGPqdz52Hy5GuB1lSjmLqa0lST6MTFads3apmx4Vgs8Y5NuGhx/h2I8QM4jXdLbpqQlifpzTlSSw==} engines: {node: '>=10'} cpu: [arm] os: [linux] requiresBuild: true optional: true - /@swc/core-linux-arm64-gnu@1.3.78: - resolution: {integrity: sha512-Sis17dz9joJRFVvR/gteOZSUNrrrioo81RQzani0Zr5ZZOfWLMTB9DA+0MVlfnVa2taYcsJHJZFoAv9JkLwbzg==} + /@swc/core-linux-arm64-gnu@1.3.101: + resolution: {integrity: sha512-oE+r1lo7g/vs96Weh2R5l971dt+ZLuhaUX+n3BfDdPxNHfObXgKMjO7E+QS5RbGjv/AwiPCxQmbdCp/xN5ICJA==} engines: {node: '>=10'} cpu: [arm64] os: [linux] requiresBuild: true optional: true - /@swc/core-linux-arm64-musl@1.3.78: - resolution: {integrity: sha512-E5F8/qp+QupnfBnsP4vN1PKyCmAHYHDG1GMyPE/zLFOUYLgw+jK4C9rfyLBR0o2bWo1ay2WCIjusBZD9XHGOSA==} + /@swc/core-linux-arm64-musl@1.3.101: + resolution: {integrity: sha512-OGjYG3H4BMOTnJWJyBIovCez6KiHF30zMIu4+lGJTCrxRI2fAjGLml3PEXj8tC3FMcud7U2WUn6TdG0/te2k6g==} engines: {node: '>=10'} cpu: [arm64] os: [linux] requiresBuild: true optional: true - /@swc/core-linux-x64-gnu@1.3.78: - resolution: {integrity: sha512-iDxa+RknnTQlyy+WfPor1FM6y44ERNI2E0xiUV6gV6uPwegCngi8LFC+E7IvP6+p+yXtAkesunAaiZ8nn0s+rw==} + /@swc/core-linux-x64-gnu@1.3.101: + resolution: {integrity: sha512-/kBMcoF12PRO/lwa8Z7w4YyiKDcXQEiLvM+S3G9EvkoKYGgkkz4Q6PSNhF5rwg/E3+Hq5/9D2R+6nrkF287ihg==} engines: {node: '>=10'} cpu: [x64] os: [linux] requiresBuild: true optional: true - /@swc/core-linux-x64-musl@1.3.78: - resolution: {integrity: sha512-dWtIYUFL5sMTE2UKshkXTusHcK8+zAhhGzvqWq1wJS45pqTlrAbzpyqB780fle880x3A6DMitWmsAFARdNzpuQ==} + /@swc/core-linux-x64-musl@1.3.101: + resolution: {integrity: sha512-kDN8lm4Eew0u1p+h1l3JzoeGgZPQ05qDE0czngnjmfpsH2sOZxVj1hdiCwS5lArpy7ktaLu5JdRnx70MkUzhXw==} engines: {node: '>=10'} cpu: [x64] os: [linux] requiresBuild: true optional: true - /@swc/core-win32-arm64-msvc@1.3.78: - resolution: {integrity: sha512-CXFaGEc2M9Su3UoUMC8AnzKb9g+GwPxXfakLWZsjwS448h6jcreExq3nwtBNdVGzQ26xqeVLMFfb1l/oK99Hwg==} + /@swc/core-win32-arm64-msvc@1.3.101: + resolution: {integrity: sha512-9Wn8TTLWwJKw63K/S+jjrZb9yoJfJwCE2RV5vPCCWmlMf3U1AXj5XuWOLUX+Rp2sGKau7wZKsvywhheWm+qndQ==} engines: {node: '>=10'} cpu: [arm64] os: [win32] requiresBuild: true optional: true - /@swc/core-win32-ia32-msvc@1.3.78: - resolution: {integrity: sha512-FaH1jwWnJpWkdImpMoiZpMg9oy9UUyZwltzN7hFwjR48e3Li82cRFb+9PifIBHCUSBM+CrrsJXbHP213IMVAyw==} + /@swc/core-win32-ia32-msvc@1.3.101: + resolution: {integrity: sha512-onO5KvICRVlu2xmr4//V2je9O2XgS1SGKpbX206KmmjcJhXN5EYLSxW9qgg+kgV5mip+sKTHTAu7IkzkAtElYA==} engines: {node: '>=10'} cpu: [ia32] os: [win32] requiresBuild: true optional: true - /@swc/core-win32-x64-msvc@1.3.78: - resolution: {integrity: sha512-oYxa+tPdhlx1aH14AIoF6kvVjo49tEOW0drNqoEaVHufvgH0y43QU2Jum3b2+xXztmMRtzK2CSN3GPOAXDKKKg==} + /@swc/core-win32-x64-msvc@1.3.101: + resolution: {integrity: sha512-T3GeJtNQV00YmiVw/88/nxJ/H43CJvFnpvBHCVn17xbahiVUOPOduh3rc9LgAkKiNt/aV8vU3OJR+6PhfMR7UQ==} engines: {node: '>=10'} cpu: [x64] os: [win32] requiresBuild: true optional: true - /@swc/core@1.3.78: - resolution: {integrity: sha512-y6DQP571v7fbUUY7nz5G4lNIRGofuO48K5pGhD9VnuOCTuptfooCdi8wnigIrIhM/M4zQ53m/YCMDCbOtDgEww==} + /@swc/core@1.3.101: + resolution: {integrity: sha512-w5aQ9qYsd/IYmXADAnkXPGDMTqkQalIi+kfFf/MHRKTpaOL7DHjMXwPp/n8hJ0qNjRvchzmPtOqtPBiER50d8A==} engines: {node: '>=10'} requiresBuild: true peerDependencies: @@ -3265,21 +3265,26 @@ packages: peerDependenciesMeta: '@swc/helpers': optional: true + dependencies: + '@swc/counter': 0.1.2 + '@swc/types': 0.1.5 optionalDependencies: - '@swc/core-darwin-arm64': 1.3.78 - '@swc/core-darwin-x64': 1.3.78 - '@swc/core-linux-arm-gnueabihf': 1.3.78 - '@swc/core-linux-arm64-gnu': 1.3.78 - '@swc/core-linux-arm64-musl': 1.3.78 - '@swc/core-linux-x64-gnu': 1.3.78 - '@swc/core-linux-x64-musl': 1.3.78 - '@swc/core-win32-arm64-msvc': 1.3.78 - '@swc/core-win32-ia32-msvc': 1.3.78 - '@swc/core-win32-x64-msvc': 1.3.78 + '@swc/core-darwin-arm64': 1.3.101 + '@swc/core-darwin-x64': 1.3.101 + '@swc/core-linux-arm-gnueabihf': 1.3.101 + '@swc/core-linux-arm64-gnu': 1.3.101 + '@swc/core-linux-arm64-musl': 1.3.101 + '@swc/core-linux-x64-gnu': 1.3.101 + '@swc/core-linux-x64-musl': 1.3.101 + '@swc/core-win32-arm64-msvc': 1.3.101 + '@swc/core-win32-ia32-msvc': 1.3.101 + '@swc/core-win32-x64-msvc': 1.3.101 + + /@swc/counter@0.1.2: + resolution: {integrity: sha512-9F4ys4C74eSTEUNndnER3VJ15oru2NumfQxS8geE+f3eB5xvfxpWyqE5XlVnxb/R14uoXi6SLbBwwiDSkv+XEw==} /@swc/types@0.1.5: resolution: {integrity: sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==} - dev: true /@swc/wasm@1.2.130: resolution: {integrity: sha512-rNcJsBxS70+pv8YUWwf5fRlWX6JoY/HJc25HD/F8m6Kv7XhJdqPPMhyX6TKkUBPAG7TWlZYoxa+rHAjPy4Cj3Q==} @@ -15483,14 +15488,14 @@ packages: whet.extend: 0.9.9 dev: true - /swc-loader@0.2.3(@swc/core@1.3.78)(webpack@5.89.0): + /swc-loader@0.2.3(@swc/core@1.3.101)(webpack@5.89.0): resolution: {integrity: sha512-D1p6XXURfSPleZZA/Lipb3A8pZ17fP4NObZvFCDjK/OKljroqDpPmsBdTraWhVBqUNpcWBQY1imWdoPScRlQ7A==} peerDependencies: '@swc/core': ^1.2.147 webpack: '>=2' dependencies: - '@swc/core': 1.3.78 - webpack: 5.89.0(@swc/core@1.3.78) + '@swc/core': 1.3.101 + webpack: 5.89.0(@swc/core@1.3.101) dev: true /swiper@11.0.4: @@ -15614,7 +15619,7 @@ packages: engines: {node: '>=14.16'} dev: true - /terser-webpack-plugin@5.3.9(@swc/core@1.3.78)(webpack@5.89.0): + /terser-webpack-plugin@5.3.9(@swc/core@1.3.101)(webpack@5.89.0): resolution: {integrity: sha512-ZuXsqE07EcggTWQjXUj+Aot/OMcD0bMKGgF63f7UxYcu5/AJF53aIpK1YoP5xR9l6s/Hy2b+t1AM0bLNPRuhwA==} engines: {node: '>= 10.13.0'} peerDependencies: @@ -15631,12 +15636,12 @@ packages: optional: true dependencies: '@jridgewell/trace-mapping': 0.3.20 - '@swc/core': 1.3.78 + '@swc/core': 1.3.101 jest-worker: 27.5.1 schema-utils: 3.3.0 serialize-javascript: 6.0.1 terser: 5.24.0 - webpack: 5.89.0(@swc/core@1.3.78) + webpack: 5.89.0(@swc/core@1.3.101) dev: true /terser@5.24.0: @@ -15931,10 +15936,10 @@ packages: semver: 7.5.4 source-map: 0.7.4 typescript: 5.2.2 - webpack: 5.89.0(@swc/core@1.3.78) + webpack: 5.89.0(@swc/core@1.3.101) dev: true - /ts-node@10.9.1(@swc/core@1.3.78)(@types/node@20.9.0)(typescript@5.2.2): + /ts-node@10.9.1(@swc/core@1.3.101)(@types/node@20.9.0)(typescript@5.2.2): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -15949,7 +15954,7 @@ packages: optional: true dependencies: '@cspotcode/source-map-support': 0.8.1 - '@swc/core': 1.3.78 + '@swc/core': 1.3.101 '@tsconfig/node10': 1.0.9 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 @@ -16230,7 +16235,7 @@ packages: pg: 8.11.3 reflect-metadata: 0.1.13 sha.js: 2.4.11 - ts-node: 10.9.1(@swc/core@1.3.78)(@types/node@20.9.0)(typescript@5.2.2) + ts-node: 10.9.1(@swc/core@1.3.101)(@types/node@20.9.0)(typescript@5.2.2) tslib: 2.6.2 uuid: 9.0.1 yargs: 17.7.2 @@ -16762,7 +16767,7 @@ packages: engines: {node: '>=10.13.0'} dev: true - /webpack@5.89.0(@swc/core@1.3.78): + /webpack@5.89.0(@swc/core@1.3.101): resolution: {integrity: sha512-qyfIC10pOr70V+jkmud8tMfajraGCZMBWJtrmuBymQKCrLTRejBI8STDp1MCyZu/QTdZSeacCQYpYNQVOzX5kw==} engines: {node: '>=10.13.0'} hasBin: true @@ -16793,7 +16798,7 @@ packages: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.9(@swc/core@1.3.78)(webpack@5.89.0) + terser-webpack-plugin: 5.3.9(@swc/core@1.3.101)(webpack@5.89.0) watchpack: 2.4.0 webpack-sources: 3.2.3 transitivePeerDependencies: diff --git a/packages/backend/.swcrc b/packages/backend/.swcrc index 272d9f698..b726cd424 100644 --- a/packages/backend/.swcrc +++ b/packages/backend/.swcrc @@ -21,5 +21,10 @@ }, "target": "es2022" }, + "module": { + "type": "es6", + "strict": true, + "resolveFully": true + }, "minify": false } diff --git a/packages/backend/package.json b/packages/backend/package.json index fa6833088..236cfb0f9 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -136,7 +136,7 @@ }, "devDependencies": { "@swc/cli": "0.1.63", - "@swc/core": "1.3.78", + "@swc/core": "1.3.101", "@types/adm-zip": "0.5.4", "@types/bcryptjs": "2.4.6", "@types/escape-regexp": "0.0.3", diff --git a/packages/firefish-js/.swcrc b/packages/firefish-js/.swcrc index 508e597b5..fae8a6922 100644 --- a/packages/firefish-js/.swcrc +++ b/packages/firefish-js/.swcrc @@ -12,9 +12,10 @@ }, "target": "es2022" }, - "minify": false, + "minify": true, "module": { "type": "commonjs", - "strict": true + "strict": true, + "resolveFully": true } } diff --git a/packages/firefish-js/package.json b/packages/firefish-js/package.json index 98e9efe5b..387940365 100644 --- a/packages/firefish-js/package.json +++ b/packages/firefish-js/package.json @@ -19,7 +19,7 @@ }, "devDependencies": { "@swc/cli": "0.1.63", - "@swc/core": "1.3.78", + "@swc/core": "1.3.101", "@swc/types": "0.1.5", "@types/node": "20.9.0", "ts-node": "10.9.1", diff --git a/packages/sw/package.json b/packages/sw/package.json index 6ee7036e8..23bddc149 100644 --- a/packages/sw/package.json +++ b/packages/sw/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "@swc/cli": "0.1.63", - "@swc/core": "1.3.78", + "@swc/core": "1.3.101", "@swc/core-android-arm64": "1.3.11", "firefish-js": "workspace:*", "idb-keyval": "6.2.1",