[FOLIO-3342] avoid react-intl > 5.21.0 Created: 11/Nov/21  Updated: 16/May/22  Resolved: 12/Nov/21

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Bug Priority: TBD
Reporter: Zak Burke Assignee: Zak Burke
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Duplicate
is duplicated by UIIN-1857 Bugfest. Holdings accordion. Holdings... Closed
is duplicated by UIQM-180 Edit MARC Holdings > Pane header does... Closed
Relates
relates to FOLIO-3503 unlock react-intl from 5.21.0 Closed
Sprint: Prokopovych - Sprint 127
Story Points: 1
Development Team: Prokopovych

 Description   

Overview: Avoid react-intl > v5.21.0; breaking changes were published in patch release v5.21.1.

Details: The implementation of <FormattedMessage> changed; previously, keys with empty values were replaced with empty strings; now the values are replaced with the keys. e.g.:

// en.json: 
foo: "Holdings: {location} > {callNumber} {copyNumber}"
// code 
<FormattedMessage id="foo" values={{ location: "AAA", callNumber: null }} />

// output <= 5.21.0
Holdings: AAA >

// output >= 5.21.1
Holdings: AAA > {callNumber} {copyNumber}

Generated at Thu Feb 08 23:27:23 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.