Commit Graph

76 Commits

Author SHA1 Message Date
Brandon Liu
4dc2daad8a CI: bump from node 18.x to 22.x [#606] (#614)
* CI: bump from node 18.x to 22.x [#606]

* update cloudflare wrangler version

* fix tests for node 22
2025-12-01 17:02:39 +08:00
Naïm K
ed0889f449 Update wrangler.toml.example (#602)
fix syntax
2025-10-27 14:26:21 +08:00
Oliver Wipfli
56643527ec Fix cloudflare link (#598) 2025-10-22 14:18:12 +08:00
Brandon Liu
4faea046ab cloudflare: update wrangler (#574) 2025-05-20 15:01:30 -07:00
Brandon Liu
abfe63cef0 Bump tsup, tsx and esbuild versions in all package.json devDependencies. (#533) 2025-03-03 22:43:24 -08:00
Brandon Liu
534a66b5c0 pmtiles js 4.3.0 (#531)
* pmtiles js 4.3.0

* bump dependents

* update lockfiles
2025-02-21 15:52:39 +08:00
dependabot[bot]
5e6a3aefa9 Bump undici from 5.28.4 to 5.28.5 in /serverless/cloudflare (#521)
Bumps [undici](https://github.com/nodejs/undici) from 5.28.4 to 5.28.5.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.28.4...v5.28.5)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-28 12:22:42 +08:00
Brandon Liu
61e60c69d2 Make aws/cloudflare depend on pmtiles from npm [#455] (#515)
* Make aws/cloudflare depend on pmtiles from npm [#455]

This is clearer to developers than relying on the local code being built.

* update check_examples.py
* bump openlayers to v2 with upgrade of pmtiles to v4 [#455]
* update to 4.2.1
2025-01-14 17:09:11 +08:00
Brandon Liu
5b075048cc js: cleanup error throwing to always use new Error (#504) 2024-12-13 14:42:13 +08:00
Brandon Liu
e678dd5326 Pmtiles js v4 (#499)
* pmtiles js v4: remove pmtiles spec v2 compatibility [#287]
* restructure ts files into src
* add tsup for building ESM/CJS and making types work in ESM
* bump fflate dependency
* update CHANGELOG for js 4.0.0
2024-11-26 11:56:41 +08:00
dependabot[bot]
ca67bd1015 Bump cookie and youch in /serverless/cloudflare (#484)
Bumps [cookie](https://github.com/jshttp/cookie) and [youch](https://github.com/poppinss/youch). These dependencies needed to be updated together.

Updates `cookie` from 0.5.0 to 0.7.2
- [Release notes](https://github.com/jshttp/cookie/releases)
- [Commits](https://github.com/jshttp/cookie/compare/v0.5.0...v0.7.2)

Updates `youch` from 3.3.3 to 3.3.4
- [Release notes](https://github.com/poppinss/youch/releases)
- [Changelog](https://github.com/poppinss/youch/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/poppinss/youch/commits)

---
updated-dependencies:
- dependency-name: cookie
  dependency-type: indirect
- dependency-name: youch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-22 14:17:20 -07:00
Brandon Liu
b0c765feb1 Default origins to * in wrangler.toml template (#466) 2024-09-30 15:22:50 +08:00
Brandon Liu
6f5479439b add getTileJson method to PMTiles class [#239, #247] (#453)
* add getTileJson method to PMTiles class [#239, #247]
* update docs related to FetchSource and headers [#397]
2024-09-18 15:57:14 +08:00
Brandon Liu
353a7611e8 serverless/cloudflare: update Wrangler version and compatibility dates. (#450)
* serverless/cloudflare: update Wrangler version and compatibility dates.

* fix Lambda build
2024-09-12 16:54:59 +08:00
Markus Wendorf
dd8fdcd37d cache-control (#423)
Change CACHE_MAX_AGE to CACHE_CONTROL in AWS and Cloudflare
2024-07-09 10:11:33 +02:00
dependabot[bot]
3c661cf03c Bump ws from 8.16.0 to 8.17.1 in /serverless/cloudflare (#412)
Bumps [ws](https://github.com/websockets/ws) from 8.16.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.16.0...8.17.1)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 16:19:46 -04:00
dependabot[bot]
bc85d62825 Bump braces from 3.0.2 to 3.0.3 in /serverless/cloudflare (#411)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 16:12:45 -04:00
Niels Bom
658c75b073 refactor: early return (#389)
* refactor: early return

Undents all the code below it 1 level. Readability win.

---------

Co-authored-by: Brandon Liu <bdon@bdon.org>
2024-04-26 12:41:40 +08:00
Niels Bom
3b5ab6b7ac gitignore node_modules in cloudflare dir (#390) 2024-04-18 11:58:26 -07:00
dependabot[bot]
d78f6377ad Bump undici from 5.28.3 to 5.28.4 in /serverless/cloudflare (#388)
Bumps [undici](https://github.com/nodejs/undici) from 5.28.3 to 5.28.4.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.28.3...v5.28.4)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-14 07:38:01 -07:00
dependabot[bot]
a511813a9e Bump undici from 5.28.2 to 5.28.3 in /serverless/cloudflare (#361)
Bumps [undici](https://github.com/nodejs/undici) from 5.28.2 to 5.28.3.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.28.2...v5.28.3)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-20 11:57:22 +08:00
Brandon Liu
5b8627b0d8 Implement ETag logic for AWS and Cloudflare [#90] (#354) 2024-02-07 11:46:05 +08:00
Brandon Liu
e86dd554be lint cloudflare implementation (#352)
Add linters to AWS and cloudflare implementations [#287]
2024-02-05 16:59:06 +08:00
Brandon Liu
179b1590b1 JS: ETags logic as part of Sources [#90] (#341)
* Simplifies ETag logic into Source, making if-match conditional requests possible.
* Avoid if-match in FetchSource for latency reasons - use cache buster on ETag change
* handle weak ETags correctly
* add mock fetch server for testing ETags [#90]
2024-01-31 23:00:24 +08:00
Brandon Liu
22d7a58f36 replace esbuild runner with tsx (#333)
* also bump esbuild to latest version in all package.jsons
2024-01-29 17:51:42 +08:00
dependabot[bot]
cc52d9dde1 Bump wrangler from 3.1.1 to 3.19.0 in /serverless/cloudflare (#319)
Bumps [wrangler](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler) from 3.1.1 to 3.19.0.
- [Release notes](https://github.com/cloudflare/workers-sdk/releases)
- [Changelog](https://github.com/cloudflare/workers-sdk/blob/main/packages/wrangler/CHANGELOG.md)
- [Commits](https://github.com/cloudflare/workers-sdk/commits/wrangler@3.19.0/packages/wrangler)

---
updated-dependencies:
- dependency-name: wrangler
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-09 09:53:01 +08:00
Christopher Boone
e1228f5df1 Uses wrangler deploy instead of deprecated publish (#305) 2023-11-25 10:50:24 +08:00
Brandon Liu
f6842e150a disable minification of cloudflare worker js (#290) 2023-11-13 12:18:16 +08:00
dependabot[bot]
34604d9ddd Bump undici from 5.23.0 to 5.26.3 in /serverless/cloudflare (#268)
Bumps [undici](https://github.com/nodejs/undici) from 5.23.0 to 5.26.3.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.23.0...v5.26.3)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-17 09:40:25 -04:00
dependabot[bot]
64a5125657 Bump wrangler from 2.18.0 to 3.1.1 in /serverless/cloudflare (#233)
* Bump wrangler from 2.18.0 to 3.1.1 in /serverless/cloudflare

Bumps [wrangler](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler) from 2.18.0 to 3.1.1.
- [Release notes](https://github.com/cloudflare/workers-sdk/releases)
- [Changelog](https://github.com/cloudflare/workers-sdk/blob/main/packages/wrangler/CHANGELOG.md)
- [Commits](https://github.com/cloudflare/workers-sdk/commits/wrangler@3.1.1/packages/wrangler)

---
updated-dependencies:
- dependency-name: wrangler
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix tsconfig for cloudflare [#233]

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brandon Liu <bdon@bdon.org>
2023-08-21 10:12:31 +08:00
Brandon Liu
56f5a7c179 Merge pull request #202 from protomaps/cloudflare-native-decompress
Revert cloudflare decompression to own function
2023-06-22 14:25:10 +08:00
Brandon Liu
2cb9f5868a Revert cloudflare decompression to own function
* polyfill takes up too much CPU time
* bump cloudflare workers-types
* add tsc checks to CI for serverless
2023-06-22 13:47:06 +08:00
Brandon Liu
10021809dc add AVIF enum in JS client [#116] 2023-06-22 10:08:34 +08:00
Brandon Liu
17218ecb77 Merge pull request #170 from protomaps/cloudflare-tilejson
Cloudflare TileJSON
2023-06-21 18:34:28 +08:00
Brandon Liu
dc8eb73458 TileJSON support for Cloudflare and AWS [#169]
* Remove TILE_PATH configuration as this makes supporting non-tile paths difficult
* create shared/ dir in serverless for common code
* linting fixes
2023-06-21 18:19:10 +08:00
Brandon Liu
7250f81846 serverless: improve error message if request doesn't match archive type [#190] 2023-06-07 09:26:51 -04:00
Brandon Liu
a885f4098a implement metadata and TileJSON-like responses for Cloudflare Workers [#169] 2023-05-03 23:58:22 +08:00
Brandon Liu
3043c20890 bump cloudflare wrangler version 2023-05-03 23:57:08 +08:00
Brandon Liu
cdda65a7eb serverless js: make formatting consistent 2023-03-13 14:29:59 +08:00
Brandon Liu
19de8191c9 cloudflare: set CACHE_MAX_AGE default. 2022-11-24 02:06:17 +08:00
Brandon Liu
5b4737e066 serverless: fix cache keying with multiple archives. 2022-11-24 02:06:00 +08:00
Brandon Liu
2b5b354f14 Update README.md 2022-11-23 14:25:17 +08:00
Brandon Liu
ce6a4dbe0a fix build and serverless READMEs 2022-11-23 12:06:26 +08:00
Brandon Liu
6b36663d10 serverless README cleanups, wrangler.toml is gitignored 2022-11-23 11:55:57 +08:00
Brandon Liu
47d35484fc port tests to node 18 test module; remove zora dep 2022-11-22 20:38:14 +08:00
Brandon Liu
f457724da1 pass HTTP metadata in S3/R2 Source impls 2022-11-22 14:43:15 +08:00
Brandon Liu
9a3f519207 pmtiles_path can have {name} multiple times [#97] 2022-11-22 10:47:31 +08:00
Brandon Liu
1d74564ab4 allow both pbf and mvt extensions for vector tiles for now. In the future, pbf option will be removed. 2022-11-21 19:29:36 +08:00
Brandon Liu
652666288b cf set cache size explicitly 2022-11-21 19:29:36 +08:00
Brandon Liu
9fd1d39ab5 aws/cf depend on js/index instead of dist 2022-11-21 19:29:10 +08:00