From 2740e55d7695042ac2d5be1c3e3fa6b582120892 Mon Sep 17 00:00:00 2001 From: "size-plugin[bot]" <52573255+size-plugin[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2019 16:44:29 +0000 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=8E=B4=20=F0=9F=A4=97=20update=20size?= =?UTF-8?q?s-cjs.json=20=F0=9F=91=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sizes-cjs.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sizes-cjs.json b/sizes-cjs.json index 45a482a..eb048b7 100644 --- a/sizes-cjs.json +++ b/sizes-cjs.json @@ -1,4 +1,14 @@ [ + { + "timestamp": 1575391465436, + "files": [ + { + "filename": "index.js", + "size": 20511, + "delta": 1 + } + ] + }, { "timestamp": 1575345020328, "files": [ From 1e321f22d3599173750bf9d5c025f52e34063fd7 Mon Sep 17 00:00:00 2001 From: "size-plugin[bot]" <52573255+size-plugin[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2019 16:44:30 +0000 Subject: [PATCH 2/5] =?UTF-8?q?=F0=9F=87=B1=F0=9F=87=A7=20=F0=9F=91=A9?= =?UTF-8?q?=F0=9F=8F=BE=E2=80=8D=F0=9F=9A=92=20update=20sizes-es.json=20?= =?UTF-8?q?=F0=9F=91=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sizes-es.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sizes-es.json b/sizes-es.json index a5f059f..d0444d6 100644 --- a/sizes-es.json +++ b/sizes-es.json @@ -1,4 +1,14 @@ [ + { + "timestamp": 1575391457318, + "files": [ + { + "filename": "index.es.js", + "size": 20368, + "delta": -1 + } + ] + }, { "timestamp": 1575345027852, "files": [ From 945bf18ee01833d93c94fcda76c14b19975a184b Mon Sep 17 00:00:00 2001 From: onnadi-sa <51714064+onnadi-sa@users.noreply.github.com> Date: Tue, 3 Dec 2019 13:04:18 -0600 Subject: [PATCH 3/5] Fix typo (#1692) --- docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index b26f6ea..e080cb1 100644 --- a/docs/api.md +++ b/docs/api.md @@ -25,7 +25,7 @@ React Table is essentially a compatible collection of **custom React hooks**: ### Hook Usage -`useTable` is the **primary** hook used to build a React Table. It serves as the starting point for **every option and every plugin hook** that React Table supports. The options passed into `useTable` are supplied to every plugin hook after it in the order they are supplied, eventually resulting a final `instance` object that you can use to build your table UI and interact with the table's state. +`useTable` is the **primary** hook used to build a React Table. It serves as the starting point for **every option and every plugin hook** that React Table supports. The options passed into `useTable` are supplied to every plugin hook after it in the order they are supplied, eventually resulting in a final `instance` object that you can use to build your table UI and interact with the table's state. ```js const instance = useTable( From 872cb49242df0db3fd08f0a43769662925ccb411 Mon Sep 17 00:00:00 2001 From: onnadi-sa <51714064+onnadi-sa@users.noreply.github.com> Date: Tue, 3 Dec 2019 13:31:03 -0600 Subject: [PATCH 4/5] Change An -> A (#1693) --- docs/api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api.md b/docs/api.md index e080cb1..6d87fa6 100644 --- a/docs/api.md +++ b/docs/api.md @@ -196,7 +196,7 @@ The following properties are available on the table instance returned from `useT - **Some of these headers may be materialized as placeholders** - See [Header Group Properties](#headergroup-properties) for more information - `headers: Array` - - An **nested** array of final header objects, **similar in structure to the original columns configuration option, but rebuilt for ordering** + - A **nested** array of final header objects, **similar in structure to the original columns configuration option, but rebuilt for ordering** - Each contains the headers that are displayed underneath it. - **Some of these headers may be materialized as placeholders** - See [Column Properties](#column-properties) for more information @@ -535,7 +535,7 @@ The following properties are available on every `Column` object returned by the - `canFilter: Bool` - Denotes whether a column is filterable or not depending on if it has a valid accessor/data model or is manually disabled via an option. - `setFilter: Function(filterValue) => void` - - An column-level function used to update the filter value for this column + - A column-level function used to update the filter value for this column - `filterValue: any` - The current filter value for this column, resolved from the table state's `filters` object - `preFilteredRows: Array` From 7014647b4a99e8aa94eb1d4c2f8131de8ae0d828 Mon Sep 17 00:00:00 2001 From: Cody Schwebke Date: Tue, 3 Dec 2019 11:52:08 -0800 Subject: [PATCH 5/5] fix: fix crash in useSortBy resetSortBy action (#1695) --- .size-snapshot.json | 12 ++++++------ src/plugin-hooks/useSortBy.js | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.size-snapshot.json b/.size-snapshot.json index 7d7f973..dfe4f86 100644 --- a/.size-snapshot.json +++ b/.size-snapshot.json @@ -1,13 +1,13 @@ { "dist/index.js": { - "bundled": 96773, - "minified": 46756, - "gzipped": 12302 + "bundled": 96781, + "minified": 46762, + "gzipped": 12304 }, "dist/index.es.js": { - "bundled": 96208, - "minified": 46264, - "gzipped": 12186, + "bundled": 96216, + "minified": 46270, + "gzipped": 12188, "treeshaked": { "rollup": { "code": 78, diff --git a/src/plugin-hooks/useSortBy.js b/src/plugin-hooks/useSortBy.js index 4d4f58c..cf35e8e 100755 --- a/src/plugin-hooks/useSortBy.js +++ b/src/plugin-hooks/useSortBy.js @@ -30,7 +30,7 @@ reducerHandlers[pluginName] = (state, action) => { if (action.type === actions.resetSortBy) { return { ...state, - sortBy: {}, + sortBy: [], } }