Lots of new changes landed in Emberland this week as many great contributors have been busy fixing, improving and building new features for Glimmer, Ember, Ember Data, and Ember CLI. Here’s a quick recap of what happened recently and a few suggestions for awesome reads that you might find interesting as well:
Last week’s newsletter wrote about the new QUnit testing API, which you can leverage to write easier-to-read, easier-to-extend, and more semantic tests in your Ember apps. This week @rwjblue published an awesome blog post which will not only help you to get started using the new API in your tests today, but also shares the motivation behind the changes of RFC #232.
"The dual portal device should be around here somewhere. Once you find it, we can start testing. Just like old times.”- GLaDOS
A quite whopping PR brings types to Ember’s ember-glimmer package this week, starting off with adding basic types to any classes, properties and methods described in the module and moving any *.js files to their *.ts TypeScript counterpart.
This week, a bug on model name normalization within the store’s push method was fixed. A new deprecation was introduced for EMBER_ENV variables which sound similar to "production", but which might mask non-production builds. Furthermore, this change was accompanied by a fix in stripped-build-plugins, which now does not only check for the keyword "production" specifically, but also for any ‘production-like’ variables. Apart from that, work has been done to improve code readability internally here, and a fix around instance-initializers landed. Last, but not least, several tests have been updated to assert against null in a more strict way.
A PR updating Ember CLI’s module resolution semantics landed, aiming to make use of Node’s native resolution pattern. It encourages addon authors to use native Node methods for module handling. Also the MockProcess test helper has been improved by making testdouble an optional dependency, the list of Node versions to test the package against has been trimmed down, and the insertIntoFile util has been improved further as well.
This week’s work on the ember-cli project from @ro0gr, @ef4 and @kellyselden is greatly appreciated!
✨ That's a wrap up! See you again next week ✨
Be kind, Jen Weber, Jessica Jordan and the Learning Team
Until the next issue, happy Embering :)
The Ember.js Learning Team · 517 SW 4th Ave, Ste 2 · Portland OR 97204 · USA