Releases: assetic-php/assetic
v3.1.2
What's Changed
- Add Tailwind CSS Standalone CLI utility filter by @bennothommo in #42
- Allow "symfony/deprecation-contracts": "^2.2.0|^3.0" by @10n in #43
New Contributors
Full Changelog: v3.1.1...v3.1.2
v3.1.1
Changes
- Conform codebase to PSR-12 code style guidelines
- Update wikimedia/less.php from 3.0 to 5.x for tests by @Krinkle in #38
Bug fixes
- 8 character color hex codes (with alpha channel) are no longer minified to 3 character hex codes in
StylesheetFilter
, these are instead minified to 4 characters. - The
MockAsset
asset has been switched to using contracts for typehints and return types.
Community updates
- Combine and consistently format the changelog by @bennothommo in #39
New Contributors
Full Changelog: v3.1.0...v3.1.1
v3.1.0
What's Changed
- Re-added TwigFormulaLoader by @bds-viktoras in #37
- Added support for
symfony/console
v7 - Skipped tests for Google Closure Compiler REST API filter, it has been deprecated by Google
- Added support for TypeScript v5
New Contributors
- @bds-viktoras made their first contribution in #37
Full Changelog: v3.0.2...v3.1.0
v3.0.2
- The Assetic Twig Extension is now compatible with Twig version 3
v3.0.1
Changes:
- Fixed issue with StylesheetMinifyFilter where a universal selector (
*
) could not immediately follow a comment.
v3.0.0
Assetic v3 is another refresh of the project in order to keep the core lean and up to date with modern standards. More deprecated / abandoned filters have been removed and replaced with modern maintained alternatives.
New filters are still recommended to be added in external packages and the core is to be kept as minimal as possible.
New features
- Support for PHP 8.0 & PHP 8.1
- Support for
symfony/process: v6.x
- Added
Assetic\Filter\JavaScriptMinifierFilter
- Added
Assetic\Filter\CSSMinFilter
- Added
Assetic\Filter\StylesheetMinfyFilter
BC breaks
- Minimum PHP version required is now PHP 7.3
- Removed support for the unmaintained
mrclay/minify
,patchwork/jsqueeze
, &natxet/CssMin
packages in favour ofwikimedia/minify
.
Filters Removed:
JSMinFilter
(useJavaScriptMinifierFilter
instead)JSMinPlusFilter
(useJavaScriptMinifierFilter
instead)JSqueezeFilter
(useJavaScriptMinifierFilter
instead)CssMinFilter
(useCssImportFilter
combined with theCSSMinFilter
instead)- Abandoned for all intents and purposes; maintainer has not interacted with the project for four years at least, not even able to maintain the package in the first place (natxet/CssMin#23 (comment)).
- Several long standing unresolved bugs in relatively common CSS use cases
MinifyCssCompressorFilter
(use replacement forCssMinFilter
above or useStylesheetMinifyFilter
instead)- Abandoned, see: mrclay/minify@0bc3769
- Considered replacing with https://github.com/tubalmartin/YUI-CSS-compressor-PHP-port (last touched in 2018) but it is not fully supported in PHP 7.4: tubalmartin/YUI-CSS-compressor-PHP-port#57 & is abandoned for all intents and purporses; maintainer has not interacted with the project for four years at least and maintainer seems to no longer be working with PHP in general.
v2.0.2
Changes:
- Fixes an issue with aliases when run with the Opcache Preloader from PHP 7.4+ (#27)
- Fix usage of deprecated behaviours and methods in SCSS PHP filter (#25)
- Adds additional argument for registerFunction method to define argument declarations (fixes #11)
- Uses compileString() method for compilation as opposed to deprecated compile() method
- Uses addVariables() method for defining variables as opposed to deprecated setVariables() method
- Parses variables provided in the setVariables() filter method and converts to Scss values, avoiding the deprecated behavior of allowing raw variables
v2.0.1
Changes:
- Added PHP 8 support
- Removed support for scss_compass, which was never actually finished in the first place
v2.0.0
v2.0.0 (2020-10-11)
Project update
The project kriswallsmith/assetic
is currently unmaintained, and has not been
updated in 4 years. You can replace kriswallsmith/assetic
by swapping it out for
"assetic/framework": "~2.0.0"
via composer.
This fork aims to bring Assetic up to date with modern libraries and allow for it
to be used in conjunction with modern frameworks.
This update makes the project more opionated, removing duplicate filters in favour of
purely PHP-based ones. New filters are to be added in external packages and the core
is to be kept as minimal as possible.
As part of this update old, abandoned or redundant utilities have been removed.
This is in part to simplify the offering of project as well as to migrate to
a simplified tool set of php and javascript based utilities.
New features
- Support for
>=php 7.2
- Support for
symfony/process
v3.4.x
|v4.x
|v5.x
BC breaks
- Minimum PHP version required is now PHP 7.2
- Switching from
leafo/lessphp
towikimedia/less.php
- Due to this switch support has been dropped for
setPreserveComments
®isterFunction
by theLessphpFilter
.
- Due to this switch support has been dropped for
twig/twig
support is optional now,twig/extensions
must be required in your requirements if you need it.
Filters Removed:
- apc cache (apc is no longer supported in php7.2)
- autoprefixer (autoprefixer cli is deprecated)
- cleancss (code is incompatible with the current API)
- CssEmbed
- Compass
- Dart
- ember precompile (the npm package no longer compiles)
- Gemfile (Ruby is no longer in use in the project)
- GSS
- Packager (throws deprecation notices in php7.4)
- pngout (npm package is abandoned)
- Roole (Roole was a language that compiles to CSS, the project is now dead and has been for at least 6 years, use LESS \ SCSS instead)
- SassFilter/ScssFilter/SassphpFilter (replaced by ScssphpFilter)
- Sprockets (Assetic no longer integrates with Ruby packages)
- UglifyJS version 1 (No longer supported. Use the
Assetic\Filter\UglifyJs2Filter
for version 2 orUglifyJs3Filter
for version 3 instead) - Yui compressors