Below is a of the discussion from this week’s JavaScript chat (agenda, Slack Transcript)
Have a topic for discussion for the next meeting? Leave a suggested edit on next week’s agenda.
Agenda: Reconciling WordPress and Gutenberg Script Handles
Context | Previous Effort | Slack
Some points there seemed to be consensus on:
- As needed, existing scripts in WP core will be pulled into the GB repository, exposed as their own package, and then re-registered for use in core.
- Old handles will still be present for back-compat, but redirect to new handles.
Initial effort regarding this will happen for:
- shortcode package: https://core.trac.wordpress.org/ticket/44987
- a11y package: https://core.trac.wordpress.org/ticket/45066
Agenda: How should uncaught errors be handled
Context | Slack
There was much discussion on not only the specific issue (see context) that triggered this agenda but also how this might be generalized. In conclusion, there was some consensus to explore something along the lines of [this solution](https://gist.github.com/aduth/f464f2d549a80716127a7e0d575b102f) in concert with implementing error boundaries in withSelect to see how they interact and work. So short-term focus will be on fixing the immediate issue with errors in subscriber listeners.
Further discussion effort on this will be done in the pull request @aduth will own this issue (in collaboration with others who help).
Agenda: Reusable Scripts
Context: here and here | Slack
This is work towards making the Javascript build setup for plugins much more simplified.
We reached the point where we exposed every tool Gutenberg uses adjusted for external plugins development
@gziolo
Related packages will be published soon.
Action Items:
- update repository (once package is updated on npm) (@gziolo)
- dev note about the package linking to the docs and repository (@gziolo)
#core-js, #javascript