Commit Graph

53 Commits

Author SHA1 Message Date
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
Brandon Liu
91ddf2e913 cloudflare uses native decompression 2022-11-14 22:05:46 +08:00
Brandon Liu
79cb3ba96f update cloudflare README. 2022-11-13 18:55:59 +08:00
Brandon Liu
a645710410 Update README.md 2022-11-12 22:38:16 +08:00
Brandon Liu
79c87fb04a MIME type fixups for CDN compression 2022-11-11 20:21:22 +08:00
Brandon Liu
02fa1a5a67 cloudflare cache API 2022-11-05 11:35:33 +08:00
Brandon Liu
9346762aa5 implement tile_path customization for cloudflare 2022-10-19 22:35:12 +08:00
Brandon Liu
da235cac22 cloudflare: clean up exports, correct status code 2022-10-19 19:36:06 +08:00
Brandon Liu
d31a87f479 cloudflare: move dev packages to devDependencies 2022-10-19 15:51:02 +08:00
Brandon Liu
150252601e cloudflare workers: ext and mime type based on header [#58] 2022-10-19 10:01:11 +08:00
Brandon Liu
14c26d15fe add wrangler.toml [#80] 2022-10-19 09:36:12 +08:00
Brandon Liu
ded5333ca2 fix CI 2022-10-19 09:33:58 +08:00
Brandon Liu
2095413573 update cloudflare README [#80] 2022-10-19 09:31:49 +08:00
Brandon Liu
2033733643 cloudflare workers: wrangler output bundled JS 2022-10-19 09:19:59 +08:00
Brandon Liu
b62f8f3675 migrate Cloudflare Workers implementation to v3 [#80] 2022-10-19 09:15:09 +08:00
Brandon Liu
5ea9927089 Update README.md 2022-07-30 11:45:10 +08:00
Brandon Liu
a6a0683947 detailed error handling for cloudflare worker 2022-07-21 18:52:05 +08:00
Brandon Liu
fc5e366bd2 cloudflare worker supports PMTILES_PATH 2022-07-21 18:52:05 +08:00
Brandon Liu
95b1f90a04 Revert "cloudflare worker: cache holds promises instead of buffers"
see errors related to "The script will never generate a response."

This reverts commit e0402ded7f.
2022-07-21 10:23:13 +08:00
Brandon Liu
1db1836365 Merge pull request #57 from protomaps/testsuite
improvements to CI test suite
2022-07-20 16:40:27 +08:00
Brandon Liu
be57f1f61d improvements to CI test suite 2022-07-20 16:38:36 +08:00
Brandon Liu
7db048b28c Create README.md 2022-07-20 14:49:34 +08:00
Brandon Liu
bde4a2f75c cloudflare worker: gzip compression support 2022-07-20 13:07:16 +08:00
Brandon Liu
e0402ded7f cloudflare worker: cache holds promises instead of buffers 2022-07-20 13:07:02 +08:00