Subject: CVS commit: pkgsrc/www/go-parse
From: Nikita
Date: 2020-04-18 16:18:41
Message id: 20200418141841.F2864FB27@cvs.NetBSD.org

Log Message:
www/go-parse: Update to 2.4.2

Changelog picked from https://github.com/tdewolff/parse/releases

v2.4.2
    Add many hashes for CSS
    Add amp-boilerplate hash for HTML
    NewError now has fmt-style function signature
    Append 0x00 to signal EOF even if source already ends in 0x00 (which may be \ 
valid)

v2.4.1
    CSS: add Invert and Solid hashes

v2.4.0
    XML and HTML: Text() []byte returns nil for start tag closers
    XML and HTML: Text() []byte returns textual content for TextToken, \ 
CommentToken, ...
    Added Offset() int for all lexers and parsers that returns the current \ 
character offset in the input stream
    CSS: EOF after \ now properly handled as DelimToken and not EscapeToken in \ 
some cases

v2.3.15
    Bugfix: bad URL encoding resulted in no decoding at all, the new EncodeURL \ 
and DecodeURL are faster and never fail
    Bugfix: get correct Position if it is in the middle of a unicode codepoint

v2.3.14
    Re-parse input immediately when encountering parse error. Previously this \ 
was only done if the error was actually read which would save us from re-parsing \ 
the file (i.e. better performance). However, an error is (a) rare and (b) \ 
happens only once per file. Re-parsing on errors does not impact the performance \ 
of well formatted files, and a reliable error message is valued more.
    Bugfix: prevent infinite loop on error on input file that contains unicode \ 
code points (i.e. any character bigger than 0xC0 usually followed by more \ 
bytes).
    Improve error messages for parsers to include parser name and print \ 
offending byte(s)

v2.3.13
    Improve performance of ReplaceMultipleWhitespace by 20%--25%
    Add ReplaceEntities and ReplaceMultipleWhitespaceAndEntities to replace \ 
QuoteEntity. These allow to do replacements such as: " => ", \ 
" => ", " => ", ’ => ’, \ 
' => '.
    Update list of HTML entity rewrites

v2.3.12
    Revert v2.3.11 and readd html.Keygen hash.

v2.3.11
    Add ReplaceEntities and remove entity replacement from EscapeAttrVal

v2.3.10
    Add and remove hashes for CSS and HTML

v2.3.9
    CSS: keep whitespace in unknown at rules

v2.3.8
    Remove import comments
    Fix bug in CSS parsing when encountering } in CSS inline

v2.3.7
    Fix position information on errors
    CSS: fix error position

v2.3.6
    Prevent panic when returning Bytes() on empty buffer
    Set proper context in errors
    Limit the length in context in errors
    In EqualFold only match upper/lower case on alphabet characters
    Add option to EscapeAttrVal to handle attribute values for XML (use double \ 
quotes)
    HTML: add hashes for RDFa attribute names
    JS: accept NULL characters as code
    JSON: report errors NULL characters

Files:
RevisionActionfile
1.17modifypkgsrc/www/go-parse/Makefile
1.2modifypkgsrc/www/go-parse/PLIST
1.3modifypkgsrc/www/go-parse/distinfo
1.1removepkgsrc/www/go-parse/patches/patch-buffer_buffer.go
1.1removepkgsrc/www/go-parse/patches/patch-buffer_lexer.go
1.1removepkgsrc/www/go-parse/patches/patch-buffer_lexer__test.go
1.1removepkgsrc/www/go-parse/patches/patch-buffer_reader.go
1.1removepkgsrc/www/go-parse/patches/patch-buffer_reader__test.go
1.1removepkgsrc/www/go-parse/patches/patch-buffer_streamlexer.go
1.1removepkgsrc/www/go-parse/patches/patch-buffer_streamlexer__test.go
1.1removepkgsrc/www/go-parse/patches/patch-buffer_writer.go
1.1removepkgsrc/www/go-parse/patches/patch-buffer_writer__test.go