@barchart/chart-lib 2.394.4 → 2.395.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.
chart-lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barchart/chart-lib",
3
- "version": "2.394.4",
3
+ "version": "2.395.0",
4
4
  "description": "Barchart HTML5 Streaming Chart",
5
5
  "main": "barchart.chart.js",
6
6
  "types": "barchart.chart.d.ts",
@@ -44,10 +44,21 @@
44
44
  "TopOfBook"
45
45
  ]
46
46
  },
47
- "period": {
47
+ "isoPeriod": {
48
48
  "type": "string",
49
49
  "pattern": "^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$"
50
50
  },
51
+ "period": {
52
+ "type": "string",
53
+ "oneOf": [
54
+ {
55
+ "$ref": "#/definitions/isoPeriod"
56
+ },
57
+ {
58
+ "enum": ["YTD"]
59
+ }
60
+ ]
61
+ },
51
62
  "density": {
52
63
  "type": "integer",
53
64
  "minimum": 5
@@ -2171,7 +2182,7 @@
2171
2182
  },
2172
2183
  "version": {
2173
2184
  "type": "integer",
2174
- "minimum": 177,
2185
+ "minimum": 178,
2175
2186
  "multipleOf": 1
2176
2187
  }
2177
2188
  },