mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 19:01:08 +00:00
js 3.0.6 (#399)
* js 3.0.6 * add CommonJS fallback for NodeJS projects not using ESM.
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
3.0.6
|
||||||
|
* add CommonJS build fallback for NodeJS projects not using ESM.
|
||||||
|
|
||||||
3.0.5
|
3.0.5
|
||||||
* fix missing files in dist/ for build systems that bundle .ts files
|
* fix missing files in dist/ for build systems that bundle .ts files
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" />
|
<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/leaflet@1.9.0/dist/leaflet.js"></script>
|
||||||
<script src="https://unpkg.com/pmtiles@3.0.5/dist/pmtiles.js"></script>
|
<script src="https://unpkg.com/pmtiles@3.0.6/dist/pmtiles.js"></script>
|
||||||
<style>
|
<style>
|
||||||
body, #map {
|
body, #map {
|
||||||
height:100vh;
|
height:100vh;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@3.3.1/dist/maplibre-gl.css" crossorigin="anonymous">
|
<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/maplibre-gl@3.3.1/dist/maplibre-gl.js" crossorigin="anonymous"></script>
|
||||||
<script src="https://unpkg.com/pmtiles@3.0.5/dist/pmtiles.js"></script>
|
<script src="https://unpkg.com/pmtiles@3.0.6/dist/pmtiles.js"></script>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@3.3.1/dist/maplibre-gl.css" crossorigin="anonymous">
|
<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/maplibre-gl@3.3.1/dist/maplibre-gl.js" crossorigin="anonymous"></script>
|
||||||
<script src="https://unpkg.com/pmtiles@3.0.5/dist/pmtiles.js"></script>
|
<script src="https://unpkg.com/pmtiles@3.0.6/dist/pmtiles.js"></script>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
4
js/package-lock.json
generated
4
js/package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "pmtiles",
|
"name": "pmtiles",
|
||||||
"version": "3.0.5",
|
"version": "3.0.6",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "pmtiles",
|
"name": "pmtiles",
|
||||||
"version": "3.0.5",
|
"version": "3.0.6",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/leaflet": "^1.9.8",
|
"@types/leaflet": "^1.9.8",
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "pmtiles",
|
"name": "pmtiles",
|
||||||
"version": "3.0.5",
|
"version": "3.0.6",
|
||||||
"description": "PMTiles archive decoder for browsers",
|
"description": "PMTiles archive decoder for browsers",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": "./dist/index.js",
|
"exports": {
|
||||||
|
"require":"./dist/index.cjs",
|
||||||
|
"default":"./dist/index.js"
|
||||||
|
},
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"source": "index.ts",
|
"source": "index.ts",
|
||||||
"files": [
|
"files": [
|
||||||
@@ -15,8 +18,9 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build-iife": "esbuild index.ts --outfile=dist/pmtiles.js --target=es6 --global-name=pmtiles --bundle --format=iife",
|
"build-iife": "esbuild index.ts --outfile=dist/pmtiles.js --target=es6 --global-name=pmtiles --bundle --format=iife",
|
||||||
"build-esm": "esbuild index.ts --outfile=dist/index.js --target=es6 --bundle --format=esm",
|
"build-esm": "esbuild index.ts --outfile=dist/index.js --target=es6 --bundle --format=esm",
|
||||||
|
"build-cjs": "esbuild index.ts --outfile=dist/index.cjs --target=es6 --bundle --format=cjs",
|
||||||
"build-tsc": "tsc --declaration --emitDeclarationOnly --outdir dist",
|
"build-tsc": "tsc --declaration --emitDeclarationOnly --outdir dist",
|
||||||
"build": "npm run build-iife && npm run build-esm && npm run build-tsc",
|
"build": "npm run build-iife && npm run build-esm && npm run build-cjs && npm run build-tsc",
|
||||||
"test": "tsx test/index.test.ts",
|
"test": "tsx test/index.test.ts",
|
||||||
"tsc": "tsc --noEmit --watch",
|
"tsc": "tsc --noEmit --watch",
|
||||||
"biome": "biome check adapters.ts index.ts v2.ts test --apply",
|
"biome": "biome check adapters.ts index.ts v2.ts test --apply",
|
||||||
|
|||||||
Reference in New Issue
Block a user