@exodus/analytics-validation 3.0.0 → 3.1.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,16 @@
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.1.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@3.0.1...@exodus/analytics-validation@3.1.0) (2026-06-19)
7
+
8
+ ### Features
9
+
10
+ - **analytics-validation:** add PayDepositBlocked event schema ([#17248](https://github.com/ExodusMovement/exodus-hydra/issues/17248)) ([49e3f14](https://github.com/ExodusMovement/exodus-hydra/commit/49e3f14b9e1c3990840dd13e93ce5455c329d064)), closes [ExodusMovement/exodus-mobile#40803](https://github.com/ExodusMovement/exodus-mobile/issues/40803)
11
+
12
+ ## [3.0.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@3.0.0...@exodus/analytics-validation@3.0.1) (2026-06-19)
13
+
14
+ **Note:** Version bump only for package @exodus/analytics-validation
15
+
6
16
  ## [3.0.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.80.1...@exodus/analytics-validation@3.0.0) (2026-06-10)
7
17
 
8
18
  ### ⚠ BREAKING CHANGES
package/README.md CHANGED
@@ -21,7 +21,7 @@ flowchart TD
21
21
  B(You're done!)
22
22
  C{Does it only require\n the 'origin' property?}
23
23
  C -->|Yes| B
24
- C -->|No| E[Generate a new JSON Schema: \nyarn generate analytics-validation]
24
+ C -->|No| E[Generate a new JSON Schema: \npnpm generate analytics-validation]
25
25
  E --> D[Adjust the schema and tests]
26
26
  D --> B
27
27
 
@@ -32,7 +32,7 @@ flowchart TD
32
32
  To add a new schema run
33
33
 
34
34
  ```bash
35
- yarn generate analytics-validation
35
+ pnpm generate analytics-validation
36
36
  ```
37
37
 
38
38
  in the project root. The CLI tool will ask you for all details needed.
package/lib/events.d.ts CHANGED
@@ -789,6 +789,10 @@ export interface AnalyticsEventMap {
789
789
  amount?: number
790
790
  amountUsd?: number
791
791
  }
792
+ "PayDepositBlocked": {
793
+ depositType?: string
794
+ reason?: string
795
+ }
792
796
  "PayDepositMethodAdd": {
793
797
  depositType?: string
794
798
  }
package/lib/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import validateEvent from './main.schemasafe.json';
2
1
  export type * from '../lib/events.js';
3
- export default validateEvent;
2
+ declare const _default: (event: unknown) => void;
3
+ export default _default;
@@ -455,6 +455,9 @@
455
455
  {
456
456
  "$ref": "pay-contacts-sheet-view#"
457
457
  },
458
+ {
459
+ "$ref": "pay-deposit-blocked#"
460
+ },
458
461
  {
459
462
  "$ref": "pay-deposit-method-add#"
460
463
  },
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "PayDepositBlocked"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "deposit_type": {
18
+ "type": "string"
19
+ },
20
+ "reason": {
21
+ "type": "string"
22
+ }
23
+ },
24
+ "unevaluatedProperties": false
25
+ }
26
+ },
27
+ "unevaluatedProperties": false,
28
+ "required": ["event", "properties"]
29
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "3.0.0",
3
+ "version": "3.1.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.",
@@ -30,13 +30,14 @@
30
30
  },
31
31
  "scripts": {
32
32
  "build:generated": "node scripts/build-schemasafe.mjs && node scripts/build-types.mjs",
33
- "build": "yarn build:generated && run -T tsc -p tsconfig.build.json",
34
- "build:watch": "yarn build -w",
35
- "clean": "run -T tsc --build --clean",
36
- "prepublishOnly": "yarn run -T build --scope @exodus/analytics-validation",
37
- "test": "node scripts/build-schemasafe.mjs && run -T exodus-test --jest --esbuild",
38
- "lint": "yarn build:generated && run -T tsc --noEmit && run -T eslint .",
39
- "lint:fix": "yarn lint --fix"
33
+ "build": "pnpm run build:generated && pnpm exec tsc -p tsconfig.build.json",
34
+ "build:watch": "pnpm run build -- -w",
35
+ "clean": "pnpm exec tsc --build --clean",
36
+ "prepublishOnly": "pnpm -w run build --scope @exodus/analytics-validation",
37
+ "test": "node scripts/build-schemasafe.mjs && pnpm exec exodus-test --jest --esbuild",
38
+ "typecheck": "node scripts/build-schemasafe.mjs && pnpm exec tsc --noEmit",
39
+ "lint": "pnpm run build:generated && pnpm exec tsc --noEmit && pnpm exec eslint .",
40
+ "lint:fix": "pnpm run lint --fix"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@exodus/schemasafe": "^1.0.0"
@@ -55,5 +56,5 @@
55
56
  "access": "public",
56
57
  "provenance": false
57
58
  },
58
- "gitHead": "c9c9d0f5d4642f38d4055989160baefacc3f410e"
59
+ "gitHead": "dbc63bae98d64eefc45cbe78bb83f0ca673ec6bc"
59
60
  }