diff --git a/CHANGES.md b/CHANGES.md index 3474b647f..0a64a6e19 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -19,7 +19,7 @@ General changes in the hledger project. For package-specific changes, see the hledger package changelogs. -# 5591be772 +# ceeea6926 Docs @@ -30,6 +30,7 @@ Docs Scripts/addons +- Fixed build errors in all bin/ scripts. (Dmitry Astapov) - hledger-install: fix installation of hledger-ui Infrastructure/Misc @@ -37,6 +38,8 @@ Infrastructure/Misc - GHC 9.10 is now the default for dev builds and most github workflows. - Add consistent greppable summaries to all workflows; various other improvements - Add bash shell completion script to the release bindists ([#2223], gesh/hseg, Simon Michael) +- tools/gtree: -u shows untracked files, -I adds ignored files. +- just doctest: pass through doctest arg(s). # 1.40 2024-09-09 diff --git a/hledger-lib/CHANGES.md b/hledger-lib/CHANGES.md index 3da421237..5e9f5f043 100644 --- a/hledger-lib/CHANGES.md +++ b/hledger-lib/CHANGES.md @@ -22,21 +22,28 @@ Internal/api/developer-ish changes in the hledger-lib (and hledger) packages. For user-visible changes, see the hledger package changelog. -# 1c45496f1 +# 17dd3d434 Breaking changes - When built with ghc 9.10.1, hledger error messages are displayed with an extra trailing newline. -- New/refactored modules (Hledger.Write.*) and types (Spreadsheet) to help abstract the rendering of - tables in various output formats, eg HTML and FODS. - (Spreadsheet is in addition to the tabular package we already in use; there may be some overlap.) - (XXX Review module changes) +- New/refactored modules (Hledger.Write.*) and types (Spreadsheet) to help abstract rendering + in various output formats, eg HTML, FODS and beancount. + +- Rename displayDepth/prrDepth to displayIndent/prrIndent, and make them + correspond to the number of indentation steps. + (These are about indentation for rendering, not account depth.) [#2246] Fixes Improvements +- Add Hledger.Data.Currency, currencySymbolToCode, currencyCodeToSymbol + +- Added Spreadsheet abstraction for tabular reports (in addition to + the tabular package we already use; there may be some overlap). + - Support ghc 9.10 / base 4.20. - dependency changes: diff --git a/hledger-ui/CHANGES.md b/hledger-ui/CHANGES.md index 70b70295c..f4bd537b2 100644 --- a/hledger-ui/CHANGES.md +++ b/hledger-ui/CHANGES.md @@ -22,7 +22,7 @@ User-visible changes in hledger-ui. See also the hledger changelog. -# bb551bf0d +# f54805a03 Breaking changes diff --git a/hledger-web/CHANGES.md b/hledger-web/CHANGES.md index 20fde54e6..62504efba 100644 --- a/hledger-web/CHANGES.md +++ b/hledger-web/CHANGES.md @@ -22,7 +22,7 @@ User-visible changes in hledger-web. See also the hledger changelog. -# 1c45496f1 +# f54805a03 Breaking changes diff --git a/hledger/CHANGES.md b/hledger/CHANGES.md index 11100cf81..986c56ae4 100644 --- a/hledger/CHANGES.md +++ b/hledger/CHANGES.md @@ -23,14 +23,46 @@ API User-visible changes in the hledger command line tool and library. -# eeb070195 +# 71a787921 Breaking changes +- (Not a breaking change, but a fix for a somewhat severe, though hopefully rare, bug:) + In certain circumstances, values could be calculated inaccurately, + because of inappropriate display-rounding during calculations. [#2254] + Specifically, when there was no direct P price for the target commodity, + so that hledger had to convert via a chain of prices, + and if all of those price amounts had too few decimal places, + then the result could be inaccurate. + An example: + + P 2000-01-01 A 10.5 B + P 2000-01-01 B 100.5 C + + 2000-01-01 + (a) 100 A + + $ hledger-1.40 print -X C + 2000-01-01 + (a) 105520 C ; wrong + + $ hledger print -X C + 2000-01-01 + (a) 105525 C ; right + - When built with ghc 9.10.1, hledger error messages are displayed with an extra trailing newline. Fixes +- `bs`/`bse`/`cf`/`is`'s HTML output no longer includes excess heading cells, + and `bs`/`bse`'s HTML output no longer shows an inappropriate Total heading with -T. + (balancesheet does not support -T.) + (Henning Thielemann) + +- Balance commands' HTML, CSV and FODS output now show tree mode properly indented + (using no-break spaces). + (Henning Thielemann) + - In a multi-line comment generated by csv rules, tags on all lines now work (ie, can be matched). Posting dates in comments generated from csv also now [work](https://hledger.org/hledger.html#comment-field). (#2241) @@ -46,14 +78,15 @@ Fixes Features -- When generating HTML output with the balance commands, you can now - add the `--base-url` option to add hyperlinks to hledger-web, - allowing you to view the transactions involved. +- When generating HTML output with the balance commands, + the `--base-url` option will add hyperlinks to hledger-web, + allowing you to view the detailed transactions if you have hledger-web running. (Henning Thielemann) Improvements -- `balance` and `aregister`'s HTML output will now use a hledger.css file if present, like `bs`/`bse`/`cf`/`is`. +- `bs`/`bse`/`cf`/`is` now support FODS output. + (Henning Thielemann) - The balance commands' HTML and FODS output now show table borders consistently. (Henning Thielemann) @@ -65,25 +98,35 @@ Improvements - Balance commands now support `--transpose` when generating HTML output. (Henning Thielemann) -- Balance commands' options help has had some consistency/readability tweaks. +- `balance` and `aregister`'s HTML output will now use a hledger.css file if present, like `bs`/`bse`/`cf`/`is`. - `bs`/`bse`/`cf`/`is` now support the `--count` (postings count) report type, like `balance`. +- Balance commands' options help has had some consistency/readability tweaks. + - hledger now supports GHC 9.10. Docs +- output formats:beancount: mention operating_currency +- output formats: expand, document beancount and FODS output +- bal: improve --layout doc - bal: note that tree mode doesn't work in html output [#1846] - bal: also mention hledger.css and text encoding in balance doc - html: note safari text encoding issue - timedot: mention the common journal+timedot file setup [#2238] - Install, manual: new shell completions doc. [#986] - Config files: rewrite [#2231] +- examples: hledger2beancount.conf Scripts/addons +- examples/csv: add an example python converter script + API +- Hledger.Cli.Commands.Balance: export budgetReportAs* functions, for use in scripts. + (Dmitry Astapov) # 1.40 2024-09-09 @@ -97,12 +140,19 @@ Fixes - `every M/D from DATE` - `every Nth WEEKDAY from DATE` -- The balance commands' html output no longer repeats the "Total" and +- The balance commands' HTML output no longer repeats the "Total" and "Net" headings when the totals row has multiple lines. And the layout has been improved and made more consistent with the text output. - The `--tldr` flag now also works with the `tealdeer` tldr client. + +- `hledger check tags` no longer warns about the internal `_price-matched` tag + being undeclared (and that tag has been renamed to `_cost-matched`). + [#2247] + +- `hledger check accounts` no longer warns about the special `equity:conversion` account + being undeclared (the default account used by `--infer-equity`). Features @@ -123,6 +173,20 @@ Features Improvements +- All the balance-like commands now support FODS output, not just `balance`. + (Henning Thielemann) + +- Config files can now also provide the command name. + If the first thing in a config file's general section is a non-flag argument, + that will be used as the command name argument, + taking precedence over any command line arguments. + This makes config files strictly more powerful than the older argument files. + +- Improved debug output for command line and config file processing. + +- The print command's beancount output is now better at producing Beancount-ready data, + converting hledger account names and commodity names to Beancount-compatible ones. + - Command line processing has been overhauled and should be more robust in certain cases, with tweaked error messages and debug output. Command-specific flags can now optionally appear before the command name.