@keneth80/k-chart 1.20.0 → 1.21.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 +15 -0
- package/README.md +19 -0
- package/package.json +14 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.21.0 - 2026-07-25
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Added granular `core/*`, `series/*`, and `options/*` package exports so consumers can bundle only the renderers they use.
|
|
8
|
+
- Documented bundle-focused imports for embedded applications and plugin packages.
|
|
9
|
+
|
|
10
|
+
### Tests
|
|
11
|
+
|
|
12
|
+
- Added package export resolution coverage for the core and line renderer entry points.
|
|
13
|
+
|
|
14
|
+
### Package
|
|
15
|
+
|
|
16
|
+
- Versioned granular renderer entry points as `@keneth80/k-chart@1.21.0`.
|
|
17
|
+
|
|
3
18
|
## 1.20.0 - 2026-07-25
|
|
4
19
|
|
|
5
20
|
### Added
|
package/README.md
CHANGED
|
@@ -334,6 +334,25 @@ import {downsampleLTTB} from '@keneth80/k-chart/utils';
|
|
|
334
334
|
import {startKChartRenderWorker} from '@keneth80/k-chart/worker';
|
|
335
335
|
```
|
|
336
336
|
|
|
337
|
+
Applications that use only a small renderer subset can import concrete modules
|
|
338
|
+
to avoid bundling unrelated charts and map data:
|
|
339
|
+
|
|
340
|
+
```ts
|
|
341
|
+
import {createKChart} from '@keneth80/k-chart/core/create-kchart';
|
|
342
|
+
import type {
|
|
343
|
+
KChartAxis,
|
|
344
|
+
KChartController,
|
|
345
|
+
KChartSeries
|
|
346
|
+
} from '@keneth80/k-chart/core/contracts';
|
|
347
|
+
import {createLineSeries} from '@keneth80/k-chart/series/svg-line';
|
|
348
|
+
import {createCanvasLineSeries} from '@keneth80/k-chart/series/canvas-line';
|
|
349
|
+
import {createWebglLineSeries} from '@keneth80/k-chart/series/webgl-line';
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
Use the root or category entry points when convenience matters more than bundle
|
|
353
|
+
size. Use concrete module entry points in plugins and embedded applications
|
|
354
|
+
where only a known renderer subset is needed.
|
|
355
|
+
|
|
337
356
|
The core calls concrete renderers only through the
|
|
338
357
|
`KChartSeries.render(context)` contract.
|
|
339
358
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keneth80/k-chart",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0",
|
|
4
4
|
"description": "Lightweight TypeScript D3 chart runtime with functional SVG, Canvas, and WebGL series renderers.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -13,14 +13,26 @@
|
|
|
13
13
|
"types": "./lib/core/index.d.ts",
|
|
14
14
|
"default": "./lib/core/index.js"
|
|
15
15
|
},
|
|
16
|
+
"./core/*": {
|
|
17
|
+
"types": "./lib/core/*.d.ts",
|
|
18
|
+
"default": "./lib/core/*.js"
|
|
19
|
+
},
|
|
16
20
|
"./series": {
|
|
17
21
|
"types": "./lib/series/index.d.ts",
|
|
18
22
|
"default": "./lib/series/index.js"
|
|
19
23
|
},
|
|
24
|
+
"./series/*": {
|
|
25
|
+
"types": "./lib/series/*.d.ts",
|
|
26
|
+
"default": "./lib/series/*.js"
|
|
27
|
+
},
|
|
20
28
|
"./options": {
|
|
21
29
|
"types": "./lib/options/index.d.ts",
|
|
22
30
|
"default": "./lib/options/index.js"
|
|
23
31
|
},
|
|
32
|
+
"./options/*": {
|
|
33
|
+
"types": "./lib/options/*.d.ts",
|
|
34
|
+
"default": "./lib/options/*.js"
|
|
35
|
+
},
|
|
24
36
|
"./presets": {
|
|
25
37
|
"types": "./lib/presets/index.d.ts",
|
|
26
38
|
"default": "./lib/presets/index.js"
|
|
@@ -78,7 +90,7 @@
|
|
|
78
90
|
"build-demo": "cross-env NODE_ENV=development webpack --mode development",
|
|
79
91
|
"build-prod": "cross-env NODE_ENV=production webpack --mode production",
|
|
80
92
|
"typecheck": "tsc --noEmit",
|
|
81
|
-
"test:unit": "npm run build:lib && npm run build:adapters && node scripts/generate-ai-artifacts.cjs --check && node tests/ai-plan.test.cjs && node tests/ai-compiler.test.cjs && node tests/domain.test.cjs && node tests/ticks.test.cjs && node tests/animation.test.cjs && node tests/render-complete.test.cjs && node tests/worker-webgl.test.cjs && node tests/worker-lifecycle.test.cjs && node tests/graph.test.cjs && node tests/tree.test.cjs && node tests/sankey.test.cjs",
|
|
93
|
+
"test:unit": "npm run build:lib && npm run build:adapters && node scripts/generate-ai-artifacts.cjs --check && node tests/package-exports.test.cjs && node tests/ai-plan.test.cjs && node tests/ai-compiler.test.cjs && node tests/domain.test.cjs && node tests/ticks.test.cjs && node tests/animation.test.cjs && node tests/render-complete.test.cjs && node tests/worker-webgl.test.cjs && node tests/worker-lifecycle.test.cjs && node tests/graph.test.cjs && node tests/tree.test.cjs && node tests/sankey.test.cjs",
|
|
82
94
|
"dev": "webpack-dev-server --host 127.0.0.1 --port 9003 --mode development",
|
|
83
95
|
"prepublishOnly": "npm run typecheck",
|
|
84
96
|
"prepack": "npm run generate:ai",
|