From 77c956d381d086cb02f0ca6834bd25c3b7d1b145 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Mon, 31 Jul 2023 22:20:42 +0800 Subject: [PATCH] Replace compression polyfill ("Worker" related errors) (#222) * replace compression-streams-polyfill with globalThis check [#167] * work around web worker issue with decompression polyfill. * js 2.10.0-beta.0 * js 2.10.0; update examples --- js/CHANGELOG.md | 4 ++++ js/examples/leaflet.html | 2 +- js/examples/maplibre.html | 5 +++-- js/examples/maplibre_raster_dem.html | 4 ++-- js/index.ts | 15 ++++++++----- js/package-lock.json | 33 ++-------------------------- js/package.json | 3 +-- 7 files changed, 23 insertions(+), 43 deletions(-) diff --git a/js/CHANGELOG.md b/js/CHANGELOG.md index 09604dd8..af0b4faf 100644 --- a/js/CHANGELOG.md +++ b/js/CHANGELOG.md @@ -1,3 +1,7 @@ +2.10.0 + +* Replace `DecompressionStream` polyfill with own `globalThis` detection because of web workers problems. + 2.9.0 * Recognize AVIF TileType diff --git a/js/examples/leaflet.html b/js/examples/leaflet.html index 4ab06979..32c529ae 100644 --- a/js/examples/leaflet.html +++ b/js/examples/leaflet.html @@ -4,7 +4,7 @@ - +