diff options
| author | Shulhan <ms@kilabit.info> | 2022-09-04 22:15:06 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-09-04 22:16:59 +0700 |
| commit | dd485ce62d0554bddb6f8253ee4700ece6c4ea00 (patch) | |
| tree | 6742c828e6503784eaadc61b16fb825b0b84b628 | |
| parent | d6fe7d0a69938f6952c4a89a2005a3d034112fe9 (diff) | |
| download | pakakeh.go-dd485ce62d0554bddb6f8253ee4700ece6c4ea00.tar.xz | |
Release share v0.41.0 (2022-09-04)v0.41.0
=== Breaking changes
* lib/json: remove solidus (slash) from being escaped/un-escaped
=== Bug fixes
* lib/memfs: fix SIGSEGV when node is deleted when being watched
=== New features
lib/text: add custom MarshalJSON to type Chunk and Line
=== Chores
* lib/memfs: simplify checking for symlink
* lib/http: increase time sleep waiting for server on example endpoint
* text/diff: rewrite the test using test.Data
* _doc: cleaning up the documentation
* lib/totp: cleaning up the codes
| -rw-r--r-- | CHANGELOG.adoc | 90 | ||||
| -rw-r--r-- | share.go | 2 |
2 files changed, 90 insertions, 2 deletions
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 68b6bedc..0e55900c 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -1,6 +1,6 @@ = CHANGELOG Shulhan <ms@kilabit.info> -3 July 2022 +4 Sep 2022 :toc: :sectanchors: :sectlinks: @@ -17,6 +17,94 @@ link:CHANGELOG_2018-2019.html[Changelog from 2018 to 2019^]. This is changelog for share module since v0.1.0 until v0.11.0. +[#v0_41_0] +== share v0.41.0 (2022-09-04) + +[#v0_41_0_breaking_changes] +=== Breaking changes + +lib/json: remove solidus (slash) from being escaped/un-escaped:: ++ +-- +The standard json package does not escape the solidus, even though the +RFC said so. +Someone also report this as an error in +https://www.rfc-editor.org/errata/eid3159[RFC 3159^] +by removing solidus from list of escaped characters but the author itself +reject it. +-- + +[#v0_41_0_bug_fixes] +=== Bug fixes + +lib/memfs: fix SIGSEGV when node is deleted when being watched:: ++ +-- +The panic is caused by the item in slice of Childs is being +removed during iteration. + +To fix this, we remove the childs on the second iteration after +we remove any sub directories inside them. +-- + +[#v0_41_0_new_features] +=== New features + +lib/text: add custom MarshalJSON to type Chunk and Line:: + +[#v0_41_0_chores] +=== Chores + +lib/memfs: simplify checking for symlink:: ++ +-- +Instead of calling filepath.EvalSymlink and Lstat, call os.Stat directly +to the symlink system path. + +This also fix the modTime not currently set to the original file when +creating Node from symlink-ed file. +-- + +lib/http: increase time sleep waiting for server on example endpoint:: ++ +-- +On container, sometimes the test fail with the following error + +---- +2022-08-28 19:32:21 UTC DefaultErrorHandler: POST /error/custom: + Custom error +2022/08/28 19:32:22 Do: Get "http://127.0.0.1:7016/?": + dial tcp 127.0.0.1:7016: connect: connection refused +FAIL github.com/shuLhan/share/lib/http 1.583s +---- + +This was caused by server is not ready yet to accept connection when +testing executed. +-- + +text/diff: rewrite the test using test.Data:: ++ +Using test.Data provide much more readable input and outputs and +simplify modifying the test data instead of manually define the +expected output in struct. + +_doc: cleaning up the documentation:: ++ +-- +In the _doc, we remove generated HTML files. + +In the index, we add link to README and section about Development that +include links to repository, issues, and patches. + +In the README, we reformat it to use AsciiDoc markup, remove the +sanitizer library, add CLI for epoch, ini, and xtrk. +-- + +lib/totp: cleaning up the codes:: ++ +This changes replace ":=" with explicit variable declarations and use +raw string literal whenever possible. + [#v0_40_0] == share v0.40.0 (2022-08-05) @@ -8,5 +8,5 @@ package share var ( // Version of this module. - Version = "0.40.0" + Version = "0.41.0" ) |
