mirror of
https://github.com/gosticks/react-table.git
synced 2026-08-19 16:30:21 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6bb6aa435d | ||
|
|
052633a786 | ||
|
|
25f1fba133 | ||
|
|
ec54c00d26 | ||
|
|
550e055518 | ||
|
|
9b1f670ccd | ||
|
|
0bcf87a216 | ||
|
|
9a8dc0feda | ||
|
|
e0a6a04137 |
+14
-1
@@ -5,7 +5,20 @@ route: /changelog
|
||||
|
||||
# React Table Changelog
|
||||
|
||||
## 7.0.1 🎉
|
||||
## 7.0.4
|
||||
|
||||
- Fixed a regression where @scarf/scarf was somehow removed from the package dependencies
|
||||
|
||||
## 7.0.3
|
||||
|
||||
- Fixed an issue where unnecessary documentation dependencies were added when installing the library
|
||||
- Fixed an issue where the `scripts` directory was not added to the npm package on build
|
||||
|
||||
## 7.0.2
|
||||
|
||||
- Fixed an issue where the internal flexRenderer would not work correctly in production due to the strangest friggin' minification bug I've ever encountered. 🤷♂️
|
||||
|
||||
## 7.0.1
|
||||
|
||||
- Added the `value` property to cell renderers so that destructurin the value from the `cell` property is now not necessary. This should help with people migrating from v6 and also just to cut down on noise in cell renderers
|
||||
- Fixed an issue where rollup would not build correctly
|
||||
|
||||
+8
-7
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-table",
|
||||
"version": "7.0.1",
|
||||
"version": "7.0.4",
|
||||
"description": "Hooks for building lightweight, fast and extendable datagrids for React",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/tannerlinsley/react-table#readme",
|
||||
@@ -29,21 +29,20 @@
|
||||
"format": "prettier {src,src/**,examples/*/src,examples/*/src/**}/*.{md,js,jsx,tsx} --write",
|
||||
"docz:build": "docz build",
|
||||
"docz:dev": "docz dev",
|
||||
"docz:serve": "docz build && docz serve"
|
||||
"docz:serve": "docz build && docz serve",
|
||||
"postinstall": "node ./scripts/postinstall.js || exit 0"
|
||||
},
|
||||
"files": [
|
||||
"CHANGELOG.md",
|
||||
"src/**/*.js",
|
||||
"index.d.ts",
|
||||
"dist",
|
||||
"LICENCE",
|
||||
"package.json",
|
||||
"README.md"
|
||||
"README.md",
|
||||
"scripts/"
|
||||
],
|
||||
"browserslist": "> 0.25%, not dead",
|
||||
"dependencies": {
|
||||
"docz": "^2.2.0",
|
||||
"gatsby-theme-docz": "^2.2.0"
|
||||
"@scarf/scarf": "^0.1.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.3"
|
||||
@@ -63,6 +62,7 @@
|
||||
"babel-jest": "^24.9.0",
|
||||
"core-js": "3.4.1",
|
||||
"cross-env": "^6.0.3",
|
||||
"docz": "^2.2.0",
|
||||
"eslint": "6.6.0",
|
||||
"eslint-config-prettier": "^6.7.0",
|
||||
"eslint-config-react-app": "^5.0.2",
|
||||
@@ -77,6 +77,7 @@
|
||||
"eslint-plugin-react": "7.16.0",
|
||||
"eslint-plugin-react-hooks": "2.3.0",
|
||||
"eslint-plugin-standard": "^4.0.1",
|
||||
"gatsby-theme-docz": "^2.2.0",
|
||||
"is-ci-cli": "^2.0.0",
|
||||
"jest": "^24.9.0",
|
||||
"jest-cli": "^24.9.0",
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
var msg = `
|
||||
👩💻 Use react-table at work?
|
||||
🎉 Consider sponsoring/supporting its development at:
|
||||
|
||||
https://github.com/sponsors/tannerlinsley
|
||||
`
|
||||
|
||||
console.log(msg)
|
||||
+12
-16
@@ -210,18 +210,22 @@ export function flexRender(Comp, props) {
|
||||
return isReactComponent(Comp) ? <Comp {...props} /> : Comp
|
||||
}
|
||||
|
||||
function isClassComponent(component) {
|
||||
function isReactComponent(component) {
|
||||
return (
|
||||
typeof component === 'function' &&
|
||||
!!(() => {
|
||||
let proto = Object.getPrototypeOf(component)
|
||||
return proto.prototype && proto.prototype.isReactComponent
|
||||
})()
|
||||
isClassComponent(component) ||
|
||||
typeof component === 'function' ||
|
||||
isExoticComponent(component)
|
||||
)
|
||||
}
|
||||
|
||||
function isFunctionComponent(component) {
|
||||
return typeof component === 'function'
|
||||
function isClassComponent(component) {
|
||||
return (
|
||||
typeof component === 'function' &&
|
||||
(() => {
|
||||
const proto = Object.getPrototypeOf(component)
|
||||
return proto.prototype && proto.prototype.isReactComponent
|
||||
})()
|
||||
)
|
||||
}
|
||||
|
||||
function isExoticComponent(component) {
|
||||
@@ -231,11 +235,3 @@ function isExoticComponent(component) {
|
||||
['react.memo', 'react.forward_ref'].includes(component.$$typeof.description)
|
||||
)
|
||||
}
|
||||
|
||||
function isReactComponent(component) {
|
||||
return (
|
||||
isClassComponent(component) ||
|
||||
isFunctionComponent(component) ||
|
||||
isExoticComponent(component)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1561,6 +1561,11 @@
|
||||
dependencies:
|
||||
any-observable "^0.3.0"
|
||||
|
||||
"@scarf/scarf@^0.1.5":
|
||||
version "0.1.5"
|
||||
resolved "https://registry.yarnpkg.com/@scarf/scarf/-/scarf-0.1.5.tgz#fc4cc88294eca336eed9a91549180346de5e6946"
|
||||
integrity sha512-Fx6atDc7JM1r0WkPCDhNetVZNp+DO21q/HGlomAKBG+k8vb1B8fg8Yige4oCf1P9OWTZWm5tM5i3jlXhrSbNOg==
|
||||
|
||||
"@sheerun/mutationobserver-shim@^0.3.2":
|
||||
version "0.3.2"
|
||||
resolved "https://registry.yarnpkg.com/@sheerun/mutationobserver-shim/-/mutationobserver-shim-0.3.2.tgz#8013f2af54a2b7d735f71560ff360d3a8176a87b"
|
||||
@@ -1883,6 +1888,13 @@
|
||||
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
|
||||
integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==
|
||||
|
||||
"@types/mkdirp@^0.5.2":
|
||||
version "0.5.2"
|
||||
resolved "https://registry.npmjs.org/@types/mkdirp/-/mkdirp-0.5.2.tgz#503aacfe5cc2703d5484326b1b27efa67a339c1f"
|
||||
integrity sha512-U5icWpv7YnZYGsN4/cmh3WD2onMY0aJIiTE6+51TwJCttdHvtCYmkBNOobHlXwrJRL0nkH9jH4kD+1FAdMN4Tg==
|
||||
dependencies:
|
||||
"@types/node" "*"
|
||||
|
||||
"@types/node@*":
|
||||
version "13.9.2"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-13.9.2.tgz#ace1880c03594cc3e80206d96847157d8e7fa349"
|
||||
|
||||
Reference in New Issue
Block a user