| 1 |
Revision history for Perl extension JavaScript::Minifier::XS. |
| 2 |
|
| 3 |
0.16 2026-06-28 14:10:28-07:00 America/Vancouver |
| 4 |
- Fixes CVE-2026-56017, which caused Perl to SEGFAULT when calling |
| 5 |
minify(). Thanks to CPANSec for raising the issue, and providing a |
| 6 |
prototype fix. |
| 7 |
- Fixes CVE-2026-56018, caused by a memory leak in minify() where each |
| 8 |
tokenized Node's "contents" buffer were not properly freed, resulting in a |
| 9 |
memory leak on every call. |
| 10 |
- Updated author tests for "does the JS still compile?", to use "node" |
| 11 |
instead of "jsl". |
| 12 |
|
| 13 |
0.15 2021-10-15 20:21:23-07:00 America/Vancouver |
| 14 |
- GH#8 - preserve newlines when collapsing whitespace; if a block of |
| 15 |
whitespace contains a newline, then when collapsing we collapse to a |
| 16 |
newline character, not just "the first whitespace char we found" |
| 17 |
|
| 18 |
0.14 2021-02-06 23:36:36-08:00 America/Vancouver |
| 19 |
- rewrote test suite into a single ".t" test |
| 20 |
- optimized memory allocations, by allocating Nodes in bulk, and being |
| 21 |
smarter about when we need to free/reallocate content buffers in Nodes |
| 22 |
- optimize whitespace collapsing |
| 23 |
- GH#3 / RT#108682; fix whitespace reduction at end of preserved line |
| 24 |
comment. Thanks to Dan Goodliffe |
| 25 |
- GH#6; fix unescaped slash in character set, inside of a regex, with thanks |
| 26 |
to @faf |
| 27 |
|
| 28 |
0.13 2020-12-30 21:46:29-08:00 America/Vancouver |
| 29 |
- POD cleanups; spelling, SYNOPSIS |
| 30 |
- Switch to DZil Author Bundle |
| 31 |
|
| 32 |
0.12 2020-12-28 08:31:31-08:00 America/Vancouver |
| 33 |
- Switch to GitHub Actions, from Travis-CI. |
| 34 |
- Add META links to GitHub repository and issue tracker |
| 35 |
- Switch to Dist::Zilla |
| 36 |
- Bump minimum required Perl to 5.8.1 |
| 37 |
- RT #130347; handle ES6 template literals. |
| 38 |
Thanks to Robert Rothenberg. |
| 39 |
|
| 40 |
0.11 Tue Jan 27 16:50 PST 2015 |
| 41 |
- RT #58416; don't segfault when trying to minify non-javascript |
| 42 |
|
| 43 |
0.10 Mon Jan 26 22:46 PST 2015 |
| 44 |
- RT #64948; allow builds on older versions of Perl. |
| 45 |
Thanks to Michael Robinton and Ruslan Zakirov. |
| 46 |
- Lowered minimum Perl version to v5.6.0, as detected by |
| 47 |
Perl::MinimumVersion. |
| 48 |
- RT #51008; allow for minification of JS code that returns regexps from |
| 49 |
functions. |
| 50 |
Thanks to James Barton, Robert Krimen, and Randy Stauner. |
| 51 |
- Added "xt/test-compile.t" to test minification against a wider range of |
| 52 |
JS. While not a 100% guarantee that the JS still works, it does provide |
| 53 |
a wider range of JS to test against. |
| 54 |
|
| 55 |
0.09 Tue Nov 2 22:12 PDT 2010 |
| 56 |
- Bump required Perl version to 5.8.8; oldest release w/Newxz() available. |
| 57 |
|
| 58 |
0.08 Wed Jul 21 21:23 PDT 2010 |
| 59 |
- use Newxz/Safefree for memory management, instead of malloc/free. Thanks |
| 60 |
to Kenichi Ishigaki for his patch to CSS-Minifier-XS that prompted this. |
| 61 |
|
| 62 |
0.07 Fri Apr 23 23:44 PDT 2010 |
| 63 |
- switch to Git |
| 64 |
|
| 65 |
0.06 Thu Aug 6, 22:08 PDT 2009 |
| 66 |
- fix invalid "L<text|scheme:...>" POD sequences |
| 67 |
|
| 68 |
0.05 Wed Jul 16, 23:35 PDT 2008 |
| 69 |
- don't segfault w/older Perls if we minify right down to nothing. |
| 70 |
(similar behaviour as described for CSS::Minifier::XS in RT #36557) |
| 71 |
|
| 72 |
0.04 Wed May 28, 21:58 PDT 2008 |
| 73 |
- rebuild packages; wrong version number in META.yml |
| 74 |
|
| 75 |
0.03 Wed May 28, 14:46 PDT 2008 |
| 76 |
- fix minification when a regexp follows a comment that ends with something |
| 77 |
that looks like code; was treating it as division instead of as a literal |
| 78 |
- properly clear end of internally allocated buffers |
| 79 |
- added some debugging output, which could be enabled at compile-time |
| 80 |
|
| 81 |
0.02 Tue May 6 00:16 PDT 2008 |
| 82 |
- rebuild packages; EU::MM borked my META.yml |
| 83 |
|
| 84 |
0.01 Mon May 5 15:11 PDT 2008 |
| 85 |
- fix minification of "division of an array subscript". Thanks to Ingy and |
| 86 |
Dan at Socialtext for the JS! |
| 87 |
- first NON-devel release |
| 88 |
|
| 89 |
0.01_05 Sat Oct 20 22:48 PDT 2007 |
| 90 |
- don't use "strcasestr()"; not available on Solaris |
| 91 |
|
| 92 |
0.01_04 Wed Oct 17 15:56 PDT 2007 |
| 93 |
- fix t/02-minify.t, so it doesn't try to "use_ok()" before issuing a test |
| 94 |
plan |
| 95 |
|
| 96 |
0.01_03 Tue Oct 16 19:47 PDT 2007 |
| 97 |
- don't use "strndup()"; not available on all systems |
| 98 |
- we require Perl 5.006; update Build.PL and XS.pm to denote this |
| 99 |
|
| 100 |
0.01_02 Tue Oct 16 12:22 PDT 2007 |
| 101 |
- relocate the XS file so that its picked up properly by EU::MM when |
| 102 |
running "perl Makefile.PL" to do a build. |
| 103 |
|
| 104 |
0.01_01 Mon Oct 15 22:11 PDT 2007 |
| 105 |
- initial public version |