github dream-num/univer v1.7.0-alpha.0
🚧 Release v1.7.0-alpha.0

pre-release49 minutes ago

Univer 1.7.0-alpha.0 previews named and session-local filter views in Sheets, the References ribbon and reference authoring in Traditional Docs, a unified UniverChart runtime, and chunked Worker snapshot sync for large workbooks. It also unifies the TypeScript formula engine in @univerjs/engine-formula and standardizes locale and region tags on BCP 47.

Important

Pre-release notice: 1.7.0-alpha.0 is an early preview for integration testing and migration validation, not for production deployment. Public APIs and behavior introduced since 1.6.x may still change before 1.7.0. Pin all @univerjs/* and @univerjs-pro/* packages to 1.7.0-alpha.0 together when testing.

Highlights to test

Named and session-local filter views in Sheets (Pro)

@univerjs-pro/sheets-filter-view and @univerjs-pro/sheets-filter-view-ui add collaborative named filter views and temporary session-local views on desktop (UniverSheetsFilterViewUIPlugin) and mobile (UniverSheetsFilterViewMobileUIPlugin). Collaborators can create, save, switch, rename, and exit views without changing visible rows for other users. Visibility-aware formulas—including SUBTOTAL, AGGREGATE, and indirect LET/LAMBDA ranges—recalculate in isolation for the active view context.
With @univerjs-pro/sheets-filter-view-ui/facade loaded, workbook.mountFilterViewPane(container) mounts a second view pane against the same workbook and active sheet. Headless and Facade integrations (@univerjs-pro/sheets-filter-view/facade) can manage local contexts with worksheet.createFilterViewContext(), page visible row indices with worksheet.evaluateFilterViewRows(), and validate Excel Named Sheet View compatibility with workbook.checkFilterViewExport().

Reference authoring and References ribbon in Traditional Docs (Pro)

@univerjs-pro/docs-reference and @univerjs-pro/docs-reference-ui (included in @univerjs/preset-docs-advanced) add the References ribbon tab and field authoring workflows to paginated (Traditional) Docs:

  • Tables of contents, captions, and tables of figures
  • Footnotes and endnotes
  • Cross-references (REF, PAGEREF, NOTEREF) with target navigation
  • Citations and bibliographies across 12 styles
  • Keyword indexes and tables of authorities
    Focused fields display localized hints, missing-target warnings, and an inline grip for drag-and-drop repositioning. Modern Docs hide the reference authoring UI while keeping stored document data and headless APIs compatible.

Unified UniverChart runtime (Pro)

@univerjs-pro/engine-chart introduces UniverChart as the single runtime entry point for standalone browser charts and hosted charts across Sheets, Docs, Slides, Boards, and Bases. Standalone consumers mount charts directly, observe committed frames via mount().frame$, and export images from the last committed frame with exportImage(). createChartRenderModel() configures shared display and export operators.

Performance and runtime compatibility

  • Chunked Worker snapshot sync: @univerjs/rpc now transfers large spreadsheet snapshots to Web Workers in bounded row-JSON and structured-clone chunks, yielding to the main thread between windows so million-cell workbooks initialize without long UI stalls. No configuration changes are required.
  • Unified TypeScript formula engine: @univerjs/engine-formula now owns the shared TypeScript calculation runtime, dependency graph, built-in Excel functions, and isolated filter-view calculation, while reducing formula data overhead on large workbooks. Native Rust calculation retains its separate execution path.
  • Pivot, Docs, and Shape performance: PivotTables reuse prepared source data and tuple calculations (@univerjs-pro/engine-pivot), Docs batches continuous layout and skips offscreen table drawing, and @univerjs-pro/engine-shape archives SmartArt template data to lower memory use.
  • React 16.9–19 host support: Core UI, @univerjs/design, @univerjs/icons, and Pro UI plugins are verified across React 16.9 through React 19, unmounting workbenches cleanly before service disposal and removing the React peer requirement from @univerjs-pro/telemetry.
  • IPv4 CIDR license rules (Pro): @univerjs-pro/license supports standard IPv4 CIDR subnet matching (/0–/32, such as 10.0.0.0/8 or 192.168.0.0/16) in domain validation.

Improvements and fixes

  • Sheets Preserve conditional formatting and validation rule references and hyperlink undo across structural edits. Anchor notes to merged cells, update auto row heights after format painting, restore vertically aligned merged rich text, return typed booleans and raw cell data, and clamp header resizing in scene units.
  • Sheets Apply regional currency, date presets, and digit grouping across number formatting and formulas.
  • Formulas Align Pro offline calculation with Excel, preserve omitted LAMBDA arguments through IFERROR, match Excel coercion for RANDBETWEEN bounds, and reject COUPNUM coupon dates before the workbook epoch.
  • Docs Preserve character formatting when replacing a text range, stabilize bookmark ordering, resolve drawings and references on physical print pages, and preserve mixed paper sizes when printing Traditional Docs (Pro).
  • Charts, Slides, and SmartArt (Pro) Align scatter/bubble axis defaults, bar date axes, text pie counts, and combination formatting with Excel. Preserve text editing on grouped Slides shapes after redraw, and align SmartArt native layout geometry and typography.
  • Bases and Collaboration (Pro) Match displayed cell values in Find, keep Find highlights visible, create select options from record input and text fields, and prevent duplicate creation on rapid clicks. Rebase rich hyperlinks after collaborative dimension edits and preserve durable request identity during recovery.
  • UI and Design Use a bottom sheet for the mobile More menu, keep menus accessible in fullscreen, keep filter actions inside popups, and improve WAI-ARIA semantics, keyboard navigation, and RTL layout across @univerjs/design controls.

Breaking changes and migration preview

Standardize locale and region tags on BCP 47

LocaleType enum values, runtime getters, observables (currentLocale$, localeChanged$), and configuration options now use standard BCP 47 tags ('en-US', 'zh-CN', 'fr-FR') instead of compact strings ('enUS', 'zhCN', 'frFR'), and preserve script and numeric subtags such as 'sr-Latn-RS' and 'es-419'.
Code that references LocaleType members throughout needs no changes at call sites, but serialized values and hard-coded compact strings must be updated. Passing a compact string such as 'enUS' to new Univer(), setLocale(), setRegion(), or loadLocales() now throws RangeError:

-new Univer({ locale: 'enUS', region: 'frFR', locales: { enUS: englishPack } });
+new Univer({ locale: LocaleType.EN_US, region: LocaleType.FR_FR, locales: { [LocaleType.EN_US]: englishPack } });
-const isEnglish = univerAPI.getCurrentLocale() === 'enUS';
+const isEnglish = univerAPI.getCurrentLocale() === LocaleType.EN_US;

Existing workbook, document, and base snapshots preserve their stored locale spelling on save. Normalize snapshot metadata with getStoredLocaleTag from @univerjs/core when comparing against LocaleType:

-const isChinese = workbook.getSnapshot().locale === LocaleType.ZH_CN;
+const isChinese = getStoredLocaleTag(workbook.getSnapshot().locale) === LocaleType.ZH_CN;

Migrate chart runtime and package-root imports (Pro)

In @univerjs-pro/engine-chart, ChartModel is now a type-only root export. Construct standalone charts with UniverChart and create custom render models with createChartRenderModel(). Host adapter and model-service exports (ChartHostAdapter, *ChartConfigAdapter, and *ChartModelService) have been removed from chart-ui, sheets-chart, docs-chart, slides-chart, and boards-chart in favor of UniverChart and each host's *ChartService (SheetsChartService, DocChartService, SlideChartService, BoardChartService, and BaseChartRuntimeService). Snapshot, resource, and changeset schemas are unchanged.

Deprecations

  • FRange.getCellDatas() is deprecated in favor of FRange.getCellDataGrid().
  • @univerjs-pro/engine-formula (UniverProFormulaEnginePlugin) is now a deprecated compatibility wrapper over @univerjs/engine-formula. New integrations should register UniverFormulaEnginePlugin from @univerjs/engine-formula (and @univerjs/engine-formula/worker in Workers).
    Full changelog: v1.6.2…v1.7.0-alpha.0

Don't miss a new univer release

NewReleases is sending notifications on new releases.