PackageTrack
Sign in Get early access

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 2026
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 20
  1. 2.11.0 26 Jun 2026
    Release notes

    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
    Open source →
  2. 2.10.0 08 Jan 2026
    Release notes

    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)
    Open source →
  3. 2.9.0 26 Mar 2025
    Release notes

    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 jsdebug command (Timo Tijhof)

    Changed:

    • JavaScriptMinifier: Update class documentation for ES2017 support (Hannah Okwelum) T277675
    Open source →
  4. 2.8.1 27 Feb 2025
    Release notes

    Fixed:

    • JavaScriptMinifier: Reject "5..0" as invalid syntax (Timo Tijhof)
    • JavaScriptMinifier: Remove new line insertion (Hannah Okwelum) T368204
    Open source →
  5. 2.8.0 20 Aug 2024
    Release notes

    Added:

    • JavaScriptMinifier: Add support for ES2020 ?? nullish operator (Hannah Okwelum) T351610
    • JavaScriptMinifier: Add support for ES2016 **= operator (Timo Tijhof) T277675
    • JavaScriptMinifier: Add optional onError callback to minify() (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 yield in expressions (Roan Kattouw) T371938
    Open source →
  6. 2.7.0 18 Nov 2023
    Release notes
    • JavaScriptMinifier: Add basic ES2017 async-await syntax support (Hannah Okwelum)
    • JavaScriptMinifier: Update debug() to remove $lastType (Timo Tijhof)
    Open source →
  7. 2.6.1 15 Nov 2023

    Nothing published for this version

  8. 2.5.1 06 Oct 2023
    Release notes
    • Fix source map output for multi-line templates. (Tim Starling) T348280
    Open source →
  9. 2.5.0 11 Aug 2023
    Release notes

    Added:

    • bin: Add css-remap command. (Timo Tijhof)
    • IdentityMinifierState and JavaScriptMinifier::createIdentityMinifier(). (Tim Starling)
    • MinifierState::ensureNewline()
    • IndexMap class, for generating a combined source map
    Open source →
  10. 2.4.0 22 Mar 2023
    Release notes

    Added:

    • JavaScriptMinifier: Add ES2016 syntax support. (Siddharth VP) T277675

    Changed:

    • package: Require ext-fileinfo in composer.json. (Sam Reed)
    Open source →
  11. 2.3.0 19 Apr 2022
    Release notes

    Added:

    • JavaScriptMinifier: Add support for source maps. (Tim Starling) T47514 Use via the createMinifier() and createSourceMapState() methods, see /tests/data/sourcemap/combine.php for an example.
    • bin: Add jsmap-web and jsmap-raw commands. (Tim Starling)

    Fixed:

    • JavaScriptMinifier: Fix handling of property on dotless number literal. (Timo Tijhof) T303827
    Open source →
  12. 2.2.6 19 Nov 2021
    Release notes

    Fixed:

    • JavaScriptMinifier: Correctly recognize \ in template strings. (Roan Kattouw) T296058
    Open source →
  13. 2.2.5 23 Oct 2021
    Release notes

    Fixed:

    • bin: Fix minify CLI autoload when run from a vendor directory. (Timo Tijhof)
    Open source →
  14. 2.2.4 28 Jul 2021
    Release notes

    Fixed:

    • JavaScriptMinifer: Recognize ... as a single token. (Roan Kattouw) T287526
    Open source →
  15. 2.2.3 07 Jun 2021
    Release notes

    Fixed:

    • JavaScriptMinifer: Fix handling of .delete as object property. (Roan Kattouw) T283244
    Open source →
  16. 2.2.2 07 May 2021
    Release notes

    Fixed:

    • CSSMin: Fix remapping of path-only URL when base dir is server-less root. (Timo Tijhof) T282280
    Open source →
  17. 2.2.1 15 Mar 2021
    Release notes

    Fixed:

    • JavaScriptMinifier: Fix handling of keywords used as object properties. (Roan Kattouw) T277161
    Open source →
  18. 2.2.0 09 Mar 2021
    Release notes

    Added:

    • JavaScriptMinifier: Add ES6 syntax support. (Roan Kattouw) T272882
    • JavaScriptMinifier: Support true/false minification in more situations. (Roan Kattouw)
    • bin: Add minify CLI. (Timo Tijhof)

    Changed:

    • JavaScriptMinifier: Improve latency through various optimisations. (Daimona Eaytoy)

    Fixed:

    • JavaScriptMinifier: Fix semicolon insertion logic for throw new Error. (Roan Kattouw)
    Open source →
  19. 2.1.0 13 Feb 2021
    Release notes

    Added:

    • CSSMin: Add global class alias for CSSMin for MediaWiki compatibility. This is deprecated on arrival and will be removed in a future major release.
    Open source →
  20. 2.0.0 09 Feb 2021
    Release notes

    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 $statementsOnOwnLine option.
    • JavaScriptMinifier: Remove support for the $maxLineLength option.
    • 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 return statement after a ternary in a property value. (Timo Tijhof) T201606
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive