Have a topic for discussion for the next meeting? Leave a suggested edit on next week’s agenda.
Package updates and type checking support
@aduth shared the following announcement:
There was a round of WordPress NPM packages updates published last week. These were the first to include first-party TypeScript types :tada: Unfortunately, there were some unforeseen conflicts with a few of them, and some had to be quickly backed out temporarily and will be republished later.
More about the issues can be found here: https://github.com/WordPress/gutenberg/pull/21613.
Including follow-up tasks: https://github.com/WordPress/gutenberg/pull/21613#issuecomment-615314861
@jonsurrell added that we conflicted with 3rd party types from DefinitelyTyped. In isolation, there was nothing strictly wrong with the new types. In the future, the DefinitelyTyped types would be replaced by packaged (1st party Gutenberg The Gutenberg project is the new Editor Interface for WordPress. The editor improves the process and experience of creating new content, making writing rich content much simpler. It uses ‘blocks’ to add richness rather than shortcodes, custom HTML etc. https://wordpress.org/gutenberg/) types, but in the short term, it’s in everyone’s best interest to remain compatible.
The solution to remain compatible with DefinitelyTyped is not yet clear. @jonsurrell created the following issue to discuss it https://github.com/WordPress/gutenberg/issues/21767. Feel free to leave your thoughts there.
Ongoing WordPress packages tasks
@aduth collected and shared the following list of tasks happening around WordPress packages:
- A new `wordpress/script-utils` package
- Puppeteer is now installed on-demand
- ESLint recommended configuration now provides default Prettier configuration.
- Renewed interest in migrating from Underscore to Lodash
@adamsilverstein said that for the underscore to lodash work, the biggest win would be to remove the underscore dependency from the media library. @adamsilverstein volunteered to work on the task.
Regarding the on-demand installation of Puppeteer, @aduth demonstrated great excitement with the change. Saying it will reduce the installation time for new development environments pretty significantly, especially because it’s also part of the general-purpose wp-scripts. @aduth concluded this improvement in new setup time would be useful in contributor days.