Releases: airbnb/visx
Releases Β· airbnb/visx
v0.0.197
π Enhancements
- feat(tooltip): add unstyled prop to TooltipWithBounds #721
- perf(tooltip): use useCallback in useTooltip #668
π Bug Fix
- fix(zoom): fix zoom.dragMove on touchmove event y-coord #725
π Documentation
- feat(demo): new documentation, codesandbox examples #732 #731 #730 #729 #727 #720#720 #719 #718 #717 #716 #715 #714 #713 #712 #711 #710 #709 #708 #707 #706 #705 #704 #703 #702 #701 #700 #699 #698 #697 #696 #695 #694 #693 #692 #691 #690 #689 #688 #687 #686 #685 #684 #683 #682 #681 #680 #679 #678 #677 #676 #675 #674 #673 #672 #671 #670 #679
π Internal
- deps(root): bump yarn.lock, add @types/webpack #740
- fix(demo/package.json): lock next.js version #740
- fix(demo): prettier config updated so lots of minor style updates #740
- fix(demo/next.config.js): fix invalid webpack config error #740
- fix(demo/pages): routes are case sensitive (
/Docs
=>/docs
) #740 - feat(demo/gallery): gallery filter persists on query param
?pkg
instead of local state #740
π Contributors
Changes:
- @vx/annotation: 0.0.196 => 0.0.197
- @vx/axis: 0.0.196 => 0.0.197
- @vx/bounds: 0.0.196 => 0.0.197
- @vx/brush: 0.0.196 => 0.0.197
- @vx/chord: 0.0.196 => 0.0.197
- @vx/clip-path: 0.0.196 => 0.0.197
- @vx/curve: 0.0.196 => 0.0.197
- @vx/demo: 0.0.196 => 0.0.197
- @vx/drag: 0.0.196 => 0.0.197
- @vx/event: 0.0.196 => 0.0.197
- @vx/geo: 0.0.196 => 0.0.197
- @vx/glyph: 0.0.196 => 0.0.197
- @vx/gradient: 0.0.196 => 0.0.197
- @vx/grid: 0.0.196 => 0.0.197
- @vx/group: 0.0.196 => 0.0.197
- @vx/heatmap: 0.0.196 => 0.0.197
- @vx/hierarchy: 0.0.196 => 0.0.197
- @vx/legend: 0.0.196 => 0.0.197
- @vx/marker: 0.0.196 => 0.0.197
- @vx/mock-data: 0.0.196 => 0.0.197
- @vx/network: 0.0.196 => 0.0.197
- @vx/pattern: 0.0.196 => 0.0.197
- @vx/point: 0.0.196 => 0.0.197
- @vx/responsive: 0.0.196 => 0.0.197
- @vx/scale: 0.0.196 => 0.0.197
- @vx/shape: 0.0.196 => 0.0.197
- @vx/stats: 0.0.196 => 0.0.197
- @vx/text: 0.0.196 => 0.0.197
- @vx/threshold: 0.0.196 => 0.0.197
- @vx/tooltip: 0.0.196 => 0.0.197
- @vx/voronoi: 0.0.196 => 0.0.197
- @vx/vx: 0.0.196 => 0.0.197
- @vx/zoom: 0.0.16 => 0.0.19
v0.0.196
v0.0.195
π Enhancements #631
- [tooltip]
useTooltip
hook added
π₯ Breaking Changes #631
- [tooltip] internally introduces
useState
, requires bumping thepeerDep
for react to^16.8.0-0
π Documentation #631
- [tooltip] add
useState
to readme, add advice on HOC vs hooks - [demo] Rewrite the
BarStack
demo to useuseTooltip
instead ofwithTooltip
v0.0.194
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
π Internal
v0.0.192
See #484 for details.
π₯ Breaking Changes
- [breaking] Deprecate
build/
anddist/
, uselib/
andesm/
instead - [breaking] Deprecate umd builds
π Internal
- use
babel
notrollup
- use
yarn
notnpm
- this will enable
workspaces
so that we can push all config to the root instead of duplicating across every package as is the case now
- this will enable
- Stricter linting rules (e.g.,
.jsx
required forReact
files)
v0.0.191
See #487 for details.
π₯ Breaking Changes
- [text] peerDep
react@^16.3
, deprecate react 15 - [text] prefix lifecycle methods with
UNSAFE_
- [axis] peerDep
react@^16.3
, deprecate react 15 due to @vx/text dep - [demo] use react 16.9
- [demo] prefix lifecycle methods with
UNSAFE_
π Internal
- [internal] update deps: coveralls, lint-staged, marked
π Contributors
Changes:
- @vx/axis: 0.0.190 => 0.0.191
- @vx/demo: 0.0.190 => 0.0.191
- @vx/text: 0.0.190 => 0.0.191
- @vx/vx: 0.0.190 => 0.0.191
v0.0.190
π₯ Breaking Changes
- [scale] d3-scale 2.2.2 changed the behavior of a collapsed domain. See this comment for how to handle the updated behavior. #477
- [text] Don't split strings rendered by
<Text />
when encountering a set of non-breaking space characters. #460
π Enhancements
- [group] add innerRef prop. #480
- [scale] bump d3-scale dep to
^2.2.2
for scaleSymlog. #477 - [scale] add scaleSymlog. #470
π Bug Fix
- [stats] fix horizontal boxplot in @vx/stats. #476
- [boxplot] fix horizontal boxplot in @vx/boxplot. #472
- [heatmap] remove
bin.x0
. The x0 offset is accounted for inbin.x
. #475
π Documentation
- [docs][group] add innerRef prop. #480
- [axis] fix
tickLabelProps()
prop default args for docs. #478 - [glyph] remove outdated readme description. #478
- [docs] run doc:gen script. #478
π Contributors
Changes:
- @vx/annotation: 0.0.189 => 0.0.190
- @vx/axis: 0.0.189 => 0.0.190
- @vx/boxplot: 0.0.189 => 0.0.190
- @vx/demo: 0.0.189 => 0.0.190
- @vx/geo: 0.0.189 => 0.0.190
- @vx/glyph: 0.0.189 => 0.0.190
- @vx/grid: 0.0.189 => 0.0.190
- @vx/group: 0.0.189 => 0.0.190
- @vx/heatmap: 0.0.189 => 0.0.190
- @vx/hierarchy: 0.0.189 => 0.0.190
- @vx/legend: 0.0.189 => 0.0.190
- @vx/marker: 0.0.189 => 0.0.190
- @vx/network: 0.0.189 => 0.0.190
- @vx/scale: 0.0.189 => 0.0.190
- @vx/shape: 0.0.189 => 0.0.190
- @vx/stats: 0.0.189 => 0.0.190
- @vx/text: 0.0.189 => 0.0.190
- @vx/threshold: 0.0.189 => 0.0.190
- @vx/voronoi: 0.0.189 => 0.0.190
- @vx/vx: 0.0.189 => 0.0.190
v0.0.189
π₯ Breaking Changes
- [shape]
<Arc />
and<Pie pieValue={} />
props now check for!== undefined
. Before0
wouldn't set the prop to0
becauseif (0)
isfalse
. This is only a breaking change if you were passing0
before and happy with<Arc />
treating that asundefined
and using d3.arc() defaults. #464 - [zoom] make wheel event active by default. fixes Chrome 73 scroll intervention warning. #456
- To keep the default behavior before Chrome 73 and remove console warnings in Chrome 73, remove:
<MyComponent - onWheel={zoom.handleWheel} />
- To make the onWheel events passive, add:
<Zoom + passive={true} > {zoom => { return ( <MyComponent + onWheel={zoom.handleWheel} /> ); }} </Zoom>
- To keep the default behavior before Chrome 73 and remove console warnings in Chrome 73, remove:
π Enhancements
- [responsive][shape][text][geo] update
innerRef
propType to include PropType.object. #446
π Bug Fix
- [text] move Babel dependencies to dev only. #461
- [shape]
<Arc />
now respects0
as an allowed prop value. #464 - [shape]
<Pie />
pieValue
now respects0
as an allowed prop value. #464
π Documentation
π Internal
- [internal] fix jest code coverage, update jest, move to
babel.config.js
+jest.config.js
. #439 - [internal] babel preset env target
explorer
=>ie
. #446 - [internal] babel preset env target remove
ucandroid
. #446 - [shape] add more
<Arc />
tests. #464 - [shape] convert
Arc.test
fromCRLF
=>LF
. #464
π Contributors
Changes:
- @vx/annotation: 0.0.184 => 0.0.189
- @vx/axis: 0.0.184 => 0.0.189
- @vx/bounds: 0.0.182 => 0.0.189
- @vx/boxplot: 0.0.183 => 0.0.189
- @vx/brush: 0.0.182 => 0.0.189
- @vx/chord: 0.0.183 => 0.0.189
- @vx/clip-path: 0.0.183 => 0.0.189
- @vx/curve: 0.0.182 => 0.0.189
- @vx/demo: 0.0.188 => 0.0.189
- @vx/drag: 0.0.183 => 0.0.189
- @vx/event: 0.0.182 => 0.0.189
- @vx/geo: 0.0.187 => 0.0.189
- @vx/glyph: 0.0.183 => 0.0.189
- @vx/gradient: 0.0.183 => 0.0.189
- @vx/grid: 0.0.184 => 0.0.189
- @vx/group: 0.0.183 => 0.0.189
- @vx/heatmap: 0.0.183 => 0.0.189
- @vx/hierarchy: 0.0.183 => 0.0.189
- @vx/legend: 0.0.183 => 0.0.189
- @vx/marker: 0.0.184 => 0.0.189
- @vx/mock-data: 0.0.185 => 0.0.189
- @vx/network: 0.0.183 => 0.0.189
- @vx/pattern: 0.0.183 => 0.0.189
- @vx/point: 0.0.182 => 0.0.189
- @vx/responsive: 0.0.188 => 0.0.189
- @vx/scale: 0.0.182 => 0.0.189
- @vx/shape: 0.0.184 => 0.0.189
- @vx/stats: 0.0.183 => 0.0.189
- @vx/text: 0.0.183 => 0.0.189
- @vx/threshold: 0.0.184 => 0.0.189
- @vx/tooltip: 0.0.184 => 0.0.189
- @vx/voronoi: 0.0.183 => 0.0.189
- @vx/vx: 0.0.188 => 0.0.189
- @vx/zoom: 0.0.185 => 0.0.189