Releases: getpavo/treeshake
v0.3.1 - Bug fixes and no more logging messages
This update ships some bug fixes and disables the INFO and WARNING logging of CSSUtils, that used to occur because new CSS properties were not recognized by the module yet. It also has some changes to the environment for developers, including a shell script to build Cython.
🎉 New in this release
- Added a shell script for building the Cython code (inplace).
🐞 Fixed bugs
- When running Treeshake as module with
python -m treeshake, the output path was specified incorrectly, making the application not recognize any stylesheets and optimizing a whopping 0 stylesheets, no matter the input. - The final output of the
__main__.pyscript used to give back a list, where it should have returned the length of the list. - Removed debugging statements that were left over in the code.
❔ Miscellaneous changes
- Removed a
test.pyfile that was used to test the workings of the module.
v0.3.0 - Improved speed and output volume
This update checks imported HTML files for CSS imports, before parsing and updating the output CSS. It also fixes some major bugs that sometimes lead to overwriting of output files, before parsing was even complete.
🎉 New in this release
- Treeshake now checks if a file is imported in the HTML, before optimizing it. Saving both time and output volume.
- Basic unit tests have been introduced to run when you update the code.
- Documentation for code of conduct has been added.
🐞 Fixed bugs
- Empty files are no longer being created in the output directory.
- CSS that was used on multiple pages no longer overwrites itself, leading to more consistent behaviour.
- Resolving of relative paths when looking through files has been fixed. The parser used to think that files were also directories.
v0.2.4 - Added pseudoelements
🐞 Fixed bugs
- Pseudoelements are now also included when their parent element is selected.
v0.2.3 - Removed bug with debug print statement
🐞 Fixed bugs
- Removed a print statement from
stylesheet.pyx
v0.2.2 - Bug fix for issue with rule adding
As described in our previous changelog, the v0.2.x cycle has come to an end, except for the discovery of critical bugs. The bug described in #12 has been disruptive in the usage of Treeshake and as such a new release has been made public that addresses this issue.
🐞 Fixed bugs
- Made use of found list in Stylesheet class, so rules are no longer added twice.
v0.2.1 - Argument parsing in command line
This update enhances the usage of the command line by adding argument parsing to the treeshake module.
🎉 New in this release
- Added argument parsing to the command line interface.
- Added
--recursive-cssflag to recursively look for css files. - Added
--recursive-htmlflag to recursively look for html files. - Added
--safeflag to ensure all targeted paths to directories exist. - Added
--outflag to specify a different output directory than./out/. - Added
--overwriteflag to specify that thecssdirectory should also be used for output.
📝 Updates to documentation
- Added an author and author email in
setup.py. - Updated the README documentation with information about the command line interface.
🏁 Final release of v0.2.x
This release marks the end of the release cycle of the v0.2.x version. Unless majors bugs are discovered, the next release will be v0.3.0, which will be an update cycle regarding documentation and automated testing.
v0.2.0 - Entry points and use as module
🎉 New in this release
- Added
__main__.pyfor entry as module. - Added
treeshakeas console script, so it can be added to sys.path. - Using
__main__.pywill output how long it took to compile. - Protected
mainanddevbranch, so pushes are no longer directly to these branches.
✨ Improved
- Added more badges and more documentation to the project.
- Updated imports to now be absolute, instead of relative.
- Changed the signature of
Shaker.improve()method, so it returns the amounts of handled stylesheets.
🐞 Fixed bugs
- Removed badge that was not working from README.
v0.1.5 - More documentation
🎉 New in this release
- Extended documentation in README and CONTRIBUTING
- Added badges to README
🏁 Final release of v0.1.x
This is the final release for the 0.1.x versioning. Unless majors bugs are discovered, the next release will be v0.2.0, which will include a command line utility to use Treeshake from the command line.
v0.1.4 - Abandon Poetry
This is the final release that addresses the bug in 6126543. It has been fixed by moving from Poetry to Setuptools.
🐞 Fixed bugs
- Fixed error when trying to import from compiled file.
v0.1.3 - Attempt to fix import errors
This release addresses the same bug as 6126543, which has not been fixed with that release.
🐞 Fixed bugs
- This is another attempt to fix a bug with importing the Shaker in a new project.