0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-31 23:31:30 -05:00

[ci] release (#10014)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Houston (Bot) 2024-02-07 06:38:45 -08:00 committed by GitHub
parent e6b5306a7d
commit fa9218e836
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 117 additions and 120 deletions

View file

@ -1,54 +0,0 @@
---
"@astrojs/vercel": minor
---
Introduces a new config option, `isr`, that allows you to deploy your project as an ISR function. [ISR (Incremental Static Regeneration)](https://vercel.com/docs/incremental-static-regeneration) caches your on-demand rendered pages in the same way as prerendered pages after first request.
To enable this feature, set `isr` to true in your Vercel adapter configuration in `astro.config.mjs`:
```js
export default defineConfig({
output: "server",
adapter: vercel({ isr: true })
})
```
## Cache invalidation options
By default, ISR responses are cached for the duration of your deployment. You can further control caching by setting an `expiration` time or prevent caching entirely for certain routes.
### Time-based invalidation
You can change the length of time to cache routes this by configuring an `expiration` value in seconds:
```js
export default defineConfig({
output: "server",
adapter: vercel({
isr: {
// caches all pages on first request and saves for 1 day
expiration: 60 * 60 * 24
}
})
})
```
### Manual invalidation
To implement Vercel's [Draft mode](https://vercel.com/docs/build-output-api/v3/features#draft-mode), or [On-Demand Incremental Static Regeneration (ISR)](https://vercel.com/docs/build-output-api/v3/features#on-demand-incremental-static-regeneration-isr), you can create a bypass token and provide it to the `isr` config along with the paths to exclude from caching:
```js
export default defineConfig({
output: "server",
adapter: vercel({
isr: {
// A secret random string that you create.
bypassToken: "005556d774a8",
// Paths that will always be served fresh.
exclude: [ "/api/invalidate" ]
}
})
})
```

View file

@ -1,5 +0,0 @@
---
"astro": patch
---
Fixes a regression in content collection types

View file

@ -1,5 +0,0 @@
---
"astro": patch
---
Adds support for `.strict()` on content collection schemas when a custom `slug` is present.

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.3.3"
"astro": "^4.3.4"
}
}

View file

@ -14,6 +14,6 @@
"@astrojs/mdx": "^2.1.1",
"@astrojs/rss": "^4.0.5",
"@astrojs/sitemap": "^3.0.5",
"astro": "^4.3.3"
"astro": "^4.3.4"
}
}

View file

@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^4.3.3"
"astro": "^4.3.4"
},
"peerDependencies": {
"astro": "^4.0.0"

View file

@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.4.0",
"@types/alpinejs": "^3.13.5",
"alpinejs": "^3.13.3",
"astro": "^4.3.3"
"astro": "^4.3.4"
}
}

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/lit": "^4.0.1",
"@webcomponents/template-shadowroot": "^0.2.1",
"astro": "^4.3.3",
"astro": "^4.3.4",
"lit": "^3.1.2"
}
}

View file

@ -16,7 +16,7 @@
"@astrojs/solid-js": "^4.0.1",
"@astrojs/svelte": "^5.0.3",
"@astrojs/vue": "^4.0.8",
"astro": "^4.3.3",
"astro": "^4.3.4",
"preact": "^10.19.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.1.0",
"@preact/signals": "^1.2.1",
"astro": "^4.3.3",
"astro": "^4.3.4",
"preact": "^10.19.2"
}
}

View file

@ -14,7 +14,7 @@
"@astrojs/react": "^3.0.9",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"astro": "^4.3.3",
"astro": "^4.3.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^4.0.1",
"astro": "^4.3.3",
"astro": "^4.3.4",
"solid-js": "^1.8.5"
}
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^5.0.3",
"astro": "^4.3.3",
"astro": "^4.3.4",
"svelte": "^4.2.5"
}
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/vue": "^4.0.8",
"astro": "^4.3.3",
"astro": "^4.3.4",
"vue": "^3.3.8"
}
}

View file

@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/node": "^8.2.0",
"astro": "^4.3.3"
"astro": "^4.3.4"
}
}

View file

@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^4.3.3"
"astro": "^4.3.4"
},
"peerDependencies": {
"astro": "^4.0.0"

View file

@ -13,7 +13,7 @@
},
"dependencies": {
"@astrojs/node": "^8.2.0",
"astro": "^4.3.3",
"astro": "^4.3.4",
"html-minifier": "^4.0.0"
},
"devDependencies": {

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.3.3"
"astro": "^4.3.4"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.3.3"
"astro": "^4.3.4"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.3.3"
"astro": "^4.3.4"
}
}

