Closed cappert closed 7 years ago
4.0 is out : https://middlemanapp.com/basics/upgrade-v4/
With Middleman version 4, we've removed a lot of lesser used features in the core and replaced them with better-supported approaches which already existed or moving that functionality into an extension. Here's the list of API changes:
[ ] Removed partials_dir config option. Please reference all partials from the source/ directory. partial 'partials/my-partial' would map to source/partials/_my-partial.erb.
[ ] Removed the proxy and ignore options for the page command in config.rb. Use the proxy and ignore commands instead of passing these options to page.
[ ] Removed with_layout in config. Use loops of page instead.
[ ] Removed Queryable Sitemap API
[ ] Removed css_compressor setting, use activate :minify_css, :compressor => instead.
[ ] Removed js_compressor setting, use activate :minify_javascript, :compressor => instead.
[ ] Removed ability to serve folders of content statically (non-Middleman projects).
[ ] Removed "Implied Extension feature", all templates must include a full file name plus the list of desired templating extensions.
[ ] Remove upgrade and install CLI commands.
[ ] Remove page template local. Use current_resource instead.
[ ] Dropped support for providing a block to page & proxy.
[ ] Dropped support for instance variables inside templates.
[ ] Remove deprecated request instance
[ ] Remove old module-style extension support
[ ] Moved Compass into an extension, still bundled by default.
[ ] The after_build block now returns a Middleman::Builder instance which is completely abstracted away from the CLI and Thor. If you need a copy of Thor to run addition also tasks or do a simple create_file, it is available as .thor. For example: after_build { |builder| builder.thor.create_file(...) } Removed Sprockets, add gem "middleman-sprockets", "~> 4.0.0.rc" to Gemfile
[ ] Lots of code was touched during the v4 refactor. If you were relying on internal methods which were not mentioned above or described on this documentation site, there is a possibility things have changed. Please reach out if you have questions.
8739e0a8113e2b02b28a7ebf5faf1ca94821baa7
https://github.com/middleman/middleman/blob/master/CHANGELOG.md