Skip to content

chore: upgrade Univer SDK to 1.0.3 - #59

Merged
hexf00 merged 1 commit into
mainfrom
chore/upgrade-univer-sdk-1.0.3
Sep 30, 2026
Merged

hexf00 merged 1 commit into
mainfrom
chore/upgrade-univer-sdk-1.0.3

Conversation

@hexf00

@hexf00 hexf00 commented Sep 29, 2026

Copy link
Copy Markdown
Member

Summary

  • Align the Univer SDK, Univer Pro, and CLI SDK cohort from exact 1.0.2 to exact 1.0.3 across the workspace manifests and pnpm-lock.yaml.
  • Migrate to the 1.0.3 referenced-chart runtime: @univer/render-preset now declares @univerjs-pro/chart-embed explicitly and registers UniverChartEmbedPlugin in the Browser View composition root, right after UniverEmbedPlugin. Without it, referenced charts in Docs/Slides/Boards would render as unavailable. The server-side Gateway/runtime worker does not render charts, so it needs no registration.
  • Self-versioned packages stay on their own versions: @univerjs-pro/cli-assets 0.1.0, @univerjs-pro/doc-typst-native-binding 1.0.0-insiders.20260723-c21613b, @univerjs/icons 1.38.0.

Behavior change (no code change required)

  • With no custom snapshotPolicy, the default auto-snapshot interval is now a unified 50 revisions for Sheet/Slide/Board/Base (previously 5; Doc was already 50), and the size threshold drops from 10 MiB to 5 MiB, measured over the whole protocol changeset's JSON UTF-8 bytes. SnapshotPolicy itself is unchanged, so callers with a custom policy are unaffected.
  • 1.0.3 introduces no database schema change; the existing migration steps are unchanged.

Changed files

  • Manifests (9): apps/cli, packages/collab-gateway-contract, packages/collab-gateway, packages/collab-web, packages/importrange-formula, packages/render-preset, packages/render-runtime-client, packages/unit-comparison-viewer, packages/univerfile-sqlite.
  • pnpm-lock.yaml.
  • packages/render-preset/package.json: adds the explicit @univerjs-pro/chart-embed 1.0.3 dependency required to import the new plugin under pnpm's strict layout.
  • packages/render-preset/src/index.ts: imports and registers UniverChartEmbedPlugin after UniverEmbedPlugin.
  • pnpm-workspace.yaml: unchanged — no SDK overrides remained from the previous upgrade, and the non-SDK react/react-dom overrides are retained.

Test plan

  • pnpm check — all green: format:check, lint (0 warnings / 0 errors), typecheck (9 projects), check:locales (17 content + 17 viewer modules, 77 SDK locale exports), test (557 tests total across root, packages, and apps/cli, including the browser e2e), and pack:check.
  • Note: on this shared host the recursive package tests were run with a temporary local workspaceConcurrency: 1 (not committed). At default parallelism packages/render-preset's content-locales.test.ts can exceed its default 5s timeout under load; this is pre-existing — the same test times out on the unmodified 1.0.2 baseline under parallel load and passes in ~1.5s in isolation on both versions.

Align the Univer, Univer Pro, and CLI SDK cohort to exact 1.0.3 across the workspace manifests and pnpm-lock.yaml, and keep the self-versioned packages on their own versions. Register the new chart-embed runtime for referenced charts in the Browser View composition root.
@hexf00
hexf00 merged commit c20fca5 into main Sep 30, 2026
2 checks passed
@hexf00
hexf00 deleted the chore/upgrade-univer-sdk-1.0.3 branch September 30, 2026 03:12
@hexf00 hexf00 mentioned this pull request Sep 30, 2026
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant