Ember Times-Issue 142


👋 Humanitarian! 🐹

Community support Ember API documentation 📓❤️, released ember-arg-types 🍎🍊, Ember CLI improvement tips🚀, Glimmer.js 2 beta🎉, last but not least, watch 3 virtual lectures by EmberATX📽️!


This Human API documentation Since the early days of the project, it has been one of the cornerstones of Ember’s official learning resources.

But do you already know that there is a lot of work in progress to modernize the application?In this regard, we want to thank Gaurav Munjal (@Gaurav0) Especially for the introduction of Many new upgrades, awesome refactorings, and API documentation improvements ❤️!

If you are interested in help As the Ember API documentation modernizes—whether it’s contributing code, classifying issues, or reviewing changes—make sure to talk to the Ember learning team.You can do A question discussion on Github Or in #dev-ember-learning Channel through Man disharmony!


Jon Kilroy (@jkusa) Released ember-arg-types Libraries that provide decorators (@arg) Mapping Glimmer Argument Go to the local component properties. This allows default values ​​and type checks to be declared and recorded in the component JS file.

In this example, sortBy Will return the passed string parameter or will default to a string ’id’:

@arg(string)
sortBy = 'id';

Instead of writing something like this:

get sortBy() {
  const { sortBy='id' } = this.args;
  assert('`sortBy` must be a string', typeof sortBy === 'string');
  return sortBy;
}

In addition ember-arg-types use Facebook/prop type The library performs runtime type checking by importing a type validator. E.g, name The following parameters must be strings.

import Component from '@glimmer/component';
import { arg } from 'ember-arg-types';
import { string } from 'prop-types';

export default class CharacterComponent extends Component {
  // `name` string arg that is required
  @arg(string.isRequired)
  name;
}

Try it through ember installation today Embers parameter type!


Vasance (@vasind) Compiled a list Ember command line interface The improvement of the Ember application is the main point of GitHub.He showed right ember-cli-build.js Speed ​​up the build time of development and test environments while retaining the correct configuration in production.He also added tips for using optimized apps Mirage. Go straight to his gist Check it out!


set New beta version of Glimmer.js 2.0.0 (Beta 1 && beta.3) Published! 🔥🔥🔥

These versions contain some exciting new developments, including a new minimal renderComponent API, design based on template import, standardized construction based on pure JavaScript modules, new Glimmer.js application blueprint, and support for custom assistants and modifiers. Standardized builds emulate the goals of Embroider in Ember.js and unlock the ability to use any custom build pipeline (WebPack, Parcel, Rollup, etc.) you might want!

Glimmer.js beta can pave the way for things we might want to do in Ember.js, and even things we might do Is not Want to do it in Ember.js. Please note that these new beta versions of Glimmer.js are definitely experimental. 🔬🧪 Explore them as much as you want🤠, but keep this in mind when considering using them for your application.


I hope everyone will take good care of yourself! 💞 If you have about 15 minutes of free time, you can watch EmberATX’s recent speeches:

In particular, check out the new plugins, Embers print page!you could Write declarative templates with Reuse components Create printable pages for end users.It also supports Progressive rendering Provide a smooth user experience when the end user needs to print Hundreds The number of pages. 💯


This week we want to thank @lock, @Gaurav0, @rwwagner90, @Roder12, @skaterdav85, @somasuna, @rwjblue, @pzuraq, @brendenpalmer, @sharpshark28, @sivakumar-kailasam, @chancancode with @SYU15 Thanks for their contributions to Ember and related repositories! 💖


Want to know about Ember, Ember Data, Glimmer, or plugins in the Ember ecosystem, but don’t know where to consult? Readers’ questions are only answered for you!

Submit your own Short and sweet problem under bit.ly/ask-ember-coreDon’t worry, there are no stupid questions, we thank them-guaranteed! 🤞


Want to write for Ember Times? Any suggestions for next week’s problem?join us #support-ember-times in Ember community discord Or ping us @embertimes On Twitter.

Subscribe to our channel to get the latest news from Emberland this week Email newsletter!You can also find our posts in the following locations People Blog.


That is another package! ✨

Be kind,

Chris Ng, Abhilash, Jessica Jordan, Jared Galanis, Isaac Lee, Amy Lam and the learning team



Leave a Reply

Your email address will not be published. Required fields are marked *