diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 8c0a05e..57f2661 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -18,14 +18,15 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 18.x - - run: cd js && npm install && npm run build + - run: cd js && npm ci && npm run build - run: echo "VITE_GIT_SHA=$(git rev-parse --short HEAD)" >> app/.env - - run: cd app && npm install && ./node_modules/.bin/tsc && npm run prettier-check && ./node_modules/.bin/vite build - - run: cd serverless/aws && npm install && npx tsc && npm run biome-check && npm run build-zip && cp dist/lambda_function.zip ../../app/dist && npm run build-cloudformation-stack && cp dist/cloudformation-stack.yaml ../../app/dist - - run: cd serverless/cloudflare && cp wrangler.toml.example wrangler.toml && npm install && npx tsc && npm run biome-check && npm run build && cp dist/index.js ../../app/dist + - run: cd app && npm ci && ./node_modules/.bin/tsc && npm run prettier-check && ./node_modules/.bin/vite build + - run: cd serverless/aws && npm ci && npx tsc && npm run biome-check && npm run build-zip && cp dist/lambda_function.zip ../../app/dist && npm run build-cloudformation-stack && cp dist/cloudformation-stack.yaml ../../app/dist + - run: cd serverless/cloudflare && cp wrangler.toml.example wrangler.toml && npm ci && npx tsc && npm run biome-check && npm run build && cp dist/index.js ../../app/dist - run: cd spec/v3 && cp *.pmtiles ../../app/dist - run: cd js/examples && mkdir ../../app/dist/examples && cp *.html ../../app/dist/examples/ - - run: cd js && npm install && npx typedoc index.ts --out ../app/dist/typedoc + - run: cd js && npm ci && npx typedoc index.ts --out ../app/dist/typedoc + - run : cd openlayers && npm ci && npm run tsc - run: cd openlayers/examples && mkdir ../../app/dist/examples/openlayers && cp *.html ../../app/dist/examples/openlayers - name: build_app uses: peaceiris/actions-gh-pages@v3 @@ -46,9 +47,9 @@ jobs: with: node-version: 18.x - run: python .github/check_examples.py - - run: cd js && npm install && npm test + - run: cd js && npm ci && npm test - run: cd js && npm run biome-check - run: cd python && python -m unittest test/test_* - run: cd cpp && make - - run: cd serverless/cloudflare && npm install && npm test - - run: cd serverless/vtfilter && npm install && npm test + - run: cd serverless/cloudflare && npm ci && npm test + - run: cd serverless/vtfilter && npm ci && npm test diff --git a/openlayers/CHANGELOG.md b/openlayers/CHANGELOG.md new file mode 100644 index 0000000..ff79212 --- /dev/null +++ b/openlayers/CHANGELOG.md @@ -0,0 +1,13 @@ +## 1.0.0 + +* Port code to TypeScript. +* add proper CJS, ESM and IIFE build artifacts. +* `url` option to `PMTilesVectorSource`/`PMTilesRasterSource` is either string URL or a `pmtiles.Source`. +* remove option `headers`, instead create a `FetchSource` and specify custom headers: + +```js + const fetchSource = new pmtiles.FetchSource( + "https://r2-public.protomaps.com/protomaps-sample-datasets/nz-buildings-v3.pmtiles", + new Headers({'X-Abc':'Def'}), +); +``` diff --git a/openlayers/examples/raster.html b/openlayers/examples/raster.html index fb6a0cf..da135d6 100644 --- a/openlayers/examples/raster.html +++ b/openlayers/examples/raster.html @@ -4,7 +4,7 @@ - +