-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[browser] upgrade npm dependencies #119995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
59e9952
to
21f7d51
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR upgrades npm dependencies for the browser runtime component, updating various development and production dependencies to their latest versions. The upgrade also addresses TypeScript/ESLint compatibility issues that arose from the dependency updates.
- Updated multiple npm packages including TypeScript, ESLint, Rollup, and various plugins
- Added type cast annotations to resolve TypeScript compilation errors
- Added ESLint disable comments for duplicate enum values to maintain backward compatibility
Reviewed Changes
Copilot reviewed 9 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
src/mono/browser/runtime/package.json | Updated npm dependencies and added cross-spawn override |
src/mono/browser/runtime/marshal.ts | Added ESLint disable comment for duplicate enum values |
src/mono/browser/runtime/jiterpreter.ts | Added type cast and removed unnecessary semicolon |
src/mono/browser/runtime/jiterpreter-support.ts | Removed unnecessary semicolon in empty catch block |
src/mono/browser/runtime/jiterpreter-jit-call.ts | Added type cast and removed unnecessary semicolon |
src/mono/browser/runtime/jiterpreter-interp-entry.ts | Added type cast and removed unnecessary semicolon |
src/mono/browser/runtime/interp-pgo.ts | Updated parameter type annotation |
src/mono/browser/runtime/diagnostics/common.ts | Added type cast for Blob constructor |
src/mono/browser/runtime/diagnostics/client-commands.ts | Added ESLint disable comment for duplicate enum values |
} | ||
|
||
export async function storeCacheEntry (cacheKey: string, memory: ArrayBuffer, mimeType: string): Promise<boolean> { | ||
export async function storeCacheEntry (cacheKey: string, memory: Uint8Array<ArrayBuffer>, mimeType: string): Promise<boolean> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type annotation Uint8Array<ArrayBuffer>
is incorrect. Uint8Array
doesn't take a generic type parameter. It should be either Uint8Array
or ArrayBuffer
depending on the intended usage.
export async function storeCacheEntry (cacheKey: string, memory: Uint8Array<ArrayBuffer>, mimeType: string): Promise<boolean> { | |
export async function storeCacheEntry (cacheKey: string, memory: Uint8Array, mimeType: string): Promise<boolean> { |
Copilot uses AI. Check for mistakes.
Uh oh!
There was an error while loading. Please reload this page.