From cca8802e2cba79230f130b1e9bfaa2bef0a83839 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 3 Nov 2020 08:18:14 -1000 Subject: [PATCH] ;update changelogs --- CHANGES.md | 4 ++- hledger-lib/CHANGES.md | 76 +++++++++++++++++++++++++++++++++++++++++- hledger-ui/CHANGES.md | 8 ++++- hledger-web/CHANGES.md | 14 +++++++- hledger/CHANGES.md | 13 +++++++- 5 files changed, 110 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 9be9584cf..dd5ba2325 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,7 +1,9 @@ General/project-related changes in the hledger project. For package-specific changes, see the package changelogs. -# 65d603ab +# 19ab2225 + +- tools: add hie.yaml, hls now works with hledger # 1.19.1 2020-09-07 diff --git a/hledger-lib/CHANGES.md b/hledger-lib/CHANGES.md index 354ae993d..38c616664 100644 --- a/hledger-lib/CHANGES.md +++ b/hledger-lib/CHANGES.md @@ -1,7 +1,81 @@ Internal/api/developer-ish changes in the hledger-lib (and hledger) packages. For user-visible changes, see the hledger package changelog. -# 2b715fbe +# b10e96d2 + +- Add Functor instance for CompoundPeriodicReport. (Stephen Morgan) + +- Generalise CBCSubreportSpec to allow more subreport control. (Stephen Morgan) + +- Export some MultiBalanceReport helper functions. (Stephen Morgan) + +- Introduce ReportSpec, which holds ReportOpts, the day of the report, and the parsed Query. (Stephen Morgan) + +- Remove old impure ReportOpts date functions. (Stephen Morgan) + +- Make Default instances clearer, remove Default instance for Bool. (Stephen Morgan) + +- Store the original query string in ReportOpts, provide a function for regenerating ReportOpts. (Stephen Morgan) + +- Ensure ReportOpts always has today_ set. (Stephen Morgan) + +- Make sure reportspan doesn't interfere with correctly determining valuation date. (Stephen Morgan) + +- Store parsed Query in ReportOpts, rather than an unparsed String. (Stephen Morgan) + +- Store StringFormat in ReportOpts, rather than unparsed String. (Stephen Morgan) + StringFormat now also takes an optional overline width, which is + currently only used by defaultBalanceLineFormat. + +- Remove checkReportOpts and checkRawOpts. (Stephen Morgan) + checkRawOpts has been a no-op for at least four years, and + checkReportOpts only makes sure that depth_ is positive, which is taken + care of by the maybeposintopt parser. + +- For ymd date parsing, don't consume invalid date components. (Stephen Morgan) + +- quoteIfNeeded should not escape the backslashes in unicode code points. (Stephen Morgan) + +- fix error when P directive has a zero price (#1373) + +- Export OrdPlus and constructors. (Stephen Morgan) + +- fix a slowdown with report rendering in 1.19.1 (#1350) + stripAnsi is called many times during rendering (by strWidth), so + should be fast. It was originally a regex replacement, and more + recently a custom parser. The parser was slower, particularly the one + in 1.19.1. See #1350, and this rough test: + + time118ish = timeIt $ print $ length $ concat $ map (fromRight undefined . regexReplace (toRegex' "\ESC\\[([0-9]+;)*([0-9]+)?[ABCDHJKfmsu]") "") testdata + time119 = timeparser (many (takeWhile1P Nothing (/='\ESC') <|> "" <$ ansi)) + time1191 = timeparser (many ("" <$ try ansi <|> pure <$> anySingle)) + timeparser p = timeIt $ print $ length $ concat $ map (concat . fromJust . parseMaybe p) testdata + testdata = concat $ replicate 10000 + [ "2008-01-01 income assets:bank:checking $1 $1" + , "2008-06-01 gift assets:bank:checking $1 $2" + , "2008-06-02 save assets:bank:saving $1 $3" + , " assets:bank:checking ..m$-1\ESC[m\ESC[m $2" + , "2008-06-03 eat & shop assets:cash ..m$-2\ESC[m\ESC[m 0" + , "2008-12-31 pay off assets:bank:checking ..m$-1\ESC[m\ESC[m ..m$-1\ESC[m\ESC[m" + ] + + ghci> time118ish + 4560000 + CPU time: 0.17s + ghci> time119 + 4560000 + CPU time: 0.91s + ghci> time1191 + 4560000 + CPU time: 2.76s + + Possibly a more careful parser could beat regexReplace. Note the + latter does memoisation, which could be faster and/or could also use + more resident memory in some situations. + + Ideally we would calculate all widths before adding ANSI colour codes, + so we wouldn't have to wastefully strip them. + # 1.19.1 2020-09-07 diff --git a/hledger-ui/CHANGES.md b/hledger-ui/CHANGES.md index f33628257..8e8fe51be 100644 --- a/hledger-ui/CHANGES.md +++ b/hledger-ui/CHANGES.md @@ -1,7 +1,13 @@ User-visible changes in hledger-ui. See also the hledger changelog. -# 2b715fbe +# 260283e2 + + + +- ui: E ignores file extension, should help positioning on windows + +- ui: E supports positioning when EDITOR is code (VS Code) (#1359) # 1.19.1 2020-09-07 diff --git a/hledger-web/CHANGES.md b/hledger-web/CHANGES.md index f0d8aab1d..172df94bb 100644 --- a/hledger-web/CHANGES.md +++ b/hledger-web/CHANGES.md @@ -1,7 +1,19 @@ User-visible changes in hledger-web. See also the hledger changelog. -# 2b715fbe +# 260283e2 + +- Fix hledger-web description (TANIGUCHI Kohei) + Slashes need to be escaped or they introduce unexpected italic style + due to Haddock markup. + +- The hledger version string, as JSON, is provided at /version (#1152) + +- Write the session file (hledger-web_client_session_key.aes) in + $XDG_DATA_DIR rather than in the current directory. + Eg on non-Windows systems this is ~/.cache/ by default (cf + https://hackage.haskell.org/package/directory/docs/System-Directory.html#t:XdgDirectory). + (#1344) (Félix Sipma) # 1.19.1 2020-09-07 diff --git a/hledger/CHANGES.md b/hledger/CHANGES.md index f22a270c4..3a0684295 100644 --- a/hledger/CHANGES.md +++ b/hledger/CHANGES.md @@ -1,7 +1,18 @@ User-visible changes in the hledger command line tool and library. -# 2b715fbe +# affc8d10 + + + +- lib,cli: Remove old impure ReportOpts date functions. (Stephen Morgan) + +- lib,cli: Store parsed Query in ReportOpts, rather than an unparsed String. (Stephen Morgan) + +- journal: apply commodity styles to forecasted transactions (#1371) + +- balcmds: mention --no-elide's new function: disabling the eliding of + amounts to two commodities. # 1.19.1 2020-09-07