Jelajahi Sumber

Upgrade TypeScript to 5.9 (#30433)

GitOrigin-RevId: 7b11f258c0188f69fabd8fd0da709e0979fc8a4a
Alf Eaton 7 bulan lalu
induk
melakukan
d1db34bcf0

+ 1 - 1
libraries/eslint-plugin/package.json

@@ -9,7 +9,7 @@
     "lodash": "^4.17.21"
   },
   "devDependencies": {
-    "@typescript-eslint/parser": "^8.30.1"
+    "@typescript-eslint/parser": "^8.50.0"
   },
   "scripts": {
     "test": "node rules.test.js"

File diff ditekan karena terlalu besar
+ 139 - 538
package-lock.json


+ 3 - 3
package.json

@@ -8,8 +8,8 @@
     "@types/chai": "^4.3.0",
     "@types/chai-as-promised": "^7.1.8",
     "@types/mocha": "^10.0.6",
-    "@typescript-eslint/eslint-plugin": "^8.30.1",
-    "@typescript-eslint/parser": "^8.30.1",
+    "@typescript-eslint/eslint-plugin": "8.50.0",
+    "@typescript-eslint/parser": "^8.50.0",
     "@vitest/eslint-plugin": "^1.5.0",
     "eslint": "^8.15.0",
     "eslint-config-prettier": "^8.5.0",
@@ -25,7 +25,7 @@
     "eslint-plugin-unicorn": "^56.0.0",
     "prettier": "3.6.2",
     "prettier-plugin-groovy": "0.2.1",
-    "typescript": "^5.8.3"
+    "typescript": "^5.9.3"
   },
   "engines": {
     "npm": "11.4.2"

+ 1 - 1
services/web/package.json

@@ -406,7 +406,7 @@
     "to-string-loader": "^1.2.0",
     "ts-loader": "^9.5.2",
     "tty-browserify": "^0.0.1",
-    "typescript": "^5.8.3",
+    "typescript": "^5.9.3",
     "use-stick-to-bottom": "^1.1.1",
     "uuid": "^9.0.1",
     "vitest": "^4.0.0",

+ 2 - 2
services/web/test/frontend/features/source-editor/components/codemirror-editor-visual-paste-html.spec.tsx

@@ -813,7 +813,7 @@ test test test</p>
   it('treats a pasted image as a figure even if there is HTML', function () {
     mountEditor()
 
-    cy.fixture<Uint8Array>('images/gradient.png').then(image => {
+    cy.fixture<ArrayBuffer>('images/gradient.png').then(image => {
       const file = new File([image], 'gradient.png', { type: 'image/png' })
       const html = `<meta charset="utf-8"><img src="https://example.com/gradient.png" alt="gradient">`
 
@@ -830,7 +830,7 @@ test test test</p>
   it('does not treat a pasted image as a figure if there is Office HTML', function () {
     mountEditor()
 
-    cy.fixture<Uint8Array>('images/gradient.png').then(image => {
+    cy.fixture<ArrayBuffer>('images/gradient.png').then(image => {
       const file = new File([image], 'gradient.png', { type: 'image/png' })
       const html = `<meta charset="utf-8"><meta name="ProgId" content="MS.Word"><img src="https://example.com/gradient.png" alt="gradient">`
 

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini