@exodus/headless 2.3.0 → 2.4.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,17 @@
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
+ ## [2.4.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.3.0...@exodus/headless@2.4.0) (2024-01-24)
7
+
8
+ ### Features
9
+
10
+ - **headless:** build analytics default properties ([#5441](https://github.com/ExodusMovement/exodus-hydra/issues/5441)) ([66efbb2](https://github.com/ExodusMovement/exodus-hydra/commit/66efbb225eda2826ee5cbed169b009501bcdc639))
11
+
12
+ ### Bug Fixes
13
+
14
+ - **headless:** bump @exodus/geolocation major version ([#5500](https://github.com/ExodusMovement/exodus-hydra/issues/5500)) ([27ea226](https://github.com/ExodusMovement/exodus-hydra/commit/27ea22654721f628e9995a16e60d5c946173c0e0))
15
+ - **headless:** do not return debug namespace when not in debug mode ([#5463](https://github.com/ExodusMovement/exodus-hydra/issues/5463)) ([91c7481](https://github.com/ExodusMovement/exodus-hydra/commit/91c7481ea97ae775f44630956f47aace743d132d))
16
+
6
17
  ## [2.3.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.2.2...@exodus/headless@2.3.0) (2024-01-15)
7
18
 
8
19
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/headless",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "The platform-agnostic Exodus wallet SDK",
5
5
  "author": "Exodus Movement Inc.",
6
6
  "main": "src/index.js",
@@ -40,7 +40,7 @@
40
40
  "@exodus/fee-data-monitors": "^3.0.0",
41
41
  "@exodus/fetch": "^1.2.1",
42
42
  "@exodus/filesystem": "^1.1.0",
43
- "@exodus/geolocation": "^3.1.0",
43
+ "@exodus/geolocation": "^4.0.0",
44
44
  "@exodus/hd-key-slip-10": "^2.0.0",
45
45
  "@exodus/key-identifier-provider": "^1.4.0",
46
46
  "@exodus/keychain": "^4.3.0",
@@ -66,7 +66,7 @@
66
66
  "@exodus/ab-testing": "^7.3.0",
67
67
  "@exodus/algorand-lib": "^2.0.1",
68
68
  "@exodus/algorand-meta": "^1.1.4",
69
- "@exodus/analytics": "^11.0.0",
69
+ "@exodus/analytics": "^12.0.0",
70
70
  "@exodus/apy-rates": "^3.3.1",
71
71
  "@exodus/assets-feature": "workspace:^",
72
72
  "@exodus/bitcoin-plugin": "^1.0.14",
@@ -81,7 +81,7 @@
81
81
  "@exodus/litecoin-meta": "^1.0.0",
82
82
  "@exodus/market-history": "^7.3.1",
83
83
  "@exodus/models": "^10.1.0",
84
- "@exodus/nfts": "^7.11.0",
84
+ "@exodus/nfts": "^8.0.0",
85
85
  "@exodus/personal-notes": "^3.6.0",
86
86
  "@exodus/referrals": "^8.1.2",
87
87
  "@exodus/solana-lib": "^1.3.11",
@@ -101,5 +101,5 @@
101
101
  "msw": "^2.0.0",
102
102
  "p-defer": "^4.0.0"
103
103
  },
104
- "gitHead": "035a21e35481a7819a24348a5eb97f4c71b37d0b"
104
+ "gitHead": "bc598a9f55c95dabe5dffb4c3e710d81817a3a0e"
105
105
  }
package/src/api/index.js CHANGED
@@ -40,14 +40,19 @@ const createApi = ({ ioc, port, config, debug }) => {
40
40
 
41
41
  const reportingApi = createReporting({ ioc, config })
42
42
 
43
- return {
43
+ const api = {
44
44
  ...featureApis,
45
- debug: debugApi,
46
45
  reporting: reportingApi,
47
46
  isMnemonicValid,
48
47
  subscribe: port.subscribe.bind(port),
49
48
  unsubscribe: port.unsubscribe.bind(port),
50
49
  }
50
+
51
+ if (debugApi) {
52
+ api.debug = debugApi
53
+ }
54
+
55
+ return api
51
56
  }
52
57
 
53
58
  export default createApi
@@ -1,9 +1,17 @@
1
1
  const setBuildMetadataProperties = async ({ analytics, getBuildMetadata }) => {
2
2
  analytics.requireDefaultProperties(['appId', 'osName'])
3
3
 
4
- const { appId, osName, deviceModel } = await getBuildMetadata()
4
+ const { appId, osName, deviceModel, platformVersion, deviceManufacturer } =
5
+ await getBuildMetadata()
6
+
7
+ analytics.setDefaultProperties({
8
+ appId,
9
+ osName,
10
+ deviceModel,
11
+ deviceManufacturer,
12
+ osVersion: platformVersion,
13
+ })
5
14
 
6
- analytics.setDefaultProperties({ appId, osName, deviceModel })
7
15
  analytics.setDefaultPropertiesForSanitizationErrors({ osName })
8
16
  }
9
17