JS 3.0.0-alpha.2 (#342)

This commit is contained in:
Brandon Liu
2024-01-31 23:09:16 +08:00
committed by GitHub
parent 179b1590b1
commit 3320353da6
6 changed files with 11 additions and 8 deletions

View File

@@ -1,8 +1,11 @@
3.0.1-alpha.1
3.0.1-alpha.2
* FileApiSource renamed to FileSource
* package.json defaults to ES6 module, fixing issues related to named imports [#317, #248]
* package.json defines **ES6 module only** (no CommonJS), fixing issues related to named imports [#317, #248]
* support MapLibre GL v4.x
* `Source` API changed to take ETag, making conditional `If-Match` requests possible [#90]
* FetchSource includes cachebuster logic for browser cache only on ETag change
* Ignore weak ETags, greatly simplify ETag logic
* Internal code has consistent naming and style conventions, change to biome linter [#287]
2.11.0

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8"/>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.9.0/dist/leaflet.js"></script>
<script src="https://unpkg.com/pmtiles@3.0.0-alpha.1/dist/index.js"></script>
<script src="https://unpkg.com/pmtiles@3.0.0-alpha.2/dist/index.js"></script>
<style>
body, #map {
height:100vh;

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8"/>
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@3.3.1/dist/maplibre-gl.css" crossorigin="anonymous">
<script src="https://unpkg.com/maplibre-gl@3.3.1/dist/maplibre-gl.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/pmtiles@3.0.0-alpha.1/dist/index.js"></script>
<script src="https://unpkg.com/pmtiles@3.0.0-alpha.2/dist/index.js"></script>
<style>
body {
margin: 0;

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8"/>
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@3.3.1/dist/maplibre-gl.css" crossorigin="anonymous">
<script src="https://unpkg.com/maplibre-gl@3.3.1/dist/maplibre-gl.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/pmtiles@3.0.0-alpha.1/dist/index.js"></script>
<script src="https://unpkg.com/pmtiles@3.0.0-alpha.2/dist/index.js"></script>
<style>
body {
margin: 0;

4
js/package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "pmtiles",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "pmtiles",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.2",
"license": "BSD-3-Clause",
"dependencies": {
"@types/leaflet": "^1.9.8",

View File

@@ -1,6 +1,6 @@
{
"name": "pmtiles",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.2",
"description": "PMTiles archive decoder for browsers",
"type": "module",
"exports": "./dist/index.mjs",