Upgrading
How versions are numbered
- Patch (1.7.1 → 1.7.2): fixes.
- Minor (1.7.2 → 1.8.0): new features, plus fixes. A fix can change what your app sees — a custom summary that now runs, column subtotals that are now on by default. Every such change is listed below, under the version that made it.
- Major: none so far.
The packages of one product do not always share a number: in a release, each package moves by what changed in it. The changelog lists the exact number of every package in each release.
Upgrade the packages together
The Enterprise packages depend on an exact version of the Community ones.
Upgrade every @kanunilabs/pivotgrid* package your app lists in the same
command, to the set one release shipped:
npm i @kanunilabs/pivotgrid-react@latest @kanunilabs/pivotgrid-react-enterprise@latest
Upgrading only one of them can install a second copy of the engine next to the first. Two copies do not share state: a licence key set through one is not seen by the other. Check that one version is installed:
npm ls @kanunilabs/pivotgrid-core
One version in the tree is right; two mean a package was left behind.
What changes for you
The changes below can make an existing app behave or type-check differently after an upgrade. Versions not listed asked nothing of you. Going from an older version to the newest, read every entry in between.
PivotGrid 1.11.1
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- Numbers in the data cells use tabular figures (every digit the same width), so columns of amounts line up. Text in a fixed-width font looks the same; in a proportional font the numbers can take slightly more room.
PivotGrid 1.11.0
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
exportData(format)withoutapplyFiltersnow writes only the rows the filters keep, as the footer's export buttons always did. PassapplyFilters: falsefor every source row.- Restoring a saved layout drops the fields your app no longer defines (the calculated fields a reader made stay), and fields added since then join as you define them. Before, a removed field came back without its data field.
- The saved state carries
version: 1; a state with another version is ignored and the grid opens with its layout. States saved before this version have none and still load. - A field counted distinct leaves blank cells out of the count, the way the main-thread engine and the server pivot always did; before, a blank counted as one more value on a number field.
- Under a display mode (% of total, running total…) the chart draws the values the grid shows instead of the sums under them, and a percent measure prints as a percent in tooltips and on the axis.
- The dictionary gained
distinct("Count Distinct"). A TypeScript app that types a complete dictionary of its own adds the key. The Enterprise prefilter builder's eight captions (builderCombine,builderAddCondition,builderAddGroup,builderRemoveGroup,builderRemoveCondition,builderEmpty,opIsBlank,opIsNotBlank) left the shared dictionary type: overrides of them still apply at runtime, but TypeScript now reports them as unknown keys in a dictionary typed asPartial<PivotDictionary>; keep them in an object of their own type.
PivotGrid 1.10.0
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- A pivot with more than 1,000 column members now draws the first 1,000 and says so above the table; the totals still count all the data. Set
maxColumnsto raise the cap, or0to turn it off. - The filter and remove icons on a field chip are no longer buttons, because a control inside the chip's own button cannot be reached as a second control by a screen reader. Mouse clicks work as before; from the keyboard, Alt+ArrowDown on the chip opens its filter and Delete removes it. A test or script that selected
button.kanuni-pivot-chip-btnshould select.kanuni-pivot-chip-btn. - The summary badge on a value field (SUM, AVG…) is drawn in the text colour on an accent tint with an accent border, instead of accent-coloured text.
PivotGrid 1.9.0
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
showRowGrandTotalsnow controls the grand total row andshowColumnGrandTotalsthe grand total column, as documented; before, each switched the other — in both renderers, the exports and the clipboard. An app that turned off only one of them sees the other one hidden now; if you had swapped the two to get the right result, swap them back.- In the header filter list a tick always means "shown", in include and exclude mode alike. A saved filter is read the same; only what the list displays changed.
- The footer toolbar buttons get the padding they were meant to have (a 27px target at normal density), so the toolbar is a little taller than in 1.8.0.
PivotGrid 1.7.2
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- A partial
layout, such as{ rowHeaderLayout: 'tree' }, keeps the defaults for the options it leaves out; before, the grid drew no values. A full set of defaults passed only to work around that can go.
PivotGrid 1.7.0
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
summaryType: 'custom'runs yourcalculateCustomSummary, or the aggregator registered under that name. Before, every custom measure showed a sum, so the numbers of such measures change. An unknown aggregator name is reported as an engine error.controller.on('fieldMove', …)fires now. A handler registered for it starts running on every field drag;newIndexis where the field landed.groupInterval: 'numeric'and'custom'never grouped; they are now reported throughonError.- Fourteen chart panel captions left the
PivotDictionarytype. A dictionary declared with that type that sets them no longer type-checks; your own messages still rename them.
PivotGrid 1.4.0
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- A dictionary typed as the full
PivotDictionaryneeds the eight new licence keys; a partialdictionaryneeds nothing.
PivotGrid 1.3.0
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
- Column subtotals are on by default, like row totals. Set
showColumnTotals: falseinlayoutto keep the columns you had. - Exported sheets name their totals in the grid's language instead of English.
PivotGrid 1.2.0
@kanunilabs/[email protected] · @kanunilabs/[email protected] · @kanunilabs/[email protected]
stateStoringdoes what it says:enabled: falsestops saving,type: 'sessionStorage'saves there, andtype: 'custom'calls youronSave/onLoad. Before, every setting saved to localStorage. Passing nostateStoringkeeps the old behaviour, so saved layouts are kept.- The
toolbarprop is honoured: switches you set in it take effect now. - On a Community grid the paid export formats (
excel-list,excel-pivot,pdf) reject with an error routed toonErrorinstead of silently doing nothing, andexportDatareturns a promise.
PivotGrid 1.0.5
- The Web Workers are built into the package and start from a
blob:URL: a worker file you copied intopublic/can go, and an explicitworkerUrlstill wins. Under a Content-Security-Policy withoutworker-src blob:, the grid loads the worker file from the package instead.