Replace Node.js Buffer with Unit8Array

Created on 31 October 2023, about 1 year ago
Updated 15 November 2023, about 1 year ago

Problem/Motivation

From @coby.sher in slack: https://drupal.slack.com/archives/C05BP6659U0/p1698411217734069?thread_t...

> An interesting article here on Node.js Buffer and why we maybe shouldnโ€™t use it! TLDR: Apparently under the hood itโ€™s the same as a Unit8Array which is valid in both the browser AND node, while Buffer is node.js only. The article suggests moving away from Buffer and using Unit8Array and a util they made for things like base64 encoding.
We may want to replace our esbuild polyfill stuff with this approach.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Fixed

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States brianperry

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

Comments & Activities

Production build 0.71.5 2024