A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
Migrate to TypeScript 7 (aka `tsgo`) (#6442)
Trevor Manz65414b7f61e4
diff --git a/frontend/package.json b/frontend/package.jsonindex 6cf533c6a5..83f33beac9 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -180,7 +180,7 @@"build:watch": "vite build --watch --outDir ../marimo/_static","build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build","test": "vitest",- "typecheck": "tsc",+ "typecheck": "tsgo","lint": "run-s lint:biome lint:eslint lint:stylelint","lint:biome": "biome lint --diagnostic-level=warn --write .","lint:eslint": "cross-env TIMING=1 eslint src e2e-tests --fix",diff --git a/frontend/src/components/data-table/column-summary/chart-spec-model.tsx b/frontend/src/components/data-table/column-summary/chart-spec-model.tsxindex bae4ee2578..596fa40a0f 100644--- a/frontend/src/components/data-table/column-summary/chart-spec-model.tsx+++ b/frontend/src/components/data-table/column-summary/chart-spec-model.tsx@@ -93,9 +93,9 @@ export class ColumnChartSpecModel<T> {const decoded = typedAtob(base64);if (decoded.startsWith(ARROW_MAGIC_NUMBER)) {+ // @ts-expect-error vega-typings does not include arrow formatthis.dataSpec = {values: byteStringToBinary(decoded),- // @ts-expect-error vega-typings does not include arrow formatformat: { type: "arrow" },};} else {diff --git a/frontend/src/components/tracing/tracing-spec.ts b/frontend/src/components/tracing/tracing-spec.tsindex 6d826afba4..1283c51149 100644--- a/frontend/src/components/tracing/tracing-spec.ts+++ b/frontend/src/components/tracing/tracing-spec.ts@@ -1,6 +1,7 @@/* Copyright 2024 Marimo. All rights reserved. */import type { TopLevelSpec } from "vega-lite";+import type { TimeUnit } from "vega-lite/build/src/timeunit";import type { CellId } from "@/core/cells/ids";import type { CellRun } from "@/core/cells/runs";import type { ResolvedTheme } from "@/theme/useTheme";@@ -30,6 +31,8 @@ export function createGanttBaseSpec(chartPosition: ChartPosition,theme: ResolvedTheme,): Readonly<TopLevelSpec> {+ // @ts-expect-error - Supported by vega/vega-lite but invalid "TimeUnit" option from exported type+ const timeUnit: TimeUnit = "hoursminutessecondsmilliseconds";return {$schema: "https://vega.github.io/schema/vega-lite/v5.json",background: theme === "dark" ? "black" : undefined,@@ -76,15 +79,13 @@ export function createGanttBaseSpec({field: startTimestampField,type: "temporal",- // @ts-expect-error - Supported by vega/vega-lite but invalid "TimeUnit" option from exported type- timeUnit: "hoursminutessecondsmilliseconds",+ timeUnit: timeUnit,title: "Start",},{field: endTimestampField,type: "temporal",- // @ts-expect-error - Supported by vega/vega-lite but invalid "TimeUnit" option from exported type- timeUnit: "hoursminutessecondsmilliseconds",+ timeUnit: timeUnit,title: "End",},],diff --git a/package.json b/package.jsonindex 2503dc5420..66907f7ade 100644--- a/package.json+++ b/package.json@@ -11,8 +11,8 @@"devDependencies": {"@biomejs/biome": "2.2.2","@testing-library/jest-dom": "^6.8.0",+ "@typescript/native-preview": "7.0.0-dev.20250919.1","turbo": "^2.5.6",- "typescript": "^5.9.2","vitest": "^3.2.4"},"engines": {diff --git a/packages/lsp/package.json b/packages/lsp/package.jsonindex a2805c0c68..0cecdf0e35 100644--- a/packages/lsp/package.json+++ b/packages/lsp/package.json@@ -6,7 +6,7 @@"scripts": {"build:ts": "tsup index.ts --format cjs --minify","build:deps": "cp -LR node_modules/@github/copilot-language-server/dist/ dist/",- "typecheck": "tsc",+ "typecheck": "tsgo","build": "pnpm run build:ts && pnpm run build:deps","test": "vitest"},diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex ef16f0e2d6..a679cfb7cf 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -19,12 +19,12 @@ importers:'@testing-library/jest-dom':specifier: ^6.8.0version: 6.8.0+ '@typescript/native-preview':+ specifier: 7.0.0-dev.20250919.1+ version: 7.0.0-dev.20250919.1turbo:specifier: ^2.5.6version: 2.5.6- typescript:- specifier: ^5.9.2- version: 5.9.2vitest:specifier: ^3.2.4version: 3.2.4(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])@@ -4077,6 +4077,45 @@ packages:resolution: {integrity: sha512-YzfhzcTnZVPiLfP/oeKtDp2evwvHLMe0LOy7oe+hb9KKIumLNohYS9Hgp1ifwpu42YWxhZE8yieggz6JpqO/1w==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ '@typescript/[email protected]':+ resolution: {integrity: sha512-Y4knz5Sh6paaGrb4OedapwlUNdxqrWXJlxZ3dcoK4kldiEON3/awLU3N9IYVRk7VXBF/i212/vIverlrfA4gKA==}+ cpu: [arm64]+ os: [darwin]++ '@typescript/[email protected]':+ resolution: {integrity: sha512-q7h9O5/W3z+2I0JGvyeSM2kvJL5qVnOKRbBvKjJnNTJ5wpClRIzfRQQIhUxLPeVk+8McaiMhWqHeTqM1xti9Qw==}+ cpu: [x64]+ os: [darwin]++ '@typescript/[email protected]':+ resolution: {integrity: sha512-cVRa6ocpNIke/EDEpEYlBgIOkR6Wcq9kBhYL8JrexDQFzk3IbDYYcvMPdxG6PJVrsRfY5HTkB/RoJrEXJvSL/A==}+ cpu: [arm64]+ os: [linux]++ '@typescript/[email protected]':+ resolution: {integrity: sha512-jVzO9jsSygMetvHWx7vcXYy7PQ7IyWnxItL3zr9s+jNosr2XgoRkKcxQwLZ/jmhE0bNvzMGplMl4K2QFYAsFYw==}+ cpu: [arm]+ os: [linux]++ '@typescript/[email protected]':+ resolution: {integrity: sha512-k31vchrXIhwZAG6nnUGsLfhzXEN59zPawdjAxJDRo4hMtxn0AIQh73orr1sBTKFf16I/yv2pa2dA9snwElpxwg==}+ cpu: [x64]+ os: [linux]++ '@typescript/[email protected]':+ resolution: {integrity: sha512-VyEYg5efshMZVA70EkUFqofQZnkcs0WSdYv8sQ6Kcr4cRZeGb1GMtPFoWlDD957TmM4gR9R//ydtJHe79H7IZg==}+ cpu: [arm64]+ os: [win32]++ '@typescript/[email protected]':+ resolution: {integrity: sha512-FXAE8U1iGzp36InAUa5rPGBDc27TIuoVxFFB+bXjUH84E/lA+ki7qa3PTCXV+t0p9DP59oXQLzc8DhjbCOaT7Q==}+ cpu: [x64]+ os: [win32]++ '@typescript/[email protected]':+ resolution: {integrity: sha512-FCN+LLKM7gfMCpfzRTUBtnc71fHfDMmoje0xv5y+fqCdTbsg0QXVkDVjlxQFfJe6sDm+hJxBJSmPIQQKlRH9Mg==}+ hasBin: true+'@uidotdev/[email protected]':resolution: {integrity: sha512-1I+RwWyS+kdv3Mv0Vmc+p0dPYH0DTRAo04HLyXReYBL9AeseDWUJyi4THuksBJcu9F0Pih69Ak150VDnqbVnXg==}engines: {node: '>=16'}@@ -14249,6 +14288,37 @@ snapshots:'@typescript-eslint/types': 8.37.0eslint-visitor-keys: 4.2.1+ '@typescript/[email protected]':+ optional: true++ '@typescript/[email protected]':+ optional: true++ '@typescript/[email protected]':+ optional: true++ '@typescript/[email protected]':+ optional: true++ '@typescript/[email protected]':+ optional: true++ '@typescript/[email protected]':+ optional: true++ '@typescript/[email protected]':+ optional: true++ '@typescript/[email protected]':+ optionalDependencies:+ '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20250919.1+ '@typescript/native-preview-darwin-x64': 7.0.0-dev.20250919.1+ '@typescript/native-preview-linux-arm': 7.0.0-dev.20250919.1+ '@typescript/native-preview-linux-arm64': 7.0.0-dev.20250919.1+ '@typescript/native-preview-linux-x64': 7.0.0-dev.20250919.1+ '@typescript/native-preview-win32-arm64': 7.0.0-dev.20250919.1+ '@typescript/native-preview-win32-x64': 7.0.0-dev.20250919.1+dependencies:react: 19.1.1