3.13 to 3.14 Migration Guide
This guide covers changes when upgrading from OHIF version 3.13 to version 3.14.
-
Display set storage — display sets now live in the
@cornerstonejs/metadatatyped metadata cache.DisplaySetService.getDisplaySetCache()is deprecated and returns a read-only snapshot. -
React 19 — the monorepo moves to React 19.2.7.
@ohif/ui-nextnow declares react/react-dom aspeerDependencies, so consuming applications must supply React 19, and extensions and modes require it too. -
SmartScrollbar —
SmartScrollbarFillandSmartScrollbarEndpointsnow require themarkedarray to change identity when its contents change. Theversionprop is deprecated and no longer invalidates. -
WorkList —
LegacyWorkListand theworkList.variantcustomization still work in 3.14 and are deprecated. A future release removes both; migrate to theworkList.*customizations on the ui-nextWorkList. -
DataTable / TanStack Table v9 —
@ohif/ui-nextupgrades@tanstack/react-tableto v9. Column definitions need theDataTableFeaturesgeneric and thesortFnrename; programmatic visibility toggles should go throughuseToggleColumnVisibility. -
useSegmentationExpanded — the hook returns
undefinedoutside aSegmentationExpandedProviderinstead of throwing, and no longer takes a component-name argument. Callers that wrapped it intry/catchshould check forundefined; callers that require the provider should assert for themselves. -
4D segmentation — a labelmap of a 4D series can apply to all time points or to each time point.
SEGMENTATION_DATA_MODIFIEDhas the time point indimensionGroupNumber, and fires on each change of time point. -
Viewport element hooks —
useViewportRefanduseViewportRefsare replaced byuseViewportElementfor readers anduseViewportElementRegistrationfor the viewport that owns the element, andViewportRefsProvideris renamedViewportElementsProvider. The element is now a subscribed value rather than a snapshot read during render. -
Save/report dialog — the dialog for storing measurements, segmentations and contours replaces its series drop down with an explicit choice of three destinations: Save to current, Save as new and Replace existing. The series number of a new series is editable, and the series descriptions used before are remembered per type of item and offered as completions.
createReportDialogPrompttakesdefaultSeriesDescription,itemTypeandrememberedDescriptionCount, and returns aseriesNumber. A stored instance is now identified like a loaded one, so the object just saved becomes the predecessor of the next save of the same data. -
Display set date/time ordering — derived display sets are ordered by the creation date/time of the instance they show rather than by their series date/time, comparators registered with
addSameSeriesComparenow actually run, instances tie-break by creation date/time before the SOP instance UID, and saved reports and segmentations are stamped with a creation date/time and an instance number. -
useCustomization —
@ohif/coreadds auseCustomizationhook. A component that callscustomizationService.getCustomizationduring render can now freeze at a stale value, because the React Compiler caches the call on the service reference, which never changes. Move such reads to the hook. Event handlers and non-React code keep calling the service directly. -
InputNumber —
InputNumber.HorizontalControlsandInputNumber.VerticalControlsnow sharemin,max,stepanddisabledthrough a nested provider rather than by writing onto the root context object. That fixes constraints being discarded on every keystroke, but it means only descendants of the controls receive them; anInputNumber.Inputrendered as a sibling silently falls back tomin=0, max=100, step=1. -
createContext helper — the internal
ui-next/lib/createContexthelper is removed. It was never exported from@ohif/ui-next; if you imported it from source, use React's owncreateContextanduseContext— the compiler now provides the memoization it was hand-rolling. -
Hanging protocol comparisons — the
greaterThanandlessThanconstraints are now strict. Before, they tested>=and<=. The newgreaterThanOrEqualandlessThanOrEqualconstraints keep the old meaning.equalsanddoesNotEqualcompare the whole value of a multi-valued attribute, andincludesanddoesNotIncludeaccept a single test value. A numeric string and a boolean can now equal a number. The number constraints read a numeric string or the first element of an array, and so doesrange. The text constraints read a number value as text, and hold or fail on a missing value instead of an error.notNullreads''and[]as no value. An operand0,falseor''now runs its constraint; before, the constraint always passed. Some matches of the OHIF protocols change (@ohif/hpMammowith noPatientOrientation, a textnumImageFrames, and theOneOrMoreSeriesweight of@ohif/mnGrid,@ohif/mnGrid8and@ohif/hpScale); the page lists them. -
Multi-resolution volumes and Cornerstone3D 5.17 — every volume loads with
coarseInterleavedRetrieveStages, and themprprotocol no longer setsimageLoadStrategy: 'nth'. The data sourcevolumeRetrieveOptionsand a copy ofmprwithnthrestore the 3.13 load. The Cornerstone3D "Transient Low Fidelity" label shows while a volume loads, until the OHIF indicator (#6413) replaces it. Cornerstone3D 5.17 makesvolume.vtkOpenGLTexturea getter that can returnundefined, and removesRenderingCapabilities.webgl2; usevolume.modified()in place of the per-frame texture updates. The developer configs select themediumGPU settings preset. -
Display set split rules — the split rules of
@cornerstonejs/metadataare an opt-in customization, off by default. With the rules on, a SOP class handler of another extension runs only when it declareshandlerNamesandextendDisplaySet, and a rule names it. Otherwise its series shows as an unsupported display set. Also with the rules off, the viewport overlay now shows the series description of the display set, as the thumbnail does, and not only the description of the instance. -
Build tooling — the
.webpack/config directories are renamed.rspack/, and the app's production build and every dev server run through one rootrsbuild.config.ts.webpack.pwa.js,rspack serveandbuild:legacyare gone;dev:fastis now an alias ofdev. -
OHIF CLI removal —
platform/cliand the rootcliscript are gone. Each CLI command maps to a replacement:pnpm create ohifto scaffold,pnpm run pluginorplatform/app/pluginConfig.jsonto add, link or remove plugins, andcreate-ohif migrateto port a CLI-era package. -
Published packages — npm releases narrow to
@ohif/core,@ohif/ui-next,@ohif/i18n,@ohif/extension-default,@ohif/extension-cornerstone,create-ohifand@ohif/app. The other extensions and modes, and@ohif/ui, are no longer published; their 3.13.x releases stay on npm. -
Dynamic config URLs —
dangerouslyUseDynamicConfignow requires anoriginslist or aregexthat starts with^, and checks the absolute URL the browser will fetch. A deployment withregex: /.*/orregex: /hospital\.com/has itsconfigUrlrefused after the upgrade, and the viewer starts with its built-in configuration. -
dcmjs 1.0 — OHIF moves from
dcmjs0.52 todcmjs1.1.0, and keepsimport 'dcmjs'. The host still sharesdcmjswith runtime plugins, but its major version changes from 0 to 1. Instance metadata has the dcmjs 1.0 shapes. -
3D viewport orientation menu — a volume3d viewport shows a compass in the orientation menu. The Axial, Sagittal, and Coronal items are not in the menu of a volume3d viewport, so the menu does not change a 3D viewport to a 2D viewport.
-
React Router 7 —
react-routerandreact-router-dommove from 6.30.3 to 7.18.7, because React Router 6 no longer gets security fixes. Both are shared host packages, so a runtime plugin's peer ranges become^7.0.0. A plugin that uses only the hooks and components keeps working; one that usesjsonordefermust change.
Display set storage
In 3.14, DisplaySetService always stores its display sets in the
React 19
3.14 upgrades the monorepo to React 19.2.7.
Display set date/time ordering
Derived series - reports, segmentations, structure sets - are ordered by when
WorkList
3.13 shipped the ui-next WorkList at / and kept the previous study list as
SmartScrollbar
In 3.13, SmartScrollbarFill and SmartScrollbarEndpoints accepted a marked array
DataTable / TanStack Table v9
@ohif/ui-next upgrades @tanstack/react-table from v8 to v9. If you consume
useSegmentationExpanded
useSegmentationExpanded used to throw when a component was rendered outside a
D segmentation
OHIF 3.14 with Cornerstone3D 5.x changes how a labelmap segmentation of a 4D (dynamic) series
Viewport element hooks
The viewport element registry lets a component reach a viewport's DOM element by
Save/report dialog
The dialog shown when storing measurements, segmentations or contours
createContext helper
platform/ui-next/src/lib/createContext.tsx is deleted. It was an internal helper
useCustomization
3.14 adds useCustomization to @ohif/core. If a component of yours reads a
InputNumber
InputNumber.HorizontalControls and InputNumber.VerticalControls accept min,
OHIF CLI removal
platform/cli (@ohif/cli) and the root cli script were deleted. The CLI was
Build Tooling (.rspack, Rsbuild)
3.13 replaced Webpack with Rspack but kept the old file names (see
Hanging protocol comparisons
3.14 gives the hanging protocol constraints the meaning of the display set split rule
Published packages
Starting with 3.14, OHIF publishes a smaller set of packages to npm. The other
Multi-resolution volumes
OHIF 3.14 uses Cornerstone3D 5.17, which adds multi-resolution volume textures. Some changes
Display set split rules
3.14 adds the display set split rules of @cornerstonejs/metadata, as an opt-in
Dynamic config URLs
This matters only if your app config sets dangerouslyUseDynamicConfig.enabled: true,
dcmjs 1.0
OHIF 3.14 moves from dcmjs 0.52 to dcmjs 1.x. The OHIF source keeps
D orientation menu
In 3.13, the orientation menu of a volume3d viewport showed the Axial, Sagittal, and
React Router 7
3.14 upgrades react-router and react-router-dom from 6.30.3 to 7.18.7.