v7.0.0-rc.1

This commit is contained in:
Tanner Linsley
2019-12-05 23:36:14 -05:00
parent 32033b7095
commit a152704fde
4 changed files with 17 additions and 10 deletions

View File

@@ -1,13 +1,13 @@
{
"dist/index.js": {
"bundled": 102774,
"minified": 50337,
"gzipped": 12881
"bundled": 102847,
"minified": 50399,
"gzipped": 12909
},
"dist/index.es.js": {
"bundled": 101718,
"minified": 49394,
"gzipped": 12698,
"bundled": 101791,
"minified": 49456,
"gzipped": 12726,
"treeshaked": {
"rollup": {
"code": 78,

View File

@@ -1,4 +1,8 @@
## 7.0.0-beta.29
## 7.0.0-rc.1
- Minor regex optimizations during row path creation
## 7.0.0-rc.0
- Added the support for the `Footer` renderer, `column.getFooterProps`, `footerGroups` and `footerGroup.getFooterProps`

View File

@@ -1,6 +1,6 @@
{
"name": "react-table",
"version": "7.0.0-rc.0",
"version": "7.0.0-rc.1",
"description": "A fast, lightweight, opinionated table and datagrid built on React",
"license": "MIT",
"homepage": "https://github.com/tannerlinsley/react-table#readme",

View File

@@ -417,6 +417,9 @@ export function functionalUpdate(updater, old) {
//
const reOpenBracket = /\[/g
const reCloseBracket = /\]/g
function makePathArray(obj) {
return (
flattenDeep(obj)
@@ -425,8 +428,8 @@ function makePathArray(obj) {
// join parts using period
.join('.')
// replace brackets with periods
.replace(/\[/g, '.')
.replace(/\]/g, '')
.replace(reOpenBracket, '.')
.replace(reCloseBracket, '')
// split it back out on periods
.split('.')
)