- b6d2cb3: Update TS to version 5.1.3
-
d0721e7: Update project to React 18:
- Update
react
,react-dom
& corresponding types. - Use the new
react-dom
createRoot
syntax for rendering - Upgrade @guardian dependencies to latest version, including source-react-components v13 which is on React 18
- Upgrade @testing-library dependencies to support React 18
- Upgrade Typescript to v4.9.5
- Update
-
bcd2a21: This release introduces a change in its peer dependencies, which is a always a breaking change.
- @guardian/libs@^12.0.0 (from ^10.0.0)
Consumers should consider upgrading their local versions of libs, which only brings two major changes:
-
22c1d98: ### What Add required prop
idApiUrl
to the discussion App. The url is coming from CAPI and passed via DCR.The previous version of discussion-rendering had the prod identity url hardcoded and was hitting this regardless of environment. This was causing CORS errors when trying to post a comment as
https://m.code.dev-theguardian.com/
is not one of the allowed domains to hit the prod api.This change handles the consumption of
idApiUrl
by the application.
- 18ac401: Drop sourcemaps from build
- d1ca477: Fix Emotion class names
- 33e5bc7: Externalise react-is and react/jsx-runtime
- 17eb3f3: Bring in the latest Source packages, which bring major visual changes to:
- Line height, which is now a little bit tighter
Link
&LinkButton
, which no longer have a subdued setting and come with an underline for accessibility- Pillar colours, which have been tweaked to provide higher contrast
- 25b84b2: Use Vite’s library mode for bundling the package. No expected change.
- 8341d18: No underlines on Link
- f3c8e7f: Align peer and direct dependencies with dev ones.
- 9767c2e: Usage of
timeAgo
from @guardian/libs. No visual change. - 72e9682: Keep
devDependencies
where they should be
- a8655b3028f654d7ff700903011f2b3e4f537941: Use a dot to separate hours and minutes
- c5659d044692b939677611f79b0f23c5d9652ea8: Show the second comment box less