[wp-trac] [WordPress Trac] #58623: Update npm packages to their latest versions for 6.3
WordPress Trac
noreply at wordpress.org
Wed Jun 28 13:18:53 UTC 2023
#58623: Update npm packages to their latest versions for 6.3
-------------------------------------------------+-------------------------
Reporter: isabel_brison | Owner: Bernhard
| Reiter
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 6.3
Component: Editor | Version: trunk
Severity: normal | Resolution: fixed
Keywords: gutenberg-merge has-patch add-to- | Focuses:
field-guide |
-------------------------------------------------+-------------------------
Comment (by Bernhard Reiter):
I made a mistake when writing the commit message, so a number of changes
that go beyond the npm packages version update aren't documented there.
I'll cover those here instead:
- Amend the `replace:source-maps` Grunt task to remove source map URLs
(added by `react-spring`) from the block-editor build that would otherwise
be flagged by the `verify:source-maps` task.
- Modify the `copy:block-json` Grunt task to include line breaks (and
indentation) in the `block-json.php` file it generates, as that file was
rejected by a pre-commit SVN hook on the server due to all of its contents
being on just one line.
- Rewrite a number of calls to `str_contains` and `str_ends_with`, which
are only available in PHP 8+ and are polyfilled by WordPress for earlier
PHP versions, as some of them are called even before WordPress' compat
layer is loaded, thus leading to fatals on earlier PHP versions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58623#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list