mlt-wasm 0.1.21

WebAssembly bindings for the MapLibre Tile (MLT) format
Documentation
{
  "name": "@maplibre/mlt-wasm",
  "version": "0.1.21",
  "description": "WebAssembly-backed MapLibre Tile (MLT) decoder",
  "type": "module",
  "main": "dist/index.js",
  "types": "dist/index.d.ts",
  "files": [
    "/dist",
    "/pkg"
  ],
  "license": "(MIT OR Apache-2.0)",
  "homepage": "https://github.com/maplibre/maplibre-tile-spec/#readme",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/maplibre/maplibre-tile-spec"
  },
  "bugs": {
    "url": "https://github.com/maplibre/maplibre-tile-spec/issues"
  },
  "keywords": [
    "maplibre",
    "mlt",
    "vector-tile",
    "wasm",
    "webassembly",
    "gis"
  ],
  "scripts": {
    "build:wasm": "RUSTFLAGS=\"-Zunstable-options -Cpanic=immediate-abort -Ctarget-feature=+simd128\" CARGO_UNSTABLE_BUILD_STD=std,panic_abort RUSTUP_TOOLCHAIN=nightly wasm-pack build --target bundler --weak-refs --out-dir pkg",
    "build:wasm-gz": "gzip --best --no-name pkg/mlt_wasm_bg.wasm --keep --force && du -sh pkg/*.wasm*",
    "build:ts": "tsc",
    "build": "npm run build:wasm && npm run build:ts && npm run build:wasm-gz",
    "test": "vitest --coverage --coverage.reportOnFailure --run",
    "test:watch": "vitest --coverage --coverage.reportOnFailure --ui",
    "bench": "node --expose-gc --no-liftoff --no-wasm-tier-up node_modules/.bin/vitest bench"
  },
  "dependencies": {
    "@mapbox/point-geometry": "1.1.0"
  },
  "devDependencies": {
    "@maplibre/vt-pbf": "4.3.0",
    "@types/node": "^24.10.2",
    "@vitest/coverage-v8": "^4.0.1",
    "@vitest/ui": "^4.0.18",
    "typescript": "^5.9.3",
    "vite-plugin-top-level-await": "^1.6.0",
    "vite-plugin-wasm": "^3.5.0",
    "vitest": "^4.0.1"
  }
}