chore: upgrade rush stack

This commit is contained in:
Simon Chan 2021-12-29 16:59:43 +08:00
parent 916405c8b7
commit 6c9065bd73
8 changed files with 7917 additions and 8486 deletions

View file

@ -37,3 +37,13 @@ $ rush update
``` ```
Usually you need two terminals to run both 2 and 3. Usually you need two terminals to run both 2 and 3.
## FAQ
### 1. WebUSB and File downloading doesn't when developing/self-host?
WebUSB and Service Worker (which is used for file downloading) requires Secure Context (HTTPS or localhost).
If you access the development server using IP address, that will not work.
You can add a self issued SSL certificate, or add the URL to `chrome://flags/#unsafely-treat-insecure-origin-as-secure`.

View file

@ -75,8 +75,6 @@ export class AdbTerminal extends AutoDisposable {
public fit() { public fit() {
this.fitAddon.fit(); this.fitAddon.fit();
// workaround https://github.com/xtermjs/xterm.js/issues/3504
(this.terminal as any)._core.viewport._refresh();
// Resize remote terminal // Resize remote terminal
const { rows, cols } = this.terminal; const { rows, cols } = this.terminal;
this._shell?.resize(rows, cols); this._shell?.resize(rows, cols);

View file

@ -30,16 +30,15 @@
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2", "react-dom": "^17.0.2",
"streamsaver": "^2.0.5", "streamsaver": "^2.0.5",
"xterm": "^4.15.0", "xterm": "^4.16.0",
"xterm-addon-fit": "^0.5.0", "xterm-addon-fit": "^0.5.0",
"xterm-addon-search": "^0.8.1", "xterm-addon-search": "^0.8.2",
"xterm-addon-webgl": "^0.11.3" "xterm-addon-webgl": "^0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@mdx-js/loader": "^1.6.22", "@mdx-js/loader": "^1.6.22",
"@next/mdx": "^11.1.2", "@next/mdx": "^11.1.2",
"@types/react": "17.0.27", "@types/react": "17.0.27",
"copy-webpack-plugin": "^9.0.1",
"eslint": "7.32.0", "eslint": "7.32.0",
"eslint-config-next": "^12.0.7", "eslint-config-next": "^12.0.7",
"typescript": "^4.4.3" "typescript": "^4.4.3"

View file

@ -155,7 +155,9 @@ class FileManagerState {
}); });
break; break;
case 1: case 1:
if (this.selectedItems[0].type === LinuxFileType.File) { // StreamSaver doens't work with strict site isolation enabled (`Cross-Origin-Embedder-Policy: require-corp`),
// `SharedArrayBuffer` doesn't work WHITHOUT strict site isolation.
if (this.selectedItems[0].type === LinuxFileType.File && typeof SharedArrayBuffer === 'undefined') {
result.push({ result.push({
key: 'download', key: 'download',
text: 'Download', text: 'Download',
@ -184,6 +186,7 @@ class FileManagerState {
}, },
}); });
} }
// fall through
default: default:
result.push({ result.push({
key: 'delete', key: 'delete',

View file

@ -13,9 +13,9 @@
* "rush update --full" so that PNPM will recalculate all version selections. * "rush update --full" so that PNPM will recalculate all version selections.
*/ */
module.exports = { module.exports = {
hooks: { hooks: {
readPackage readPackage
} }
}; };
/** /**
@ -28,11 +28,11 @@ module.exports = {
*/ */
function readPackage(packageJson, context) { function readPackage(packageJson, context) {
// // The karma types have a missing dependency on typings from the log4js package. // // The karma types have a missing dependency on typings from the log4js package.
// if (packageJson.name === '@types/karma') { // if (packageJson.name === '@types/karma') {
// context.log('Fixed up dependencies for @types/karma'); // context.log('Fixed up dependencies for @types/karma');
// packageJson.dependencies['log4js'] = '0.6.38'; // packageJson.dependencies['log4js'] = '0.6.38';
// } // }
return packageJson; return packageJson;
} }

File diff suppressed because it is too large Load diff

View file

@ -113,5 +113,6 @@ export default class AdbDirectSocketsBackend implements AdbBackend {
public dispose(): void | Promise<void> { public dispose(): void | Promise<void> {
this.socket?.close(); this.socket?.close();
this._connected = false;
} }
} }

View file

@ -15,7 +15,7 @@
* path segment in the "$schema" field for all your Rush config files. This will ensure * path segment in the "$schema" field for all your Rush config files. This will ensure
* correct error-underlining and tab-completion for editors such as VS Code. * correct error-underlining and tab-completion for editors such as VS Code.
*/ */
"rushVersion": "5.55.1", "rushVersion": "5.57.1",
/** /**
* The next field selects which package manager should be installed and determines its version. * The next field selects which package manager should be installed and determines its version.
* Rush installs its own local copy of the package manager to ensure that your build process * Rush installs its own local copy of the package manager to ensure that your build process
@ -24,7 +24,7 @@
* Specify one of: "pnpmVersion", "npmVersion", or "yarnVersion". See the Rush documentation * Specify one of: "pnpmVersion", "npmVersion", or "yarnVersion". See the Rush documentation
* for details about these alternatives. * for details about these alternatives.
*/ */
"pnpmVersion": "5.15.2", "pnpmVersion": "6.7.1",
// "npmVersion": "4.5.0", // "npmVersion": "4.5.0",
// "yarnVersion": "1.9.4", // "yarnVersion": "1.9.4",
/** /**
@ -115,7 +115,7 @@
* LTS schedule: https://nodejs.org/en/about/releases/ * LTS schedule: https://nodejs.org/en/about/releases/
* LTS versions: https://nodejs.org/en/download/releases/ * LTS versions: https://nodejs.org/en/download/releases/
*/ */
"nodeSupportedVersionRange": ">=12.13.0 <13.0.0 || >=14.15.0 <15.0.0", "nodeSupportedVersionRange": ">=12.13.0 <13.0.0 || >=14.15.0 <15.0.0 || >=16.13.0 <17.0.0",
/** /**
* Odd-numbered major versions of Node.js are experimental. Even-numbered releases * Odd-numbered major versions of Node.js are experimental. Even-numbered releases
* spend six months in a stabilization period before the first Long Term Support (LTS) version. * spend six months in a stabilization period before the first Long Term Support (LTS) version.
@ -163,8 +163,8 @@
* To remove these restrictions, you could set projectFolderMinDepth=1 * To remove these restrictions, you could set projectFolderMinDepth=1
* and set projectFolderMaxDepth to a large number. * and set projectFolderMaxDepth to a large number.
*/ */
// "projectFolderMinDepth": 2, "projectFolderMinDepth": 2,
// "projectFolderMaxDepth": 2, "projectFolderMaxDepth": 2,
/** /**
* Today the npmjs.com registry enforces fairly strict naming rules for packages, but in the early * Today the npmjs.com registry enforces fairly strict naming rules for packages, but in the early
* days there was no standard and hardly any enforcement. A few large legacy projects are still using * days there was no standard and hardly any enforcement. A few large legacy projects are still using
@ -346,7 +346,7 @@
* that read these JSON files and do something with them. These scripts are typically registered * that read these JSON files and do something with them. These scripts are typically registered
* in the "eventHooks" section. * in the "eventHooks" section.
*/ */
// "telemetryEnabled": false, "telemetryEnabled": false,
/** /**
* Allows creation of hotfix changes. This feature is experimental so it is disabled by default. * Allows creation of hotfix changes. This feature is experimental so it is disabled by default.
* If this is set, 'rush change' only allows a 'hotfix' change type to be specified. This change type * If this is set, 'rush change' only allows a 'hotfix' change type to be specified. This change type
@ -460,7 +460,8 @@
}, },
{ {
"packageName": "@yume-chan/adb-credential-web", "packageName": "@yume-chan/adb-credential-web",
"projectFolder": "libraries/adb-credential-web" "projectFolder": "libraries/adb-credential-web",
"shouldPublish": true
}, },
{ {
"packageName": "@yume-chan/scrcpy", "packageName": "@yume-chan/scrcpy",