HANDSONTABLE v8.0.0-beta.1 Release Notes

Release Date: 2019-11-14 // over 4 years ago
  • ๐Ÿ’ฅ Breaking changes

    We implemented a new architecture for row and column management.

    It allows an easier and more straightforward way to perform CRUD and moving operations on rows and columns. This change forced us to create some breaking changes:

    ๐Ÿ—„ The observeChanges plugin is no longer enabled by columnSorting and became deprecated.

    Modifying the table's data by reference and calling render() will not work properly anymore. From this point onward, all the data-related operations need to be performed using the API methods, such as populateFromArray or setDataAtCell.

    ๐Ÿšš The modifyRow, modifyCol, unmodifyRow, unmodifyCol and skipLengthCache hooks are no longer needed and were removed.

    ๐Ÿšš The manualColumnFreeze plugin doesn't use the manualColumnMove plugin anymore.

    ๐Ÿ”Œ The collapsibleColumns plugin doesn't use the hiddenColumns plugin anymore.

    ๐Ÿ”Œ The nestedRows plugin doesn't use the trimRows plugin anymore.

    ๐Ÿ”Œ The filters plugin doesn't use the trimRows plugin anymore.

    ๐Ÿ”Œ The minSpareRows and minRows options will ensure that the number of visible rows corresponds to the value provided to them (for example, the trimRows plugin won't have an impact on the number of displayed rows).

    Methods like toPhysicalRow, toVisualColumn, etc. now return null for non-existant rows/columns.

    The afterLoadData hook receives a different set of arguments. It used to be just the initialLoad flag, now the first argument is sourceData, followed by initialLoad.

    The manualColumnFreeze plugin will now put the unfrozen columns right next to the last frozen one.

    ๐Ÿšš The RecordTranslator object and the t property available in the plugins were removed.

    after-prefixed hooks (afterLoadData, afterFilter, etc.) are now called just before the render call.

    Newly created rows and columns are now placed in the source data in the place calculated from its position in the visual context (they "stick" to their adjacent rows/columns). It also applies to moved rows and columns.

    ๐Ÿšš When the nestedRows plugin is enabled, moving rows will be possible only using the UI or by calling the dragRows method of the manualRowMove plugin.

    ๐Ÿ‘€ For more in-depth information about these changes, see the description of pull request #5945. (#5751)

    The beforeRowResize, afterRowResize, beforeColumnResize, afterColumnResize hooks have the order of their arguments rearranged for the sake of consistency with other hooks:

    Was:
    (currentIndex: number, newSize: number, isDoubleClick: boolean)

    Is:

    (newSize: number, index: number, isDoubleClick: boolean)

    (#3328)

    ๐Ÿ”„ Change the argument structure in collapsibleColumns' toggleCollapsibleSection method.

    Was:

    (coords: object, action: string)

    Is:

    coords: Array<object>, action: string)

    (#6193)

    ๐Ÿ†• New features (also present in the upcoming version 7.3.0)

    • ๐Ÿ”Œ We're introducing a new option to the Context Menu plugin - uiContainer. It allows declaring a DOM container, where all the Context Menu's element will be placed. It may come espacially handy when using Handsontable inside of an iframe or some other content-trimming context. (#6283, #6417)
    • ๐Ÿ”Œ We also added a uiContainer option to the Copy/Paste plugin. It works in a similar way to the one described above, but is used to declare the container for the Copy/Paste plugin's DOM elements. (#6343)

    ๐Ÿ”„ Changes

    • Resolved a problem with data not being added to the table properly with the columnSorting option enabled. (#2685)
    • ๐Ÿ›  Fixed a problem with loadData not resetting the row order changed by the manualRowMove plugin. (#3568)
    • ๐Ÿ›  Fixed a bug, where using alter's insert_row after using the loadData method and sorting the data would add unintentional additional rows to the table. (#3809)
    • ๐Ÿ›  Fixed a bug, where blank rows appeared in the middle of the table after using loadData along with the minSpareRows option. (#3937)
    • ๐Ÿ›  Fixed a problem with the columnSummary plugin not working properly after adding new rows using the Context Menu and sorting the data. (#3924)
    • ๐Ÿ›  Fixed a bug, where calling loadData with an object-based data source would not work properly. (#4204)
    • ๐Ÿ›  Fixed a problem with the Hidden Columns settings being reset after calling updateSettings. (#4121)
    • ๐Ÿ›  Fixed a bug with the filters plugin using incorrect indexes after moving and/or sorting the table. (#4442)
    • ๐Ÿ›  Fixed a bug that caused a column to contain improper data after moving it to index 0. (#4470)
    • ๐Ÿ›  Fixed a bug with the afterRowMove hook receiving an improper target argument. (#4501)
    • ๐Ÿ›  Fixed a problem with the manualColumnFreeze plugin enabling manualColumnMove, even if it was declared as false. (#4553)
    • ๐Ÿ›  Fixed a problem with plugins using arrayMappers not working properly after updating the dataset. (#4567)
    • ๐Ÿ›  Fixed a bug, where calling loadData with minSpareRows and manualRowMove enabled caused the table to improperly load the data. (#4576)
    • ๐Ÿ›  Fixed a bug, where enabling columnSorting caused the manualColumnFreeze to be unusable. (#4601)
    • ๐Ÿ›  Fixed a problem, where the columns were assigned improper widths after inserting additional columns or removing any of them. (#4666)
    • ๐Ÿ›  Fixed a bug, where moving rows was impossible while persistentState was enabled. (#4713)
    • ๐Ÿ›  Fixed a bug, where manualColumnMove didn't work if the dataset was empty. (#4926)
    • ๐Ÿ›  Fixed a bug with the collapseAll method from the collapsibleColumns plugin did not work properly if columnSorting was enabled. (#4999)
    • ๐Ÿšš Created a shared row mapper for the columnSorting, manualRowMove, and trimRows plugins. (#5065)
    • ๐Ÿ”จ Refactored the manualRowMove plugin to match the new architecture. (#5068)
    • ๐Ÿ›  Fixed a bug, where calling loadData with minSpareRows enabled would cause unwanted blank rows to appear. (#5707)
    • ๐Ÿ›  Fixed a bug with the afterColumnMove hook receiving an improper target argument. (#5173)
    • ๐Ÿ›  Fixed a problem, where filtering data after moving rows would not work properly. (#5178)
    • ๐Ÿ›  Fixed a bug, where calling loadData made NaN appear in the column headers. (#5369)
    • ๐Ÿ›  Fixed a bug with the skipColumnOnPaste option not working properly when using columnSorting and hiddenColumns. (#5824)
    • ๐Ÿ›  Fixed a bug with the trimRows plugin did not work properly after moving rows. (#5860)
    • ๐Ÿ›  Fixed a problem with minSpareRows not working properly with the trimRows plugin being used. (#5862)
    • ๐Ÿ›  Fixed a problem, where it was impossible to filter the data declared in the nestedRows plugin. (#5889)
    • ๐Ÿ›  Fixed a bug, where filtering and sorting data would cause the toVisualRow method to return the wrong results. (#5890)
    • ๐Ÿ›  Fixed a bug with the filters and trimRows plugins not working properly alongside each other. (#5915)
    • ๐Ÿ›  Fixed a bug, where manualColumnMove would not work properly when the data object properties count would be lower than the table column count. (#5931)
    • ๐Ÿ›  Fixed a bug with the trimRows plugin did not work properly with the startRows option. (#5953)
    • ๐Ÿ›  Fixed a problem, where using loadData after sorting would not work as expected. (#5956)
    • ๐Ÿ›  Fixed a problem with the beforeColumnMove and afterColumnMove hooks not containing information about their destination indexes. (#6005)
    • ๐Ÿ›  Fixed a problem where using filters and minSpareRows would make the table add an empty row at the beginning of the table. (#6278)
    • ๐Ÿ›  Fixed a bug with the manualRowMove plugin would duplicate data in the moved rows, when used with a row index greater than the table row count. (#6088)
    • ๐Ÿ›  Fixed a bug, where the toVisualRow method returned null when using the trimRows and columnSorting plugins together. (#6310)
    • ๐Ÿ›  Fixed a problem, where calling updateSettings in the afterColumnMove hook callback would have no effect. (#4480)
    • ๐Ÿ›  Fixed a bug, where calling loadData would make the filters plugin to not behave as expected. (#5244)
    • ๐Ÿ›  Fixed a bug, where detaching a child from a parent in the nestedRows plugin would cause a +/- button misalignment. (#5900)
    • ๐Ÿ›  Fixed a problem with the columnSummary plugin creating a doubled summary row. (#5794)
    • ๐Ÿ›  Fixed a bug, where moving children between parents using the nestedRows plugin would throw an error. (#6066)
    • ๐Ÿ›  Fixed a bug, where adding rows by modifying the data by reference while using the nestedRows plugin would throw an error. (#3914)
    • ๐Ÿ›  Fixed a bug, where merging cells would conflict with the columnSorting plugin. (#6086)
    • ๐Ÿ›  Fixed a bug, where the row headers would stay visible after removing all the table columns. (#6412)

    Includes changes from 7.3.0

    • ๐Ÿ›  Fixed a problem with table resizing on every scroll event on Firefox, when no table height was defined. (#6344)
    • โšก๏ธ Updated the puppeteer package in the devDependencies section to get rid of the npm audit security error. (#6393)
    • โœ‚ Removed the unneeded CNAME_ file from the repo. (#6389)
    • ๐Ÿ›  Fixed a problem, where pasting data from Excel caused Handsontable to throw an error. (#6217)
    • ๐Ÿ›  Fixed a bug, where data pasted from Excel would get improperly formatted in Handsontable. (#6258)
    • ๐Ÿ›  Fixed a bug, where the & < > ' " characters in the pasted data would be automatically changed to their equivalent HTML entities. (#1535)