@exodus/analytics-validation 3.2.0 → 3.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/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
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.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@3.2.1...@exodus/analytics-validation@3.3.0) (2026-07-09)
7
+
8
+ ### Features
9
+
10
+ - **analytics-validation:** add StocksBuyAmountValid schema ([#17506](https://github.com/ExodusMovement/exodus-hydra/issues/17506)) ([9310115](https://github.com/ExodusMovement/exodus-hydra/commit/9310115c8b39422cd8a2da6c6ad3ddd01432533b))
11
+
12
+ ## [3.2.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@3.2.0...@exodus/analytics-validation@3.2.1) (2026-07-03)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **analytics-validation:** constrain stocks buy balance_usd to minimum 0 ([#17463](https://github.com/ExodusMovement/exodus-hydra/issues/17463)) ([e027a2e](https://github.com/ExodusMovement/exodus-hydra/commit/e027a2e62f50c8bc49ac1f0cb6eea97d6de93d33))
17
+
6
18
  ## [3.2.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@3.1.0...@exodus/analytics-validation@3.2.0) (2026-07-02)
7
19
 
8
20
  ### Features
package/lib/events.d.ts CHANGED
@@ -1349,6 +1349,11 @@ export interface AnalyticsEventMap {
1349
1349
  amountUsd?: number
1350
1350
  timeToReadyS?: number
1351
1351
  }
1352
+ "StocksBuyAmountValid": {
1353
+ asset?: string
1354
+ amountUsd?: number
1355
+ balanceUsd?: number
1356
+ }
1352
1357
  "StocksBuyAmountView": {
1353
1358
  asset?: string
1354
1359
  balanceUsd?: number
@@ -1055,6 +1055,9 @@
1055
1055
  {
1056
1056
  "$ref": "stocks-buy-amount-ready#"
1057
1057
  },
1058
+ {
1059
+ "$ref": "stocks-buy-amount-valid#"
1060
+ },
1058
1061
  {
1059
1062
  "$ref": "stocks-buy-amount-view#"
1060
1063
  },
@@ -29,7 +29,8 @@
29
29
  "format": "any-string"
30
30
  },
31
31
  "balance_usd": {
32
- "type": "number"
32
+ "type": "number",
33
+ "minimum": 0
33
34
  },
34
35
  "duration_s": {
35
36
  "type": "number"
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "StocksBuyAmountValid"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "asset": {
18
+ "type": "string",
19
+ "format": "any-string"
20
+ },
21
+ "amount_usd": {
22
+ "type": "number"
23
+ },
24
+ "balance_usd": {
25
+ "type": "number",
26
+ "minimum": 0
27
+ }
28
+ },
29
+ "unevaluatedProperties": false
30
+ }
31
+ },
32
+ "unevaluatedProperties": false,
33
+ "required": ["event", "properties"]
34
+ }
@@ -19,7 +19,8 @@
19
19
  "format": "any-string"
20
20
  },
21
21
  "balance_usd": {
22
- "type": "number"
22
+ "type": "number",
23
+ "minimum": 0
23
24
  }
24
25
  },
25
26
  "unevaluatedProperties": false
@@ -26,7 +26,8 @@
26
26
  "format": "any-string"
27
27
  },
28
28
  "balance_usd": {
29
- "type": "number"
29
+ "type": "number",
30
+ "minimum": 0
30
31
  }
31
32
  },
32
33
  "unevaluatedProperties": false
@@ -22,7 +22,8 @@
22
22
  "type": "number"
23
23
  },
24
24
  "balance_usd": {
25
- "type": "number"
25
+ "type": "number",
26
+ "minimum": 0
26
27
  }
27
28
  },
28
29
  "unevaluatedProperties": false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "type": "module",
5
5
  "description": "JSON schemas for analytics events, to prevent sensitive data from being sent up to the infamous cloud",
6
6
  "author": "Exodus Movement, Inc.",
@@ -56,5 +56,5 @@
56
56
  "access": "public",
57
57
  "provenance": false
58
58
  },
59
- "gitHead": "c3843a17b8ca28e7b73bacdada4f78b3a7fd1fbe"
59
+ "gitHead": "ff895627124a8e07ccbbeb724f3ae2c0ffc44892"
60
60
  }