Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@andybluntish andybluntish released this 04 May 13:11
7776fde

Get test passing for Embroider.

Breaking changes

  • Use outaTiME/applause directly:

    Previously, this addon made use of outaTiME/broccoli-replace to handle running replacements in files. In v2 we now run outaTiME/applause directly on the output directory post-build. This change was primarily implemented to get tests passing for Embroider.

  • The files configuration paths are now relative to the dist/ directory:

    Since we're now transforming files after the Ember build is complete, the files configuration option is now relative to the dist/ directory. In previous versions, we were operating on the Broccoli tree, so file paths were referencing input files. In v2 files should point to paths in the output directory (dist/). Note that during build, templates are compiled to JavaScript, so you likely want to include **/*.js in the list, and probably don't need **/*.hbs.

  • New default value for the files configuration option (['index.html', '**/*.js']):

    This is a sensible default, since most files in an Ember application are complied to JavaScript, and it's common to make replacements in the index.html. Since we run post-build now, and .hbs files are compiled to JavaScript during build, this configuration should cover most common use-cases. User-supplied files configuration is not merged with the defaults, so if you make any changes, you'll need to add the default globs back in.

Potentially breaking

  • Upgrade Ember CLI from 3.16 to 4.3
    This addon is now based on the default blueprint for Ember CLI 4.3.

What's Changed

Full Changelog: v1.0.0...v2.0.0