@tileflow/dev 0.1.0-alpha.21 → 0.1.0-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +11 -11
- package/dist/{chunk-MIGBHCXX.js → chunk-6OJICHB3.js} +3 -1
- package/dist/{chunk-KH7CMHT3.js → chunk-G5FUSWNN.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/{preview-assets-6LYL7GP7.js → preview-assets-UTUP3OML.js} +24 -15
- package/dist/preview.js +1 -1
- package/dist/server.js +1 -1
- package/package.json +9 -12
- package/GENERATED_OUTPUT_LICENSE.md +0 -21
- package/NOTICE +0 -9
- package/TRADEMARKS.md +0 -10
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -38,30 +38,30 @@ contributors and is distributed under the BSD 3-Clause License. Its `fflate` dep
|
|
|
38
38
|
copyright 2020 Arjun Barrett and is distributed under the MIT License.
|
|
39
39
|
|
|
40
40
|
- PMTiles source and license: <https://github.com/protomaps/PMTiles/tree/v4.5.0/js>
|
|
41
|
-
- fflate source and license: <https://github.com/101arrowz/fflate/tree/v0.8.
|
|
41
|
+
- fflate source and license: <https://github.com/101arrowz/fflate/tree/v0.8.3>
|
|
42
42
|
|
|
43
|
-
## sharp 0.35.
|
|
43
|
+
## sharp 0.35.4
|
|
44
44
|
|
|
45
45
|
`@tileflow/dev` declares `sharp` as an optional dependency and loads it dynamically only when local
|
|
46
46
|
SVG or raster icon sources must be inspected and packed. The Tileflow build externalizes `sharp`
|
|
47
47
|
rather than bundling it. `sharp` is copyright Lovell Fuller and contributors and is distributed under
|
|
48
48
|
the Apache License 2.0.
|
|
49
49
|
|
|
50
|
-
- Source: <https://github.com/lovell/sharp/tree/v0.35.
|
|
51
|
-
- License: <https://github.com/lovell/sharp/blob/v0.35.
|
|
50
|
+
- Source: <https://github.com/lovell/sharp/tree/v0.35.4>
|
|
51
|
+
- License: <https://github.com/lovell/sharp/blob/v0.35.4/LICENSE>
|
|
52
52
|
|
|
53
|
-
## sharp libvips distributions 1.3.
|
|
53
|
+
## sharp libvips distributions 1.3.3
|
|
54
54
|
|
|
55
55
|
`sharp` selects a separate optional `@img/sharp-libvips-*` package for the current platform. The
|
|
56
56
|
installed platform-package manifest declares `LGPL-3.0-or-later`; the packaging scripts themselves
|
|
57
57
|
are distributed under Apache-2.0. The packages contain prebuilt libvips and separately licensed
|
|
58
|
-
runtime dependencies. For `sharp` 0.35.
|
|
58
|
+
runtime dependencies. For `sharp` 0.35.4 the selected libvips ABI is 8.18.6.
|
|
59
59
|
|
|
60
|
-
- Packaging source: <https://github.com/lovell/sharp-libvips/tree/v1.3.
|
|
61
|
-
- Packaging-script license: <https://github.com/lovell/sharp-libvips/blob/v1.3.
|
|
62
|
-
- libvips 8.18.
|
|
63
|
-
- libvips 8.18.
|
|
64
|
-
<https://github.com/libvips/libvips/blob/v8.18.
|
|
60
|
+
- Packaging source: <https://github.com/lovell/sharp-libvips/tree/v1.3.3>
|
|
61
|
+
- Packaging-script license: <https://github.com/lovell/sharp-libvips/blob/v1.3.3/LICENSE>
|
|
62
|
+
- libvips 8.18.6 source: <https://github.com/libvips/libvips/tree/v8.18.6>
|
|
63
|
+
- libvips 8.18.6 license (LGPL-2.1-or-later):
|
|
64
|
+
<https://github.com/libvips/libvips/blob/v8.18.6/LICENSE>
|
|
65
65
|
|
|
66
66
|
Because `sharp` remains a separately installed optional package, users can install, update, remove,
|
|
67
67
|
or replace it independently of `@tileflow/dev`. Tileflow does not modify libvips and does not place a
|
|
@@ -256,13 +256,15 @@ function renderTileflowPreviewHtml(preview, basePath, initialStatus, isSemanticP
|
|
|
256
256
|
<div class="badge" id="badge">Tileflow preview</div>
|
|
257
257
|
<div class="status" id="status" role="status"></div>
|
|
258
258
|
<div id="map"></div>
|
|
259
|
-
<script src="${basePath}/__runtime/maplibre-gl.js"></script>
|
|
260
259
|
<script type="importmap">{"imports":{"fflate":"${basePath}/__runtime/fflate.js","three":"${basePath}/__runtime/three.module.js"}}</script>
|
|
261
260
|
<script type="module">
|
|
261
|
+
import * as maplibregl from "${basePath}/__runtime/maplibre-gl.mjs";
|
|
262
262
|
import {loadTileflowStyleFonts} from "${basePath}/__runtime/tileflow-browser.js";
|
|
263
263
|
import {registerTileflowContourProtocol} from "${basePath}/__runtime/tileflow-browser.js";
|
|
264
264
|
import {registerTileflowPmtilesProtocol} from "${basePath}/__runtime/tileflow-browser.js";
|
|
265
265
|
|
|
266
|
+
maplibregl.setWorkerUrl("${basePath}/__runtime/maplibre-gl-worker.mjs");
|
|
267
|
+
|
|
266
268
|
const initialStatus = ${JSON.stringify(initialStatus)};
|
|
267
269
|
const normalizeTileflowLandmarkManifest = ${normalizeTileflowLandmarkManifest.toString()};
|
|
268
270
|
const readBoundedTileflowResponse = ${readBoundedTileflowResponse.toString()};
|
|
@@ -1742,7 +1742,7 @@ function createTileflowDevRequestHandler(options = {}) {
|
|
|
1742
1742
|
return options.session ? eventStreamResponse(options.session) : jsonResponse2({ error: "Live events require a development session." }, 404);
|
|
1743
1743
|
}
|
|
1744
1744
|
if (path.startsWith("/__runtime/")) {
|
|
1745
|
-
const runtimeResponse = (await import("./preview-assets-
|
|
1745
|
+
const runtimeResponse = (await import("./preview-assets-UTUP3OML.js")).getTileflowPreviewRuntimeResponse(path);
|
|
1746
1746
|
if (runtimeResponse) return runtimeResponse;
|
|
1747
1747
|
}
|
|
1748
1748
|
const session = options.session ?? await loadOwnedSession(url.origin);
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
readBoundedTileflowResponse,
|
|
20
20
|
renderTileflowPreviewHtml,
|
|
21
21
|
resolveTileflowPreview
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6OJICHB3.js";
|
|
23
23
|
import {
|
|
24
24
|
createTileflowArtifactStatus,
|
|
25
25
|
createTileflowComparisonRequestHandler,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
isTileflowRequestUrl,
|
|
32
32
|
tileflowComparisonSchemaVersion,
|
|
33
33
|
writeTileflowNodeResponse
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-G5FUSWNN.js";
|
|
35
35
|
import {
|
|
36
36
|
TileflowHostedManifestOverwriteError,
|
|
37
37
|
TileflowLocalTilesetProductionError,
|
|
@@ -7,19 +7,33 @@ import { readFileSync } from "fs";
|
|
|
7
7
|
import { createRequire } from "module";
|
|
8
8
|
import { dirname, join } from "path";
|
|
9
9
|
var localRequire = createRequire(import.meta.url);
|
|
10
|
-
var
|
|
11
|
-
var localMapLibreStylesheet;
|
|
10
|
+
var localMapLibreAssets = /* @__PURE__ */ new Map();
|
|
12
11
|
var localTileflowBrowserJavaScript;
|
|
13
12
|
var localThreeCoreJavaScript;
|
|
14
13
|
var localThreeModuleJavaScript;
|
|
15
14
|
var localPmtilesJavaScript;
|
|
16
15
|
var localFflateJavaScript;
|
|
17
16
|
function getTileflowPreviewRuntimeResponse(path) {
|
|
18
|
-
if (path === "/__runtime/maplibre-gl.
|
|
19
|
-
return textAssetResponse(
|
|
17
|
+
if (path === "/__runtime/maplibre-gl.mjs") {
|
|
18
|
+
return textAssetResponse(
|
|
19
|
+
getLocalMapLibreAsset("maplibre-gl.mjs"),
|
|
20
|
+
"text/javascript; charset=utf-8"
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
if (path === "/__runtime/maplibre-gl-shared.mjs") {
|
|
24
|
+
return textAssetResponse(
|
|
25
|
+
getLocalMapLibreAsset("maplibre-gl-shared.mjs"),
|
|
26
|
+
"text/javascript; charset=utf-8"
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
if (path === "/__runtime/maplibre-gl-worker.mjs") {
|
|
30
|
+
return textAssetResponse(
|
|
31
|
+
getLocalMapLibreAsset("maplibre-gl-worker.mjs"),
|
|
32
|
+
"text/javascript; charset=utf-8"
|
|
33
|
+
);
|
|
20
34
|
}
|
|
21
35
|
if (path === "/__runtime/maplibre-gl.css") {
|
|
22
|
-
return textAssetResponse(getLocalMapLibreAsset("css"), "text/css; charset=utf-8");
|
|
36
|
+
return textAssetResponse(getLocalMapLibreAsset("maplibre-gl.css"), "text/css; charset=utf-8");
|
|
23
37
|
}
|
|
24
38
|
if (path === "/__runtime/tileflow-browser.js") {
|
|
25
39
|
return textAssetResponse(getLocalTileflowBrowserAsset(), "text/javascript; charset=utf-8");
|
|
@@ -50,16 +64,11 @@ function getTileflowPreviewRuntimeResponse(path) {
|
|
|
50
64
|
}
|
|
51
65
|
return void 0;
|
|
52
66
|
}
|
|
53
|
-
function getLocalMapLibreAsset(
|
|
54
|
-
|
|
55
|
-
if (
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
join(dirname(packagePath), "dist", kind === "js" ? "maplibre-gl.js" : "maplibre-gl.css"),
|
|
59
|
-
"utf8"
|
|
60
|
-
);
|
|
61
|
-
if (kind === "js") localMapLibreJavaScript = source;
|
|
62
|
-
else localMapLibreStylesheet = source;
|
|
67
|
+
function getLocalMapLibreAsset(fileName) {
|
|
68
|
+
const cached = localMapLibreAssets.get(fileName);
|
|
69
|
+
if (cached !== void 0) return cached;
|
|
70
|
+
const source = readFileSync(localRequire.resolve(`maplibre-gl/dist/${fileName}`), "utf8");
|
|
71
|
+
localMapLibreAssets.set(fileName, source);
|
|
63
72
|
return source;
|
|
64
73
|
}
|
|
65
74
|
function getLocalTileflowBrowserAsset() {
|
package/dist/preview.js
CHANGED
package/dist/server.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tileflow/dev",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.23",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Node development utilities for Tileflow configs and builds.",
|
|
6
6
|
"type": "module",
|
|
@@ -29,10 +29,7 @@
|
|
|
29
29
|
"files": [
|
|
30
30
|
"dist",
|
|
31
31
|
"THIRD_PARTY_NOTICES.md",
|
|
32
|
-
"LICENSE"
|
|
33
|
-
"NOTICE",
|
|
34
|
-
"GENERATED_OUTPUT_LICENSE.md",
|
|
35
|
-
"TRADEMARKS.md"
|
|
32
|
+
"LICENSE"
|
|
36
33
|
],
|
|
37
34
|
"exports": {
|
|
38
35
|
".": {
|
|
@@ -90,24 +87,24 @@
|
|
|
90
87
|
"access": "public"
|
|
91
88
|
},
|
|
92
89
|
"dependencies": {
|
|
93
|
-
"@mapbox/vector-tile": "
|
|
90
|
+
"@mapbox/vector-tile": "3.0.0",
|
|
94
91
|
"@maplibre/maplibre-gl-style-spec": "24.8.5",
|
|
95
|
-
"@tileflow/core": ">=0.1.0-alpha.
|
|
92
|
+
"@tileflow/core": ">=0.1.0-alpha.24 <0.1.0-beta.0",
|
|
96
93
|
"chokidar": "4.0.3",
|
|
97
|
-
"fflate": "0.8.
|
|
94
|
+
"fflate": "0.8.3",
|
|
98
95
|
"fontkit": "2.0.4",
|
|
99
96
|
"jiti": "^2.7.0",
|
|
100
|
-
"maplibre-gl": "
|
|
97
|
+
"maplibre-gl": "6.9.0",
|
|
101
98
|
"pbf": "5.1.2",
|
|
102
99
|
"pmtiles": "4.5.0",
|
|
103
100
|
"saxes": "6.0.0",
|
|
104
|
-
"three": "0.
|
|
101
|
+
"three": "0.185.1"
|
|
105
102
|
},
|
|
106
103
|
"devDependencies": {
|
|
107
|
-
"@tileflow/maps": "0.1.0-alpha.
|
|
104
|
+
"@tileflow/maps": "0.1.0-alpha.3"
|
|
108
105
|
},
|
|
109
106
|
"optionalDependencies": {
|
|
110
|
-
"sharp": "0.35.
|
|
107
|
+
"sharp": "0.35.4"
|
|
111
108
|
},
|
|
112
109
|
"scripts": {
|
|
113
110
|
"build": "tsup src/index.ts src/artifacts.ts src/config.ts src/fonts.ts src/icons.ts src/inspect.ts src/preview.ts src/server.ts src/tilesets.ts src/validation.ts --format esm --dts --clean --platform node --external sharp",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Tileflow generated-output grant
|
|
2
|
-
|
|
3
|
-
In addition to the rights granted by the Apache License, Version 2.0, Tileflow.dev contributors
|
|
4
|
-
grant recipients a perpetual, worldwide, non-exclusive, no-charge, royalty-free right to use,
|
|
5
|
-
reproduce, modify, display, perform, distribute, sublicense, and commercialize the Tileflow-owned
|
|
6
|
-
parts of output generated by this SDK.
|
|
7
|
-
|
|
8
|
-
Covered output includes compiled map styles, manifests, receipts, sprites, glyph artifacts, static
|
|
9
|
-
render descriptions, and other build artifacts produced from Tileflow maps or application maps.
|
|
10
|
-
Original Tileflow map definitions, icons, and patterns distributed by `@tileflow/maps` may likewise
|
|
11
|
-
be used, modified, embedded, deployed, and redistributed as part of personal or commercial maps and
|
|
12
|
-
applications.
|
|
13
|
-
|
|
14
|
-
This grant does not relicense third-party software, fonts, icons, map data, datasets, imagery, or
|
|
15
|
-
other input material. Their licenses, attribution requirements, notices, and use restrictions
|
|
16
|
-
continue to apply to the relevant source and generated output. You are responsible for having the
|
|
17
|
-
rights necessary to process and distribute your own inputs.
|
|
18
|
-
|
|
19
|
-
This grant does not provide access to Tileflow hosted services or grant rights in Tileflow names,
|
|
20
|
-
logos, or marks. The SDK and generated output are provided without warranties or conditions beyond
|
|
21
|
-
those required by applicable law.
|
package/NOTICE
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Tileflow SDK
|
|
2
|
-
Copyright 2026 Tileflow.dev contributors
|
|
3
|
-
|
|
4
|
-
This product includes software and original map artwork developed by Tileflow.dev contributors.
|
|
5
|
-
|
|
6
|
-
Third-party materials distributed with a package remain subject to their own license and notice
|
|
7
|
-
files. See THIRD_PARTY_NOTICES.md and asset-adjacent license files where present.
|
|
8
|
-
|
|
9
|
-
The Tileflow names and marks are not licensed under the Apache License 2.0. See TRADEMARKS.md.
|
package/TRADEMARKS.md
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# Tileflow trademarks
|
|
2
|
-
|
|
3
|
-
The Apache License, Version 2.0, and the Tileflow generated-output grant do not grant permission to
|
|
4
|
-
use the Tileflow name, `tileflow.dev`, logos, service marks, product names, or other Tileflow brand
|
|
5
|
-
features except for reasonable and customary use that truthfully describes the origin of the SDK or
|
|
6
|
-
compatibility with Tileflow, and for reproducing required notices.
|
|
7
|
-
|
|
8
|
-
You may not use Tileflow brand features in a way that suggests sponsorship, endorsement, or an
|
|
9
|
-
official Tileflow product when none exists. Third-party names and marks remain the property of their
|
|
10
|
-
respective owners.
|