J'avais fait un retour en arrière il y a quelques semaines. mais ça sera pas le cas aujourd'hui.
pour vous aider à mettre à jour, voici la fonction à appliquer (en javascript mais à adapter)
/**
* Decodes a Base64-encoded, GZIP-compressed JSON payload produced by the
* Twig `|payload` filter and returns the parsed value.
*
* Decompression runs off the main thread through the native DecompressionStream
* API, available on the supported browser baseline (Chrome 80+, Firefox 113+,
* Safari 16.4+).
*
* @param {string} b64 Output of `base64_encode(gzencode(json_encode(...), 6))`.
*
* @returns {Promise<any>} The parsed payload.
*/
async function decompressPayload(b64) {
const bytes = Uint8Array.from(atob(b64), (c) => c.charCodeAt(0));
const stream = new DecompressionStream('gzip');
const writer = stream.writable.getWriter();
writer.write(bytes);
writer.close();
const buffer = await new Response(stream.readable).arrayBuffer();
return JSON.parse(new TextDecoder().decode(buffer));
}