diff --git a/.changeset/alchemy-sourcemaps.md b/.changeset/alchemy-sourcemaps.md deleted file mode 100644 index bd20b3cf0a..0000000000 --- a/.changeset/alchemy-sourcemaps.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@maple-dev/alchemy": minor ---- - -Automatic source map uploads. `@maple-dev/alchemy/vite` exports `mapleSourceMaps()`, a Vite plugin that turns on hidden source maps, gives each built JS file a debug id and moves the maps out of the deployed output into `.maple/sourcemaps/` with a manifest. The new `Maple.SourceMaps` resource uploads them through `POST /v2/source_maps` after the build, again only when the maps changed; deleting it keeps the uploaded maps, which earlier releases still need. `matchBy: "release"` uploads without debug ids, for telemetry that reports none. `MapleApiContract` gains `upload` for raw request bodies. diff --git a/.changeset/browser-exception-debug-ids.md b/.changeset/browser-exception-debug-ids.md deleted file mode 100644 index a5c61513b4..0000000000 --- a/.changeset/browser-exception-debug-ids.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@maple-dev/browser": minor ---- - -Exception events now carry `maple.exception.debug_ids`: for each script in the error's stack that registered a debug id (through `maple sourcemaps inject`, or Sentry's debug id tooling), its URL and id, so the matching source map is found by id rather than by file path. Absent when no script in the stack has one. diff --git a/.changeset/cli-sourcemaps.md b/.changeset/cli-sourcemaps.md deleted file mode 100644 index b7485c782f..0000000000 --- a/.changeset/cli-sourcemaps.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@maple/cli": minor ---- - -New `maple sourcemaps inject ` and `maple sourcemaps upload `. `inject` gives every built JS file that has a source map a debug id (derived from the file and its map, so re-running changes nothing), registers it on the file's first line so errors thrown while the file loads still carry it, and writes it into the map; `--dry-run` reports without writing. Maps outside the build directory are never touched. `upload` sends each map to the logged-in workspace, once per JS file that uses it, matched by debug id or by `--service`, `--release` (defaults to the build directory's git commit) and the file path, with `--url-prefix` for the path the files are served under. Maps over 10 MiB (the largest Maple can symbolicate with) and index maps (`sections`) are skipped with a warning, and a run that uploads nothing fails. diff --git a/apps/cli/CHANGELOG.md b/apps/cli/CHANGELOG.md index dc093c38b3..cdfd3b16bc 100644 --- a/apps/cli/CHANGELOG.md +++ b/apps/cli/CHANGELOG.md @@ -1,5 +1,11 @@ # @maple/cli +## 0.6.0 + +### Minor Changes + +- 6cfae23: New `maple sourcemaps inject ` and `maple sourcemaps upload `. `inject` gives every built JS file that has a source map a debug id (derived from the file and its map, so re-running changes nothing), registers it on the file's first line so errors thrown while the file loads still carry it, and writes it into the map; `--dry-run` reports without writing. Maps outside the build directory are never touched. `upload` sends each map to the logged-in workspace, once per JS file that uses it, matched by debug id or by `--service`, `--release` (defaults to the build directory's git commit) and the file path, with `--url-prefix` for the path the files are served under. Maps over 10 MiB (the largest Maple can symbolicate with) and index maps (`sections`) are skipped with a warning, and a run that uploads nothing fails. + ## 0.5.0 ### Minor Changes diff --git a/apps/cli/package.json b/apps/cli/package.json index 880cb5a1a5..a8f6e51034 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -1,6 +1,6 @@ { "name": "@maple/cli", - "version": "0.5.0", + "version": "0.6.0", "private": true, "bin": { "maple": "./src/bin.ts" diff --git a/bun.lock b/bun.lock index 0e337c68ea..dc3650083c 100644 --- a/bun.lock +++ b/bun.lock @@ -158,7 +158,7 @@ }, "apps/cli": { "name": "@maple/cli", - "version": "0.5.0", + "version": "0.6.0", "bin": { "maple": "./src/bin.ts", }, @@ -609,7 +609,7 @@ }, "packages/alchemy-maple": { "name": "@maple-dev/alchemy", - "version": "0.7.1", + "version": "0.8.0", "dependencies": { "@maple-dev/effect-sdk": "workspace:*", }, @@ -727,7 +727,7 @@ }, "packages/browser": { "name": "@maple-dev/browser", - "version": "0.16.0", + "version": "0.17.0", "dependencies": { "@opentelemetry/api": "^1.10.0", "rrweb": "^2.2.2", diff --git a/packages/alchemy-maple/CHANGELOG.md b/packages/alchemy-maple/CHANGELOG.md index 1f028e4945..840611cbf4 100644 --- a/packages/alchemy-maple/CHANGELOG.md +++ b/packages/alchemy-maple/CHANGELOG.md @@ -1,5 +1,11 @@ # @maple-dev/alchemy +## 0.8.0 + +### Minor Changes + +- 6cfae23: Automatic source map uploads. `@maple-dev/alchemy/vite` exports `mapleSourceMaps()`, a Vite plugin that turns on hidden source maps, gives each built JS file a debug id and moves the maps out of the deployed output into `.maple/sourcemaps/` with a manifest. The new `Maple.SourceMaps` resource uploads them through `POST /v2/source_maps` after the build, again only when the maps changed; deleting it keeps the uploaded maps, which earlier releases still need. `matchBy: "release"` uploads without debug ids, for telemetry that reports none. `MapleApiContract` gains `upload` for raw request bodies. + ## 0.7.1 ### Patch Changes diff --git a/packages/alchemy-maple/package.json b/packages/alchemy-maple/package.json index c8edef75ff..7724af9dfe 100644 --- a/packages/alchemy-maple/package.json +++ b/packages/alchemy-maple/package.json @@ -1,6 +1,6 @@ { "name": "@maple-dev/alchemy", - "version": "0.7.1", + "version": "0.8.0", "description": "Alchemy provider for Maple resources — declare API keys, ingest keys, dashboards, alert destinations, alert rules, uptime monitors and status pages in your alchemy.run.ts", "keywords": [ "alchemy", diff --git a/packages/browser/CHANGELOG.md b/packages/browser/CHANGELOG.md index 30f5de36fd..762e328b8b 100644 --- a/packages/browser/CHANGELOG.md +++ b/packages/browser/CHANGELOG.md @@ -1,5 +1,11 @@ # @maple-dev/browser +## 0.17.0 + +### Minor Changes + +- 6cfae23: Exception events now carry `maple.exception.debug_ids`: for each script in the error's stack that registered a debug id (through `maple sourcemaps inject`, or Sentry's debug id tooling), its URL and id, so the matching source map is found by id rather than by file path. Absent when no script in the stack has one. + ## 0.16.0 ### Minor Changes diff --git a/packages/browser/package.json b/packages/browser/package.json index 2d5d2da5eb..ed359c8aad 100644 --- a/packages/browser/package.json +++ b/packages/browser/package.json @@ -1,6 +1,6 @@ { "name": "@maple-dev/browser", - "version": "0.16.0", + "version": "0.17.0", "description": "Maple browser SDK — OpenTelemetry tracing and rrweb session replay in one package. Every span and replay event shares a session id for trace↔replay correlation.", "keywords": [ "maple", diff --git a/packages/browser/src/version.ts b/packages/browser/src/version.ts index 6bedfabcbe..54f5ad59d4 100644 --- a/packages/browser/src/version.ts +++ b/packages/browser/src/version.ts @@ -8,7 +8,7 @@ // JSON import would force every consuming bundler to handle JSON modules. // `version.test.ts` asserts it stays in sync with `package.json`, so a // hand-bump that forgets it fails CI instead of shipping. -export const SDK_VERSION = "0.16.0" +export const SDK_VERSION = "0.17.0" /** The `x-maple-sdk` value this build sends. */ export const SDK_NAME = "maple-browser"