View file

@ -14,7 +14,7 @@
"dependencies": {
"@astrojs/node": "^8.2.0",
"@astrojs/svelte": "^5.0.3",
"astro": "^4.3.3",
"astro": "^4.3.4",
"svelte": "^4.2.5"
}
}

View file

@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.3.3",
"astro": "^4.3.4",
"sass": "^1.69.5",
"sharp": "^0.32.6"
}

View file

@ -12,6 +12,6 @@
"devDependencies": {
"@astrojs/tailwind": "^5.1.0",
"@astrojs/node": "^8.2.0",
"astro": "^4.3.3"
"astro": "^4.3.4"
}
}

View file

@ -12,6 +12,6 @@
},
"dependencies": {
"@astrojs/markdoc": "^0.8.3",
"astro": "^4.3.3"
"astro": "^4.3.4"
}
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/markdown-remark": "^4.2.1",
"astro": "^4.3.3",
"astro": "^4.3.4",
"hast-util-select": "^6.0.2",
"rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0",

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.3.3"
"astro": "^4.3.4"
}
}

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/mdx": "^2.1.1",
"@astrojs/preact": "^3.1.0",
"astro": "^4.3.3",
"astro": "^4.3.4",
"preact": "^10.19.2"
}
}

View file

@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.1.0",
"@nanostores/preact": "^0.5.0",
"astro": "^4.3.3",
"astro": "^4.3.4",
"nanostores": "^0.9.5",
"preact": "^10.19.2"
}

View file

@ -14,7 +14,7 @@
"@astrojs/mdx": "^2.1.1",
"@astrojs/tailwind": "^5.1.0",
"@types/canvas-confetti": "^1.6.3",
"astro": "^4.3.3",
"astro": "^4.3.4",
"autoprefixer": "^10.4.15",
"canvas-confetti": "^1.9.1",
"postcss": "^8.4.28",

View file

@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
"astro": "^4.3.3",
"astro": "^4.3.4",
"vitest": "^1.2.1"
}
}

View file

