Skip to content

Instantly share code, notes, and snippets.

@faridiot
Created July 10, 2016 10:47
Show Gist options
  • Save faridiot/1d3c108003a4171cb750989f9931f5e5 to your computer and use it in GitHub Desktop.
Save faridiot/1d3c108003a4171cb750989f9931f5e5 to your computer and use it in GitHub Desktop.

About Features

Please read the Feature Flag Guide for a detailed explanation.

Feature Flags

  • ember-libraries-isregistered

    Add isRegistered to Ember.libraries. This convenience method checks whether a library is registered with Ember or not.

  • ember-routing-routable-components

    Implements RFC emberjs/rfcs#38, adding support for routable components.

  • ember-route-serializers

    Deprecates Route#serialize and introduces a serialize option to the router DSL as a replacement (as per the Route Serializers RFC).

  • ember-runtime-computed-uniq-by

    Introduces a computed and enumerable method "uniqBy" that allows creation of a new enumerable with unique values as determined by the given property key.

    Example:

    comments: [
      {id: 1, comment: 'I\'m a duplicate comment!'},
      {id: 2, comment: 'Then you should be fixed!'},
      {id: 1, comment: 'I\'m a duplicate comment!'}
    ],
    dedupedComments: Ember.computed.uniqBy('comments', 'id')
    
  • ember-improved-instrumentation

    Adds additional instrumentation to Ember:

    • interaction.<event-name> for events handled by a component.
    • interaction.ember-action for closure actions.
    • interaction.link-to for link-to execution.
  • ember-runtime-enumerable-includes

Deprecates Enumerable#contains and Array#contains in favor of Enumerable#includes and Array#includes to stay in line with ES standards (see RFC).

  • ember-string-ishtmlsafe

    Introduces an API to detect if strings are decorated as htmlSafe. Example:

    var plainString = 'plain string',
        safeString = Ember.String.htmlSafe('<div>someValue</div>');
    
    Ember.String.isHtmlSafe(plainString); // false
    Ember.String.isHtmlSafe(safeString);  // true
  • ember-testing-check-waiters

Expose a simple mechanism for test tooling to determine if all foreign async has been handled before continueing the test. Replaces the intimate API Ember.Test.waiters (with a deprecation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment