@exodus/error-tracking 3.3.1 → 3.3.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.3.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/error-tracking@3.3.1...@exodus/error-tracking@3.3.2) (2026-02-12)
7
+
8
+ ### Bug Fixes
9
+
10
+ - fix(error-tracking): capture stack before logging it (#15184)
11
+
6
12
  ## [3.3.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/error-tracking@3.3.0...@exodus/error-tracking@3.3.1) (2026-02-10)
7
13
 
8
14
  **Note:** Version bump only for package @exodus/error-tracking
@@ -1,4 +1,5 @@
1
1
  import { isSafe } from '@exodus/safe-string'
2
+ import { captureStackTrace } from '@exodus/errors'
2
3
 
3
4
  const MODULE_ID = 'errorTracking'
4
5
 
@@ -15,6 +16,12 @@ const createErrorTracking = ({
15
16
  if (!silent) throw err
16
17
  }
17
18
 
19
+ if (error instanceof Error) {
20
+ captureStackTrace(error)
21
+ } else {
22
+ return onError(new TypeError('error must be an instance of Error'))
23
+ }
24
+
18
25
  logger.error(error)
19
26
 
20
27
  if (namespace !== undefined && typeof namespace !== 'string') {
@@ -29,10 +36,6 @@ const createErrorTracking = ({
29
36
  )
30
37
  }
31
38
 
32
- if (!(error instanceof Error)) {
33
- return onError(new TypeError('error must be an instance of Error'))
34
- }
35
-
36
39
  // TODO: eventually kill this and only track remote
37
40
  const localPromise = errorsAtom.set(({ errors }) => {
38
41
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/error-tracking",
3
- "version": "3.3.1",
3
+ "version": "3.3.2",
4
4
  "type": "module",
5
5
  "description": "A simple error tracking package to let any feature collect errors and create the report",
6
6
  "author": "Exodus Movement, Inc.",
@@ -34,15 +34,18 @@
34
34
  "dependencies": {
35
35
  "@exodus/atoms": "^9.0.0",
36
36
  "@exodus/basic-utils": "^3.0.1",
37
- "@exodus/errors": "^3.4.0",
38
- "@exodus/safe-string": "^1.2.1",
37
+ "@exodus/errors": "^3.7.0",
38
+ "@exodus/safe-string": "^1.4.0",
39
39
  "@exodus/sentry-client": "^6.2.0",
40
40
  "@exodus/typeforce": "^1.19.0",
41
41
  "@exodus/zod": "^3.24.2"
42
42
  },
43
+ "devDependencies": {
44
+ "@exodus/traceparent": "^2.0.0"
45
+ },
43
46
  "publishConfig": {
44
47
  "access": "public",
45
48
  "provenance": false
46
49
  },
47
- "gitHead": "526b4891a8940214343e20e27ff694937c01aad3"
50
+ "gitHead": "fe153ece541b24d322016b462ea1331a11811ed2"
48
51
  }