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!
Continue reading
One core, many clients: the new Flare JavaScript client architecture
We recently reshaped the Flare JavaScript client from a single browser library and a few thin framework specific packages into a small family of packages built on a shared, platform-agnostic core. This post explains why we did it, what the core package exposes, how the browser and Node SDKs are built on top of it, why the React, Vue, and Svelte packages sit one level higher, and how anyone can use the same core to write a Flare JS client for a platform we do not ship ourselves.
Dries
Logging is here!
Logging is now available for all Flare users! Send any log from your app to Flare and use our polished interface to filter and search your logs in real-time.
Jimi
Subscribe to Backtrace, our quarterly Flare newsletter
No spam, just news & product updates