wikimedia/minify
Minification of JavaScript code and CSS stylesheets.
2.11.0
999K downloads/mo
#3999 most downloaded on Packagist
wikimedia/mediawiki-libs-Minify
What this package is like to depend on
Last release 1 months ago
26 Jun 2026
Ships fairly regularly
a new release about every 5 months
Nearly every release is documented
notes for 19 of 20 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
20 releases · first in 2021
2 releases in the last 12 months
see the full history below
Release timeline
20 releases · Feb 2021 to Jun 2026Releases
latest 20-
2.11.026 Jun 2026Release notes
Open source →Fixed:
- JavaScriptMinifier: Fix state bug after
if (foo.async)(Timo Tijhof) T429402
Added:
- JavaScriptMinifier: Minify space after exponent and implied zero fraction (Timo Tijhof) T386530
- JavaScriptMinifier: Support ES2020 BigInt literals (Siddharth VP) T386530
- JavaScriptMinifier: Support ES2020 new forms of import/export (Siddharth VP) T386530
- JavaScriptMinifier: Support ES2020 optional chaining operator (Siddharth VP) T386530
- JavaScriptMinifier: Support ES2021 logical assignment operators (Siddharth VP) T425099
- JavaScriptMinifier: Support ES2021 numeric separators (Siddharth VP) T425099
- JavaScriptMinifier: Update class documentation for ES2021 support (Siddharth VP) T425099
- JavaScriptMinifier: Fix state bug after
-
2.10.008 Jan 2026Release notes
Open source →Fixed:
- JavaScriptMinifier: Optimize static property access with local variables (Ori Livneh)
- JavaScriptMinifier: Optimize operator parsing with direct lookahead (Ori Livneh)
- Cli: Fix jsdebug labels for states in generator functions (Timo Tijhof)
Added:
- JavaScriptMinifier: Add support for ES2018
for-await-of(Hannah Okwelum) T387122
Changed:
- Raise required PHP to >= 8.1 (James D. Forrester)
-
2.9.026 Mar 2025Release notes
Open source →Fixed:
- Fix compat with PCRE 10.45, e.g. on Debian 13 or Ubuntu 25, and likely PHP 8.3+ (Reedy) T388335
Added:
- JavaScriptMinifier: Add support for async function as property value (Hannah Okwelum) T386139
- JavaScriptMinifier: Add support for optional catch binding (Hannah Okwelum) T387432
- Cli: Add
jsdebugcommand (Timo Tijhof)
Changed:
- JavaScriptMinifier: Update class documentation for ES2017 support (Hannah Okwelum) T277675
-
2.8.127 Feb 2025Release notes
Open source →Fixed:
- JavaScriptMinifier: Reject "5..0" as invalid syntax (Timo Tijhof)
- JavaScriptMinifier: Remove new line insertion (Hannah Okwelum) T368204
-
2.8.020 Aug 2024Release notes
Open source →Added:
- JavaScriptMinifier: Add support for ES2020
??nullish operator (Hannah Okwelum) T351610 - JavaScriptMinifier: Add support for ES2016
**=operator (Timo Tijhof) T277675 - JavaScriptMinifier: Add optional
onErrorcallback tominify()(Timo Tijhof) T357477 - Cli: Append "onError" result to minify command output (Timo Tijhof)
Changed:
- Raise required PHP to >= 7.4.3 (Sam Reed)
Fixed:
- JavaScriptMinifier: Fix treatment of
yieldin expressions (Roan Kattouw) T371938
- JavaScriptMinifier: Add support for ES2020
-
2.7.018 Nov 2023Release notes
Open source →- JavaScriptMinifier: Add basic ES2017 async-await syntax support (Hannah Okwelum)
- JavaScriptMinifier: Update debug() to remove $lastType (Timo Tijhof)
-
2.6.115 Nov 2023Nothing published for this version
-
2.5.106 Oct 2023 -
2.5.011 Aug 2023Release notes
Open source →Added:
- bin: Add
css-remapcommand. (Timo Tijhof) - IdentityMinifierState and JavaScriptMinifier::createIdentityMinifier(). (Tim Starling)
- MinifierState::ensureNewline()
- IndexMap class, for generating a combined source map
- bin: Add
-
2.4.022 Mar 2023Release notes
Open source →Added:
- JavaScriptMinifier: Add ES2016 syntax support. (Siddharth VP) T277675
Changed:
- package: Require
ext-fileinfoin composer.json. (Sam Reed)
-
2.3.019 Apr 2022Release notes
Open source →Added:
- JavaScriptMinifier: Add support for source maps. (Tim Starling) T47514
Use via the
createMinifier()andcreateSourceMapState()methods, see/tests/data/sourcemap/combine.phpfor an example. - bin: Add
jsmap-webandjsmap-rawcommands. (Tim Starling)
Fixed:
- JavaScriptMinifier: Fix handling of property on dotless number literal. (Timo Tijhof) T303827
- JavaScriptMinifier: Add support for source maps. (Tim Starling) T47514
Use via the
-
2.2.619 Nov 2021Release notes
Open source →Fixed:
- JavaScriptMinifier: Correctly recognize
\in template strings. (Roan Kattouw) T296058
- JavaScriptMinifier: Correctly recognize
-
2.2.523 Oct 2021Release notes
Open source →Fixed:
- bin: Fix
minifyCLI autoload when run from a vendor directory. (Timo Tijhof)
- bin: Fix
-
2.2.428 Jul 2021Release notes
Open source →Fixed:
- JavaScriptMinifer: Recognize
...as a single token. (Roan Kattouw) T287526
- JavaScriptMinifer: Recognize
-
2.2.307 Jun 2021Release notes
Open source →Fixed:
- JavaScriptMinifer: Fix handling of
.deleteas object property. (Roan Kattouw) T283244
- JavaScriptMinifer: Fix handling of
-
2.2.207 May 2021Release notes
Open source →Fixed:
- CSSMin: Fix remapping of path-only URL when base dir is server-less root. (Timo Tijhof) T282280
-
2.2.115 Mar 2021Release notes
Open source →Fixed:
- JavaScriptMinifier: Fix handling of keywords used as object properties. (Roan Kattouw) T277161
-
2.2.009 Mar 2021Release notes
Open source →Added:
- JavaScriptMinifier: Add ES6 syntax support. (Roan Kattouw) T272882
- JavaScriptMinifier: Support true/false minification in more situations. (Roan Kattouw)
- bin: Add
minifyCLI. (Timo Tijhof)
Changed:
- JavaScriptMinifier: Improve latency through various optimisations. (Daimona Eaytoy)
Fixed:
- JavaScriptMinifier: Fix semicolon insertion logic for
throw new Error. (Roan Kattouw)
-
2.1.013 Feb 2021Release notes
Open source →Added:
- CSSMin: Add global class alias for
CSSMinfor MediaWiki compatibility. This is deprecated on arrival and will be removed in a future major release.
- CSSMin: Add global class alias for
-
2.0.009 Feb 2021Release notes
Open source →This release requires PHP 7.2+, and drops support for Internet Explorer 6-10.
Added:
- CSSMin: Support multiple
url()values in one rule. (Bartosz Dziewoński) - CSSMin: Support embedding of SVG files. (m4tx)
Removed:
- JavaScriptMinifier: Remove support for the
$statementsOnOwnLineoption. - JavaScriptMinifier: Remove support for the
$maxLineLengthoption. - CSSMin: Remove data URI fallback, previously for IE 6 and IE 7 support.
Changed:
- CSSMin: Reduce SVG embed size by using URL-encoding instead of base64-encoding. (Bartosz Dziewoński)
- CSSMin: Improve SVG compression by preserving safe literals. (Roan Kattouw, Volker E, Fomafix)
Fixed:
- CSSMin: Fix non-embedded URLs that are proto-relative or have query part. (Bartosz Dziewoński) T60338
- CSSMin: Avoid corruption when CSS comments contain curly braces. (Stephan Gambke) T62077
- CSSMin: Avoid corrupting parenthesis and quotes in URLs. (Timo Tijhof) T60473
- CSSMin: Skip remapping for special
url(#default#behaviorName)values. (Julien Girault) - JavaScriptMinifier: Fix "Uninitialized offset" in string and regexp parsing. (Timo Tijhof) T75556
- JavaScriptMinifier: Fix "Uninitialized offset" in regexp char class parsing. (Timo Tijhof) T75556
- JavaScriptMinifier: Fix possible broken
returnstatement after a ternary in a property value. (Timo Tijhof) T201606
- CSSMin: Support multiple