From 7f9ea40d46e91d639ac17f3657f0d05960259099 Mon Sep 17 00:00:00 2001 From: karissa Date: Fri, 20 Apr 2018 07:52:39 -0500 Subject: [PATCH 1/2] fix: Add polyfill for use in browsers when `qs.unescape` is unavailable --- lib/tilelive.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/tilelive.js b/lib/tilelive.js index acc7bc3..324637d 100644 --- a/lib/tilelive.js +++ b/lib/tilelive.js @@ -5,6 +5,9 @@ var qs = require('querystring'); var progress = require('progress-stream'); var queue = require('queue-async'); +// polyfill for browsers +if (!qs.unescape) qs.unescape = decodeURIComponent; + global.tileliveProtocols = global.tileliveProtocols || {}; // Add your protocol handlers here. From a160897594bfb826d4a651ce08b7c9ad6f6d2b2d Mon Sep 17 00:00:00 2001 From: Karissa McKelvey Date: Wed, 9 Jan 2019 09:10:28 -0800 Subject: [PATCH 2/2] major bump for browser support --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 8cebc06..79ece95 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "@mapbox/tilelive", - "version": "6.0.0", + "name": "tilelive-browser", + "version": "7.0.0", "main": "./lib/tilelive.js", - "description": "API for various map tile backends", + "description": "API for various map tile backends, that works in the browser", "url": "http://github.com/mapbox/tilelive.js", "keywords": [ "map",