diff --git a/deno.json b/deno.json index 2f90925..92fea84 100644 --- a/deno.json +++ b/deno.json @@ -29,7 +29,7 @@ "type": "deno check **/*.ts", "check": "deno task format:fail && deno task lint:fail && deno task type && deno task test", "release": "deno run -A ./scripts/release.ts", - "update": "deno run -A ./scripts/update.ts" + "update": "deno run -A ./scripts/update.ts -x chokidar && deno task check" }, "fmt": { "lineWidth": 120, diff --git a/deno.lock b/deno.lock index 9ad207b..73c8512 100644 --- a/deno.lock +++ b/deno.lock @@ -9,35 +9,36 @@ "jsr:@david/dax@0.42": "0.42.0", "jsr:@david/path@0.2": "0.2.0", "jsr:@david/which@~0.4.1": "0.4.1", - "jsr:@deno/graph@~0.84.1": "0.84.1", + "jsr:@deno/graph@~0.86.3": "0.86.3", "jsr:@std/assert@0.221": "0.221.0", - "jsr:@std/assert@^1.0.7": "1.0.7", - "jsr:@std/assert@~1.0.6": "1.0.7", - "jsr:@std/async@^1.0.8": "1.0.8", + "jsr:@std/assert@^1.0.8": "1.0.8", + "jsr:@std/assert@~1.0.6": "1.0.8", + "jsr:@std/async@^1.0.9": "1.0.9", "jsr:@std/bytes@0.221": "0.221.0", - "jsr:@std/cli@^1.0.6": "1.0.6", + "jsr:@std/cli@^1.0.6": "1.0.7", + "jsr:@std/cli@^1.0.7": "1.0.7", "jsr:@std/collections@^1.0.9": "1.0.9", "jsr:@std/encoding@^1.0.5": "1.0.5", "jsr:@std/encoding@~1.0.5": "1.0.5", "jsr:@std/fmt@1": "1.0.3", "jsr:@std/fmt@^1.0.3": "1.0.3", "jsr:@std/fmt@~1.0.2": "1.0.3", - "jsr:@std/fs@1": "1.0.5", - "jsr:@std/fs@^1.0.5": "1.0.5", - "jsr:@std/http@^1.0.9": "1.0.9", + "jsr:@std/fs@1": "1.0.6", + "jsr:@std/fs@^1.0.6": "1.0.6", + "jsr:@std/html@^1.0.3": "1.0.3", + "jsr:@std/http@^1.0.11": "1.0.11", "jsr:@std/internal@^1.0.5": "1.0.5", "jsr:@std/io@0.221": "0.221.0", "jsr:@std/io@~0.224.9": "0.224.9", - "jsr:@std/media-types@^1.0.3": "1.0.3", + "jsr:@std/media-types@^1.1.0": "1.1.0", "jsr:@std/net@^1.0.4": "1.0.4", "jsr:@std/path@1": "1.0.8", - "jsr:@std/path@^1.0.7": "1.0.8", "jsr:@std/path@^1.0.8": "1.0.8", "jsr:@std/path@~1.0.6": "1.0.8", "jsr:@std/regexp@1": "1.0.0", "jsr:@std/semver@^1.0.3": "1.0.3", "jsr:@std/streams@0.221": "0.221.0", - "jsr:@std/streams@^1.0.7": "1.0.8", + "jsr:@std/streams@^1.0.8": "1.0.8", "jsr:@std/text@~1.0.7": "1.0.8", "npm:@types/node@*": "22.5.4", "npm:chokidar@^3.6.0": "3.6.0", @@ -96,26 +97,26 @@ "@david/which@0.4.1": { "integrity": "896a682b111f92ab866cc70c5b4afab2f5899d2f9bde31ed00203b9c250f225e" }, - "@deno/graph@0.84.1": { - "integrity": "4464e75fef6e16d07e4b2146ec1b7288583dbb8ced0e96db6725d4eae0cc5b54" + "@deno/graph@0.86.3": { + "integrity": "e7974e83aafb4b110c80bd0b2249491e53429b011c741939bcbd68ce74c3985d" }, "@std/assert@0.221.0": { "integrity": "a5f1aa6e7909dbea271754fd4ab3f4e687aeff4873b4cef9a320af813adb489a" }, - "@std/assert@1.0.7": { - "integrity": "64ce9fac879e0b9f3042a89b3c3f8ccfc9c984391af19e2087513a79d73e28c3", + "@std/assert@1.0.8": { + "integrity": "ebe0bd7eb488ee39686f77003992f389a06c3da1bbd8022184804852b2fa641b", "dependencies": [ "jsr:@std/internal" ] }, - "@std/async@1.0.8": { - "integrity": "c057c5211a0f1d12e7dcd111ab430091301b8d64b4250052a79d277383bc3ba7" + "@std/async@1.0.9": { + "integrity": "c6472fd0623b3f3daae023cdf7ca5535e1b721dfbf376562c0c12b3fb4867f91" }, "@std/bytes@0.221.0": { "integrity": "64a047011cf833890a4a2ab7293ac55a1b4f5a050624ebc6a0159c357de91966" }, - "@std/cli@1.0.6": { - "integrity": "d22d8b38c66c666d7ad1f2a66c5b122da1704f985d3c47f01129f05abb6c5d3d" + "@std/cli@1.0.7": { + "integrity": "98359df9df586a69015ba570305183b0cb9e7d53c05ea2016ef9a3e77e82c7cd" }, "@std/collections@1.0.9": { "integrity": "4f58104ead08a04a2199374247f07befe50ba01d9cca8cbb23ab9a0419921e71" @@ -126,22 +127,26 @@ "@std/fmt@1.0.3": { "integrity": "97765c16aa32245ff4e2204ecf7d8562496a3cb8592340a80e7e554e0bb9149f" }, - "@std/fs@1.0.5": { - "integrity": "41806ad6823d0b5f275f9849a2640d87e4ef67c51ee1b8fb02426f55e02fd44e", + "@std/fs@1.0.6": { + "integrity": "42b56e1e41b75583a21d5a37f6a6a27de9f510bcd36c0c85791d685ca0b85fa2", "dependencies": [ - "jsr:@std/path@^1.0.7" + "jsr:@std/path@^1.0.8" ] }, - "@std/http@1.0.9": { - "integrity": "d409fc319a5e8d4a154e576c758752e9700282d74f31357a12fec6420f9ecb6c", + "@std/html@1.0.3": { + "integrity": "7a0ac35e050431fb49d44e61c8b8aac1ebd55937e0dc9ec6409aa4bab39a7988" + }, + "@std/http@1.0.11": { + "integrity": "f1928e69e7dcf1664e22d153934cb866bf31e1bbe4bc59f8ac1b4d0e98cb7558", "dependencies": [ - "jsr:@std/cli", + "jsr:@std/cli@^1.0.6", "jsr:@std/encoding@^1.0.5", "jsr:@std/fmt@^1.0.3", + "jsr:@std/html", "jsr:@std/media-types", "jsr:@std/net", - "jsr:@std/path@^1.0.7", - "jsr:@std/streams@^1.0.7" + "jsr:@std/path@^1.0.8", + "jsr:@std/streams@^1.0.8" ] }, "@std/internal@1.0.5": { @@ -157,8 +162,8 @@ "@std/io@0.224.9": { "integrity": "4414664b6926f665102e73c969cfda06d2c4c59bd5d0c603fd4f1b1c840d6ee3" }, - "@std/media-types@1.0.3": { - "integrity": "b12d30a7852f7578f4d210622df713bbfd1cbdd9b4ec2eaf5c1845ab70bab159" + "@std/media-types@1.1.0": { + "integrity": "c9d093f0c05c3512932b330e3cc1fe1d627b301db33a4c2c2185c02471d6eaa4" }, "@std/net@1.0.4": { "integrity": "2f403b455ebbccf83d8a027d29c5a9e3a2452fea39bb2da7f2c04af09c8bc852" @@ -280,24 +285,21 @@ } }, "redirects": { - "https://esm.sh/@sentry/core@^8.37.1": "https://esm.sh/@sentry/core@8.37.1", - "https://esm.sh/@sentry/deno@^8.37.1": "https://esm.sh/@sentry/deno@8.37.1", - "https://esm.sh/@sentry/types@^8.37.1": "https://esm.sh/@sentry/types@8.37.1", - "https://esm.sh/@sentry/utils@^8.37.1": "https://esm.sh/@sentry/utils@8.37.1" + "https://esm.sh/@sentry/core@^8.41.0": "https://esm.sh/@sentry/core@8.41.0", + "https://esm.sh/@sentry/deno@^8.41.0": "https://esm.sh/@sentry/deno@8.41.0", + "https://esm.sh/@sentry/types@^8.41.0": "https://esm.sh/@sentry/types@8.41.0" }, "remote": { "https://deno.land/x/dir@1.5.1/data_local_dir/mod.ts": "91eb1c4bfadfbeda30171007bac6d85aadacd43224a5ed721bbe56bc64e9eb66", - "https://deno.land/x/import_map@v0.20.1/import_map.generated.js": "90fb4e96e45720520d48053379975b94990534624a81095815a7d6dce692775a", - "https://deno.land/x/import_map@v0.20.1/mod.ts": "b074650942b9cca0bd1a5a2c354338f844f93b0ae01de10a14718415d7f370f7", + "https://deno.land/x/import_map@v0.21.0/import_map.generated.js": "fdd66141ecc2ac25ca6c73d4a598d86cb6dbbd21b98c372884b1330bc027146c", + "https://deno.land/x/import_map@v0.21.0/mod.ts": "b074650942b9cca0bd1a5a2c354338f844f93b0ae01de10a14718415d7f370f7", "https://deno.land/x/wasmbuild@0.15.1/cache.ts": "9d01b5cb24e7f2a942bbd8d14b093751fa690a6cde8e21709ddc97667e6669ed", "https://deno.land/x/wasmbuild@0.15.1/loader.ts": "8c2fc10e21678e42f84c5135d8ab6ab7dc92424c3f05d2354896a29ccfd02a63", - "https://esm.sh/@sentry/core@8.37.1": "0d655e5aea0007baa484fa9a47998263a9d03234538d0aae5c018c99ed2573b2", - "https://esm.sh/@sentry/deno@8.37.1": "8b7ba2a77ee1da444bf1a2e9c1a6ff8d04198680a1f160a0005f567638920cbe", - "https://esm.sh/@sentry/types@8.37.1": "fc4e50e1700db5090d9485a5819427eace1870e3ff35ba6421f2bead05164dd9", - "https://esm.sh/@sentry/utils@8.37.1": "5a9b95865b44f219dc4e6a8a0249548155dd90ebf97b128d7cd60f6bddc65d63", - "https://esm.sh/v135/@sentry/core@8.37.1/denonext/core.mjs": "8bc33a7fcafd42bf2b417f361cf48bab0f70c8049946c3e603b419be50245bc6", - "https://esm.sh/v135/@sentry/deno@8.37.1/denonext/deno.mjs": "9d1e6319c7d587dc5d234cf636bcc6ab3194f39c2db7152b23594f8e6d0bdded", - "https://esm.sh/v135/@sentry/types@8.37.1/denonext/types.mjs": "aeaa5e5f4ce108f5f0934f3f5ef105eed9c07d751347dce22b0405149146e335", - "https://esm.sh/v135/@sentry/utils@8.37.1/denonext/utils.mjs": "7b0e9b6ff6151dc16c0a1d986f1fa275224493b29fcf1e205b87f27ecf050d02" + "https://esm.sh/@sentry/core@8.41.0": "28b9dcc447bd69b0aceac9f34c91a09ef0fe0e76f15d8bd90d9daee47c3394df", + "https://esm.sh/@sentry/deno@8.41.0": "988d842be9116357a1b7c65e57af355bbb77ae58618b8fda3f5a50037a691386", + "https://esm.sh/@sentry/types@8.41.0": "423cf686d374fed30917f6ab85aaff2cdf4413935559916218d39a7633a221ac", + "https://esm.sh/v135/@sentry/core@8.41.0/denonext/core.mjs": "19d0cd22030804251a2a06b59d2ad7ce6ed1bc97450be1c48e17ef5ed7a0864d", + "https://esm.sh/v135/@sentry/deno@8.41.0/denonext/deno.mjs": "494c98d2fbbe7a8b930c610552ec40171123cabda0b8439918f90a4a45388743", + "https://esm.sh/v135/@sentry/types@8.41.0/denonext/types.mjs": "52210d554d684a70f86aeca5dbe686049696427b84d0823cfb752ea4534ced19" } } diff --git a/deps.ts b/deps.ts index 0c14b6f..355f98c 100644 --- a/deps.ts +++ b/deps.ts @@ -1,6 +1,6 @@ -export { abortable, deadline, debounce, delay, retry } from 'jsr:@std/async@^1.0.8' -export { walk } from 'jsr:@std/fs@^1.0.5' -export { serveDir, type ServeDirOptions, STATUS_CODE, STATUS_TEXT, type StatusCode } from 'jsr:@std/http@^1.0.9' +export { abortable, deadline, debounce, delay, retry } from 'jsr:@std/async@^1.0.9' +export { walk } from 'jsr:@std/fs@^1.0.6' +export { serveDir, type ServeDirOptions, STATUS_CODE, STATUS_TEXT, type StatusCode } from 'jsr:@std/http@^1.0.11' export { joinGlobs, toFileUrl } from 'jsr:@std/path@^1.0.8' export { normalize as posixNormalize } from 'jsr:@std/path@^1.0.8/posix/normalize' export { escape } from 'jsr:@std/regexp@^1.0.0' diff --git a/dev_deps.ts b/dev_deps.ts index eadc0d3..13c176c 100644 --- a/dev_deps.ts +++ b/dev_deps.ts @@ -1,6 +1,6 @@ import { $ as _$, type $Type } from 'jsr:@david/dax@^0.42.0' -export { parseFromJson } from 'https://deno.land/x/import_map@v0.20.1/mod.ts' +export { parseFromJson } from 'https://deno.land/x/import_map@v0.21.0/mod.ts' export { Confirm, type ConfirmOptions, @@ -10,14 +10,14 @@ export { type SelectOptions, } from 'jsr:@cliffy/prompt@^1.0.0-rc.7' export { as, ensure, is } from 'jsr:@core/unknownutil@^4.3.0' -export { createGraph, load as loadGraph } from 'jsr:@deno/graph@^0.84.1' -export type { DependencyJson, ResolvedDependency } from 'jsr:@deno/graph@^0.84.1/types' -export { assertEquals, assertExists } from 'jsr:@std/assert@^1.0.7' -export { parseArgs } from 'jsr:@std/cli@^1.0.6' -export { Spinner } from 'jsr:@std/cli@^1.0.6/unstable-spinner' +export { createGraph, load as loadGraph } from 'jsr:@deno/graph@^0.86.3' +export type { DependencyJson, ResolvedDependency } from 'jsr:@deno/graph@^0.86.3/types' +export { assertEquals, assertExists } from 'jsr:@std/assert@^1.0.8' +export { parseArgs } from 'jsr:@std/cli@^1.0.7' +export { Spinner } from 'jsr:@std/cli@^1.0.7/unstable-spinner' export { filterEntries } from 'jsr:@std/collections@^1.0.9' export { bold, cyan, dim, green, magenta } from 'jsr:@std/fmt@^1.0.3/colors' -export { expandGlob } from 'jsr:@std/fs@^1.0.5' +export { expandGlob } from 'jsr:@std/fs@^1.0.6' export { getAvailablePort } from 'jsr:@std/net@^1.0.4/get-available-port' export { dirname, fromFileUrl, relative, resolve, toFileUrl } from 'jsr:@std/path@^1.0.8' export { escape } from 'jsr:@std/regexp@^1.0.0' diff --git a/src/sentry.ts b/src/sentry.ts index 6f3dbdc..d12771a 100644 --- a/src/sentry.ts +++ b/src/sentry.ts @@ -18,16 +18,17 @@ import { captureException, continueTrace, defineIntegration, + getSanitizedUrlString, + parseUrl, requestDataIntegration, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, setHttpStatus, startSpan, withIsolationScope, -} from 'https://esm.sh/@sentry/core@^8.37.1' -import * as Sentry from 'https://esm.sh/@sentry/deno@^8.37.1' -import type { Client, IntegrationFn, SpanAttributes } from 'https://esm.sh/@sentry/types@^8.37.1' -import { getSanitizedUrlString, parseUrl } from 'https://esm.sh/@sentry/utils@^8.37.1' +} from 'https://esm.sh/@sentry/core@^8.41.0' +import * as Sentry from 'https://esm.sh/@sentry/deno@^8.41.0' +import type { Client, IntegrationFn, SpanAttributes } from 'https://esm.sh/@sentry/types@^8.41.0' type RawHandler = (request: Request, info: Deno.ServeHandlerInfo) => Response | Promise