Releases: welaika/wordless
v6.0.3
v6.0.2
v6.0.1
v6.0.0
v5.1.2
Fixed 🐛
- e01c38d fix bug in
render_static
: the optimizer in some scenarios could lead to error because the render was not called. No performance drawbacks anyway. - 6244e8f fixed gitignore
- 778c47c fix bug in
render_static
loosing locals variables
NOTE: I'm compiling ahead of time this release's changelog because I forgot to do this at the time. Sorry
v5.1.1
Fixed 🐛
Fixed a bug preventing render_static
to work while in development environment
v5.1.0
Added 🆕
- PUG's filter
:php
is back on track - vanilla theme has responsive embeds support (from wordpress core) enabled by default
- PHP8 support (thanks to @kylekatarnls)
- Updated static rendering documentation
Fixed 🐛
- Validation errors are now overlayared onto the page, being visible even when inside a nested rendering process
- Now both
define('BYPASS_STATIC', false)
anddefine('BYPASS_STATIC', FALSE)
are supported - refactored
render_template
function to not waste CPU time on SHA calculation when static rendering is not required
v5.0.0
Full diff from previous release 4.1.0...5.0.0
What's new in the major version? 🆕
- [conventions] For rendering partials and layouts is endorsed a new "pure PUG" approach instead of using PHP helper functions such as
render_partial()
. New practices are reflected in the updated documentation @ https://wordless.readthedocs.io/en/5.0.0/_pages/usage/rendering_pug.html - A new PHP helper
render_static()
is provided as a strategy to cache partials or whole templates as static HTML files. Usage and info documented @ https://wordless.readthedocs.io/en/5.0.0/_pages/appendix/render_static.html. This tool works only with PUG files. - A new class
Wordless\Component
is provided as a device to write visual components in PUG with validated parameters using PUG's builtinsmixins
. You can read ratio and usage @ https://wordless.readthedocs.io/en/5.0.0/_pages/usage/filters.html#wordless-pug-configuration - [vendor] Mobile-Detect updated
- [vendor] pug-php updated
- [vendor] Symphony validator added
- [vendor] All javascript dependancies (node modules) updated. A special mention goes to Webpack that receives an update to the recent release 5!
Please be sure to welcome the new "pure PUG" convention, since it will determine a serious performance improvement. Should you have problems refactoring an old theme in order to update it to the new conventions, feel free to open an issue (or ping me in private company chat).
Warning ⚠️
- Default pug compile options were updated. Be sure they still fit your project if you're upgrading: https://wordless.readthedocs.io/en/5.0.0/_pages/usage/filters.html#wordless-pug-configuration
- [conventions] new file naming conventions - as endorsed in the docs - no more relies on underscore-prefixed pug partials. Partials are now called with explicit paths: no underscore magic, no extension omissions.
Fixed 🐛
- Fixed a bug during the the setup preventing the correct creation of the test database
Other changes 📓
- VSCode plugin recommendations added to vanilla theme (fd269cc)
- Documentation was re-ordered trying to make it more focused on important things and more readable
Upgrading from 4.1
Version 5, while introducing a lot of new practices, naming conventions and scaffolding, retains full compatibility with 4.1's themes.
Big ups to @danielegiorgis who put a lot of effort in this major release.
v4.1.0
New features 🆕
This release comes with only one big feature: Wordless vanilla theme now is shipped with preconfigured E2E test suite.
Documentation is updated accordingly, so you can read more about this at https://wordless.readthedocs.io/en/latest/_pages/usage/test_suite.html
Changes ‼️
- Composer is a new pre-requisite
- the installation process in slightly changed (there is a new
yarn setup
task instead of the oldyarn install
); pay attention to the documentation on your next setup
Enjoy! 🌸
v4.0.0
Full diff from previous release 3.0.1...4.0.0
What's new in the major version? 🆕
- Moved from SASS to SCSS (breaking)
- Updated Stylelint rules and config to lint SCSS (breaking)
- Moved from CoffeeScript to ES2015 (breaking)
- Updated all the node_modules dependencies
Warning ⚠️
This is a major update because it's considered a breaking one. Updating the plugin from 3.x to 4.0.0 should be safe, but you cannot upgrade an existing theme with new configurations. This is true mainly due to the new default supported syntaxes (SCSS and ES2015)
Fixed 🐛
- Fixed 2 bugs and improved the helper to register ACF/Gutenberg custom blocks (
create_acf_block
) - Fixed a wrong path declared inside
Wordless
class - Fixed a bug in
new_taxonomy
with most recent WP versions
Other changes 📓
- Updated the logic behind
wp wordless theme upgrade
: now it is no more intended to upgrade from non-webpack themes to a webpack one, but simply updating theme's build configurations to the new shipped ones - Heavily improved documentation, clened up the main README.
- Documentation reflects all the introduced updates about languages/syntaxes