Repository navigation
chore: upgrade Univer SDK to 1.0.3 - #59
Merged
Merged
Conversation
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.
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
1.0.2to exact1.0.3across the workspace manifests andpnpm-lock.yaml.1.0.3referenced-chart runtime:@univer/render-presetnow declares@univerjs-pro/chart-embedexplicitly and registersUniverChartEmbedPluginin the Browser View composition root, right afterUniverEmbedPlugin. 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.@univerjs-pro/cli-assets0.1.0,@univerjs-pro/doc-typst-native-binding1.0.0-insiders.20260723-c21613b,@univerjs/icons1.38.0.Behavior change (no code change required)
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.SnapshotPolicyitself is unchanged, so callers with a custom policy are unaffected.1.0.3introduces no database schema change; the existing migration steps are unchanged.Changed files
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-embed1.0.3dependency required to import the new plugin under pnpm's strict layout.packages/render-preset/src/index.ts: imports and registersUniverChartEmbedPluginafterUniverEmbedPlugin.pnpm-workspace.yaml: unchanged — no SDK overrides remained from the previous upgrade, and the non-SDKreact/react-domoverrides 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, andapps/cli, including the browser e2e), andpack:check.workspaceConcurrency: 1(not committed). At default parallelismpackages/render-preset'scontent-locales.test.tscan exceed its default 5s timeout under load; this is pre-existing — the same test times out on the unmodified1.0.2baseline under parallel load and passes in ~1.5s in isolation on both versions.