swagger-api / swagger-js

Javascript library to connect to swagger-enabled APIs via browser or nodejs
http://swagger.io
Apache License 2.0
2.63k stars 761 forks source link

feat(analytics): use Scarf.js to provide anonymized installation analytics #3707

Closed char0n closed 3 weeks ago

char0n commented 3 weeks ago

Anonymized analytics

Swagger Client uses Scarf to collect anonymized installation analytics. These analytics help support the maintainers of this library and ONLY run during installation. To opt out, you can set the scafrSettings.enabled field to false in your project's package.json:

// package.json
{
  // ...
  "scarfSettings": {
    "enabled": false
  }
  // ...
}

Alternatively, you can set the environment variable SCARF_ANALYTICS to false as part of the environment that installs your npm packages, e.g., SCARF_ANALYTICS=false npm install.

swagger-bot commented 3 weeks ago

:tada: This PR is included in version 3.30.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: