Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/charts-recharts-react-19.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@toptal/picasso-charts': patch
---

### Charts

- upgrade `recharts` to `^2.15.4` so the package can run under React 19. `2.15.0` is the first recharts release whose `react` peer range admits `^19.0.0`, and it also rewrites the function components that carried `defaultProps` — `XAxis`, `YAxis`, `ReferenceArea` and `ReferenceLine`, all used by `LineChart` and `BarChart`. React 19 no longer applies `defaultProps` on function components, which would have dropped defaults such as `xAxisId`/`yAxisId`, `orientation` and `type` and left charts blank or misaligned
- `react-smooth` moves to `4.0.4` and `react-is` to 18 inside recharts' dependency tree; `react-smooth@4.0.4` is the first release whose peer range admits React 19
- no `@toptal/picasso-charts` API or behavior change. The `react` peer range stays capped at `< 19.0.0`; lifting that cap library-wide is tracked separately in PF-2262
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,5 @@ In other cases when you use custom webpack build configuration you should check
3. You have `sideEffects` prop in your `package.json` set to `false` value or don't have it at all

Have a happy tree shaking! :)

--
2 changes: 1 addition & 1 deletion packages/picasso-charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"classnames": "^2.5.1",
"d3-array": "^3.2.2",
"debounce": "^1.2.1",
"recharts": "^2.12.3"
"recharts": "^2.15.4"
},
"exports": {
".": "./dist-package/src/index.js",
Expand Down
21 changes: 11 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading