From d0a9b97ed02ac79a8f385c4d1a29460c298f28cc Mon Sep 17 00:00:00 2001 From: Avi Press Date: Wed, 25 Mar 2020 13:21:25 -0700 Subject: [PATCH] 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 --- docs/installation.md | 6 ++++++ package.json | 3 +++ yarn.lock | 5 +++++ 3 files changed, 14 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index 9b2be06..9f2e0ee 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -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 diff --git a/package.json b/package.json index 2be9db2..384f652 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,9 @@ "README.md" ], "browserslist": "> 0.25%, not dead", + "dependencies": { + "@scarf/scarf": "^0.1.3" + }, "peerDependencies": { "react": "^16.8.3" }, diff --git a/yarn.lock b/yarn.lock index 90245da..6b19098 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"