Introducing our new suite of JavaScript packages
We just released our new suite of JavaScript packages. This repository contains the updated packages for our JavaScript, React, Vue, and Vite plugins.
What's new?
All packages have been updated so they can also run in a Node.js environment as they don't depend on browser APIs anymore. This is useful if you want to report errors from a Node server or during server side rendering. In addition, the default reporting endpoint has changed from flareapp.io/api/reports
to reporting.flareapp.io/api/reports
. Our reporting endpoint now runs through CloudFlare. The old one still works, but redirects to the new one. After upgrading, error notifications will land in your inbox approximately 200ms faster than before!
Upgrading
To upgrade, remove the previous @flareapp/*
packages from your project's package.json
. Then, install @flareapp/js
:
npm i @flareapp/js --save
If you're using React or Vue, install one of our framework plugins too:
npm i @flareapp/react --save
npm i @flareapp/vue --save
If you're building assets with Vite, install our Vite plugin to upload your sourcemaps to Flare:
npm i @flareapp/vite --save-dev
All packages have the same API as their predecessors/ For detailed installation instructions, please refer to our documentation.
With this new foundation, we're excited to add more features and framework integrations in the future. Stay tuned!