Upgrading
In order to ensure a safe and easy upgrade please follow the following steps (from within your project directory):
Setup
npm uninstall -g ember-cli
-- Remove old global ember-clinpm cache clean
-- Clear NPM cachebower cache clean
-- Clear Bower cachenpm install -g ember-cli
-- Install new global ember-cli
Project Update
rm -rf node_modules bower_components dist tmp
-- Delete temporary development folders.npm install --save-dev ember-cli
-- Update project'spackage.json
to use latest version.npm install
-- Reinstall NPM dependencies.bower install
-- Reinstall Bower dependencies.ember init
-- This runs the new project blueprint on your projects directory. Please follow the prompts, and review all changes (tip: you can see a diff by pressing d). The most common source of upgrade pain is missing changes in this step.
Changelog
Applications
-
[ENHANCEMENT] Add
--pod
option to blueprints for generate and destroy. AddfileMapTokens
hook to blueprints, and optional
blueprint file tokens__path__
and__test__
for pod support. #1994 -
[ENHANCEMENT] Provide better error messages when uncaught errors occur during
ember build
andember serve
. #2043 -
[ENHANCEMENT] Do not use inline
<script>
tags. Set the stage for enabling content security policy. #2058 -
[ENHANCEMENT] Add ember-cli-content-security-policy addon
when running development server (see content-security-policy.com for details). #2065 -
[BREAKING] Remove
environment
andgetJSON
options toEmberApp
(in theBrocfile.js
). -
[ENHANCEMENT] Add
configPath
option toEmberApp
(in theBrocfile.js
) to allow using a custom file for obtaining configuration
information. #2068 -
[BUGFIX] Use url.parse instead of manually checking baseURL. This allows
app://localhost/
URLs needed for node-webkit. #2088 -
[BUGFIX] Remove duplicate warning when generating controllers. #2066
-
[BREAKING ENHANCEMENT] Move
config
information out of theassets/my-app-name.js
file and into a<meta>
tag in the documenthead
. #2086- Removes
<my-app-name>/config/environments/*
from module system output. - Makes build output the same regardless of environment config.
- Makes injection of custom config information as simple as adding/modifying/customizing the meta contents.
- Removes
-
[BREAKING BUGFIX] Update
loader.js
entry inbower.json
to use the proper name.This requires editing
bower.json
to change:
"loader": "stefanpenner/loader.js#1.0.1",
To:
"loader.js": "stefanpenner/loader.js#1.0.1",
- [BREAKING ENHANCEMENT] Replace
{{BASE_TAG}}
inindex.html
with{{content-for 'head'}}
. #2153
Addons
ember addon
diff- [BUGFIX]
addon/
directory is no longer required when running local development server inside an addon. #2044 - [BUGFIX] Use the specified name for the addon (was previously using
dummy
for all addon's names). #2042 - [ENHANCEMENT] Add
Registry.prototype.remove
to make it easier to remove preprocessor plugins. #2048 - [ENHANCEMENT] Add
Registry.prototype.extensionsForType
to make it easier to detect what extensions are support for a given type
of file (js
,css
, ortemplate
files). #2050 - [BUGFIX] Allow
addon
tree to contain any filetype that is known by the JS preprocessor registry. #2054 - [BUGFIX] Ensure that addons cannot override the application configuration (in the
config
hook). #2133 - [ENHANCEMENT] Allow addons to implement
contentFor
method to add string output into the associated
{{content-for 'foo'}}
section inindex.html
. #2153