Update mck89/peast composer dependency to 1.15.2

Created on 14 July 2023, over 1 year ago
Updated 17 July 2023, over 1 year ago

Problem/Motivation

Drupal's core dependency mck89/peast have a bug which was fixed in 1.15.2. This affects Drupal JsOptimizer which is used for JavaScript aggregation and optimization. Before that version async functions were compressed without async keyword which break aggregated JS file completely if such function rely on that (e.g. use await).

Upstream issue https://github.com/mck89/peast/issues/58

Steps to reproduce

Foo = {
  async bar() {},
  baz: async () => {},
}

Expects to be Foo={async bar(){},baz:async()=>{}}; but Foo={bar(){},baz:async()=>{}}; provided.

bar() lost its async prefix and any await inside will lead to JS error and break aggregated JS file completely.

Proposed resolution

This was fixed in 1.15.2 version. We need to udpate dependency for Drupal core.

📌 Task
Status

Fixed

Version

10.1 ✨

Component
Javascript  →

Last updated about 8 hours ago

  • Maintained by
  • 🇬🇧United Kingdom @justafish
  • 🇫🇷France @nod_
Created by

🇷🇺Russia niklan Russia, Perm

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024