@flareapp/vite 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/package.json +4 -1
- package/.oxlintrc.json +0 -7
- package/CHANGELOG.md +0 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flareapp/vite",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Vite plugin for flareapp.io",
|
|
5
5
|
"homepage": "https://flareapp.io",
|
|
6
6
|
"bugs": "https://github.com/spatie/flare-client-js/issues",
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"Sebastian De Deyne <sebastian@spatie.be>",
|
|
22
22
|
"Sébastien Henau <seba@spatie.be>"
|
|
23
23
|
],
|
|
24
|
+
"files": [
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
24
27
|
"main": "./dist/index.cjs",
|
|
25
28
|
"module": "./dist/index.mjs",
|
|
26
29
|
"types": "./dist/index.d.cts",
|
package/.oxlintrc.json
DELETED
package/CHANGELOG.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
## 2.0.0
|
|
2
|
-
|
|
3
|
-
### Breaking changes
|
|
4
|
-
|
|
5
|
-
- Renamed plugin function: `flareSourcemapUploader` -> `flareSourcemaps` (default export unchanged).
|
|
6
|
-
- Renamed option: `key` -> `apiKey`.
|
|
7
|
-
- Renamed type: `PluginConfig` -> `FlareVitePluginOptions`.
|
|
8
|
-
- Renamed `Sourcemap` fields: `original_file` -> `originalFile`, `sourcemap_url` -> `sourcemapPath`.
|
|
9
|
-
- Removed `fast-glob` dependency. Sourcemap discovery now uses Rollup's `bundle` parameter.
|
|
10
|
-
- Replaced hand-rolled UUID with `crypto.randomUUID()`. Requires Node >= 18.
|
|
11
|
-
- HTTP 429/5xx responses are now retried with exponential backoff. Non-retriable HTTP errors (4xx) throw immediately.
|
|
12
|
-
- Failed uploads no longer abort remaining uploads (`Promise.allSettled` replaces `Promise.all`).
|
|
13
|
-
- Sourcemaps are only deleted when `removeSourcemaps` is true AND the upload succeeded.
|
|
14
|
-
|
|
15
|
-
### New
|
|
16
|
-
|
|
17
|
-
- `enforce: 'post'` ensures the plugin runs after all other plugins.
|
|
18
|
-
- Uses Vite's logger instead of bare `console.log`/`console.error`.
|
|
19
|
-
- `define` values use `JSON.stringify` (fixes injection vulnerability with special characters in keys/versions).
|
|
20
|
-
- Upload enable/disable now uses Vite's `mode` parameter instead of `process.env.NODE_ENV`.
|
|
21
|
-
- `SKIP_SOURCEMAPS=true` env var disables uploads (useful for CI matrix jobs).
|
|
22
|
-
- Added `engines: { node: ">=18" }` to package.json.
|