@exodus/analytics-validation 2.11.1 → 2.11.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,13 @@
|
|
|
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.11.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.11.0...@exodus/analytics-validation@2.11.2) (2024-02-20)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- os_version is too strict ([#5760](https://github.com/ExodusMovement/exodus-hydra/issues/5760)) ([b52f16c](https://github.com/ExodusMovement/exodus-hydra/commit/b52f16c0a6872fac841446de08780c8b936c90b5))
|
|
11
|
+
- reintroduce discriminator in analytics-validation ([#5577](https://github.com/ExodusMovement/exodus-hydra/issues/5577)) ([8364584](https://github.com/ExodusMovement/exodus-hydra/commit/8364584afbc94d58ec8f148fff695f28299d5d28))
|
|
12
|
+
|
|
6
13
|
## [2.11.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@2.11.0...@exodus/analytics-validation@2.11.1) (2024-02-05)
|
|
7
14
|
|
|
8
15
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/analytics-validation",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.2",
|
|
4
4
|
"description": "JSON schemas for analytics events, to prevent sensitive data from being sent up to the infamous cloud",
|
|
5
5
|
"author": "Exodus Movement Inc.",
|
|
6
6
|
"repository": {
|
|
@@ -41,5 +41,6 @@
|
|
|
41
41
|
]
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
}
|
|
44
|
+
},
|
|
45
|
+
"gitHead": "d93706acc8e32cd44b8684b91898217b95cfdded"
|
|
45
46
|
}
|
package/schemasafe.config.js
CHANGED
|
@@ -29,7 +29,6 @@ getSchemas({ schemaDir, schemaNames })
|
|
|
29
29
|
const semVerRegEx =
|
|
30
30
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[A-Za-z-][\dA-Za-z-]*)(?:\.(?:0|[1-9]\d*|\d*[A-Za-z-][\dA-Za-z-]*))*))?(?:\+([\dA-Za-z-]+(?:\.[\dA-Za-z-]+)*))?$/
|
|
31
31
|
const localeRegEx = /^[A-Za-z]{2,4}([_-][A-Za-z]{2,4})?$/
|
|
32
|
-
const osRegEx = /^(\d+\.)?(\d+\.)?(\d+)$/
|
|
33
32
|
// NOTE: this is exported so consumers can use the same settings at runtime
|
|
34
33
|
// as were used to compile schemas at build time
|
|
35
34
|
module.exports = {
|
|
@@ -37,7 +36,6 @@ module.exports = {
|
|
|
37
36
|
formats: {
|
|
38
37
|
'any-string': (str) => typeof str === 'string',
|
|
39
38
|
'semver-string': semVerRegEx,
|
|
40
|
-
'os-version-string': osRegEx,
|
|
41
39
|
locale: localeRegEx,
|
|
42
40
|
},
|
|
43
41
|
schemas,
|