@ -1,5 +1,13 @@
# astro
## 4.3.4
### Patch Changes
- [#10013](https://github.com/withastro/astro/pull/10013) [`e6b5306a7de779ce495d0ff076d302de0aa57eaf`](https://github.com/withastro/astro/commit/e6b5306a7de779ce495d0ff076d302de0aa57eaf) Thanks [@delucis](https://github.com/delucis)! - Fixes a regression in content collection types
- [#10003](https://github.com/withastro/astro/pull/10003) [`ce4283331f18c6178654dd705e3cf02efeef004a`](https://github.com/withastro/astro/commit/ce4283331f18c6178654dd705e3cf02efeef004a) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Adds support for `.strict()` on content collection schemas when a custom `slug` is present.
## 4.3.3
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "astro",
"version": "4.3.3",
"version": "4.3.4",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module",
"author": "withastro",

View file

@ -1,5 +1,58 @@
# @astrojs/vercel
## 7.2.0
### Minor Changes
- [#9714](https://github.com/withastro/astro/pull/9714) [`e2fe51c828dc7ea8204788e59e3953fe36c97836`](https://github.com/withastro/astro/commit/e2fe51c828dc7ea8204788e59e3953fe36c97836) Thanks [@lilnasy](https://github.com/lilnasy)! - Introduces a new config option, `isr`, that allows you to deploy your project as an ISR function. [ISR (Incremental Static Regeneration)](https://vercel.com/docs/incremental-static-regeneration) caches your on-demand rendered pages in the same way as prerendered pages after first request.
To enable this feature, set `isr` to true in your Vercel adapter configuration in `astro.config.mjs`:
```js
export default defineConfig({
output: 'server',
adapter: vercel({ isr: true }),
});
```
## Cache invalidation options
By default, ISR responses are cached for the duration of your deployment. You can further control caching by setting an `expiration` time or prevent caching entirely for certain routes.
### Time-based invalidation
You can change the length of time to cache routes this by configuring an `expiration` value in seconds:
```js
export default defineConfig({
output: 'server',
adapter: vercel({
isr: {
// caches all pages on first request and saves for 1 day
expiration: 60 * 60 * 24,
},
}),
});
```
### Manual invalidation
To implement Vercel's [Draft mode](https://vercel.com/docs/build-output-api/v3/features#draft-mode), or [On-Demand Incremental Static Regeneration (ISR)](https://vercel.com/docs/build-output-api/v3/features#on-demand-incremental-static-regeneration-isr), you can create a bypass token and provide it to the `isr` config along with the paths to exclude from caching:
```js
export default defineConfig({
output: 'server',
adapter: vercel({
isr: {
// A secret random string that you create.
bypassToken: '005556d774a8',
// Paths that will always be served fresh.
exclude: ['/api/invalidate'],
},
}),
});
```
## 7.1.1
### Patch Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/vercel",
"description": "Deploy your site to Vercel",
"version": "7.1.1",
"version": "7.2.0",
"type": "module",
"author": "withastro",
"license": "MIT",

54
pnpm-lock.yaml generated
View file

@ -131,7 +131,7 @@ importers:
examples/basics:
dependencies:
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
examples/blog:
@ -146,13 +146,13 @@ importers:
specifier: ^3.0.5
version: link:../../packages/integrations/sitemap
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
examples/component:
devDependencies:
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
examples/framework-alpine:
@ -167,7 +167,7 @@ importers:
specifier: ^3.13.3
version: 3.13.3
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
examples/framework-lit:
@ -179,7 +179,7 @@ importers:
specifier: ^0.2.1
version: 0.2.1
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
lit:
specifier: ^3.1.2
@ -203,7 +203,7 @@ importers:
specifier: ^4.0.8
version: link:../../packages/integrations/vue
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
preact:
specifier: ^10.19.2
@ -233,7 +233,7 @@ importers:
specifier: ^1.2.1
version: 1.2.1(preact@10.19.3)
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
preact:
specifier: ^10.19.2
@ -251,7 +251,7 @@ importers:
specifier: ^18.2.15
version: 18.2.18
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
react:
specifier: ^18.2.0
@ -266,7 +266,7 @@ importers:
specifier: ^4.0.1
version: link:../../packages/integrations/solid
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
solid-js:
specifier: ^1.8.5
@ -278,7 +278,7 @@ importers:
specifier: ^5.0.3
version: link:../../packages/integrations/svelte
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
svelte:
specifier: ^4.2.5
@ -290,7 +290,7 @@ importers:
specifier: ^4.0.8
version: link:../../packages/integrations/vue
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
vue:
specifier: ^3.3.8
@ -302,13 +302,13 @@ importers:
specifier: ^8.2.0
version: link:../../packages/integrations/node
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
examples/integration:
devDependencies:
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
examples/middleware:
@ -317,7 +317,7 @@ importers:
specifier: ^8.2.0
version: link:../../packages/integrations/node
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
html-minifier:
specifier: ^4.0.0
@ -330,19 +330,19 @@ importers:
examples/minimal:
dependencies:
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
examples/non-html-pages:
dependencies:
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
examples/portfolio:
dependencies:
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
examples/ssr:
@ -354,7 +354,7 @@ importers:
specifier: ^5.0.3
version: link:../../packages/integrations/svelte
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
svelte:
specifier: ^4.2.5
@ -363,7 +363,7 @@ importers:
examples/starlog:
dependencies:
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
sass:
specifier: ^1.69.5
@ -381,7 +381,7 @@ importers:
specifier: ^5.1.0
version: link:../../packages/integrations/tailwind
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
examples/with-markdoc:
@ -390,7 +390,7 @@ importers:
specifier: ^0.8.3
version: link:../../packages/integrations/markdoc
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
examples/with-markdown-plugins:
@ -399,7 +399,7 @@ importers:
specifier: ^4.2.1
version: link:../../packages/markdown/remark
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
hast-util-select:
specifier: ^6.0.2
@ -420,7 +420,7 @@ importers:
examples/with-markdown-shiki:
dependencies:
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
examples/with-mdx:
@ -432,7 +432,7 @@ importers:
specifier: ^3.1.0
version: link:../../packages/integrations/preact
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
preact:
specifier: ^10.19.2
@ -447,7 +447,7 @@ importers:
specifier: ^0.5.0
version: 0.5.0(nanostores@0.9.5)(preact@10.19.3)
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
nanostores:
specifier: ^0.9.5
@ -468,7 +468,7 @@ importers:
specifier: ^1.6.3
version: 1.6.4
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
autoprefixer:
specifier: ^10.4.15
@ -486,7 +486,7 @@ importers:
examples/with-vitest:
dependencies:
astro:
specifier: ^4.3.3
specifier: ^4.3.4
version: link:../../packages/astro
vitest:
specifier: ^1.2.1