Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 611bed3

Browse files
authored
Merge branch 'main' into main
2 parents ccc7a51 + 9836ddd commit 611bed3

File tree

143 files changed

+1636
-1011
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+1636
-1011
lines changed

.changeset/slimy-zebras-march.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@astrojs/vercel": minor
3+
---
4+
5+
Implements verification for edge middleware. This is a security measure to ensure that your serverless functions are only ever called by your edge middleware and not a third party.
6+
7+
When `edgeMiddleware` is enabled, the serverless function will now respond with `403 Forbidden` for requests that are not verified to have come from the generated edge middleware. No user action is necessary.

.changeset/tough-socks-change.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"astro": patch
3+
---
4+
5+
Fixes a bug where routes with a name that start with the name of the `i18n.defaultLocale` were incorrectly returning a 404 response.

.eslintrc.cjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ module.exports = {
77
'plugin:@typescript-eslint/recommended-type-checked',
88
'plugin:@typescript-eslint/stylistic-type-checked',
99
'prettier',
10+
'plugin:regexp/recommended',
1011
],
1112
parser: '@typescript-eslint/parser',
1213
parserOptions: {
1314
project: ['./packages/*/tsconfig.json', './tsconfig.eslint.json'],
1415
tsconfigRootDir: __dirname,
1516
},
16-
plugins: ['@typescript-eslint', 'prettier', 'no-only-tests'],
17+
plugins: ['@typescript-eslint', 'prettier', 'no-only-tests', 'regexp'],
1718
rules: {
1819
// These off/configured-differently-by-default rules fit well for us
1920
'@typescript-eslint/switch-exhaustiveness-check': 'error',
@@ -72,6 +73,9 @@ module.exports = {
7273
// These rules enabled by the preset configs don't work well for us
7374
'@typescript-eslint/await-thenable': 'off',
7475
'prefer-const': 'off',
76+
77+
// In some cases, using explicit letter-casing is more performant than the `i` flag
78+
'regexp/use-ignore-case': 'off',
7579
},
7680
overrides: [
7781
{

.github/scripts/bundle-size.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function bundle(files) {
6868
sourcemap: false,
6969
target: ['es2018'],
7070
outdir: 'out',
71-
external: ['astro:*'],
71+
external: ['astro:*', 'aria-query', 'axobject-query'],
7272
metafile: true,
7373
})
7474

examples/basics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"astro": "astro"
1212
},
1313
"dependencies": {
14-
"astro": "^4.3.2"
14+
"astro": "^4.3.4"
1515
}
1616
}

examples/blog/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
},
1313
"dependencies": {
1414
"@astrojs/mdx": "^2.1.1",
15-
"@astrojs/rss": "^4.0.4",
15+
"@astrojs/rss": "^4.0.5",
1616
"@astrojs/sitemap": "^3.0.5",
17-
"astro": "^4.3.2"
17+
"astro": "^4.3.4"
1818
}
1919
}

examples/component/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"scripts": {},
1717
"devDependencies": {
18-
"astro": "^4.3.2"
18+
"astro": "^4.3.4"
1919
},
2020
"peerDependencies": {
2121
"astro": "^4.0.0"

examples/framework-alpine/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"@astrojs/alpinejs": "^0.4.0",
1515
"@types/alpinejs": "^3.13.5",
1616
"alpinejs": "^3.13.3",
17-
"astro": "^4.3.2"
17+
"astro": "^4.3.4"
1818
}
1919
}

examples/framework-lit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"@astrojs/lit": "^4.0.1",
1515
"@webcomponents/template-shadowroot": "^0.2.1",
16-
"astro": "^4.3.2",
16+
"astro": "^4.3.4",
1717
"lit": "^3.1.2"
1818
}
1919
}

examples/framework-multiple/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@astrojs/solid-js": "^4.0.1",
1717
"@astrojs/svelte": "^5.0.3",
1818
"@astrojs/vue": "^4.0.8",
19-
"astro": "^4.3.2",
19+
"astro": "^4.3.4",
2020
"preact": "^10.19.2",
2121
"react": "^18.2.0",
2222
"react-dom": "^18.2.0",

0 commit comments

Comments
 (0)