Skip to content

0.17.0

Latest
Compare
Choose a tag to compare
@atanas-dev atanas-dev released this 16 Apr 17:17

Framework:

  • Added preliminary support for PHP 8 and PHP 8.1.
  • Added support for route handler references in the callable-like [ClassName::class, 'method'] format.
  • Added \App::views()->exists() and \App::views()->canonical() utility methods.
  • Added \App::router() utility method to access the router instance.
  • Added a new "namespace" root config option that is used as a default for all services (e.g. controllers, view composers, etc.).
  • Added WP_Filesystem as a service in the container under the WPEMERGE_APPLICATION_FILESYSTEM_KEY key.
  • Added the current route definition file and line to the debug screen on error.
  • Fixed config debug options not taking WP_DEBUG into account.
  • Fixed Flash::addToRequest() not respecting the current request key (#24, props @galengidman).

Starter Theme and Plugin:

  • Added support for Tailwind CSS v3.
  • Updated PostCSS to v8.
  • The release CLI command will now use a temporary directory and only produce a zip file, matching your working directory name.
  • Image and font directory structures are now preserved when compiled in dist/.
  • Vendor assets are now stored in a new dist/vendor/ directory when compiled.
  • Replaced PHP file functions usage with WordPress' WP_Filesystem, loaded from the container.
  • Improved ThemeCheck compliance.

App Core:

  • Improved script and style loading logic in all modes (development, hot, production with script debug off and on).
  • Replaced PHP file functions usage with WordPress' WP_Filesystem, loaded from the container.

CLI:

  • Updated TailwindCSS to v3.