@astrojs/cloudflare 6.1.3 → 6.2.1
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.
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +26 -0
- package/dist/index.js +9 -1
- package/package.json +5 -5
- package/src/index.ts +11 -1
- package/tsconfig.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
[35m@astrojs/cloudflare:build: [0mcache hit, replaying output [
|
|
1
|
+
[35m@astrojs/cloudflare:build: [0mcache hit, replaying output [2m88389c7f62c63a35[0m
|
|
2
2
|
[35m@astrojs/cloudflare:build: [0m
|
|
3
|
-
[35m@astrojs/cloudflare:build: [0m> @astrojs/cloudflare@6.1
|
|
3
|
+
[35m@astrojs/cloudflare:build: [0m> @astrojs/cloudflare@6.2.1 build /home/runner/work/astro/astro/packages/integrations/cloudflare
|
|
4
4
|
[35m@astrojs/cloudflare:build: [0m> astro-scripts build "src/**/*.ts" && tsc
|
|
5
5
|
[35m@astrojs/cloudflare:build: [0m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @astrojs/cloudflare
|
|
2
2
|
|
|
3
|
+
## 6.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#6531](https://github.com/withastro/astro/pull/6531) [`4ddf34893`](https://github.com/withastro/astro/commit/4ddf3489384ed53f25df190a3478da44bd38600e) Thanks [@matthewp](https://github.com/matthewp)! - Remove false-positive warnings from Cloudflare's build.
|
|
8
|
+
|
|
9
|
+
Cloudflare includes warnings when it bundles the already-built output from astro.build. Those warnings are mostly due to `"sideEffects": false` packages that are included in the Vite built output because they are marked as external. Rollup will remove unused imports from these packages but will not remove the actual import, causing the false-positive warning.
|
|
10
|
+
|
|
11
|
+
- [#6473](https://github.com/withastro/astro/pull/6473) [`1c3e8f6c3`](https://github.com/withastro/astro/commit/1c3e8f6c3b839087aa51de2e2fb665cd907f2847) Thanks [@RichiCoder1](https://github.com/RichiCoder1)! - fix automatic routes generation not respecting config.base
|
|
12
|
+
|
|
13
|
+
- [#6494](https://github.com/withastro/astro/pull/6494) [`a13e9d7e3`](https://github.com/withastro/astro/commit/a13e9d7e33baccf51e7d4815f99b481ad174bc57) Thanks [@Yan-Thomas](https://github.com/Yan-Thomas)! - Consistency improvements to several package descriptions
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`acf78c5e2`](https://github.com/withastro/astro/commit/acf78c5e271ec3d4f589782078e2a2044cc1c391), [`04e624d06`](https://github.com/withastro/astro/commit/04e624d062c6ce385f6293afba26f3942c2290c6), [`cc90d7219`](https://github.com/withastro/astro/commit/cc90d72197e1139195e9545105b9a1d339f38e1b), [`a9a6ae298`](https://github.com/withastro/astro/commit/a9a6ae29812339ea00f3b9afd3de09bd9d3733a9), [`6a7cf0712`](https://github.com/withastro/astro/commit/6a7cf0712da23e2c095f4bc4f2512e618bceb38e), [`bfd67ea74`](https://github.com/withastro/astro/commit/bfd67ea749dbc6ffa7c9a671fcc48bea6c04a075), [`f6eddffa0`](https://github.com/withastro/astro/commit/f6eddffa0414d54767e9f9e1ee5a936b8a20146b), [`c63874090`](https://github.com/withastro/astro/commit/c6387409062f1d7c2afc93319748ad57086837c5), [`d637d1ea5`](https://github.com/withastro/astro/commit/d637d1ea5b347b9c724adc895c9006c696ac8fc8), [`637f9bc72`](https://github.com/withastro/astro/commit/637f9bc728ea7d56fc82a862d761385f0dcd9528), [`77a046e88`](https://github.com/withastro/astro/commit/77a046e886c370b737208574b6934f5a1cf2b177)]:
|
|
16
|
+
- astro@2.1.3
|
|
17
|
+
|
|
18
|
+
## 6.2.0
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- [#6213](https://github.com/withastro/astro/pull/6213) [`afbbc4d5b`](https://github.com/withastro/astro/commit/afbbc4d5bfafc1779bac00b41c2a1cb1c90f2808) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Updated compilation settings to disable downlevelling for Node 14
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [[`fec583909`](https://github.com/withastro/astro/commit/fec583909ab62829dc0c1600e2387979365f2b94), [`b087b83fe`](https://github.com/withastro/astro/commit/b087b83fe266c431fe34a07d5c2293cc4ab011c6), [`694918a56`](https://github.com/withastro/astro/commit/694918a56b01104831296be0c25456135a63c784), [`a20610609`](https://github.com/withastro/astro/commit/a20610609863ae3b48afe96819b8f11ae4f414d5), [`a4a74ab70`](https://github.com/withastro/astro/commit/a4a74ab70cd2aa0d812a1f6b202c4e240a8913bf), [`75921b3cd`](https://github.com/withastro/astro/commit/75921b3cd916d439f6392c487c21532fde35ed13), [`afbbc4d5b`](https://github.com/withastro/astro/commit/afbbc4d5bfafc1779bac00b41c2a1cb1c90f2808)]:
|
|
27
|
+
- astro@2.1.0
|
|
28
|
+
|
|
3
29
|
## 6.1.3
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -82,6 +82,9 @@ function createIntegration(args) {
|
|
|
82
82
|
minify: true,
|
|
83
83
|
banner: {
|
|
84
84
|
js: SHIM
|
|
85
|
+
},
|
|
86
|
+
logOverride: {
|
|
87
|
+
"ignored-bare-import": "silent"
|
|
85
88
|
}
|
|
86
89
|
});
|
|
87
90
|
await fs.promises.rename(buildPath, finalBuildUrl);
|
|
@@ -106,7 +109,12 @@ function createIntegration(args) {
|
|
|
106
109
|
filesOnly: true
|
|
107
110
|
})).filter((file) => cloudflareSpecialFiles.indexOf(file) < 0).map((file) => `/${file}`);
|
|
108
111
|
for (let page of pages) {
|
|
109
|
-
|
|
112
|
+
let pagePath = prependForwardSlash(page.pathname);
|
|
113
|
+
if (_config.base !== "/") {
|
|
114
|
+
const base = _config.base.endsWith("/") ? _config.base.substring(0, -1) : _config.base;
|
|
115
|
+
pagePath = `${base}${pagePath}`;
|
|
116
|
+
}
|
|
117
|
+
staticPathList.push(pagePath);
|
|
110
118
|
}
|
|
111
119
|
const redirectsExists = await fs.promises.stat(new URL("./_redirects", _config.outDir)).then((stat) => stat.isFile()).catch(() => false);
|
|
112
120
|
if (redirectsExists) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/cloudflare",
|
|
3
|
-
"description": "Deploy your site to
|
|
4
|
-
"version": "6.1
|
|
3
|
+
"description": "Deploy your site to Cloudflare Workers/Pages",
|
|
4
|
+
"version": "6.2.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"author": "withastro",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"tiny-glob": "^0.2.9"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"astro": "^2.
|
|
35
|
+
"astro": "^2.1.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"astro": "2.
|
|
39
|
-
"astro-scripts": "0.0.
|
|
38
|
+
"astro": "2.1.3",
|
|
39
|
+
"astro-scripts": "0.0.14",
|
|
40
40
|
"chai": "^4.3.6",
|
|
41
41
|
"cheerio": "^1.0.0-rc.11",
|
|
42
42
|
"mocha": "^9.2.2",
|
package/src/index.ts
CHANGED
|
@@ -107,6 +107,9 @@ export default function createIntegration(args?: Options): AstroIntegration {
|
|
|
107
107
|
banner: {
|
|
108
108
|
js: SHIM,
|
|
109
109
|
},
|
|
110
|
+
logOverride: {
|
|
111
|
+
'ignored-bare-import': 'silent',
|
|
112
|
+
},
|
|
110
113
|
});
|
|
111
114
|
|
|
112
115
|
// Rename to worker.js
|
|
@@ -150,7 +153,14 @@ export default function createIntegration(args?: Options): AstroIntegration {
|
|
|
150
153
|
.map((file: string) => `/${file}`);
|
|
151
154
|
|
|
152
155
|
for (let page of pages) {
|
|
153
|
-
|
|
156
|
+
let pagePath = prependForwardSlash(page.pathname);
|
|
157
|
+
if (_config.base !== '/') {
|
|
158
|
+
const base = _config.base.endsWith('/')
|
|
159
|
+
? _config.base.substring(0, -1)
|
|
160
|
+
: _config.base;
|
|
161
|
+
pagePath = `${base}${pagePath}`;
|
|
162
|
+
}
|
|
163
|
+
staticPathList.push(pagePath);
|
|
154
164
|
}
|
|
155
165
|
|
|
156
166
|
const redirectsExists = await fs.promises
|