@flareapp/svelte 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # @flareapp/svelte
2
2
 
3
- Svelte 5 integration for [Flare](https://flareapp.io) error tracking. Provides an error boundary component that catches
4
- component errors and reports them to Flare with Svelte-specific context (component name, hierarchy, error origin).
3
+ Svelte 5 integration for [Flare](https://flareapp.io) error tracking and logging. Provides an error boundary component
4
+ that catches component errors and reports them to Flare with Svelte-specific context (component name, hierarchy, error
5
+ origin).
5
6
 
6
7
  ## Installation
7
8
 
@@ -35,6 +36,21 @@ Initialize the Flare client and wrap your component tree with the error boundary
35
36
  </FlareErrorBoundary>
36
37
  ```
37
38
 
39
+ ## Logging
40
+
41
+ Beyond errors, the client can send structured logs. Logs are opt-in: enable them with `enableLogs`, then call any of the
42
+ eight syslog levels (`debug`, `info`, `notice`, `warning`, `error`, `critical`, `alert`, `emergency`).
43
+
44
+ ```svelte
45
+ <script lang="ts">
46
+ import { flare } from '@flareapp/js';
47
+
48
+ flare.configure({ enableLogs: true });
49
+
50
+ flare.logger.info('Checkout started', { cartId: cart.id, total: cart.total });
51
+ </script>
52
+ ```
53
+
38
54
  ## Documentation
39
55
 
40
56
  Full documentation on the error boundary, lifecycle callbacks, reset keys, custom boundary usage, and more is available
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "2.2.0";
1
+ export declare const PACKAGE_VERSION = "2.3.0";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // generated during release, do not modify
2
- export const PACKAGE_VERSION = '2.2.0';
2
+ export const PACKAGE_VERSION = '2.3.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flareapp/svelte",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Svelte client for flareapp.io",
5
5
  "homepage": "https://flareapp.io",
6
6
  "bugs": "https://github.com/spatie/flare-client-js/issues",
@@ -22,6 +22,9 @@
22
22
  "Sébastien Henau <seba@spatie.be>"
23
23
  ],
24
24
  "type": "module",
25
+ "files": [
26
+ "dist"
27
+ ],
25
28
  "main": "./dist/index.js",
26
29
  "module": "./dist/index.js",
27
30
  "svelte": "./dist/index.js",
@@ -60,7 +63,7 @@
60
63
  "vitest": "^4.0.0"
61
64
  },
62
65
  "peerDependencies": {
63
- "@flareapp/js": "^2.2.0",
66
+ "@flareapp/js": "^2.3.0",
64
67
  "svelte": "^5.3.0"
65
68
  },
66
69
  "publishConfig": {