openalgo-charts 1.8.7 → 1.8.8

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/README.md CHANGED
@@ -54,20 +54,39 @@ const chart = createChart(document.getElementById('chart'));
54
54
  chart.addSeries('candlestick').setData(generateBars(1700000000, 200, 3600));
55
55
  ```
56
56
 
57
+ ## No build step
58
+
59
+ Every release is on unpkg and jsDelivr the moment it is published, because both sit
60
+ in front of npm rather than being places you upload to. A chart is one HTML file:
61
+
62
+ ```html
63
+ <div id="chart" style="width:100vw;height:100vh"></div>
64
+ <script type="module">
65
+ import { createChart } from 'https://unpkg.com/openalgo-charts@1.8.8/dist/openalgo-charts.mjs';
66
+ const chart = createChart(document.getElementById('chart'), { timezone: 'Asia/Kolkata' });
67
+ chart.addSeries('candlestick').setData(bars);
68
+ </script>
69
+ ```
70
+
71
+ Each tier is its own file, so `openalgo-charts.indicators.mjs` next to it registers
72
+ all 102 built-ins. Pin the version in anything you leave running. There is no
73
+ stylesheet to load: the engine ships no DOM. See
74
+ [Use from a CDN](https://marketcalls.github.io/openalgo-charts/docs/cdn).
75
+
57
76
  ## Tiers
58
77
 
59
78
  Import only what you use. Each tier is a separate bundle that registers into the base engine's registries, so the cost of a feature you don't load is zero.
60
79
 
61
80
  | Import | Contents | Brotli |
62
81
  |---|---|---|
63
- | `openalgo-charts` | Engine, 13 chart types, panes &amp; scales, primitives, registries, chart state, chart linking, bar cache, interval registry, trading overlay, OpenAlgo feeds | 60.5 KB |
82
+ | `openalgo-charts` | Engine, 13 chart types, panes &amp; scales, primitives, registries, chart state, chart linking, bar cache, interval registry, trading overlay, OpenAlgo feeds | 60.6 KB |
64
83
  | `openalgo-charts/indicators` | 102 built-in indicators, the `registerIndicator` contract for your own, and the Tier-2 (external-data) contract | 27.3 KB |
65
84
  | `openalgo-charts/draw` | 43 drawing tools + a headless drawing controller and clipboard | 13.1 KB |
66
85
  | `openalgo-charts/transform` | Heikin Ashi, Renko, Range bars, Line Break, Point &amp; Figure, Kagi | 2.7 KB |
67
86
  | `openalgo-charts/profile` | Volume Profile, Market Profile (TPO), Footprint, order flow | 10.7 KB |
68
87
  | `openalgo-charts/trade` | Order / position / bracket tools + DOM ladder | 7.6 KB |
69
88
 
70
- Everything together is **121.86 KB Brotli**. Figures are the measured `size-limit` output. The trade tier is listed as its delta over the base, so loading base + trade costs 68.14 KB.
89
+ Everything together is **121.90 KB Brotli**. Figures are the measured `size-limit` output. The trade tier is listed as its delta over the base, so loading base + trade costs 68.18 KB.
71
90
 
72
91
  ## What's built
73
92
 
@@ -208,13 +227,13 @@ Enforced in CI by [`size-limit`](./.size-limit.json). Nothing is excluded, becau
208
227
 
209
228
  | Bundle | Limit | Actual |
210
229
  |---|---|---|
211
- | Base engine | 62 KB | 60.53 KB |
212
- | Base + trade | 70 KB | 68.14 KB |
230
+ | Base engine | 62 KB | 60.57 KB |
231
+ | Base + trade | 70 KB | 68.18 KB |
213
232
  | Indicators tier | 30 KB | 27.27 KB |
214
233
  | Draw tier | 14 KB | 13.13 KB |
215
234
  | Transform tier | 5 KB | 2.66 KB |
216
235
  | Profile tier | 11 KB | 10.66 KB |
217
- | **Everything** | **124 KB** | **121.86 KB** |
236
+ | **Everything** | **124 KB** | **121.90 KB** |
218
237
 
219
238
  ## Documentation
220
239
 
@@ -271,7 +290,7 @@ npm run verify # typecheck + test + build + size
271
290
 
272
291
  ## Status &amp; limitations
273
292
 
274
- Version **1.8.7**. All engine build phases are implemented with 2466 unit tests across 137 files.
293
+ Version **1.8.8**. All engine build phases are implemented with 2466 unit tests across 137 files.
275
294
 
276
295
  Known gaps, stated plainly:
277
296
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Library version string. Matches package.json (published npm release). */
2
- declare const VERSION = "1.8.7";
2
+ declare const VERSION = "1.8.8";
3
3
  /** Returns the current library version. */
4
4
  declare function version(): string;
5
5