Skip to content

Commit

Permalink
Change files
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderniebuhr committed Nov 9, 2023
1 parent 13a75c7 commit 76d8b16
Show file tree
Hide file tree
Showing 45 changed files with 607 additions and 946 deletions.
5 changes: 5 additions & 0 deletions .changeset/dull-candles-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/cloudflare': minor
---

Adds a adapter option to configure the used image service. Read more in our Cloudflare adapter docs: https://docs.astro.build/en/guides/integrations-guide/cloudflare/
2 changes: 1 addition & 1 deletion .changeset/shaggy-wasps-care.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@astrojs/cloudflare': minor
---

Astro Assets Image Service
Adds support for external Cloudflare Image Resizing Service. See Cloudflare docs for more information about Pricing and Features: https://developers.cloudflare.com/images/image-resizing/
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,23 @@
}
},
"devDependencies": {
"@astrojs/check": "^0.1.0",
"@astrojs/check": "^0.3.1",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@types/node": "^18.17.8",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"esbuild": "^0.19.2",
"esbuild": "^0.19.5",
"eslint": "^8.47.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-prettier": "^5.0.0",
"only-allow": "^1.1.1",
"organize-imports-cli": "^0.10.0",
"prettier": "^3.0.3",
"prettier-plugin-astro": "^0.12.0",
"prettier-plugin-astro": "^0.12.1",
"tiny-glob": "^0.2.9",
"turbo": "^1.10.12",
"typescript": "~5.1.6"
"typescript": "^5.2.2"
}
}
9 changes: 9 additions & 0 deletions packages/cloudflare/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ The following example automatically generates `_routes.json` while including and
});
```

### `imageService`

`imageService: "external" | "passthrough"`

Determines which image service is used by the adapter. The following options are available, if no option is provided the adapter automaticly overrides to passtrough mode if an uncompatible image service is used, otherwise it just uses the configured image service:

- **`external`:** Uses the [Cloudflare Image Resizing](https://developers.cloudflare.com/images/image-resizing/) service.
- **`passthrough`:** Uses the existing [`noop`](https://docs.astro.build/en/guides/images/#configure-no-op-passthrough-service) service.

### `wasmModuleImports`

`wasmModuleImports: boolean`
Expand Down
16 changes: 8 additions & 8 deletions packages/cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,28 @@
},
"dependencies": {
"@astrojs/underscore-redirects": "^0.3.3",
"@cloudflare/workers-types": "^4.20230821.0",
"miniflare": "3.20231010.0",
"@cloudflare/workers-types": "^4.20231025.0",
"miniflare": "3.20231025.1",
"@iarna/toml": "^2.2.5",
"dotenv": "^16.3.1",
"esbuild": "^0.19.2",
"esbuild": "^0.19.5",
"find-up": "^6.3.0",
"tiny-glob": "^0.2.9",
"vite": "^4.4.9"
"vite": "^4.5.0"
},
"peerDependencies": {
"astro": "workspace:^3.3.0"
"astro": "^3.4.3"
},
"devDependencies": {
"execa": "^8.0.1",
"fast-glob": "^3.3.1",
"@types/iarna__toml": "^2.0.2",
"strip-ansi": "^7.1.0",
"astro": "^3.2.3",
"chai": "^4.3.7",
"astro": "^3.4.3",
"chai": "^4.3.10",
"cheerio": "1.0.0-rc.12",
"mocha": "^10.2.0",
"wrangler": "^3.11.0",
"wrangler": "^3.15.0",
"@astrojs/test-utils": "workspace:*"
},
"publishConfig": {
Expand Down
Loading

0 comments on commit 76d8b16

Please sign in to comment.