@astrojs/cloudflare 2.1.0 → 3.0.0

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 f779b2bf8afec1e9
2
- @astrojs/cloudflare:build: 
3
- @astrojs/cloudflare:build: > @astrojs/cloudflare@2.1.0 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 3257cd3ed40cd0ec
2
+ @astrojs/cloudflare:build: 
3
+ @astrojs/cloudflare:build: > @astrojs/cloudflare@3.0.0 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,12 @@
1
1
  # @astrojs/cloudflare
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#4888](https://github.com/withastro/astro/pull/4888) [`2dc582ac5`](https://github.com/withastro/astro/commit/2dc582ac5e2d6e1d434ccfe21616182e453feec3) Thanks [@AirBorne04](https://github.com/AirBorne04)! - adjusting the build settings for cloudflare (reverting back to platform browser over neutral)
8
+ adjusting the ssr settings for solidjs (to build for node)
9
+
3
10
  ## 2.1.0
4
11
 
5
12
  ### Minor Changes
package/dist/index.js CHANGED
@@ -51,10 +51,8 @@ function createIntegration(args) {
51
51
  vite.resolve.alias[alias.find] = alias.replacement;
52
52
  }
53
53
  }
54
- vite.ssr = {
55
- ...vite.ssr,
56
- target: "webworker"
57
- };
54
+ vite.ssr = vite.ssr || {};
55
+ vite.ssr.target = vite.ssr.target || "webworker";
58
56
  }
59
57
  },
60
58
  "astro:build:done": async () => {
@@ -62,9 +60,7 @@ function createIntegration(args) {
62
60
  const pkg = fileURLToPath(entryUrl);
63
61
  await esbuild.build({
64
62
  target: "es2020",
65
- platform: "neutral",
66
- mainFields: ["main", "module"],
67
- conditions: ["worker", "node"],
63
+ platform: "browser",
68
64
  entryPoints: [pkg],
69
65
  outfile: pkg,
70
66
  allowOverwrite: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astrojs/cloudflare",
3
3
  "description": "Deploy your site to cloudflare pages functions",
4
- "version": "2.1.0",
4
+ "version": "3.0.0",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "author": "withastro",
@@ -27,7 +27,7 @@
27
27
  "esbuild": "^0.14.42"
28
28
  },
29
29
  "devDependencies": {
30
- "astro": "1.4.0",
30
+ "astro": "1.4.5",
31
31
  "astro-scripts": "0.0.8",
32
32
  "chai": "^4.3.6",
33
33
  "cheerio": "^1.0.0-rc.11",
package/src/index.ts CHANGED
@@ -65,11 +65,8 @@ export default function createIntegration(args?: Options): AstroIntegration {
65
65
  (vite.resolve.alias as Record<string, string>)[alias.find] = alias.replacement;
66
66
  }
67
67
  }
68
-
69
- vite.ssr = {
70
- ...vite.ssr,
71
- target: 'webworker',
72
- };
68
+ vite.ssr = vite.ssr || {};
69
+ vite.ssr.target = vite.ssr.target || 'webworker';
73
70
  }
74
71
  },
75
72
  'astro:build:done': async () => {
@@ -77,9 +74,7 @@ export default function createIntegration(args?: Options): AstroIntegration {
77
74
  const pkg = fileURLToPath(entryUrl);
78
75
  await esbuild.build({
79
76
  target: 'es2020',
80
- platform: 'neutral',
81
- mainFields: ['main', 'module'],
82
- conditions: ['worker', 'node'],
77
+ platform: 'browser',
83
78
  entryPoints: [pkg],
84
79
  outfile: pkg,
85
80
  allowOverwrite: true,