mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
[ci] release (#10598)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
5d7449bd73
commit
0ff5d72c78
6 changed files with 52 additions and 50 deletions
|
@ -1,17 +0,0 @@
|
|||
---
|
||||
"@astrojs/vercel": minor
|
||||
---
|
||||
|
||||
The `isr.exclude` configuration can now include routes with dynamic and spread parameters.
|
||||
```ts
|
||||
export default defineConfig({
|
||||
adapter: vercel({
|
||||
isr: {
|
||||
exclude: [
|
||||
"/blog/[title]"
|
||||
"/api/[...slug]",
|
||||
]
|
||||
}
|
||||
})
|
||||
})
|
||||
```
|
|
@ -1,31 +0,0 @@
|
|||
---
|
||||
"@astrojs/db": patch
|
||||
---
|
||||
|
||||
Update the table indexes configuration to allow generated index names. The `indexes` object syntax is now deprecated in favor of an array.
|
||||
|
||||
## Migration
|
||||
|
||||
You can update your `indexes` configuration object to an array like so:
|
||||
|
||||
```diff
|
||||
import { defineDb, defineTable, column } from 'astro:db';
|
||||
|
||||
const Comment = defineTable({
|
||||
columns: {
|
||||
postId: column.number(),
|
||||
author: column.text(),
|
||||
body: column.text(),
|
||||
},
|
||||
- indexes: {
|
||||
- postIdIdx: { on: 'postId' },
|
||||
- authorPostIdIdx: { on: ['author, postId'], unique: true },
|
||||
- },
|
||||
+ indexes: [
|
||||
+ { on: 'postId' /* 'name' is optional */ },
|
||||
+ { on: ['author, postId'], unique: true },
|
||||
+ ]
|
||||
})
|
||||
```
|
||||
|
||||
This example will generate indexes with the names `Comment_postId_idx` and `Comment_author_postId_idx`, respectively. You can specify a name manually by adding the `name` attribute to a given object. This name will be **global,** so ensure index names do not conflict between tables.
|
|
@ -1,5 +1,37 @@
|
|||
# @astrojs/db
|
||||
|
||||
## 0.9.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#10589](https://github.com/withastro/astro/pull/10589) [`ed1031ba29af9a8a89ab386d772a228ba1414b4d`](https://github.com/withastro/astro/commit/ed1031ba29af9a8a89ab386d772a228ba1414b4d) Thanks [@column.text(),](<https://github.com/column.text(),>)! - Update the table indexes configuration to allow generated index names. The `indexes` object syntax is now deprecated in favor of an array.
|
||||
|
||||
## Migration
|
||||
|
||||
You can update your `indexes` configuration object to an array like so:
|
||||
|
||||
```diff
|
||||
import { defineDb, defineTable, column } from 'astro:db';
|
||||
|
||||
const Comment = defineTable({
|
||||
columns: {
|
||||
postId: column.number(),
|
||||
|
||||
body: column.text(),
|
||||
},
|
||||
- indexes: {
|
||||
- postIdIdx: { on: 'postId' },
|
||||
- authorPostIdIdx: { on: ['author, postId'], unique: true },
|
||||
- },
|
||||
+ indexes: [
|
||||
+ { on: 'postId' /* 'name' is optional */ },
|
||||
+ { on: ['author, postId'], unique: true },
|
||||
+ ]
|
||||
})
|
||||
```
|
||||
|
||||
This example will generate indexes with the names `Comment_postId_idx` and `Comment_author_postId_idx`, respectively. You can specify a name manually by adding the `name` attribute to a given object. This name will be **global,** so ensure index names do not conflict between tables.
|
||||
|
||||
## 0.9.7
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@astrojs/db",
|
||||
"version": "0.9.7",
|
||||
"version": "0.9.8",
|
||||
"description": "",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
|
|
|
@ -1,5 +1,23 @@
|
|||
# @astrojs/vercel
|
||||
|
||||
## 7.5.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- [#10513](https://github.com/withastro/astro/pull/10513) [`a573cc199a00d35410197ba4117c97764a984dc0`](https://github.com/withastro/astro/commit/a573cc199a00d35410197ba4117c97764a984dc0) Thanks [@tk04](https://github.com/tk04)! - The `isr.exclude` configuration can now include routes with dynamic and spread parameters.
|
||||
```ts
|
||||
export default defineConfig({
|
||||
adapter: vercel({
|
||||
isr: {
|
||||
exclude: [
|
||||
"/blog/[title]"
|
||||
"/api/[...slug]",
|
||||
]
|
||||
}
|
||||
})
|
||||
})
|
||||
```
|
||||
|
||||
## 7.4.1
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@astrojs/vercel",
|
||||
"description": "Deploy your site to Vercel",
|
||||
"version": "7.4.1",
|
||||
"version": "7.5.0",
|
||||
"type": "module",
|
||||
"author": "withastro",
|
||||
"license": "MIT",
|
||||
|
|
Loading…
Add table
Reference in a new issue