v0.0.193
See the TypeScript project for a full list of issues + PRs.
π Enhancements
- [@vx/*]
- all packages re-written in TypeScript and export types under
lib/index.d.ts
- Many misc bug fixes with improved type safety, most
propTypes
are likely stricter now
- all packages re-written in TypeScript and export types under
- [brush]
@vx/brush
now exports a workingBrush
component π - [demo]
- all gallery demos re-written with
react
hooks
+ types - new
@vx/brush
demo is added
- all gallery demos re-written with
π Documentation
- [@vx/*] all components in all packages now have full doc strings. note: these is not yet reflected on the docs site.
π₯ Breaking Changes
- [boxplot]
@vx/boxplot
deprecated in favor of@vx/stats
#561 - [mock-data]
radius
anddistance
values in the@vx/mock-data
exoplanet
dataset were updated from strings to numbers to remove the need for consumers to coerce to numbers themselves #579 - [drag] #499
- now has a peerDep
react@^16.3
forReact.Fragment
, dropping support forreact@^15
- Empty parent
<g>
wrapper around Dragchildren
was replaced with aReact.Fragment
which removes a DOM element.
- now has a peerDep
- [pattern]
PatternOrientation
is no longer the default export of@vx/patterns/lib/constants
and is instead a named export. PatternOrientation is still used as the export name if importing from the index:import { PatternOrientation } from '@vx/pattern'
#503 - [shape] #507
- now has a peerDep
react@^16.3
forReact.Fragment
, dropping support forreact@^15
- the
Arc
centroid
prop was removed as it was not functional (it was called as if it was anarc.centroid()
configuration parameter, but in reality the.centroid
method is for returning the centroid of a datum. - the
Area
component is no longer wrapped in an empty<g>
element order
andoffset
props forStack
,BarStack
,BarStackHorizontal
, andAreaStack
previously supportedstring
,array
, orfunction
s. Only thestring
prop was functional, and only the enumerated string presets are now allowed.
- now has a peerDep
- [voronoi] now has a peerDep
react@^16.3
forReact.Fragment
, dropping support forreact@^15
#512 - [network] #535
- now has a peerDep
react@^16.3
forReact.Fragment
, dropping support forreact@^15
<Nodes />
inner node wrapper<g>
element className changed to singular (vx-network-nodes => vx-network-node) and outer wrapper<g>
was replaced with a React.Fragment<Links />
inner link wrapper<g>
element className changed to singular (vx-network-links => vx-network-link) and outer wrapper<g>
was replaced with a React.Fragment
- now has a peerDep
- [glyph] #518
- now has a peerDep
react@^16.3
forReact.Fragment
, dropping support forreact@^15
- (non-functional)
children
prop removed fromGlyphDot
component
- now has a peerDep
- [heatmap] now has a peerDep
react@^16.3
forReact.Fragment
, dropping support forreact@^15
#520 - [hierarchy] now has a peerDep
react@^16.3
forReact.Fragment
, dropping support forreact@^15
#524 - [threshold] makes the
Threshold
id
prop required #533 - [geo] now has a peerDep
react@^16.3
forReact.Fragment
, dropping support forreact@^15
#537 - [legend] #551
- now has a peerDep
react@^16.3
forReact.Fragment
, dropping support forreact@^15
- the following directory structures were changed which will break deep imports:
src/legends/* => src/*
- now has a peerDep
- [stats] #570
- now has a peerDep
react@^16.3
forReact.Fragment
, dropping support forreact@^15
- the following directory structures were changed which will break deep imports
src/violinplot/ViolinPlot.jsx => src/ViolinPlot.tsx
src/boxplot/BoxPlot.jsx => src/BoxPlot.tsx
- now has a peerDep