New times
v1.1.0 (2018-05-01)
Deprecations
- You are no longer able to import
CanMixin
as it is removed. You can reproduce its behavior usingcan
service and its methods. import { CanService } from 'ember-can'
->import CanService from 'ember-can/services/can'
import { ability } from 'ember-can'
->import { ability } from 'ember-can/computed'
build
method ofcan
service is replaced byabilityFor
Notable changes
- You have to pass a
null
model if you want to pass only parameters tocan
orcannot
methods ofcan
service. Eg:this.get('canService').can('post', null, { test: true })
- The
model
passed to helpers orcan
service methods, as from now on, can be anything instead of an Ember.Object instance.
Implemented enhancements:
- Deprecate old API #79 (Exelord)
- Improve tests #78 (Exelord)
- Feature setup release flow #77 (Exelord)
- Fix editorconfig #76 (Exelord)
Closed issues:
- How is this different from computed properties? #80
- Can you please resolve the deprecation ember-cli-version-checker ? #75
- provide
ability
computed macro as a named export #70 - Cannot helper issue #67
- ember-can v0.8.4 build displays failing #64
- Upgrade to ember-cli-babel@^6.0.0 #62
- Parent component is destroyed: Cannot read property 'removeObserver' of undefined #61
- Computed properties + additional attributes #60
- Question about the necessity of having an Ember.Object as a resource #57
- Introduction to ember-can on Global Ember Meetup #40
- Redirect in route on reload #38
- no example app #34
- How to use in a Controller #28
- Add more examples #25
Merged pull requests:
- Upgrades to Ember 3.1 #81 (Exelord)
- Add instructions for using abilities within an Engine #66 (esbanarango)