Skip to content

Latest commit

 

History

History
511 lines (313 loc) · 11.5 KB

CHANGELOG.md

File metadata and controls

511 lines (313 loc) · 11.5 KB

Changelog

0.16.0

Jun 21, 2022

  • Creates and implements a SmartDataTableContext
  • Removes the dev and dist dirs
  • Upgrades the example to use the React 18 API
  • Moves the example to gh-pages

0.15.0

Apr 3, 2022

  • Adds support for a custom sort compareFn per column which can be used to leverage localeCompare

no-release (2022-02-06)

Feb 6, 2022

  • Moved the docs to this repo

0.14.0

Jan 7, 2022

  • Adds data attributes to columns that allow individual column targeting, e.g. by CSS

0.13.1

Nov 14, 2021

  • Removed the compiled example from the npm package to remove the overall bundle/download size

0.13.0

Nov 13, 2021

  • Ported the tests to TypeScript
  • Added a SelectAll component to the Toggles component (Issue #49)

no-release (2021-11-10)

Nov 10, 2021

  • Updated some of the dependencies

no-release (2021-11-09)

Nov 9, 2021

  • Migrated the react testing library from enzyme to @testing-library/react

0.12.0

Apr 24, 2021

  • Added a dataSampling prop which tells the sampling algorithm how much of the data to sample in order to compute the headers, useful for data which is not uniform

0.11.0

Apr 17, 2021

  • Converted the codebase to TypeScript
  • Fixed an issue where columns might get duplicated Issue #39

0.10.1

Mar 22, 2021

  • Improved the CI workflows
  • Updated the documentation
  • Updated the required React version

0.10.0

Mar 2, 2021

  • Added a new dataRequestOptions to allow passing options directly to the underlying fetch API call

0.9.0

Feb 17, 2021

  • Added a new dataKeyResolver prop that accepts custom function which takes the response as its only argument and returns the data
  • Fixed a bug rendering the cell value introduced in the previous refactoring
  • Fixed a long lasting bug regarding the headers prop overriding behavior
  • Fixed the loader not appearing if the data was empty
  • Added more tests

no-release (2021-02-15)

Feb 15, 2021

  • Converted the CellValue component to a FC and added React.memo to try and get some performance gains

no-release (2021-02-14)

Feb 14, 2021

  • Upgraded the codebase to the new JSX transform
  • Removed the memoize-one dependency
  • Cleaned up the internal code
  • Refactored the dev workflow
  • Changed the files with JSX syntax to use the .jsx extension
  • Converted some Class Components to Functional Components
    • Toggles
  • Converted some div elements to more semantic HTML elements
  • Converted Promises to async-await
  • Improved the pagination's basic CSS
  • Added custom API URL to the example

Breaking Changes

  • TableCell was renamed to CellValue

0.8.0

Sep 1, 2020

Breaking Changes

  • Removed the styling to a dedicated file

no-release (2020-06-07)

Jun 7, 2020

  • Started to add component testing using enzyme

no-release (2020-05-18)

May 18, 2020

  • Switched from npm to yarn
  • Updated the dependencies
  • Fixed the example
  • Added GitHub workflows for push and PR to the main branch

0.7.4

Mar 20, 2020

no-release (2020-03-08)

Mar 8, 2020

  • Added some unit tests
  • Added husky for pre-commit hooks

no-release (2020-03-07)

Mar 7, 2020

  • Updated the dependencies due to:
  • Improved the docs
  • Added a code of conduct
  • Added contributing guidelines
  • Added a pull request template

0.7.3

Oct 18, 2019

0.7.2

Sep 29, 2019

  • Removed the deprecation warning for footer and withHeaders
  • Added the orderedHeaders prop that allows to customize the headers order
  • Added the hideUnordered prop that allows to hide unordered headers

0.7.1

Jun 20, 2019

0.7.0

Feb 4, 2019

  • Added the possibility of passing a custom Paginator component to render the pagination
  • Removed the segmentize dependency

0.6.7

Dec 25, 2018

  • Removed the lodash dependency completely
  • Fixed a bug where the rows, when filtered, would cause the sorting to not work
  • Didn't change the behavior where the index passed down to transform function in the headers does not correspond to the index of the original data, but of the sorted data instead, because a different algorithm can be used to achieve the same result (example in the documentation)

0.6.6

Dec 20, 2018

0.6.5

Oct 10, 2018

  • Added the prop emptyTable to display a message when the table is empty (Fixes Issue #13)

0.6.4

Sep 28, 2018

  • Added transform and isImage properties to the headers prop accepted options

0.6.3

Sep 28, 2018

  • Added prop to pass custom header prop with options to override individual columns default behavior
  • Added the dynamic prop
  • Added a .npmignore file to reduce the package size by excluding examples and tests

0.6.2

Sep 6, 2018

  • Removed the Python dependency and replaced the development server with webpack-dev-server
  • Updated the webpack configuration for the new babel-loader
  • Helper functions improvements

0.6.1

Sep 5, 2018

0.6.0

Aug 29, 2018

  • Webpack reorganization
  • Package structure reorganization

Breaking Changes

  • Removed the styled prop deprecation warning
  • Added the footer deprecation warning
  • Added the withHeaders deprecation warning
  • Added the withFooter prop as the flag to render the footer in convergence with the withHeader prop

Note: This version is exactly the same as 0.5.15 with some props name changes. If this breaks your app, keep using the previous version.

0.5.15

Aug 19, 2018

  • Added className to options that can be provided to parseImg to be passed down to the img tag
  • Several minor enhancements, bug fixes and code reduction
  • Added memoization through memoize-one

0.5.14

Aug 19, 2018

  • Added a parser for images and the possibility to render the image instead of displaying the URL which also accepts an object with a style key containing a style object which will be passed down to the <img /> tag with the CSS attributes as defined in Common CSS Properties Reference

Bug Fixes

  • Stopped the event propagation to onRowClick when links rendered with withLinks are clicked

0.5.13

Aug 14, 2018

  • Added the possibility to convert true and false to [Yes Word] and [No Word] when the value is of Boolean type where each can be customized by supplying an object to the parseBool prop

0.5.12

Aug 14, 2018

  • Added the possibility to convert true and false to Yes and No when the value is of Boolean type through the parseBool prop

0.5.11

Aug 12, 2018

  • Added onRowClick prop, check the README for the function signature (courtesy of occult)

0.5.10

Aug 1, 2018

Bug fixes

  • When filtering by value, reset the page (pagination) back to 1

0.5.9

Jul 23, 2018

  • Added a condition to reload the async data if the URL changes

0.5.8

Jul 18, 2018

  • The RSDT now correctly re-renders when data is changed in props and the loader is correctly called, it also correctly re-renders even when the data type is changed

0.5.7

Jun 24, 2018

  • Added ESLint with babel-eslint and eslint-config-airbnb
  • Added a new prop for a loader component to be rendered while fetching async data
  • Added intelligence to parse boolean values

0.5.6

Jun 10, 2018

  • Added async data loading from remote url

0.5.5

Apr 30, 2018

0.5.4

Apr 25, 2018

  • Exposed the library as a compiled bundle in order to avoid import errors due to the ES6 syntax

0.5.3

Apr 2, 2018

  • Added the prop withHeaders (courtesy of Derush)

0.5.2

Mar 18, 2018

  • Tested and updated the dependencies, will bring improvements very soon

0.5.1

Aug 2, 2017

  • Highlighting text now works with withLinks
  • Added pagination with ellipsis for large amounts of data
  • Added deprecation warning for styled prop

0.5.0

Jul 25, 2017

  • Complete re-write of the whole component, makes the internal gears more flexible for future improvements
  • Removed the styled prop and the ability to render the table using div's
  • Removed sorting by clicking on table header
  • Added sorting by clicking on table header sorting icon
  • Added different icons to represent sorting directions
  • Added string highlight to search filter
  • Added withLinks prop that detects and converts links to <a /> tags
  • Column toggles no longer require the custom component, it's built-in
  • Added example with per page dropdown selection
  • Converted pagination span tags to a tags

0.4.1

May 27, 2017

  • Fixed a bug where the visibility toggles wouldn't function introduced by the pagination support

0.4.0

May 26, 2017

  • Added pagination support

0.3.4

May 6, 2017

  • Package dependencies updated

0.3.3

Apr 25, 2017

  • Fixed the toggles and sorting compatibility bug
  • Added documentation for toggles

0.3.2

Apr 24, 2017

  • Added column visibility toggles
    • Bug: need to fix compatibility with sorting

0.3.1

Apr 23, 2017

  • Fixed a bug where sorting would reset the filtering
  • Added a filtering example to README.md

0.3.0

Apr 21, 2017

  • Added filtering of all columns through a new prop filterValue that accepts a string input as the value to use for the filter

0.2.3

Apr 15, 2017

  • Added live examples to README.md

0.2.2

Apr 15, 2017

  • Added PropTypes from the prop-types npm module instead of the main react

0.2.1

Mar 26, 2017

  • Added SmartDataTable as a default export

0.2.0

Mar 25, 2017

  • Added sortable option to make the table sortable by individual columns

0.1.0

Mar 11, 2017

  • Added support for nested objects and for more header formats
  • Added lodash dependency
  • Started to document the code, updated the README.md

0.0.1

Feb 12, 2017

  • Wrote most of the logic for the smart data table

0.0.0

Jan 30, 2017

  • Created the index export and wrote the basic react component structure
  • Created the environment for proper development and testing