@luxalgo/vela-pinets 0.2.1 → 0.2.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/README.md +6 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/vela-pinets.global.js +1 -1
- package/dist/vela-pinets.global.min.js +9 -9
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -18,10 +18,12 @@ indicator("EMA 20", overlay=true)
|
|
|
18
18
|
plot(ta.ema(close, 20), color=color.orange)`);
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
- **`PineEngine`** — in-process: the simplest setup. `pinets`
|
|
22
|
-
package (`npm i @luxalgo/vela-pinets pinets`) — the
|
|
23
|
-
unconditionally, so
|
|
24
|
-
|
|
21
|
+
- **`PineEngine`** — in-process: the simplest setup. `@luxalgo/vela` and `pinets` are both
|
|
22
|
+
peers of the whole package (`npm i @luxalgo/vela-pinets @luxalgo/vela pinets`) — the
|
|
23
|
+
published entry imports both unconditionally, so each must resolve whichever engine you
|
|
24
|
+
pick. Vela is a peer rather than a dependency for the same reason the browser build maps
|
|
25
|
+
it onto `window.Vela`: a second copy would duplicate the SDK registries, not just the
|
|
26
|
+
bytes. The worker avoids a second *pinets* by inlining its own at build time.
|
|
25
27
|
- **`PineWorkerEngine`** — the same Pine semantics in a Web Worker (source inlined at
|
|
26
28
|
build time, spawned from a Blob URL): heavy scripts never block the chart.
|
|
27
29
|
- **Browser builds** — `vela-pinets.global.js` / `.global.min.js` expose
|