Add dependency on Scarf for installation analytics (#2012)

* Adds dev dependency on Scarf, default opt-out. Corresponding installation instructions

* Scarf as default opt in, moved to dependencies

* Update install docs for default opt in analytics

* Remove extra period

* update yarn lock
This commit is contained in:
Avi Press 2020-03-25 13:21:25 -07:00 committed by GitHub
parent 294193376d
commit d0a9b97ed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View File

@ -10,6 +10,12 @@ $ npm install react-table
$ yarn add react-table
```
React Table uses [Scarf](https://www.npmjs.com/package/@scarf/scarf) to collect
anonymized installation analytics. These anlytics help support the maintainers
of this library. However, if you'd like to opt out, you can do so by setting the
environment variable `SCARF_ANALYTICS=false` before you install, or by setting
`scarfSettings.enabled = false` in your project's `package.json`
To import React Table:
```js

View File

@ -38,6 +38,9 @@
"README.md"
],
"browserslist": "> 0.25%, not dead",
"dependencies": {
"@scarf/scarf": "^0.1.3"
},
"peerDependencies": {
"react": "^16.8.3"
},

View File

@ -992,6 +992,11 @@
dependencies:
any-observable "^0.3.0"
"@scarf/scarf@^0.1.3":
version "0.1.3"
resolved "https://registry.yarnpkg.com/@scarf/scarf/-/scarf-0.1.3.tgz#536f4fe54c613fca20f84dc7700ed3b8f1fb73cf"
integrity sha512-ftMyZO7Mi8JQh8XLBcuH3erPGmT4CU4s131nsZIDC7/PYXxaDCJtOzbz3okH0YiTAif+DSIlFhX6d7FXLOtnvA==
"@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"