Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update all non-major dependencies #431

Merged
merged 3 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/curly-bottles-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/cloudflare': patch
---

Inherits `platformProxy` option types from `wrangler`
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@
"@astrojs/check": "^0.9.4",
"@biomejs/biome": "1.9.4",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.9",
"@types/node": "^20.17.4",
"@changesets/cli": "^2.27.10",
"@types/node": "^20.17.8",
"esbuild": "^0.21.5",
"eslint": "^9.13.0",
"eslint": "^9.15.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-regexp": "^2.6.0",
"eslint-plugin-regexp": "^2.7.0",
"only-allow": "^1.2.1",
"prettier": "^3.3.3",
"prettier": "^3.4.1",
"prettier-plugin-astro": "^0.14.1",
"turbo": "^2.2.3",
"typescript": "^5.6.3",
"typescript-eslint": "^8.12.2"
"turbo": "^2.3.3",
"typescript": "^5.7.2",
"typescript-eslint": "^8.16.0"
}
}
14 changes: 7 additions & 7 deletions packages/cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,28 @@
"dependencies": {
"@astrojs/internal-helpers": "0.4.1",
"@astrojs/underscore-redirects": "^0.3.4",
"@cloudflare/workers-types": "^4.20241022.0",
"@cloudflare/workers-types": "^4.20241112.0",
"esbuild": "^0.21.5",
"estree-walker": "^3.0.3",
"magic-string": "^0.30.12",
"miniflare": "^3.20241022.0",
"magic-string": "^0.30.14",
"miniflare": "^3.20241106.1",
"tiny-glob": "^0.2.9",
"wrangler": "^3.84.0",
"wrangler": "^3.91.0",
"@inox-tools/astro-when": "^0.2.4"
},
"peerDependencies": {
"astro": "^4.10.3"
},
"devDependencies": {
"@astrojs/test-utils": "workspace:*",
"astro": "^4.16.8",
"astro": "^4.16.15",
"astro-scripts": "workspace:*",
"cheerio": "1.0.0",
"execa": "^8.0.1",
"fast-glob": "^3.3.2",
"rollup": "^4.24.3",
"rollup": "^4.27.4",
"strip-ansi": "^7.1.0",
"vite": "^5.4.10"
"vite": "^5.4.11"
},
"publishConfig": {
"provenance": true
Expand Down
20 changes: 3 additions & 17 deletions packages/cloudflare/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { createRedirectsFromAstroRoutes } from '@astrojs/underscore-redirects';
import astroWhen from '@inox-tools/astro-when';
import { AstroError } from 'astro/errors';
import { getPlatformProxy } from 'wrangler';
import { type GetPlatformProxyOptions, getPlatformProxy } from 'wrangler';
import {
type CloudflareModulePluginExtra,
cloudflareModuleLoader,
Expand Down Expand Up @@ -53,15 +53,9 @@ export type Options = {
/**
* Proxy configuration for the platform.
*/
platformProxy?: {
platformProxy?: GetPlatformProxyOptions & {
/** Toggle the proxy. Default `undefined`, which equals to `true`. */
enabled?: boolean;
/** Path to the configuration file. Default `wrangler.toml`. */
configPath?: string;
/** Enable experimental support for JSON configuration. Default `false`. */
experimentalJsonConfig?: boolean;
/** Configuration persistence settings. Default '.wrangler/state/v3' */
persist?: boolean | { path: string };
};

/**
Expand Down Expand Up @@ -91,14 +85,6 @@ function setProcessEnv(config: AstroConfig, env: Record<string, unknown>) {
}
}

function createPlatformProxy(platformProxy: Options['platformProxy']) {
return getPlatformProxy({
configPath: platformProxy?.configPath,
experimentalJsonConfig: platformProxy?.experimentalJsonConfig ?? false,
persist: platformProxy?.persist ?? true,
});
}

export default function createIntegration(args?: Options): AstroIntegration {
let _config: AstroConfig;

Expand Down Expand Up @@ -184,7 +170,7 @@ export default function createIntegration(args?: Options): AstroIntegration {
},
'astro:server:setup': async ({ server }) => {
if ((args?.platformProxy?.enabled ?? true) === true) {
const platformProxy = await createPlatformProxy(args?.platformProxy);
const platformProxy = await getPlatformProxy(args?.platformProxy);

setProcessEnv(_config, platformProxy.env);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"private": true,
"dependencies": {
"@astrojs/cloudflare": "workspace:*",
"astro": "^4.16.8"
"astro": "^4.16.15"
},
"devDependencies": {
"wrangler": "^3.84.0"
"wrangler": "^3.91.0"
}
}
4 changes: 2 additions & 2 deletions packages/cloudflare/test/fixtures/astro-env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"private": true,
"dependencies": {
"@astrojs/cloudflare": "workspace:*",
"astro": "^4.16.8"
"astro": "^4.16.15"
},
"devDependencies": {
"wrangler": "^3.84.0"
"wrangler": "^3.91.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"private": true,
"dependencies": {
"@astrojs/cloudflare": "workspace:*",
"astro": "^4.16.8"
"astro": "^4.16.15"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"private": true,
"dependencies": {
"@astrojs/cloudflare": "workspace:*",
"astro": "^4.16.8"
"astro": "^4.16.15"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"private": true,
"dependencies": {
"@astrojs/cloudflare": "workspace:*",
"astro": "^4.16.8"
"astro": "^4.16.15"
}
}
2 changes: 1 addition & 1 deletion packages/cloudflare/test/fixtures/no-output/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"private": true,
"dependencies": {
"@astrojs/cloudflare": "workspace:*",
"astro": "^4.16.8"
"astro": "^4.16.15"
}
}
2 changes: 1 addition & 1 deletion packages/cloudflare/test/fixtures/routes-json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"private": true,
"dependencies": {
"@astrojs/cloudflare": "workspace:*",
"astro": "^4.16.8"
"astro": "^4.16.15"
}
}
4 changes: 2 additions & 2 deletions packages/cloudflare/test/fixtures/with-solid-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"dependencies": {
"@astrojs/cloudflare": "workspace:*",
"@astrojs/solid-js": "^4.4.2",
"astro": "^4.16.8",
"@astrojs/solid-js": "^4.4.4",
"astro": "^4.16.15",
"solid-js": "^1.9.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"private": true,
"dependencies": {
"@astrojs/cloudflare": "workspace:*",
"astro": "^4.16.8"
"astro": "^4.16.15"
}
}
12 changes: 6 additions & 6 deletions packages/netlify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,25 @@
"@astrojs/internal-helpers": "0.4.1",
"@astrojs/underscore-redirects": "^0.3.4",
"@netlify/functions": "^2.8.0",
"@vercel/nft": "^0.27.5",
"@vercel/nft": "^0.27.6",
"esbuild": "^0.21.5",
"vite": "^5.4.10"
"vite": "^5.4.11"
},
"peerDependencies": {
"astro": "^4.2.0"
},
"devDependencies": {
"@astrojs/test-utils": "workspace:*",
"@netlify/edge-functions": "^2.11.0",
"@netlify/edge-functions": "^2.11.1",
"@netlify/edge-handler-types": "^0.34.1",
"@types/node": "^20.17.4",
"astro": "^4.16.8",
"@types/node": "^20.17.8",
"astro": "^4.16.15",
"astro-scripts": "workspace:*",
"cheerio": "1.0.0",
"execa": "^8.0.1",
"fast-glob": "^3.3.2",
"strip-ansi": "^7.1.0",
"typescript": "^5.6.3"
"typescript": "^5.7.2"
},
"astro": {
"external": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
},
"dependencies": {
"@astrojs/netlify": "workspace:*",
"astro": "^4.16.8"
"astro": "^4.16.15"
}
}
4 changes: 2 additions & 2 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
},
"devDependencies": {
"@astrojs/test-utils": "workspace:*",
"@types/node": "^18.19.62",
"@types/node": "^18.19.66",
"@types/send": "^0.17.4",
"@types/server-destroy": "^1.0.4",
"astro": "^4.16.8",
"astro": "^4.16.15",
"astro-scripts": "workspace:*",
"cheerio": "1.0.0",
"express": "^4.21.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/node/test/fixtures/api-route/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"astro": "^4.16.8",
"astro": "^4.16.15",
"@astrojs/node": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/node/test/fixtures/bad-urls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"astro": "^4.16.8",
"astro": "^4.16.15",
"@astrojs/node": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/node/test/fixtures/encoded/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"astro": "^4.16.8",
"astro": "^4.16.15",
"@astrojs/node": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/node/test/fixtures/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"astro": "^4.16.8",
"astro": "^4.16.15",
"@astrojs/node": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/node/test/fixtures/headers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"astro": "^4.16.8",
"astro": "^4.16.15",
"@astrojs/node": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/node/test/fixtures/image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"astro": "^4.16.8",
"astro": "^4.16.15",
"@astrojs/node": "workspace:*"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/node/test/fixtures/locals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"astro": "^4.16.8",
"astro": "^4.16.15",
"@astrojs/node": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/node/test/fixtures/node-middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"astro": "^4.16.8",
"astro": "^4.16.15",
"@astrojs/node": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/node/test/fixtures/prerender-404-500/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"type": "module",
"dependencies": {
"astro": "^4.16.8",
"astro": "^4.16.15",
"@astrojs/node": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/node/test/fixtures/prerender/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"astro": "^4.16.8",
"astro": "^4.16.15",
"@astrojs/node": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/node/test/fixtures/preview-headers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"astro": "^4.16.8",
"astro": "^4.16.15",
"@astrojs/node": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/node/test/fixtures/trailing-slash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"astro": "^4.16.8",
"astro": "^4.16.15",
"@astrojs/node": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/node/test/fixtures/url/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"astro": "^4.16.8",
"astro": "^4.16.15",
"@astrojs/node": "workspace:*"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"dependencies": {
"astro": "^4.16.8",
"astro": "^4.16.15",
"@astrojs/node": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"keywords": [],
"dependencies": {
"astro": "^4.16.8",
"astro": "^4.16.15",
"execa": "^8.0.1",
"fast-glob": "^3.3.2",
"strip-ansi": "^7.1.0"
Expand Down
Loading