Skip to content

Commit 55f5aa9

Browse files
committed
;doc: changelog edits
1 parent d2081e5 commit 55f5aa9

File tree

4 files changed

+128
-82
lines changed

4 files changed

+128
-82
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ For package-specific changes and minor releases, see the hledger package changel
1111

1212
# db0361113
1313

14+
- doc: account types: prioritise short names, hide old syntax
15+
16+
- doc: more compact/accurate directives overview
17+
1418
- ;imp: examples/templates/, with one example file set ("basic")
1519

1620
- pkg: bump to latest nightly snapshot to avoid buggy happy 1.21.0

hledger-lib/CHANGES.md

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,41 +11,42 @@ For user-visible changes, see the hledger package changelog.
1111

1212
# 7e47d3645
1313

14-
- pkg: Use maximumBound instead of maximumDef to avoid deprecation warnings in safe-0.3.18. (Stephen Morgan)
14+
Features
1515

16-
- lib!: Semigroup instance of PeriodicReportRow and PeriodicReport now preserves first prrName, rather than the second. (Stephen Morgan)
17-
Previously the second name would be taken, ignoring the first.
16+
Improvements
1817

19-
- lib: Add Bifunctor instances for PeriodicReport and PeriodicReportRow. (Stephen Morgan)
20-
21-
- pkg: Drop base-compat-batteries dependency. (Stephen Morgan)
22-
Our supported stackage versions are now new enough that we don't need
23-
any of the compatibility features anymore.
18+
- The Semigroup instance of PeriodicReportRow and PeriodicReport now
19+
preserves the first prrName, rather than the second.
20+
(Stephen Morgan)
2421

25-
- cln: Move posting rendering functions into Hledger.Data.Posting. Replace showPosting with a wrapper around postingAsLines. (Stephen Morgan)
26-
The functions textConcat(Top|Bottom)Padded are no longer used anywhere
27-
in the code base, and can be removed if desired.
22+
- PeriodicReport and PeriodicReportRow now have Bifunctor instances.
23+
(Stephen Morgan)
2824

