Skip to content

Releases: airbnb/visx

v0.0.196

02 May 21:54
Compare
Choose a tag to compare

v0.0.196

πŸš€ Enhancements

  • [tooltip] Remove tooltip default styles #666
  • [brush] Add initialBrushPosition #618, fix in #667

πŸ“ Documentation

  • [demo] Several demos refactored to link out to codesandbox

v0.0.195

27 Feb 05:31
Compare
Choose a tag to compare

πŸš€ Enhancements #631

  • [tooltip] useTooltip hook added

πŸ’₯ Breaking Changes #631

  • [tooltip] internally introduces useState, requires bumping the peerDep 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 use useTooltip instead of withTooltip

v0.0.194

14 Feb 21:39
Compare
Choose a tag to compare

πŸš€ Enhancements

  • [brush] Add resetOnEnd prop #614
  • [tooltip] Add hook for custom Tooltip container to support SVG tooltips #610
  • [scale] Add sqrtScale #615

πŸ› Bug Fix

  • [zoom] Don't use stale zoom constraint prop #578
  • [responsive] Don't render withParentSize base component until size is known #621

v0.0.193

30 Jan 05:42
Compare
Choose a tag to compare

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
  • [brush] @vx/brush now exports a working Brush component πŸŽ‰
  • [demo]
    • all gallery demos re-written with react hooks + types
    • new @vx/brush demo is added

πŸ“ 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 and distance 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 for React.Fragment, dropping support for react@^15
    • Empty parent <g> wrapper around Drag children was replaced with a React.Fragment which removes a DOM element.
  • [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 for React.Fragment, dropping support for react@^15
    • the Arc centroid prop was removed as it was not functional (it was called as if it was an arc.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 and offset props for Stack, BarStack, BarStackHorizontal, and AreaStack previously supported string, array, or functions. Only the string prop was functional, and only the enumerated string presets are now allowed.
  • [voronoi] now has a peerDep react@^16.3 for React.Fragment, dropping support for react@^15 #512
  • [network] #535
    • now has a peerDep react@^16.3 for React.Fragment, dropping support for react@^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
  • [glyph] #518
    • now has a peerDep react@^16.3 for React.Fragment, dropping support for react@^15
    • (non-functional) children prop removed from GlyphDot component
  • [heatmap] now has a peerDep react@^16.3 for React.Fragment, dropping support for react@^15 #520
  • [hierarchy] now has a peerDep react@^16.3 for React.Fragment, dropping support for react@^15 #524
  • [threshold] makes the Threshold id prop required #533
  • [geo] now has a peerDep react@^16.3 for React.Fragment, dropping support for react@^15 #537
  • [legend] #551
    • now has a peerDep react@^16.3 for React.Fragment, dropping support for react@^15
    • the following directory structures were changed which will break deep imports: src/legends/* => src/*
  • [stats] #570
    • now has a peerDep react@^16.3 for React.Fragment, dropping support for react@^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

🏠 Internal

  • add TypeScript build support to monorepo #488
  • [text] Remove deprecated lifecycles used in Text #576

v0.0.192

03 Oct 22:57
Compare
Choose a tag to compare

See #484 for details.

πŸ’₯ Breaking Changes

  • [breaking] Deprecate build/ and dist/, use lib/ and esm/ instead
  • [breaking] Deprecate umd builds

🏠 Internal

  • use babel not rollup
  • use yarn not npm
    • 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
  • Stricter linting rules (e.g., .jsx required for React files)

v0.0.191

06 Sep 19:51
Compare
Choose a tag to compare

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

17 Jul 16:05
Compare
Choose a tag to compare

πŸ’₯ 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 in bin.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

16 May 20:43
Compare
Choose a tag to compare

πŸ’₯ Breaking Changes

  • [shape] <Arc /> and <Pie pieValue={} /> props now check for !== undefined. Before 0 wouldn't set the prop to 0 because if (0) is false. This is only a breaking change if you were passing 0 before and happy with <Arc /> treating that as undefined 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>

πŸš€ 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 respects 0 as an allowed prop value. #464
  • [shape] <Pie /> pieValue now respects 0 as an allowed prop value. #464

πŸ“ Documentation

  • [docs] update docs. #446
  • [glyph] fixes outdated @vx/glyph examples in the readme docs. #454

🏠 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 from CRLF => 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

v0.0.188

15 Mar 14:19
Compare
Choose a tag to compare

πŸ› Bug Fix

  • [responsive] add debounceTime back to prevent it spreading on children through restProps. #437

πŸ† Contributors

Changes:
 - @vx/demo: 0.0.187 => 0.0.188
 - @vx/responsive: 0.0.186 => 0.0.188
 - @vx/vx: 0.0.187 => 0.0.188

v0.0.187

14 Mar 16:22
Compare
Choose a tag to compare

πŸš€ Enhancements

  • [geo] add <CustomProjection projection={someProjectionFunction} />. #434

πŸ“ Documentation

  • [demo] add <CustomProjection /> tile. #434

🏠 Internal

  • [geo] add <CustomProjection /> test. #435

πŸ† Contributors

Changes:
 - @vx/demo: 0.0.186 => 0.0.187
 - @vx/geo: 0.0.184 => 0.0.187
 - @vx/vx: 0.0.186 => 0.0.187