head 1.3; access; symbols pkgsrc-2023Q4:1.3.0.20 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.18 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.16 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.14 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.12 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.10 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.3.0.8 pkgsrc-2022Q2-base:1.3 pkgsrc-2022Q1:1.3.0.6 pkgsrc-2022Q1-base:1.3 pkgsrc-2021Q4:1.3.0.4 pkgsrc-2021Q4-base:1.3 pkgsrc-2021Q3:1.3.0.2 pkgsrc-2021Q3-base:1.3 pkgsrc-2021Q2:1.2.0.10 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.8 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.6 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.4 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.2 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.1.0.10 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.12 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.8 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.6 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.4 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.2 pkgsrc-2018Q4-base:1.1; locks; strict; comment @# @; 1.3 date 2021.08.25.07.02.29; author nia; state Exp; branches; next 1.2; commitid RHqPkOgdbGOJYj6D; 1.2 date 2020.04.18.14.56.06; author nikita; state Exp; branches; next 1.1; commitid vf754gvMtXXosS4C; 1.1 date 2018.11.18.08.40.17; author ryoon; state Exp; branches; next ; commitid jh16hC8V79mf1p0B; desc @@ 1.3 log @go-minify: Update to 2.9.21. Convert to go-module build. Now builds only the command line tool. Update includes various bug fixes. @ text @@@comment $NetBSD$ bin/minify @ 1.2 log @go-minify: Update to 2.7.3 Changelog picked from https://github.com/tdewolff/minify/releases v2.7.3 external minifiers can now use input/output files instead of only stdin/stdout using the $in and $out keywords SVG: don't minify inside foreignObject, fixes #291 v2.7.2 SVG: bugfix for C, S, Q, and T commands where if the control points would not overlap with the start or end points of the curve, it would still be converted to a line. v2.7.1 DataURI: if the original data URI is shorter than the URL-encoded/base64-encoded URI, use the original instead, fixes #282 Bugfix: decimal (i.e. without exponentials) incorrectly minified 139.9 to 230 instead of 140 v2.7.0 Use custom URL encode/decode functions to fix #180 and #243 Decimal and Number now take precision to mean the number of significant digits, and not the number of digits behind the dot (decimals); includes a few subtle bugfixes. Decimals option renamed to Precision Move Hash definitions and EntitiesMap from tdewolff/parse to this repository to prevent releasing new versions of tdewolff/parse everytime cmd: add --sync functionality cmd: make --watch work for newly created directories cmd: various fixes and improved messages CSS: keep quotes around IE font families, fixes #251 CSS: major refactor to allow nested functions to be minified CSS: improved HSL/RGB minification CSS: minify more properties: color, background-color, border-color, border-*-color, caret-color, outline-color, fill, stroke, column-rule, text-shadow, text-decoration, text-emphasis, flex, flex-*, order, fixes #217 CSS: minify background better if it has multiple layers CSS: improve box-shadow minification CSS: accept CSS functions where numbers/lengths are required, such as calc, min, max, clamp, attr, var SVG: print new path command after bad command, fixes #275 SVG: print A command correctly with boolean largeArc and sweep SVG: avoid precision errors for alternative (absolute or relative commands) path v2.6.3 Add install.sh and Makefile to ./cmd/minify. No changes to binaries (use v2.6.2). v2.6.2 HTML: ignore CSS minification for amp-boilerplate HTML: add KeepQuotes option for attributes XML: bugfix for recent changes to XML parser v2.6.1 Upgrade to tdewolff/parse@@2.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.6.0 CSS: remove space after function in property value; margin:calc(10px) calc(20px) => margin:calc(10px)calc(20px) SVG: parse A path command correctly when the booleans largeArc and sweep are not separated by a space, such as in A10 10 0 0120 0 which is equivalent to A10 10 0 0 1 20 0 SVG bugfix: make sure we are processing a valid path command SVG bugfix: prevent panic when having insufficient path arguments cmd: surpress error when minifying empty directory HTML: only minify attributes for known HTML5 tags, fixes #270 HTML, XML, SVG: minify entities with parse@@2.3.13 such as: " => ", " => ", " => ", ’ => ’, ✏ => ✏. v2.5.2 Bugfixes: SVG: don't convert polyline/rect/polygon/line to path, which can break CSS, fixes #260 SVG: relative SVG Bézier commands not properly minified CSS: don't remove whitespace in nested unknown at-rules, fixes #262 CSS: fix panic for background when it contains functions other than calc for background-position, fixes #263 CSS: fix panic for background-position with three numbers CSS: fix panic for url() with only whitespace or only one quote v2.5.1 Remove import comments SVG: do not convert line/rect to path if coordinates are relative percentages CSS: fix bug with inline CSS encountering } v2.5.0 CSS: fix position information in error context CSS: fix background-position panic with offsets that are zero HTML: trim and collapse whitespace in certain attribute values SVG: shorten cubic and quadratic Beziér path data to their shorter format or to line segments v2.4.0 When minifying floating points, remove trailing zeros and not other numbers Make M concurrent-safe HTML: keep double quotes around XML-flavour RDFa attributes CSS: revert the use of the #RRGGBBAA format as proposed in Color Module Level 4 as it is not yet an official W3C recommendation CSS: background-position (also within background) now works with 3 and 4 values as well SVG: skipping metadata or rect tags properly even if they are closed by a void tag (like ) SVG pathdata: when cursor doesn't move, don't emit any commands @ text @d1 1 a1 1 @@comment $NetBSD: PLIST,v 1.1 2018/11/18 08:40:17 ryoon Exp $ a2 83 gopkg/pkg/${GO_PLATFORM}/github.com/tdewolff/minify.a gopkg/pkg/${GO_PLATFORM}/github.com/tdewolff/minify/css.a gopkg/pkg/${GO_PLATFORM}/github.com/tdewolff/minify/html.a gopkg/pkg/${GO_PLATFORM}/github.com/tdewolff/minify/js.a gopkg/pkg/${GO_PLATFORM}/github.com/tdewolff/minify/json.a gopkg/pkg/${GO_PLATFORM}/github.com/tdewolff/minify/svg.a gopkg/pkg/${GO_PLATFORM}/github.com/tdewolff/minify/xml.a gopkg/src/github.com/tdewolff/minify/LICENSE.md gopkg/src/github.com/tdewolff/minify/README.md gopkg/src/github.com/tdewolff/minify/benchmarks/css_test.go gopkg/src/github.com/tdewolff/minify/benchmarks/html_test.go gopkg/src/github.com/tdewolff/minify/benchmarks/js_test.go gopkg/src/github.com/tdewolff/minify/benchmarks/json_test.go gopkg/src/github.com/tdewolff/minify/benchmarks/main_test.go gopkg/src/github.com/tdewolff/minify/benchmarks/sample_ace.js gopkg/src/github.com/tdewolff/minify/benchmarks/sample_amazon.html gopkg/src/github.com/tdewolff/minify/benchmarks/sample_arctic.svg gopkg/src/github.com/tdewolff/minify/benchmarks/sample_bbc.html gopkg/src/github.com/tdewolff/minify/benchmarks/sample_blogpost.html gopkg/src/github.com/tdewolff/minify/benchmarks/sample_books.xml gopkg/src/github.com/tdewolff/minify/benchmarks/sample_bootstrap.css gopkg/src/github.com/tdewolff/minify/benchmarks/sample_car.svg gopkg/src/github.com/tdewolff/minify/benchmarks/sample_catalog.xml gopkg/src/github.com/tdewolff/minify/benchmarks/sample_dot.js gopkg/src/github.com/tdewolff/minify/benchmarks/sample_es6.html gopkg/src/github.com/tdewolff/minify/benchmarks/sample_fontawesome.css gopkg/src/github.com/tdewolff/minify/benchmarks/sample_gopher.svg gopkg/src/github.com/tdewolff/minify/benchmarks/sample_gumby.css gopkg/src/github.com/tdewolff/minify/benchmarks/sample_jquery.js gopkg/src/github.com/tdewolff/minify/benchmarks/sample_jqueryui.js gopkg/src/github.com/tdewolff/minify/benchmarks/sample_large.json gopkg/src/github.com/tdewolff/minify/benchmarks/sample_moment.js gopkg/src/github.com/tdewolff/minify/benchmarks/sample_normalize.css gopkg/src/github.com/tdewolff/minify/benchmarks/sample_omg.xml gopkg/src/github.com/tdewolff/minify/benchmarks/sample_stackoverflow.html gopkg/src/github.com/tdewolff/minify/benchmarks/sample_testsuite.json gopkg/src/github.com/tdewolff/minify/benchmarks/sample_tiger.svg gopkg/src/github.com/tdewolff/minify/benchmarks/sample_twitter.json gopkg/src/github.com/tdewolff/minify/benchmarks/sample_usa.svg gopkg/src/github.com/tdewolff/minify/benchmarks/sample_wikipedia.html gopkg/src/github.com/tdewolff/minify/benchmarks/svg_test.go gopkg/src/github.com/tdewolff/minify/benchmarks/xml_test.go gopkg/src/github.com/tdewolff/minify/cmd/minify/README.md gopkg/src/github.com/tdewolff/minify/cmd/minify/install.sh gopkg/src/github.com/tdewolff/minify/cmd/minify/main.go gopkg/src/github.com/tdewolff/minify/cmd/minify/minify_bash_tab_completion gopkg/src/github.com/tdewolff/minify/cmd/minify/util.go gopkg/src/github.com/tdewolff/minify/cmd/minify/util_test.go gopkg/src/github.com/tdewolff/minify/cmd/minify/watch.go gopkg/src/github.com/tdewolff/minify/common.go gopkg/src/github.com/tdewolff/minify/common_test.go gopkg/src/github.com/tdewolff/minify/css/css.go gopkg/src/github.com/tdewolff/minify/css/css_test.go gopkg/src/github.com/tdewolff/minify/css/hash.go gopkg/src/github.com/tdewolff/minify/css/table.go gopkg/src/github.com/tdewolff/minify/css/util.go gopkg/src/github.com/tdewolff/minify/go.mod gopkg/src/github.com/tdewolff/minify/go.sum gopkg/src/github.com/tdewolff/minify/html/buffer.go gopkg/src/github.com/tdewolff/minify/html/buffer_test.go gopkg/src/github.com/tdewolff/minify/html/hash.go gopkg/src/github.com/tdewolff/minify/html/html.go gopkg/src/github.com/tdewolff/minify/html/html_test.go gopkg/src/github.com/tdewolff/minify/html/table.go gopkg/src/github.com/tdewolff/minify/js/js.go gopkg/src/github.com/tdewolff/minify/js/js_test.go gopkg/src/github.com/tdewolff/minify/json/json.go gopkg/src/github.com/tdewolff/minify/json/json_test.go gopkg/src/github.com/tdewolff/minify/minify.go gopkg/src/github.com/tdewolff/minify/minify_test.go gopkg/src/github.com/tdewolff/minify/svg/buffer.go gopkg/src/github.com/tdewolff/minify/svg/buffer_test.go gopkg/src/github.com/tdewolff/minify/svg/hash.go gopkg/src/github.com/tdewolff/minify/svg/pathdata.go gopkg/src/github.com/tdewolff/minify/svg/pathdata_test.go gopkg/src/github.com/tdewolff/minify/svg/svg.go gopkg/src/github.com/tdewolff/minify/svg/svg_test.go gopkg/src/github.com/tdewolff/minify/svg/table.go gopkg/src/github.com/tdewolff/minify/xml/buffer.go gopkg/src/github.com/tdewolff/minify/xml/buffer_test.go gopkg/src/github.com/tdewolff/minify/xml/table.go gopkg/src/github.com/tdewolff/minify/xml/xml.go gopkg/src/github.com/tdewolff/minify/xml/xml_test.go @ 1.1 log @www/go-minify: import go-minify-2.3.8 Minify is a minifier package written in Go. It provides HTML5, CSS3, JS, JSON, SVG and XML minifiers and an interface to implement any other minifier. Minification is the process of removing bytes from a file (such as whitespace) without changing its output and therefore shrinking its size and speeding up transmission over the internet and possibly parsing. The implemented minifiers are designed for high performance. The core functionality associates mimetypes with minification functions, allowing embedded resources (like CSS or JS within HTML files) to be minified as well. Users can add new implementations that are triggered based on a mimetype (or pattern), or redirect to an external command (like ClosureCompiler, UglifyCSS, ...). @ text @d1 1 a1 1 @@comment $NetBSD$ d24 1 d39 1 d46 1 d56 1 d58 1 d63 1 d75 1 d83 1 @