25+
- Move posting rendering functions into Hledger.Data.Posting.
2926
This produces slightly different output for showPosting, in particular
3027
it no longer displays the transaction date. However, this has been
31-
marked as ‘for debugging only’ for a while, and is only used in
32-
hledger-check-fancy assertions. The output there is still acceptable.
28+
marked as ‘for debugging only’ for a while.
29+
(Stephen Morgan)
30+
31+
- Drop postingDateOrDate2, transactionDateOrDate2; rename
32+
whichDateFromOpts to whichDate. (#1731)
3333

34-
- ref!: postingDateOrDate2, transactionDateOrDate2, whichDateFromOpts -> whichDate (#1731)
34+
- Added new helper functions journalValueAndFilterPostings(With) to make
35+
valuation and filtration less error prone.
36+
(Stephen Morgan)
3537

36-
- ;pkg: allow megaparsec 9.2
38+
- Avoid deprecation warnings with safe 0.3.18+.
39+
(Stephen Morgan)
3740

38-
- ref: Add new helper functions journalValueAndFilterPostings(With)?. (Stephen Morgan)
39-
Combining valuation with filtration is subtle and error-prone (see e.g. #1625).
40-
We have to do in in both MultiBalanceReport and PostingsReport, where it
41-
is done in slightly different ways. This refactors this functionality
42-
into separate functions which are called in both reports, for uniform
43-
behaviour.
41+
- Drop base-compat-batteries dependency.
42+
(Stephen Morgan)
4443

45-
- imp!: value: For register reports with no reporting interval and --value=end,
46-
historical reports should be valued at journal/report end date. (Stephen Morgan)
44+
- Allow megaparsec 9.2.
45+
46+
Fixes
4747

4848
# 1.23 2021-09-21
49+
4950
- Require base >=4.11, prevent red squares on Hackage's build matrix.
5051

5152
Much code cleanup and reorganisation, such as:

hledger-web/CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@ See also the hledger changelog.
1111

1212
# 791f4655d
1313

14+
Features
15+
16+
Improvements
17+
1418
- Allow megaparsec 9.2
1519

20+
Fixes
21+
22+
1623
# 1.23 2021-09-21
1724

1825
Improvements

hledger/CHANGES.md

Lines changed: 93 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -11,87 +11,120 @@ User-visible changes in the hledger command line tool and library.
1111

1212
# 791f4655d
1313

14-
- fix: prices: Do not include zero amounts when calculating amounts for balance assignments. (#1736) (Stephen Morgan)
15-
This is not usually a problem, but can get in the way of auto-inferring prices.
16-
17-
- fix: csv: Successfully parse empty csv file. (#1183) (Stephen Morgan)
18-
19-
- imp: balcmds: support --declared on bs/cf/is also (#1765)
20-
21-
- feat: bal: with --declared, include declared leaf accounts (#1765)
22-
Together with -E, this shows a balance for both used and declared
23-
accounts (excluding empty parent accounts, which are usually not
24-
wanted in list-mode reports).
25-
26-
This is somewhat consistent with --declared in the accounts and payees
27-
commands, except for the leaf account restriction.
28-
29-
The idea of this is to be able to see a useful "complete" balance
30-
report, even when you don't have transactions in all of your declared
31-
accounts yet. I mainly want this for hledger-ui, but there's no harm
32-
in exposing it in the balance CLI as well.
14+
Features
3315

34-
- ;imp: doc: account types: prioritise short names, hide old syntax
16+
- The balance commands have a new --declared flag, causing them to
17+
include leaf (ie, non-parent) accounts declared by account directives,
18+
even if they contain no transactions yet. Together with -E, this shows
19+
a balance for both used and declared accounts.
20+
The idea is to be able to see a useful "complete" balance report, even
21+
when you don't have transactions in all of your declared accounts yet.
22+
(#1765)
3523

36-
- imp: doc: more compact/accurate directives overview
24+
- journal files now support a `decimal-mark` directive as a more
25+
principled way to specify the decimal character in use in that file,
26+
ensuring accurate number parsing.
27+
(#1670, Lawrence Wu)
3728

38-
- imp: stats: also show run time and throughput
39-
CliOpts has a new field, progstarttime_.
29+
Improvements
4030

41-
Currently the new stats are always printed on stdout, ignoring --output-file/--output-format.
31+
- The stats command now shows rough but useful performance stats: run
32+
time and processing speed in transactions per second.
4233

43-
- fix: balance: Balance reports with --depth=0 should report on true values, not zero everywhere. (#1761) (Stephen Morgan)
34+
- balance commands no longer elide too-wide amounts by default. And,
35+
they provide more control over how multicommodity amounts are displayed.
36+
The --commodity-column flag has been deprecated and replaced by a new
37+
--layout option, with three values:
38+
39+
- wide (the default, shows amounts on one line unelided, like older hledger versions)
40+
- tall (a new display mode, shows one amount per line)
41+
- bare (like the old --commodity-columm, shows one commodity per line with symbols in their own column)
42+
43+
(Stephen Morgan)
4444

45-
- feat: docs for decimal-mark (#1670, #1726)
45+
- balance: support the --related flag, like register, showing the
46+
other postings from the transactions. (#1469, Stephen Morgan)
4647

47-
- imp: journal: support decimal-mark directive in journal files (Lawrence)
48-
To match csv-rule and override amount-style as described in
49-
https://github.com/simonmichael/hledger/issues/1670
48+
- roi now uses posting dates when available, and honors the --date2
49+
flag. This will not change the results computed for the typical
50+
use-case, it just makes "roi" more thorough/consistent.
51+
(Dmitry Astapov)
5052

51-
- ;imp: bal --layout: streamline help more (#1751)
53+
- aregister now shows transactions' secondary date if the --date2 flag is used.
54+
(#1731)
5255

53-
- imp!: balance: Stop eliding long amounts. (#1739) (Stephen Morgan)
54-
This feature has caused a lot of confusion, and we now have better ways
55-
of making sure columns don't get too wide.
56+
- timedot: a D default commodity (and style) declared in a parent
57+
journal file will now be applied to timedot amounts. This means they
58+
can be priced and valued/converted.
5659

57-
- imp: balance: Implement multi-line display for multicommodity balance reports. (Stephen Morgan)
58-
This allows more control over how multicommodity amounts are displayed.
59-
In addition to the default single-line display, and the recent commodity
60-
column display, we now have multi-line display. This is controlled by
61-
the --layout option, which has possible values "wide", "tall", and
62-
"bare". The --commodity-column option has been hidden, but is equivalent
63-
to --layout=bare.
60+
- cli: The --pretty and --forecast options can now be written after the
61+
command name, like other general options.
62+
(Stephen Morgan)
6463

65-
- fix: prices: Do not try to generate prices when there would be a zero denominator. (Stephen Morgan)
66-
Also correctly generate reverse prices for zero amounts.
64+
- register -V -H with no interval now values at report end date, like balance.
65+
(#1718, Stephen Morgan)
6766

68-
- fix: csv: Handle multiple zero amounts in postings in csv files. (#1733) (Stephen Morgan)
67+
- Allow megaparsec 9.2.
6968

70-
- imp: balance: Allow --related flag for balance reports. (#1469) (Stephen Morgan)
69+
- Drop the base-compat-batteries dependency. (Stephen Morgan)
7170

72-
- fix: balance: Balance reports should consider date: queries when calculating report span with --date2. (#1745) (Stephen Morgan)
71+
Fixes
7372

74-
- fix: print: auto: The print command should always display inferred amounts for --auto generated postings. (#1276) (Stephen Morgan)
73+
- prices: Do not include zero amounts when calculating amounts for balance assignments. (#1736) (Stephen Morgan)
74+
This is not usually a problem, but can get in the way of auto-inferring prices.
7575

76-
- pkg: Drop base-compat-batteries dependency. (Stephen Morgan)
77-
Our supported stackage versions are now new enough that we don't need
78-
any of the compatibility features anymore.
76+
- csv: Successfully parse an empty csv file. (#1183) (Stephen Morgan)
7977

80-
- fix: roi: use posting dates when available, honor --date2 (Dmitry Astapov)
81-
This will not change the results computed for the typical use-case,
82-
just makes "roi" more thorough/consistent by supporting posting dates
83-
when they are provided.
78+
- balance: Balance reports with --depth=0 properly report aggregated
79+
values, not zero everywhere. (#1761) (Stephen Morgan)
8480

85-
- areg: begin respecting --date2: show txns' date2 (#1731)
81+
- prices: Do not try to generate prices when there would be a zero
82+
denominator. Also correctly generate reverse prices for zero
83+
amounts. (Stephen Morgan)
8684

87-
- ;pkg: allow megaparsec 9.2
85+
- csv: Allow both amount-in and amount-out fields to contain a zero.
86+
(#1733, Stephen Morgan)
8887

89-
- timedot: a D default commodity (and style) is applied to timedot aounts
90-
This means they can be priced and converted.
88+
- balance: Balance reports should consider date: queries when
89+
calculating report span with --date2. (#1745, Stephen Morgan)
9190

92-
- imp!: value: For register reports with no reporting interval and --value=end, historical reports should be valued at journal/report end date. (Stephen Morgan)
91+
- print: auto: The print command should always display inferred
92+
amounts for --auto generated postings. (#1276, Stephen Morgan)
93+
94+
95+
96+
97+
98+
99+
100+
101+
102+
103+
104+
105+
106+
107+
108+
109+
110+
111+
112+
113+
114+
115+
116+
117+
118+
119+
120+
121+
122+
123+
124+
125+
126+
93127

94-
- imp: cli: Allow general optional argument flags (--pretty and --forecast) to be moved after the subcommand name. (Stephen Morgan)
95128

96129
# 1.23 2021-09-21
97130

@@ -187,6 +220,7 @@ Improvements
187220
predictably and intuitively with multiple commodities.
188221
Multi-commodity amounts are sorted by comparing their amounts in
189222
each commodity, with alphabetically-first commodity symbols being
223+
most significant, and assuming zero with alphabetically-first commodity symbols being
190224
most significant, and assuming zero when a commodity is missing.
191225
([#1563](https://github.com/simonmichael/hledger/issues/1563),
192226
[#1564](https://github.com/simonmichael/hledger/issues/1564), Stephen Morgan)

0 commit comments

Comments
 (0)