From 970dad5de88bc52de9430fbb50d1986af0eb8508 Mon Sep 17 00:00:00 2001 From: Vadim Piven Date: Mon, 29 Jun 2026 10:48:10 +0200 Subject: [PATCH] fix: re-resolve graph data-mapping on dataset switch Bump @milaboratories/graph-maker 1.1.222 -> 1.4.6. The old version gated default re-resolution behind a data-state-key change and never overwrote a non-readonly axis that already held a selection, so switching datasets left the previous dataset's columns in the chart as "Inconsistent value" with no graph. 1.4.x re-resolves defaults automatically when the pframe changes (the version other blocks on this SDK line already use). --- .changeset/bump-graph-maker.md | 10 +++++ pnpm-lock.yaml | 80 +++++++++++++++++++--------------- pnpm-workspace.yaml | 2 +- 3 files changed, 57 insertions(+), 35 deletions(-) create mode 100644 .changeset/bump-graph-maker.md diff --git a/.changeset/bump-graph-maker.md b/.changeset/bump-graph-maker.md new file mode 100644 index 0000000..fcae21b --- /dev/null +++ b/.changeset/bump-graph-maker.md @@ -0,0 +1,10 @@ +--- +"@platforma-open/milaboratories.vj-usage.ui": patch +"@platforma-open/milaboratories.vj-usage": patch +--- + +Fix stale graph data-mapping when switching datasets. graph-maker 1.1.222 gated +its default re-resolution behind a `data-state-key` change, so switching the +dataset left the previous dataset's columns in the chart as "Inconsistent value" +with no graph. Bump graph-maker to 1.4.6 (same version other blocks on this SDK +line use), which re-resolves defaults automatically when the pframe changes. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 30d26c3..e6aa2a6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,8 +10,8 @@ catalogs: specifier: ^2.29.8 version: 2.29.8 '@milaboratories/graph-maker': - specifier: 1.1.222 - version: 1.1.222 + specifier: 1.4.6 + version: 1.4.6 '@milaboratories/helpers': specifier: 1.13.0 version: 1.13.0 @@ -114,7 +114,7 @@ importers: dependencies: '@milaboratories/graph-maker': specifier: 'catalog:' - version: 1.1.222(@milaboratories/pl-model-common@1.46.2)(@platforma-sdk/model@1.79.15)(@platforma-sdk/ui-vue@1.79.15(@bytecodealliance/preview2-shim@0.17.9)(typescript@5.9.3))(d3-dispatch@3.0.1)(d3-path@3.1.0)(d3-scale-chromatic@3.1.0)(typescript@5.9.3) + version: 1.4.6(@milaboratories/pl-model-common@1.46.2)(@platforma-sdk/model@1.79.15)(@platforma-sdk/ui-vue@1.79.15(@bytecodealliance/preview2-shim@0.17.9)(typescript@5.9.3))(d3-dispatch@3.0.1)(d3-path@3.1.0)(d3-scale-chromatic@3.1.0)(typescript@5.9.3) '@platforma-sdk/model': specifier: 'catalog:' version: 1.79.15 @@ -167,7 +167,7 @@ importers: dependencies: '@milaboratories/graph-maker': specifier: 'catalog:' - version: 1.1.222(@milaboratories/pl-model-common@1.46.2)(@platforma-sdk/model@1.79.15)(@platforma-sdk/ui-vue@1.79.15(@bytecodealliance/preview2-shim@0.17.9)(typescript@5.9.3))(d3-dispatch@3.0.1)(d3-path@3.1.0)(d3-scale-chromatic@3.1.0)(typescript@5.9.3) + version: 1.4.6(@milaboratories/pl-model-common@1.46.2)(@platforma-sdk/model@1.79.15)(@platforma-sdk/ui-vue@1.79.15(@bytecodealliance/preview2-shim@0.17.9)(typescript@5.9.3))(d3-dispatch@3.0.1)(d3-path@3.1.0)(d3-scale-chromatic@3.1.0)(typescript@5.9.3) '@milaboratories/helpers': specifier: 'catalog:' version: 1.13.0 @@ -1127,11 +1127,11 @@ packages: resolution: {integrity: sha512-rzLJ6fjXcNL8jb6vexGR4d8wUGvrwC2CyjkMLU5GFy+7Q6lg1wTrJnu8fzDVhS2OjEEVbD+RTE7AGvK5pYYSMQ==} engines: {node: '>=22.19.0'} - '@milaboratories/graph-maker@1.1.222': - resolution: {integrity: sha512-dKCpEhU8FwyCAUK+OR2NqU3wD3YVlIweAdGR5zvsDMsjbwIBlhP9KgroUNOehFH/YN8HKwnmsSXP2a1SFJO3zQ==} + '@milaboratories/graph-maker@1.4.6': + resolution: {integrity: sha512-0DNyErBXJo6l3o7pF8awBuNaOy9Z7sK3SHy8xMtC2PBaXKsOGWPNXnqephOIrRWqyQMAL9A+rA3bzHQKf4TcVg==} peerDependencies: - '@platforma-sdk/model': ^1.53.0 - '@platforma-sdk/ui-vue': ^1.53.0 + '@platforma-sdk/model': 1.73.3 + '@platforma-sdk/ui-vue': 1.73.3 '@milaboratories/helpers@1.13.0': resolution: {integrity: sha512-gsrH9uXQZ6eXM3E3fJZWIS5E5UMEQyohtyjzVXG69aQoecTctC88XUxBv0CgNoA+IAuiB2hE+whZmWU7ifq8wA==} @@ -1141,18 +1141,18 @@ packages: resolution: {integrity: sha512-zOkD4aWNbembwI+AsPTz7nmWC1VPA4rwGBc+Nd5jPpKVh7rCtZwQrlOP5mVqRVMKIAjb1nU8kzzCGfqNPqfJjA==} engines: {node: '>=22'} - '@milaboratories/miplots4@1.0.172': - resolution: {integrity: sha512-p8RaKO2Sc/aBGVPmxta1GIR83rFHEQy4CFQG9pD23ZjQoL9jSfvJa4k9Ds/kJDlX1DNS+mDCklO4oNyoK4bojQ==} + '@milaboratories/miplots4@1.2.2': + resolution: {integrity: sha512-VMdMxfD/lwObssvYDFRnBcBAV4JFqI2FsoQqmJ/wurIHieoZLU9K0UO57MvsvtmO3Deb9swUjuDUJ+jAe8isqw==} '@milaboratories/pf-driver@1.7.12': resolution: {integrity: sha512-/GoaeSW5v3Sfq2Du6qbN4WoBEDiMDPzE3GiF5a+85ZGbGS59tyenfALRZ4MUzpOlFK61zjxdrhdsaLJ4vYk6JA==} engines: {node: '>=22.19.0'} - '@milaboratories/pf-plots@1.1.61': - resolution: {integrity: sha512-B7kIFDoIxGuuN8M0xejvrMXbcIAnRoEWd6T/AEtCFtvRUwF+Oa1ZMHim1N1hPmVgnGa46Ww5egI5CXcLijZ3Rw==} + '@milaboratories/pf-plots@1.4.4': + resolution: {integrity: sha512-FElw8BGbp7vRXPXpHlH66ahf3c+y83Gxozr7npSXyvYx+qiiu/SElLwP29EUdAfeB3z/nIL4cOb13W+lxd7u9Q==} peerDependencies: - '@milaboratories/pl-model-common': ^1.24.1 - '@platforma-sdk/model': ^1.53.0 + '@milaboratories/pl-model-common': 1.39.0 + '@platforma-sdk/model': 1.73.3 '@milaboratories/pf-spec-driver@1.4.14': resolution: {integrity: sha512-APmMSE0phanFF/i2RWuugNMFAO+ubY03B0kGzmoOd5BvxO8TJ1rFXMxYU3NoyBrELMnRUMpZlqRKesrp0F5MDg==} @@ -6343,9 +6343,6 @@ packages: resolution: {integrity: sha512-U/PBtDf35ff0D8X8D0jfdzHYEPFxAI7jJlxZXwCSez5M3190m+QobIfh+sWDWSHMCWWJN2AWamkegn6vr6YBTw==} engines: {node: '>=18'} - zod@3.24.2: - resolution: {integrity: sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==} - zod@3.25.76: resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==} @@ -7669,12 +7666,12 @@ snapshots: '@types/node': 24.5.2 utility-types: 3.11.0 - '@milaboratories/graph-maker@1.1.222(@milaboratories/pl-model-common@1.46.2)(@platforma-sdk/model@1.79.15)(@platforma-sdk/ui-vue@1.79.15(@bytecodealliance/preview2-shim@0.17.9)(typescript@5.9.3))(d3-dispatch@3.0.1)(d3-path@3.1.0)(d3-scale-chromatic@3.1.0)(typescript@5.9.3)': + '@milaboratories/graph-maker@1.4.6(@milaboratories/pl-model-common@1.46.2)(@platforma-sdk/model@1.79.15)(@platforma-sdk/ui-vue@1.79.15(@bytecodealliance/preview2-shim@0.17.9)(typescript@5.9.3))(d3-dispatch@3.0.1)(d3-path@3.1.0)(d3-scale-chromatic@3.1.0)(typescript@5.9.3)': dependencies: '@ag-grid-community/core': 32.3.5 - '@milaboratories/helpers': 1.13.0 - '@milaboratories/miplots4': 1.0.172(d3-dispatch@3.0.1)(d3-path@3.1.0)(d3-scale-chromatic@3.1.0) - '@milaboratories/pf-plots': 1.1.61(@milaboratories/pl-model-common@1.46.2)(@platforma-sdk/model@1.79.15) + '@milaboratories/helpers': 1.14.2 + '@milaboratories/miplots4': 1.2.2(d3-dispatch@3.0.1)(d3-path@3.1.0)(d3-scale-chromatic@3.1.0) + '@milaboratories/pf-plots': 1.4.4(@milaboratories/pl-model-common@1.46.2)(@platforma-sdk/model@1.79.15) '@platforma-sdk/model': 1.79.15 '@platforma-sdk/ui-vue': 1.79.15(@bytecodealliance/preview2-shim@0.17.9)(typescript@5.9.3) '@types/d3-hierarchy': 3.1.7 @@ -7697,7 +7694,7 @@ snapshots: '@milaboratories/helpers@1.14.2': {} - '@milaboratories/miplots4@1.0.172(d3-dispatch@3.0.1)(d3-path@3.1.0)(d3-scale-chromatic@3.1.0)': + '@milaboratories/miplots4@1.2.2(d3-dispatch@3.0.1)(d3-path@3.1.0)(d3-scale-chromatic@3.1.0)': dependencies: '@d3fc/d3fc-chart': 5.1.9(d3-array@3.2.4)(d3-path@3.1.0)(d3-scale-chromatic@3.1.0)(d3-scale@4.0.2)(d3-selection@3.0.0)(d3-shape@3.2.0) '@d3fc/d3fc-pointer': 3.0.3(d3-dispatch@3.0.1)(d3-selection@3.0.0) @@ -7728,7 +7725,7 @@ snapshots: rbush: 4.0.1 react: 19.2.4 react-dom: 19.2.4(react@19.2.4) - zod: 3.24.2 + zod: 3.25.76 transitivePeerDependencies: - d3-dispatch - d3-path @@ -7750,8 +7747,9 @@ snapshots: - encoding - supports-color - '@milaboratories/pf-plots@1.1.61(@milaboratories/pl-model-common@1.46.2)(@platforma-sdk/model@1.79.15)': + '@milaboratories/pf-plots@1.4.4(@milaboratories/pl-model-common@1.46.2)(@platforma-sdk/model@1.79.15)': dependencies: + '@milaboratories/helpers': 1.14.2 '@milaboratories/pl-model-common': 1.46.2 '@platforma-sdk/model': 1.79.15 canonicalize: 2.1.0 @@ -7990,7 +7988,7 @@ snapshots: oxlint: 1.63.0 oxlint-plugin-eslint: 1.63.0 rolldown: 1.1.2 - rolldown-plugin-dts: 0.23.2(rolldown@1.1.2)(typescript@5.9.3)(vue-tsc@3.3.5(typescript@5.6.3)) + rolldown-plugin-dts: 0.23.2(rolldown@1.1.2)(typescript@5.9.3)(vue-tsc@3.3.5(typescript@5.9.3)) rollup-plugin-copy: 3.5.0 rollup-plugin-sourcemaps2: 0.5.4(@types/node@24.5.2)(rollup@4.55.1) typescript: 5.9.3 @@ -8031,7 +8029,7 @@ snapshots: oxlint: 1.63.0 oxlint-plugin-eslint: 1.63.0 rolldown: 1.1.2 - rolldown-plugin-dts: 0.23.2(rolldown@1.1.2)(typescript@5.9.3)(vue-tsc@3.3.5(typescript@5.6.3)) + rolldown-plugin-dts: 0.23.2(rolldown@1.1.2)(typescript@5.9.3)(vue-tsc@3.3.5(typescript@5.9.3)) rollup-plugin-copy: 3.5.0 rollup-plugin-sourcemaps2: 0.5.4(@types/node@24.5.2)(rollup@4.55.1) typescript: 5.9.3 @@ -8072,7 +8070,7 @@ snapshots: oxlint: 1.63.0 oxlint-plugin-eslint: 1.63.0 rolldown: 1.1.2 - rolldown-plugin-dts: 0.23.2(rolldown@1.1.2)(typescript@5.9.3)(vue-tsc@3.3.5(typescript@5.6.3)) + rolldown-plugin-dts: 0.23.2(rolldown@1.1.2)(typescript@5.9.3)(vue-tsc@3.3.5(typescript@5.9.3)) rollup-plugin-copy: 3.5.0 rollup-plugin-sourcemaps2: 0.5.4(@types/node@24.5.2)(rollup@4.55.1) typescript: 5.9.3 @@ -8501,7 +8499,7 @@ snapshots: '@milaboratories/pl-middle-layer': 1.64.33(@bytecodealliance/preview2-shim@0.17.9)(@types/node@24.5.2) '@milaboratories/pl-tree': 1.12.13 '@platforma-sdk/model': 1.79.15 - '@vitest/coverage-istanbul': 4.1.9(vitest@4.1.9) + '@vitest/coverage-istanbul': 4.1.9(vitest@4.0.16(@types/node@24.5.2)(lightningcss@1.32.0)(yaml@2.8.2)) vitest: 4.1.9(@types/node@24.5.2)(@vitest/coverage-istanbul@4.1.9)(vite@6.4.1(@types/node@24.5.2)(lightningcss@1.32.0)(yaml@2.8.2)) transitivePeerDependencies: - '@bytecodealliance/preview2-shim' @@ -11381,6 +11379,22 @@ snapshots: vite: 8.0.16(@types/node@24.5.2)(yaml@2.8.2) vue: 3.5.26(typescript@5.9.3) + '@vitest/coverage-istanbul@4.1.9(vitest@4.0.16(@types/node@24.5.2)(lightningcss@1.32.0)(yaml@2.8.2))': + dependencies: + '@babel/core': 7.29.7 + '@istanbuljs/schema': 0.1.3 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + istanbul-lib-coverage: 3.2.2 + istanbul-lib-report: 3.0.1 + istanbul-reports: 3.2.0 + magicast: 0.5.3 + obug: 2.1.1 + tinyrainbow: 3.1.0 + vitest: 4.0.16(@types/node@24.5.2)(lightningcss@1.32.0)(yaml@2.8.2) + transitivePeerDependencies: + - supports-color + '@vitest/coverage-istanbul@4.1.9(vitest@4.1.9)': dependencies: '@babel/core': 7.29.7 @@ -11537,14 +11551,14 @@ snapshots: '@vue/compiler-sfc@3.5.26': dependencies: - '@babel/parser': 7.28.5 + '@babel/parser': 7.29.7 '@vue/compiler-core': 3.5.26 '@vue/compiler-dom': 3.5.26 '@vue/compiler-ssr': 3.5.26 '@vue/shared': 3.5.26 estree-walker: 2.0.2 magic-string: 0.30.21 - postcss: 8.5.6 + postcss: 8.5.15 source-map-js: 1.2.1 '@vue/compiler-ssr@3.5.24': @@ -13253,7 +13267,7 @@ snapshots: reusify@1.1.0: {} - rolldown-plugin-dts@0.23.2(rolldown@1.1.2)(typescript@5.9.3)(vue-tsc@3.3.5(typescript@5.6.3)): + rolldown-plugin-dts@0.23.2(rolldown@1.1.2)(typescript@5.9.3)(vue-tsc@3.3.5(typescript@5.9.3)): dependencies: '@babel/generator': 8.0.0-rc.3 '@babel/helper-validator-identifier': 8.0.0-rc.3 @@ -13838,7 +13852,7 @@ snapshots: why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 24.5.2 - '@vitest/coverage-istanbul': 4.1.9(vitest@4.1.9) + '@vitest/coverage-istanbul': 4.1.9(vitest@4.0.16(@types/node@24.5.2)(lightningcss@1.32.0)(yaml@2.8.2)) transitivePeerDependencies: - msw @@ -14011,6 +14025,4 @@ snapshots: yoctocolors-cjs@2.1.3: {} - zod@3.24.2: {} - zod@3.25.76: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index c3ebaf1..207eb4b 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -17,7 +17,7 @@ catalog: '@platforma-sdk/block-tools': 2.11.1 '@platforma-sdk/test': 1.79.15 '@milaboratories/helpers': 1.13.0 - '@milaboratories/graph-maker': 1.1.222 + '@milaboratories/graph-maker': 1.4.6 '@milaboratories/strings': 0.1.0 # Common dependencies - can use ^ or ~