Happy ๐ 100th ๐ฅณ Ember Times, Emberistas! ๐น
This week: how to conditionally wrap components ๐, check out the Ember Sinon 4.0.0 release ๐ฏ, Ember CLI Mirage 1.0.0 release ๐, Ember File Upload 2.7.0 release ๐, ES6 Class Syntax Codemod ๐ค, and last, but not least, mythical null and error handling with True Myth 3.0 ๐ฎ!
Ember Sinon, an Ember CLI addon adding support for Sinon.JS, released a breaking change in version 4.0.0 which includes the latest Sinon.JS release โ Sinon 7.3.2, EmberJS 3.10, and drops Node 6 support to match the latest Ember CLI blueprints.
Sinon.JS provides standalone test spies, stubs, and mocks for JavaScript. It works for any unit testing framework, with Ember Sinon providing an easy to integration with Sinon.JS.
Try out Ember Sinon today with ember install ember-sinon!
After over four years and 1,442 commits from 174 contributors, Ember CLI Mirage has met its milestone 1.0.0 release! Big congratulations to @samselikoff and everyone who helped create one of our favorite addons. ๐
With 1.0.0 (or should we say ๐ฏ?), you will find updated documentation and instructions on how to upgrade. If you haven't tried out Mirage to mock your backend APIs, we encourage you to today!
Ember File Upload, which allows file uploads that continue over a route transition, announced its 2.7.0 release! You will see updated README (examples using angle bracket) and stability from updated dependencies and bug fixes. ๐งก
Excited about the chance to try out the โจnative decorator supportโจ announced as part of the release of Ember.js 3.10? The good news is there's a codemod to help you out with that!
Note that this part of the codemod is a configurable option in the transforms. If set to true, it will transform an object's properties to decorators wherever required. Also note that, unless turned off, this codemod will by default handle transforming object properties to class fields.
If you're interested in learning more about the motivation for this adoption of native decorator support in Ember.js3.10check out the RFC.
Wondering about something related to Ember, Ember Data, Glimmer, or addons in the Ember ecosystem, but don't know where to ask? Readersโ Questions are just for you!
Submit your own short and sweet question under bit.ly/ask-ember-core. And donโt worry, there are no silly questions, we appreciate them all - promise! ๐ค