@astrojs/cloudflare 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- @astrojs/cloudflare:build: cache hit, replaying output 5d20b41ab47023ca
2
- @astrojs/cloudflare:build: 
3
- @astrojs/cloudflare:build: > @astrojs/cloudflare@3.1.1 build /home/runner/work/astro/astro/packages/integrations/cloudflare
4
- @astrojs/cloudflare:build: > astro-scripts build "src/**/*.ts" && tsc
5
- @astrojs/cloudflare:build: 
1
+ @astrojs/cloudflare:build: cache hit, replaying output 8f63fdc483fc35de
2
+ @astrojs/cloudflare:build: 
3
+ @astrojs/cloudflare:build: > @astrojs/cloudflare@3.1.2 build /home/runner/work/astro/astro/packages/integrations/cloudflare
4
+ @astrojs/cloudflare:build: > astro-scripts build "src/**/*.ts" && tsc
5
+ @astrojs/cloudflare:build: 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @astrojs/cloudflare
2
2
 
3
+ ## 3.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#5230](https://github.com/withastro/astro/pull/5230) [`69a532ab6`](https://github.com/withastro/astro/commit/69a532ab60a85d30c2395969593c4d38f9a2fbbe) Thanks [@matthewp](https://github.com/matthewp)! - Exports new runtime entrypoint's types
8
+
3
9
  ## 3.1.1
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -72,7 +72,7 @@ It's then possible to update the preview script in your `package.json` to `"prev
72
72
 
73
73
  You can access all the Cloudflare bindings and environment variables from Astro components and API routes through the adapter API.
74
74
 
75
- ```
75
+ ```js
76
76
  import { getRuntime } from "@astrojs/cloudflare/runtime";
77
77
 
78
78
  getRuntime(Astro.request);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astrojs/cloudflare",
3
3
  "description": "Deploy your site to cloudflare workers or cloudflare pages",
4
- "version": "3.1.1",
4
+ "version": "3.1.2",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "author": "withastro",
@@ -19,7 +19,10 @@
19
19
  "homepage": "https://docs.astro.build/en/guides/integrations-guide/cloudflare/",
20
20
  "exports": {
21
21
  ".": "./dist/index.js",
22
- "./runtime": "./dist/runtime.js",
22
+ "./runtime": {
23
+ "types": "./runtime.d.ts",
24
+ "default": "./dist/runtime.js"
25
+ },
23
26
  "./server.advanced.js": "./dist/server.advanced.js",
24
27
  "./server.directory.js": "./dist/server.directory.js",
25
28
  "./package.json": "./package.json"
@@ -28,7 +31,7 @@
28
31
  "esbuild": "^0.14.42"
29
32
  },
30
33
  "devDependencies": {
31
- "astro": "1.6.0",
34
+ "astro": "1.6.1",
32
35
  "astro-scripts": "0.0.8",
33
36
  "chai": "^4.3.6",
34
37
  "cheerio": "^1.0.0-rc.11",
package/runtime.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export type { WorkerRuntime, PagesRuntime } from './dist/runtime';
2
+
3
+ export { getRuntime } from './dist/runtime';