Changelog¶
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.4.0 - 2026-10-17¶
Changed¶
- Added support for Python 3.15.
- Updated development tooling and dependencies.
- Missing values (nulls) now render as empty cells instead of the literal text
None, matching thesub_missingdefault.sub_missingcan still substitute custom text.
Fixed¶
- Integer column selectors now resolve against the source data columns, so the
internal
__row_indexcolumn no longer shifts positions.columns=0selects the first source column, negative indices still select from the end, and every method agrees withcols_move. sub_missingnow only substitutes the exact"nan"token in string columns instead of any value containing"nan"as a substring (e.g."financial"or"banana"). FormattedNaNvalues are still replaced.- Column-label styles are now resolved against the source data, so dtype-based
selectors (for example
ncs.numeric()) keep matching columns after a formatter such asfmt_numberhas converted them to strings. fmt_currency(use_subunits=False)now drops the subunits and rounds to whole currency units instead of being silently ignored.fmt_date/fmt_datetimewithdate_style="year_quarter"now render the quarter (for example2026-Q4) instead of a literal%q.fmt_number(decimals=0, drop_trailing_zeros=True)no longer strips zeros from the integer part, so100renders as100rather than1and1000as1,000rather than1,.- Escaping of formatted values is now robust: values containing unbalanced
<typst>/</typst>markers no longer raiseValueError, and multiple formatted regions in a single value are all preserved instead of only the first. cols_alignno longer emits the row-group warning when aligning other columns. The warning now only fires when the row-group column is selected explicitly, and the default selection skips it.- Row selectors now accept negative indices (
-1selects the last row, matching column selection) and raise a clearIndexErrorfor out-of-range indices instead of silently doing nothing.
0.3.1 - 2026-06-16¶
Fixed¶
clear_defaultsnow clears all default styles.
0.3.0 - 2026-06-15¶
Added¶
with_idfor labelling tables for referencing purposes.column_labels_hiddenin thetab_optionsmethod. For hiding the header.tab_spanner_delimfor programmatically creating spanners from column names.
0.2.0 - 2026-05-30¶
Added¶
tab_spannermethod for adding grouped column headers.LocSpannerfor targeting spanners for styling.cols_movemethod for moving table columns after another column.- Pipe method for applying functions to
TypTableobjects in a method chain. tab_footermethod for adding table footer notes.LocFooterfor targeting the footer for styling.
Changed¶
- Changed rendering pipeline to centralise string concatenation.
0.1.4 - 2026-05-10¶
Fix¶
- Fix not being able to use expression to style columns that had been formatted.
Documented¶
- Comparison between pure Typst and
typ-tables.