Skip to content

chore: upgrade Univer SDK to 1.0.0-rc.0 - #52

Merged
hexf00 merged 1 commit into
mainfrom
chore/upgrade-univer-sdk-rc.0
Sep 11, 2026
Merged

hexf00 merged 1 commit into
mainfrom
chore/upgrade-univer-sdk-rc.0

Conversation

@hexf00

@hexf00 hexf00 commented Sep 11, 2026

Copy link
Copy Markdown
Member

Summary

  • Align every @univerjs, @univerjs-pro, and @univer-cli dependency to 1.0.0-rc.0 (37 declarations) via the renamed pnpm update:univer-sdk command. The resolved graph is single-train: one version of @univerjs/core, one copy of each native binding.
  • Tool contract: update:sdk is renamed to update:univer-sdk and now aligns all three SDK scopes in one pass instead of only the Univer runtime cohort. The updater strips every SDK override from pnpm-workspace.yaml; the 140 pre-existing overrides are removed and SDK overrides are no longer a supported mechanism. Self-versioned packages (@univerjs/icons, @univerjs-pro/cli-assets, @univerjs-pro/doc-typst-native-binding) keep their own exact versions.
  • Bindings ship through wrappers: @univerjs-pro/engine-formula-rust-binding and @univerjs-pro/exchange-node-binding are removed from all manifests and are never imported directly. The engine-formula-rust and exchange-node wrappers become the published runtime dependencies and carry their bindings transitively (formula binding insiders.20260910, exchange binding 0.1.2). The release manifest gate maps each binding to its wrapper, and the build/release scripts stay name-based with no pinned versions.

rc.0 contract adaptation

  • univerfile-sqlite: ChangesetRange no longer exists; getChangesets / getDraftChangesets return the changeset list directly with an optional range end, and the adapters implement the new getSnapshotInfo.
  • collab-gateway: GetChangesetsResult no longer carries latestRevision; the fetch-missing handlers drop it (the protocol response field is optional in rc.0).

Validation

  • pnpm check fully green: format, lint, typecheck, locales, 545 tests across 9 suites (including the packaged-CLI e2e loop), and pack:check.
  • The previous Plugin version mismatch warning (formula plugin vs core) is gone — zero occurrences across the test run.

Docs: README (en/zh) and AGENTS.md updated to the new upgrade contract.

Align every @UniverJs, @univerjs-pro, and @univer-cli dependency to
1.0.0-rc.0 with the renamed pnpm update:univer-sdk command.

Tool contract changes:
- Rename update:sdk to update:univer-sdk; it now aligns all three SDK
  scopes in one pass instead of only the Univer runtime cohort.
- The updater strips every SDK override from pnpm-workspace.yaml and the
  140 pre-existing overrides are removed; SDK overrides are no longer a
  supported way to hold mixed SDK versions together.
- Self-versioned packages (@univerjs/icons, @univerjs-pro/cli-assets,
  @univerjs-pro/doc-typst-native-binding) keep their own exact versions.
- Native bindings are never declared directly: engine-formula-rust and
  exchange-node wrappers move into the published runtime dependencies and
  carry their bindings transitively. The release manifest gate now maps
  each binding to its wrapper.

rc.0 contract adaptation:
- univerfile-sqlite: ChangesetRange is gone; getChangesets and
  getDraftChangesets return the changeset list directly with an optional
  range end, and the adapters implement the new getSnapshotInfo.
- collab-gateway: GetChangesetsResult no longer carries latestRevision;
  the fetch-missing handlers drop it (the protocol field is optional).
@hexf00
hexf00 merged commit e154c28 into main Sep 11, 2026
2 checks passed
@hexf00
hexf00 deleted the chore/upgrade-univer-sdk-rc.0 branch September 11, 2026 04:26
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