client: upgrade

This commit is contained in:
fantasticit 2022-05-28 15:13:25 +08:00
parent 7b6ba4ccca
commit 9a40ca9e89
3 changed files with 54 additions and 55 deletions

View File

@ -7,6 +7,12 @@ const pwaRuntimeCaching = require('./pwa-cache');
/** @type {import('next').NextConfig} */
const nextConfig = semi({
swcMinify: true,
experimental: {
scrollRestoration: true,
legacyBrowsers: false,
browsersListForSwc: true,
},
assetPrefix: config.assetPrefix,
env: {
SERVER_API_URL: config.client.apiUrl,

View File

@ -71,7 +71,7 @@
"markdown-it-emoji": "^2.0.0",
"markdown-it-sub": "^1.0.0",
"markdown-it-sup": "^1.0.0",
"next": "12.0.10",
"next": "12.1.0",
"next-pwa": "^5.5.2",
"prosemirror-markdown": "^1.7.0",
"prosemirror-model": "^1.16.1",

View File

@ -116,7 +116,7 @@ importers:
markdown-it-emoji: ^2.0.0
markdown-it-sub: ^1.0.0
markdown-it-sup: ^1.0.0
next: 12.0.10
next: 12.1.0
next-pwa: ^5.5.2
prosemirror-markdown: ^1.7.0
prosemirror-model: ^1.16.1
@ -204,8 +204,8 @@ importers:
markdown-it-emoji: 2.0.0
markdown-it-sub: 1.0.0
markdown-it-sup: 1.0.0
next: 12.0.10_react-dom@17.0.2+react@17.0.2
next-pwa: 5.5.2_next@12.0.10
next: 12.1.0_react-dom@17.0.2+react@17.0.2
next-pwa: 5.5.2_next@12.1.0
prosemirror-markdown: 1.7.0
prosemirror-model: 1.16.1
prosemirror-schema-list: 1.1.6
@ -2452,12 +2452,12 @@ packages:
uuid: 8.3.2
dev: false
/@next/env/12.0.10:
resolution: {integrity: sha512-mQVj0K6wQ5WEk/sL9SZ+mJXJUaG7el8CpZ6io1uFe9GgNTSC7EgUyNGqM6IQovIFc5ukF4O/hqsdh3S/DCgT2g==}
/@next/env/12.1.0:
resolution: {integrity: sha512-nrIgY6t17FQ9xxwH3jj0a6EOiQ/WDHUos35Hghtr+SWN/ntHIQ7UpuvSi0vaLzZVHQWaDupKI+liO5vANcDeTQ==}
dev: false
/@next/swc-android-arm64/12.0.10:
resolution: {integrity: sha512-xYwXGkNhzZZsM5MD7KRwF5ZNiC8OLPtVMUiagpPnwENg8Hb0GSQo/NbYWXM8YrawEwp9LaZ7OXiuRKPh2JyBdA==}
/@next/swc-android-arm64/12.1.0:
resolution: {integrity: sha512-/280MLdZe0W03stA69iL+v6I+J1ascrQ6FrXBlXGCsGzrfMaGr7fskMa0T5AhQIVQD4nA/46QQWxG//DYuFBcA==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [android]
@ -2465,8 +2465,8 @@ packages:
dev: false
optional: true
/@next/swc-darwin-arm64/12.0.10:
resolution: {integrity: sha512-f2zngulkpIJKWHckhRi7X8GZ+J/tNgFF7lYIh7Qx15JH0OTBsjkqxORlkzy+VZyHJ5sWTCaI6HYYd3ow6qkEEg==}
/@next/swc-darwin-arm64/12.1.0:
resolution: {integrity: sha512-R8vcXE2/iONJ1Unf5Ptqjk6LRW3bggH+8drNkkzH4FLEQkHtELhvcmJwkXcuipyQCsIakldAXhRbZmm3YN1vXg==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [darwin]
@ -2474,8 +2474,8 @@ packages:
dev: false
optional: true
/@next/swc-darwin-x64/12.0.10:
resolution: {integrity: sha512-Qykcu/gVC5oTvOQoRBhyuS5GYm5SbcgrFTsaLFkGBmEkg9eMQRiaCswk4IafpDXVzITkVFurzSM28q3tLW2qUw==}
/@next/swc-darwin-x64/12.1.0:
resolution: {integrity: sha512-ieAz0/J0PhmbZBB8+EA/JGdhRHBogF8BWaeqR7hwveb6SYEIJaDNQy0I+ZN8gF8hLj63bEDxJAs/cEhdnTq+ug==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
@ -2483,8 +2483,8 @@ packages:
dev: false
optional: true
/@next/swc-linux-arm-gnueabihf/12.0.10:
resolution: {integrity: sha512-EhqrTFsIXAXN9B/fiiW/QKUK/lSLCXRsLalkUp58KDfMqVLLlj1ORbESAcswiNQOChLuHQSldGEEtOBPQZcd9A==}
/@next/swc-linux-arm-gnueabihf/12.1.0:
resolution: {integrity: sha512-njUd9hpl6o6A5d08dC0cKAgXKCzm5fFtgGe6i0eko8IAdtAPbtHxtpre3VeSxdZvuGFh+hb0REySQP9T1ttkog==}
engines: {node: '>= 10'}
cpu: [arm]
os: [linux]
@ -2492,8 +2492,8 @@ packages:
dev: false
optional: true
/@next/swc-linux-arm64-gnu/12.0.10:
resolution: {integrity: sha512-kqGtC72g3+JYXZbY2ca6digXR5U6AQ6Dzv4eAxYluMePLHjI/Xye1mf9dwVsgmeXfrD/IRDp5K/3A6UNvBm4oQ==}
/@next/swc-linux-arm64-gnu/12.1.0:
resolution: {integrity: sha512-OqangJLkRxVxMhDtcb7Qn1xjzFA3s50EIxY7mljbSCLybU+sByPaWAHY4px97ieOlr2y4S0xdPKkQ3BCAwyo6Q==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
@ -2501,8 +2501,8 @@ packages:
dev: false
optional: true
/@next/swc-linux-arm64-musl/12.0.10:
resolution: {integrity: sha512-bG9zTSNwnSgc1Un/7oz1ZVN4UeXsTWrsQhAGWU78lLLCn4Zj9HQoUCRCGLt0OVs2DBZ+WC8CzzFliQ1SKipVbg==}
/@next/swc-linux-arm64-musl/12.1.0:
resolution: {integrity: sha512-hB8cLSt4GdmOpcwRe2UzI5UWn6HHO/vLkr5OTuNvCJ5xGDwpPXelVkYW/0+C3g5axbDW2Tym4S+MQCkkH9QfWA==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
@ -2510,8 +2510,8 @@ packages:
dev: false
optional: true
/@next/swc-linux-x64-gnu/12.0.10:
resolution: {integrity: sha512-c79PcfWtyThiYRa1+3KVfDq0zXaI8o1d6dQWNVqDrtLz5HKM/rbjLdvoNuxDwUeZhxI/d9CtyH6GbuKPw5l/5A==}
/@next/swc-linux-x64-gnu/12.1.0:
resolution: {integrity: sha512-OKO4R/digvrVuweSw/uBM4nSdyzsBV5EwkUeeG4KVpkIZEe64ZwRpnFB65bC6hGwxIBnTv5NMSnJ+0K/WmG78A==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
@ -2519,8 +2519,8 @@ packages:
dev: false
optional: true
/@next/swc-linux-x64-musl/12.0.10:
resolution: {integrity: sha512-g/scgn+21/MLfizOCZOZt+MxNj2/8Tdlwjvy+QZcSUPZRUI2Y5o3HwBvI1f/bSci+NGRU+bUAO0NFtRJ9MzH5w==}
/@next/swc-linux-x64-musl/12.1.0:
resolution: {integrity: sha512-JohhgAHZvOD3rQY7tlp7NlmvtvYHBYgY0x5ZCecUT6eCCcl9lv6iV3nfu82ErkxNk1H893fqH0FUpznZ/H3pSw==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
@ -2528,8 +2528,8 @@ packages:
dev: false
optional: true
/@next/swc-win32-arm64-msvc/12.0.10:
resolution: {integrity: sha512-gl6B/ravwMeY5Nv4Il2/ARYJQ6u+KPRwGMjS1ZrNudIKlNn4YBeXh5A4cIVm+dHaff6/O/lGOa5/SUYDMZpkww==}
/@next/swc-win32-arm64-msvc/12.1.0:
resolution: {integrity: sha512-T/3gIE6QEfKIJ4dmJk75v9hhNiYZhQYAoYm4iVo1TgcsuaKLFa+zMPh4056AHiG6n9tn2UQ1CFE8EoybEsqsSw==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
@ -2537,8 +2537,8 @@ packages:
dev: false
optional: true
/@next/swc-win32-ia32-msvc/12.0.10:
resolution: {integrity: sha512-7RVpZ3tSThC6j+iZB0CUYmFiA3kXmN+pE7QcfyAxFaflKlaZoWNMKHIEZDuxSJc6YmQ6kyxsjqxVay2F5+/YCg==}
/@next/swc-win32-ia32-msvc/12.1.0:
resolution: {integrity: sha512-iwnKgHJdqhIW19H9PRPM9j55V6RdcOo6rX+5imx832BCWzkDbyomWnlzBfr6ByUYfhohb8QuH4hSGEikpPqI0Q==}
engines: {node: '>= 10'}
cpu: [ia32]
os: [win32]
@ -2546,8 +2546,8 @@ packages:
dev: false
optional: true
/@next/swc-win32-x64-msvc/12.0.10:
resolution: {integrity: sha512-oUIWRKd24jFLRWUYO1CZmML5+32BcpVfqhimGaaZIXcOkfQW+iqiAzdqsv688zaGtyKGeB9ZtiK3NDf+Q0v+Vw==}
/@next/swc-win32-x64-msvc/12.1.0:
resolution: {integrity: sha512-aBvcbMwuanDH4EMrL2TthNJy+4nP59Bimn8egqv6GHMVj0a44cU6Au4PjOhLNqEh9l+IpRGBqMTzec94UdC5xg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [win32]
@ -5341,7 +5341,7 @@ packages:
dev: false
/escape-string-regexp/1.0.5:
resolution: {integrity: sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=}
resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==}
engines: {node: '>=0.8.0'}
/escape-string-regexp/2.0.0:
@ -8115,17 +8115,10 @@ packages:
big-integer: 1.6.51
dev: false
/nanoid/3.2.0:
resolution: {integrity: sha512-fmsZYa9lpn69Ad5eDn7FMcnnSR+8R34W9qJEijxYhTbfOWzr22n1QxCMzXLK+ODyW2973V3Fux959iQoUxzUIA==}
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
dev: false
/nanoid/3.3.1:
resolution: {integrity: sha512-n6Vs/3KGyxPQd6uO0eH4Bv0ojGSUvuLlIHtC3Y0kEO23YRge8H9x1GCzLn28YX0H66pMkxuaeESFq4tKISKwdw==}
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
dev: true
/natural-compare/1.4.0:
resolution: {integrity: sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=}
@ -8156,7 +8149,7 @@ packages:
engines: {node: '>= 0.4.0'}
dev: false
/next-pwa/5.5.2_next@12.0.10:
/next-pwa/5.5.2_next@12.1.0:
resolution: {integrity: sha512-NOZxIS/4Qa4lsPG99CNh3ZA1vfVJ3vpZjBvfouXOfWn0K9CLjBRZwGkJAcWsMWngSGoTN1hUkg97Pe+9xESzWQ==}
peerDependencies:
next: '>=9.0.0'
@ -8164,7 +8157,7 @@ packages:
babel-loader: 8.2.5
clean-webpack-plugin: 4.0.0
globby: 11.1.0
next: 12.0.10_react-dom@17.0.2+react@17.0.2
next: 12.1.0_react-dom@17.0.2+react@17.0.2
terser-webpack-plugin: 5.3.1
workbox-webpack-plugin: 6.5.3
workbox-window: 6.5.3
@ -8179,13 +8172,13 @@ packages:
- webpack
dev: false
/next/12.0.10_react-dom@17.0.2+react@17.0.2:
resolution: {integrity: sha512-1y3PpGzpb/EZzz1jgne+JfZXKAVJUjYXwxzrADf/LWN+8yi9o79vMLXpW3mevvCHkEF2sBnIdjzNn16TJrINUw==}
/next/12.1.0_react-dom@17.0.2+react@17.0.2:
resolution: {integrity: sha512-s885kWvnIlxsUFHq9UGyIyLiuD0G3BUC/xrH0CEnH5lHEWkwQcHOORgbDF0hbrW9vr/7am4ETfX4A7M6DjrE7Q==}
engines: {node: '>=12.22.0'}
hasBin: true
peerDependencies:
fibers: '>= 3.1.0'
node-sass: ^4.0.0 || ^5.0.0 || ^6.0.0
node-sass: ^6.0.0 || ^7.0.0
react: ^17.0.2 || ^18.0.0-0
react-dom: ^17.0.2 || ^18.0.0-0
sass: ^1.3.0
@ -8197,25 +8190,25 @@ packages:
sass:
optional: true
dependencies:
'@next/env': 12.0.10
caniuse-lite: 1.0.30001304
'@next/env': 12.1.0
caniuse-lite: 1.0.30001341
postcss: 8.4.5
react: 17.0.2
react-dom: 17.0.2_react@17.0.2
styled-jsx: 5.0.0_react@17.0.2
use-subscription: 1.5.1_react@17.0.2
optionalDependencies:
'@next/swc-android-arm64': 12.0.10
'@next/swc-darwin-arm64': 12.0.10
'@next/swc-darwin-x64': 12.0.10
'@next/swc-linux-arm-gnueabihf': 12.0.10
'@next/swc-linux-arm64-gnu': 12.0.10
'@next/swc-linux-arm64-musl': 12.0.10
'@next/swc-linux-x64-gnu': 12.0.10
'@next/swc-linux-x64-musl': 12.0.10
'@next/swc-win32-arm64-msvc': 12.0.10
'@next/swc-win32-ia32-msvc': 12.0.10
'@next/swc-win32-x64-msvc': 12.0.10
'@next/swc-android-arm64': 12.1.0
'@next/swc-darwin-arm64': 12.1.0
'@next/swc-darwin-x64': 12.1.0
'@next/swc-linux-arm-gnueabihf': 12.1.0
'@next/swc-linux-arm64-gnu': 12.1.0
'@next/swc-linux-arm64-musl': 12.1.0
'@next/swc-linux-x64-gnu': 12.1.0
'@next/swc-linux-x64-musl': 12.1.0
'@next/swc-win32-arm64-msvc': 12.1.0
'@next/swc-win32-ia32-msvc': 12.1.0
'@next/swc-win32-x64-msvc': 12.1.0
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros
@ -8865,7 +8858,7 @@ packages:
resolution: {integrity: sha512-jBDboWM8qpaqwkMwItqTQTiFikhs/67OYVvblFFTM7MrZjt6yMKd6r2kgXizEbTTljacm4NldIlZnhbjr84QYg==}
engines: {node: ^10 || ^12 || >=14}
dependencies:
nanoid: 3.2.0
nanoid: 3.3.1
picocolors: 1.0.0
source-map-js: 1.0.2
dev: false