diff --git a/source/blog/2018-05-18-the-emberjs-times-issue-47.md b/source/blog/2018-05-18-the-emberjs-times-issue-47.md new file mode 100644 index 0000000000..2d9664bf7f --- /dev/null +++ b/source/blog/2018-05-18-the-emberjs-times-issue-47.md @@ -0,0 +1,136 @@ +--- +title: The Ember.js Times - Issue No. 47 +author: Tobias Bieniek, Robert Jackson, Kenneth Larsen, Sivakumar Kailasam, Amy Lam, Ryan Mark, Jessica Jordan +tags: Recent Posts, Newsletter, Ember.js Times +alias : "blog/2018/05/18/the-emberjs-times-issue-47.html" +responsive: true +--- + +여보세요 Emberistas! + +Again you can enjoy reading the Ember.js Times in both the [e-mail](https://the-emberjs-times.ongoodbits.com/2018/05/18/issue-47) and the [blog format](https://emberjs.com/blog/2018/05/18/the-emberjs-times-issue-47.html) to share it even better with your Ember friends. + +This week we have **several RFCs** from the Ember Data 📟 project for you, as well as an **#EmberJS2018 countdown**, a new way to cast some **template transform magic** 🎩 and a recap of what has happened in Readers' Questions for you: + +--- + +## [Meta and Link all the Things in Ember Data 🐹](https://github.com/emberjs/rfcs/pull/332) + +This backwards compatible Request for Comments (RFC) allows `ember-data` users to associate optional `meta` and `links` on **records** alongside the top-level document `meta` (mandatory) and `links` (optional). Sadly, `ember-data` currently stores this information only on relationships and not individual records. + +The RFC design is pretty straightforward and proposes that all `meta` and `links`: + +- will be honored in any resource that is part of a [JSON API compliant](http://jsonapi.org/) document +- when defined on resource identifiers (e.g. links inside a relationhip that link to other resources) will be ignored +- when defined on relationship objects will continue to function as they do today +- will be exposed as getters on instances of `DS.Model` and will default to null if nothing has been provided + +Similarly, `meta` and `links` will be exposed on instances of `DS.Snapshot`. Although `meta` and `links` are getters on `DS.Model`s, they will be exposed on `DS.Snapshot` as methods: + +```js +class Snapshot { + links() {} + meta() {} +} +``` + +Interestingly, some apps have inadvertently achieved what this RFC purposes by moving `meta` and `links` into `attributes` during serialization and then exposing each of them via `DS.attr`. +Therefore, this RFC gives `ember-data` an even more **complete "out of the box experience"** and will likely be a very welcomed addition to the library. + +Think differently? Tell [@runspired](https://github.com/runspired) what you think on the [original proposal](https://github.com/emberjs/rfcs/pull/332). + +--- + +## [Only 12 more days of #EmberJS2018 ✍️💨](https://emberjs.com/blog/2018/05/02/ember-2018-roadmap-call-for-posts.html) + +12 months in a year. 12 eggs in a dozen. 12 days to submit your blog posts for the [#EmberJS2018 Roadmap RFC](https://emberjs.com/blog/2018/05/02/ember-2018-roadmap-call-for-posts.html)! 📝 + +Need to beat writer's block? Listen to Ember Core team member [Chad Hietala](https://github.com/chadhietala) on The Changelog podcast, discussing [Ember four years later](https://changelog.com/podcast/293). And you can peruse blog posts from the community on [@zinyado's repo](https://github.com/zinyando/emberjs2018-posts) or the [#EmberJS2018 hashtag](https://twitter.com/search?q=%23EmberJS2018) on Twitter. Get your two cents in **by May 30th**. + +--- + +## [More Ember Data: RFC for removing `Ember.Evented`](https://github.com/emberjs/rfcs/pull/329) + +There's an RFC on removing usage of the `Ember.Evented` mixin in Ember Data specifically. This would also lead to the future **removal** of several **lifecycle hooks** and methods on `Model`s and other Ember Data classes. + +The use of `Ember.Evented` is mostly a legacy from pre 1.0 of Ember Data and is simply not needed anymore. +You can **follow the discussion** and read all about the implications of this change on the [RFC pull request](https://github.com/emberjs/rfcs/pull/329). + +--- + +## [Recasting Call 🎬 for Templates](https://github.com/ember-template-lint/ember-template-recast) + +
+
+Are you an Ember addon author who wants to be able to transform the template of host apps? Or are you an Ember developer who tinkers with templates or template-related codemods? Then, the new Ember addon ember-template-recast is just for you.
+ +Ember Template Recast will allow you to transform templates easily in a non-destructive manner - this means, that you can modify specific parts of your templates while preserving everything else - incl. whitespace formatting and linebreaks - from your original template.
+The project is still cutting-edge experimental 👨🏾🔬, but and therefore pretty exciting! Try it out for yourself here and transform your templates today.✨
A big thank you goes to the people who contributed to Ember core projects this week: @csantero, @krisselden, @miguelcobain, @locks, @amyrlam, @kennethlarsen, @jessica-jordan, @jimenglish81, @josemarluedke, @Turbo87, @twokul, @kellyselden, @dcombslinkedin, @kategengler, @sivakumar-kailasam, @efx and @mansona. 💕
+ + +--- + +## [More Questions & more Answers for Readers' Questions](https://docs.google.com/forms/d/e/1FAIpQLScqu7Lw_9cIkRtAiXKitgkAo4xX_pV1pdCfMJgIr6Py1V-9Og/viewform) + +
+
+ With learning team efforts concentrating on 🚢 something pretty exciting very soon, + we want to take the chance to recap some of the previous, great answers to previous, great questions by Ember.js Times readers:
+ + + +