npm ember-cli 0.0.47
The Gathering Storm

latest releases: 5.7.0-beta.0, 5.6.0, 5.6.0-beta.0...
10 years ago

Upgrading

In order to ensure a safe and easy upgrade please follow the following steps (from within your project directory):

Setup

  1. npm uninstall -g ember-cli -- Remove old global ember-cli
  2. npm cache clean -- Clear NPM cache
  3. bower cache clean -- Clear Bower cache
  4. npm install -g ember-cli -- Install new global ember-cli

Project Update

  1. rm -rf node_modules bower_components dist tmp -- Delete temporary development folders.
  2. npm install --save-dev ember-cli -- Update project's package.json to use latest version.
  3. npm install -- Reinstall NPM dependencies.
  4. bower install -- Reinstall Bower dependencies.
  5. 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

  • ember new diff

  • [ENHANCEMENT] Add --pod option to blueprints for generate and destroy. Add fileMapTokens 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 and ember 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 and getJSON options to EmberApp (in the Brocfile.js).

  • [ENHANCEMENT] Add configPath option to EmberApp (in the Brocfile.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 the assets/my-app-name.js file and into a <meta> tag in the document head. #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.
  • [BREAKING BUGFIX] Update loader.js entry in bower.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}} in index.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, or template 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 in index.html. #2153

Blueprints

  • [ENHANCEMENT] Add description for blueprints created by ember generate blueprint. #2062
  • [ENHANCEMENT] Add in-repo-addon generator. #2072
  • [ENHANCEMENT] Add before and after options to Blueprint.prototype.insertIntoFile. #2122
  • [ENHANCEMENT] Allow git based application blueprints. #2103

Don't miss a new ember-cli release

NewReleases is sending notifications on new releases.