5.3.0 Change Notes
- [5.3.0 Change Notes](#5.3.0 Change Notes)
@itwin/core-quantity
Changes
- Fixed a bug in Parser where invalid unit labels were silently ignored during parsing when no format units were specified, leading to incorrect results. Previously, when using a unitless format with input like "12 im" (a typo "in" for inches), the parser would successfully parse it as "12 meters" when the persistence unit was set to meters. The parser now correctly returns
ParseError.UnitLabelSuppliedButNotMatchedwhen a unitless format is used and a unit label is provided but cannot be matched to any known unit. This fix ensures parsing errors are noticed and properly handled by the caller, preventing silent failures and ensuring data integrity.
@itwin/ecschema-metadata
Enhancements
Enhanced FormatSet interface to support format referencing. The
formatsproperty now accepts either aFormatDefinitionor a string reference to another KindOfQuantity, enabling one format to reference another format's definition. This allows for more flexible format management and reduces duplication when multiple KindOfQuantities should share the same format specification.Enhanced FormatSetFormatsProvider to support the updated
FormatSetinterface. Please see the learnings article for quantity highlighting features and code examples of the provider.
@itwin/presentation-common
Additions
Added
createContentFormatterfactory function that creates a content formatter for formattingContentand its containedItemobjects. The function takes apropertyValueFormatterprop that knows how to format individual numeric values based on their kind-of-quantity. ExistingKoqPropertyValueFormattercan be used for that:const contentFormatter = createContentFormatter({ propertyValueFormatter: new KoqPropertyValueFormatter({ schemaContext: iModelConnection.schemaContext, formatsProvider: IModelApp.formatsProvider, }), unitSystem: IModelApp.quantityFormatter.activeUnitSystem, });
Electron 39 support
In addition to already supported Electron versions, iTwin.js now supports Electron 39.
Last Updated: 03 November, 2025