[ci] release (#4903)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Fred K. Bot 2022-09-29 08:20:00 -07:00 committed by GitHub
parent 10317c65fe
commit d08093f7d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
65 changed files with 512 additions and 235 deletions

View file

@ -1,5 +0,0 @@
---
'@astrojs/image': patch
---
Updates the default image service to use format-specific quality defaults

View file

@ -1,6 +0,0 @@
---
'@astrojs/vue': minor
'astro': patch
---
Support Vue JSX

View file

@ -1,5 +0,0 @@
---
'@astrojs/image': patch
---
Specify sharp as optional peer dependency

View file

@ -1,5 +0,0 @@
---
'@astrojs/markdown-remark': patch
---
Fix non-hoisted remark/rehype plugin loading

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Prevent multiple rendering of head content

View file

@ -1,15 +0,0 @@
---
'astro': patch
'@astrojs/image': patch
'@astrojs/mdx': patch
'@astrojs/netlify': patch
'@astrojs/preact': patch
'@astrojs/rss': patch
'@astrojs/svelte': patch
'@astrojs/tailwind': patch
'@astrojs/vue': patch
'@astrojs/markdown-remark': patch
'@astrojs/telemetry': patch
---
Add missing dependencies, support strict dependency installation (e.g. pnpm)

View file

@ -1,34 +0,0 @@
---
'astro': minor
---
Order Astro styles last, to override imported styles
This fixes CSS ordering so that imported styles are placed *higher* than page/component level styles. This means that if you do:
```astro
---
import '../styles/global.css';
---
<style>
body {
background: limegreen;
}
</style>
```
The `<style>` defined in this component will be placed *below* the imported CSS. When compiled for production this will result in something like this:
```css
/* /src/styles/global.css */
body {
background: blue;
}
/* /src/pages/index.astro */
body:where(.astro-12345) {
background: limegreen;
}
```
Given Astro's 0-specificity hashing, this change effectively makes it so that Astro styles "win" when they have the same specificity as global styles.

View file

@ -1,5 +0,0 @@
---
'astro': patch
---
Hoist hydration scripts out of slot templates

View file

@ -1,48 +0,0 @@
---
'astro': minor
'@astrojs/cloudflare': minor
'@astrojs/deno': minor
'@astrojs/netlify': minor
'@astrojs/node': minor
'@astrojs/vercel': minor
---
Adds the Astro.cookies API
`Astro.cookies` is a new API for manipulating cookies in Astro components and API routes.
In Astro components, the new `Astro.cookies` object is a map-like object that allows you to get, set, delete, and check for a cookie's existence (`has`):
```astro
---
type Prefs = {
darkMode: boolean;
}
Astro.cookies.set<Prefs>('prefs', { darkMode: true }, {
expires: '1 month'
});
const prefs = Astro.cookies.get<Prefs>('prefs').json();
---
<body data-theme={prefs.darkMode ? 'dark' : 'light'}>
```
Once you've set a cookie with Astro.cookies it will automatically be included in the outgoing response.
This API is also available with the same functionality in API routes:
```js
export function post({ cookies }) {
cookies.set('loggedIn', false);
return new Response(null, {
status: 302,
headers: {
Location: '/login'
}
});
}
```
See [the RFC](https://github.com/withastro/rfcs/blob/main/proposals/0025-cookie-management.md) to learn more.

View file

@ -1,5 +0,0 @@
---
'@astrojs/rss': patch
---
Remove path-browserify dependency

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1"
"astro": "^1.4.0"
}
}

View file

@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1",
"@astrojs/mdx": "^0.11.2",
"@astrojs/rss": "^1.0.1",
"astro": "^1.4.0",
"@astrojs/mdx": "^0.11.3",
"@astrojs/rss": "^1.0.2",
"@astrojs/sitemap": "^1.0.0"
}
}

View file

@ -15,9 +15,9 @@
],
"scripts": {},
"devDependencies": {
"astro": "^1.3.1"
"astro": "^1.4.0"
},
"peerDependencies": {
"astro": "^1.3.1"
"astro": "^1.4.0"
}
}

View file

@ -10,9 +10,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1"
"astro": "^1.4.0"
},
"devDependencies": {
"@astrojs/deno": "^1.0.1"
"@astrojs/deno": "^1.1.0"
}
}

View file

@ -12,12 +12,12 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1",
"astro": "^1.4.0",
"preact": "^10.7.3",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"@astrojs/react": "^1.1.4",
"@astrojs/preact": "^1.1.0",
"@astrojs/preact": "^1.1.1",
"@algolia/client-search": "^4.13.1",
"@docsearch/css": "^3.1.0",
"@docsearch/react": "^3.1.0",

View file

@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1",
"astro": "^1.4.0",
"alpinejs": "^3.10.2",
"@astrojs/alpinejs": "^0.1.2",
"@types/alpinejs": "^3.7.0"

View file

@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1",
"astro": "^1.4.0",
"lit": "^2.2.5",
"@astrojs/lit": "^1.0.0",
"@webcomponents/template-shadowroot": "^0.1.0"

View file

@ -11,17 +11,17 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1",
"astro": "^1.4.0",
"preact": "^10.7.3",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"solid-js": "^1.4.3",
"svelte": "^3.48.0",
"vue": "^3.2.37",
"@astrojs/preact": "^1.1.0",
"@astrojs/preact": "^1.1.1",
"@astrojs/react": "^1.1.4",
"@astrojs/solid-js": "^1.1.0",
"@astrojs/svelte": "^1.0.0",
"@astrojs/vue": "^1.0.2"
"@astrojs/svelte": "^1.0.1",
"@astrojs/vue": "^1.1.0"
}
}

View file

@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1",
"astro": "^1.4.0",
"preact": "^10.7.3",
"@astrojs/preact": "^1.1.0"
"@astrojs/preact": "^1.1.1"
}
}

View file

@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1",
"astro": "^1.4.0",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"@astrojs/react": "^1.1.4",

View file

@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1",
"astro": "^1.4.0",
"solid-js": "^1.4.3",
"@astrojs/solid-js": "^1.1.0"
}

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"svelte": "^3.48.0",
"@astrojs/svelte": "^1.0.0",
"astro": "^1.3.1"
"@astrojs/svelte": "^1.0.1",
"astro": "^1.4.0"
}
}

View file

@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1",
"astro": "^1.4.0",
"vue": "^3.2.37",
"@astrojs/vue": "^1.0.2"
"@astrojs/vue": "^1.1.0"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1"
"astro": "^1.4.0"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1"
"astro": "^1.4.0"
}
}

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1"
"astro": "^1.4.0"
}
}

View file

@ -13,10 +13,10 @@
},
"devDependencies": {},
"dependencies": {
"astro": "^1.3.1",
"astro": "^1.4.0",
"svelte": "^3.48.0",
"@astrojs/svelte": "^1.0.0",
"@astrojs/node": "^1.0.1",
"@astrojs/svelte": "^1.0.1",
"@astrojs/node": "^1.1.0",
"concurrently": "^7.2.1",
"lightcookie": "^1.0.25",
"unocss": "^0.15.6",

View file

@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1",
"@astrojs/markdown-remark": "^1.1.2",
"astro": "^1.4.0",
"@astrojs/markdown-remark": "^1.1.3",
"hast-util-select": "5.0.1",
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.0.1",

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1"
"astro": "^1.4.0"
}
}

View file

@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1",
"astro": "^1.4.0",
"preact": "^10.6.5",
"@astrojs/preact": "^1.1.0",
"@astrojs/mdx": "^0.11.2"
"@astrojs/preact": "^1.1.1",
"@astrojs/mdx": "^0.11.3"
}
}

View file

@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1",
"astro": "^1.4.0",
"preact": "^10.7.3",
"@astrojs/preact": "^1.1.0",
"@astrojs/preact": "^1.1.1",
"nanostores": "^0.5.12",
"@nanostores/preact": "^0.1.3"
}

View file

@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1",
"@astrojs/tailwind": "^2.0.1",
"astro": "^1.4.0",
"@astrojs/tailwind": "^2.0.2",
"autoprefixer": "^10.4.7",
"canvas-confetti": "^1.5.1",
"postcss": "^8.4.14",

View file

@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^1.3.1",
"astro": "^1.4.0",
"vite-plugin-pwa": "0.11.11",
"workbox-window": "^6.5.3"
}

View file

@ -12,7 +12,7 @@
"test": "vitest"
},
"dependencies": {
"astro": "^1.3.1",
"astro": "^1.4.0",
"vitest": "^0.20.3"
}
}

View file

@ -1,5 +1,13 @@
# @astrojs/rss
## 1.0.2
### Patch Changes
- [#4842](https://github.com/withastro/astro/pull/4842) [`812658ad2`](https://github.com/withastro/astro/commit/812658ad2ab3732a99e35c4fd903e302e723db46) Thanks [@bluwy](https://github.com/bluwy)! - Add missing dependencies, support strict dependency installation (e.g. pnpm)
- [#4842](https://github.com/withastro/astro/pull/4842) [`812658ad2`](https://github.com/withastro/astro/commit/812658ad2ab3732a99e35c4fd903e302e723db46) Thanks [@bluwy](https://github.com/bluwy)! - Remove path-browserify dependency
## 1.0.1
### Patch Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/rss",
"description": "Add RSS feeds to your Astro projects",
"version": "1.0.1",
"version": "1.0.2",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -1,5 +1,100 @@
# astro
## 1.4.0
### Minor Changes
- [#4907](https://github.com/withastro/astro/pull/4907) [`01c1aaa00`](https://github.com/withastro/astro/commit/01c1aaa00397c7fdc7a3ef7fb0212eb43aad6238) Thanks [@matthewp](https://github.com/matthewp)! - Order Astro styles last, to override imported styles
This fixes CSS ordering so that imported styles are placed _higher_ than page/component level styles. This means that if you do:
```astro
---
import '../styles/global.css';
---
<style>
body {
background: limegreen;
}
</style>
```
The `<style>` defined in this component will be placed _below_ the imported CSS. When compiled for production this will result in something like this:
```css
/* /src/styles/global.css */
body {
background: blue;
}
/* /src/pages/index.astro */
body:where(.astro-12345) {
background: limegreen;
}
```
Given Astro's 0-specificity hashing, this change effectively makes it so that Astro styles "win" when they have the same specificity as global styles.
- [#4876](https://github.com/withastro/astro/pull/4876) [`d3091f89e`](https://github.com/withastro/astro/commit/d3091f89e92fcfe1ad48daca74055d54b1c853a3) Thanks [@matthewp](https://github.com/matthewp)! - Adds the Astro.cookies API
`Astro.cookies` is a new API for manipulating cookies in Astro components and API routes.
In Astro components, the new `Astro.cookies` object is a map-like object that allows you to get, set, delete, and check for a cookie's existence (`has`):
```astro
---
type Prefs = {
darkMode: boolean;
};
Astro.cookies.set<Prefs>(
'prefs',
{ darkMode: true },
{
expires: '1 month',
}
);
const prefs = Astro.cookies.get<Prefs>('prefs').json();
---
<body data-theme={prefs.darkMode ? 'dark' : 'light'}></body>
```
Once you've set a cookie with Astro.cookies it will automatically be included in the outgoing response.
This API is also available with the same functionality in API routes:
```js
export function post({ cookies }) {
cookies.set('loggedIn', false);
return new Response(null, {
status: 302,
headers: {
Location: '/login',
},
});
}
```
See [the RFC](https://github.com/withastro/rfcs/blob/main/proposals/0025-cookie-management.md) to learn more.
### Patch Changes
- [#4897](https://github.com/withastro/astro/pull/4897) [`fd9d323a6`](https://github.com/withastro/astro/commit/fd9d323a68c0f0cbb3b019e0a05e2c33450f3d33) Thanks [@bluwy](https://github.com/bluwy)! - Support Vue JSX
- [#4892](https://github.com/withastro/astro/pull/4892) [`ff7ba0ee0`](https://github.com/withastro/astro/commit/ff7ba0ee0fd652a92f5d06d9b644dd646cebe65c) Thanks [@matthewp](https://github.com/matthewp)! - Prevent multiple rendering of head content
- [#4842](https://github.com/withastro/astro/pull/4842) [`812658ad2`](https://github.com/withastro/astro/commit/812658ad2ab3732a99e35c4fd903e302e723db46) Thanks [@bluwy](https://github.com/bluwy)! - Add missing dependencies, support strict dependency installation (e.g. pnpm)
- [#4891](https://github.com/withastro/astro/pull/4891) [`87a7cf48e`](https://github.com/withastro/astro/commit/87a7cf48e7198ab94aa6310e58e9f30fd234c429) Thanks [@matthewp](https://github.com/matthewp)! - Hoist hydration scripts out of slot templates
- Updated dependencies [[`812658ad2`](https://github.com/withastro/astro/commit/812658ad2ab3732a99e35c4fd903e302e723db46), [`812658ad2`](https://github.com/withastro/astro/commit/812658ad2ab3732a99e35c4fd903e302e723db46)]:
- @astrojs/markdown-remark@1.1.3
- @astrojs/telemetry@1.0.1
## 1.3.1
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "astro",
"version": "1.3.1",
"version": "1.4.0",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module",
"author": "withastro",
@ -97,8 +97,8 @@
"dependencies": {
"@astrojs/compiler": "^0.25.0",
"@astrojs/language-server": "^0.26.2",
"@astrojs/markdown-remark": "^1.1.2",
"@astrojs/telemetry": "^1.0.0",
"@astrojs/markdown-remark": "^1.1.3",
"@astrojs/telemetry": "^1.0.1",
"@astrojs/webapi": "^1.1.0",
"@babel/core": "^7.18.2",
"@babel/generator": "^7.18.2",

View file

@ -1,5 +1,54 @@
# @astrojs/cloudflare
## 2.1.0
### Minor Changes
- [#4876](https://github.com/withastro/astro/pull/4876) [`d3091f89e`](https://github.com/withastro/astro/commit/d3091f89e92fcfe1ad48daca74055d54b1c853a3) Thanks [@matthewp](https://github.com/matthewp)! - Adds the Astro.cookies API
`Astro.cookies` is a new API for manipulating cookies in Astro components and API routes.
In Astro components, the new `Astro.cookies` object is a map-like object that allows you to get, set, delete, and check for a cookie's existence (`has`):
```astro
---
type Prefs = {
darkMode: boolean;
};
Astro.cookies.set<Prefs>(
'prefs',
{ darkMode: true },
{
expires: '1 month',
}
);
const prefs = Astro.cookies.get<Prefs>('prefs').json();
---
<body data-theme={prefs.darkMode ? 'dark' : 'light'}></body>
```
Once you've set a cookie with Astro.cookies it will automatically be included in the outgoing response.
This API is also available with the same functionality in API routes:
```js
export function post({ cookies }) {
cookies.set('loggedIn', false);
return new Response(null, {
status: 302,
headers: {
Location: '/login',
},
});
}
```
See [the RFC](https://github.com/withastro/rfcs/blob/main/proposals/0025-cookie-management.md) to learn more.
## 2.0.0
### Major Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/cloudflare",
"description": "Deploy your site to cloudflare pages functions",
"version": "2.0.0",
"version": "2.1.0",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -1,5 +1,54 @@
# @astrojs/node
## 1.1.0
### Minor Changes
- [#4876](https://github.com/withastro/astro/pull/4876) [`d3091f89e`](https://github.com/withastro/astro/commit/d3091f89e92fcfe1ad48daca74055d54b1c853a3) Thanks [@matthewp](https://github.com/matthewp)! - Adds the Astro.cookies API
`Astro.cookies` is a new API for manipulating cookies in Astro components and API routes.
In Astro components, the new `Astro.cookies` object is a map-like object that allows you to get, set, delete, and check for a cookie's existence (`has`):
```astro
---
type Prefs = {
darkMode: boolean;
};
Astro.cookies.set<Prefs>(
'prefs',
{ darkMode: true },
{
expires: '1 month',
}
);
const prefs = Astro.cookies.get<Prefs>('prefs').json();
---
<body data-theme={prefs.darkMode ? 'dark' : 'light'}></body>
```
Once you've set a cookie with Astro.cookies it will automatically be included in the outgoing response.
This API is also available with the same functionality in API routes:
```js
export function post({ cookies }) {
cookies.set('loggedIn', false);
return new Response(null, {
status: 302,
headers: {
Location: '/login',
},
});
}
```
See [the RFC](https://github.com/withastro/rfcs/blob/main/proposals/0025-cookie-management.md) to learn more.
## 1.0.1
### Patch Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/deno",
"description": "Deploy your site to a Deno server",
"version": "1.0.1",
"version": "1.1.0",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -1,5 +1,15 @@
# @astrojs/image
## 0.8.1
### Patch Changes
- [#4906](https://github.com/withastro/astro/pull/4906) [`ec55745ae`](https://github.com/withastro/astro/commit/ec55745ae5454207fa0405170588d898b49b9a48) Thanks [@tony-sull](https://github.com/tony-sull)! - Updates the default image service to use format-specific quality defaults
- [#4842](https://github.com/withastro/astro/pull/4842) [`812658ad2`](https://github.com/withastro/astro/commit/812658ad2ab3732a99e35c4fd903e302e723db46) Thanks [@bluwy](https://github.com/bluwy)! - Specify sharp as optional peer dependency
- [#4842](https://github.com/withastro/astro/pull/4842) [`812658ad2`](https://github.com/withastro/astro/commit/812658ad2ab3732a99e35c4fd903e302e723db46) Thanks [@bluwy](https://github.com/bluwy)! - Add missing dependencies, support strict dependency installation (e.g. pnpm)
## 0.8.0
### Minor Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/image",
"description": "Load and transform images in your Astro site.",
"version": "0.8.0",
"version": "0.8.1",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -1,5 +1,11 @@
# @astrojs/mdx
## 0.11.3
### Patch Changes
- [#4842](https://github.com/withastro/astro/pull/4842) [`812658ad2`](https://github.com/withastro/astro/commit/812658ad2ab3732a99e35c4fd903e302e723db46) Thanks [@bluwy](https://github.com/bluwy)! - Add missing dependencies, support strict dependency installation (e.g. pnpm)
## 0.11.2
### Patch Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/mdx",
"description": "Use MDX within Astro",
"version": "0.11.2",
"version": "0.11.3",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -1,5 +1,58 @@
# @astrojs/netlify
## 1.1.0
### Minor Changes
- [#4876](https://github.com/withastro/astro/pull/4876) [`d3091f89e`](https://github.com/withastro/astro/commit/d3091f89e92fcfe1ad48daca74055d54b1c853a3) Thanks [@matthewp](https://github.com/matthewp)! - Adds the Astro.cookies API
`Astro.cookies` is a new API for manipulating cookies in Astro components and API routes.
In Astro components, the new `Astro.cookies` object is a map-like object that allows you to get, set, delete, and check for a cookie's existence (`has`):
```astro
---
type Prefs = {
darkMode: boolean;
};
Astro.cookies.set<Prefs>(
'prefs',
{ darkMode: true },
{
expires: '1 month',
}
);
const prefs = Astro.cookies.get<Prefs>('prefs').json();
---
<body data-theme={prefs.darkMode ? 'dark' : 'light'}></body>
```
Once you've set a cookie with Astro.cookies it will automatically be included in the outgoing response.
This API is also available with the same functionality in API routes:
```js
export function post({ cookies }) {
cookies.set('loggedIn', false);
return new Response(null, {
status: 302,
headers: {
Location: '/login',
},
});
}
```
See [the RFC](https://github.com/withastro/rfcs/blob/main/proposals/0025-cookie-management.md) to learn more.
### Patch Changes
- [#4842](https://github.com/withastro/astro/pull/4842) [`812658ad2`](https://github.com/withastro/astro/commit/812658ad2ab3732a99e35c4fd903e302e723db46) Thanks [@bluwy](https://github.com/bluwy)! - Add missing dependencies, support strict dependency installation (e.g. pnpm)
## 1.0.4
### Patch Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/netlify",
"description": "Deploy your site to Netlify",
"version": "1.0.4",
"version": "1.1.0",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -1,5 +1,54 @@
# @astrojs/node
## 1.1.0
### Minor Changes
- [#4876](https://github.com/withastro/astro/pull/4876) [`d3091f89e`](https://github.com/withastro/astro/commit/d3091f89e92fcfe1ad48daca74055d54b1c853a3) Thanks [@matthewp](https://github.com/matthewp)! - Adds the Astro.cookies API
`Astro.cookies` is a new API for manipulating cookies in Astro components and API routes.
In Astro components, the new `Astro.cookies` object is a map-like object that allows you to get, set, delete, and check for a cookie's existence (`has`):
```astro
---
type Prefs = {
darkMode: boolean;
};
Astro.cookies.set<Prefs>(
'prefs',
{ darkMode: true },
{
expires: '1 month',
}
);
const prefs = Astro.cookies.get<Prefs>('prefs').json();
---
<body data-theme={prefs.darkMode ? 'dark' : 'light'}></body>
```
Once you've set a cookie with Astro.cookies it will automatically be included in the outgoing response.
This API is also available with the same functionality in API routes:
```js
export function post({ cookies }) {
cookies.set('loggedIn', false);
return new Response(null, {
status: 302,
headers: {
Location: '/login',
},
});
}
```
See [the RFC](https://github.com/withastro/rfcs/blob/main/proposals/0025-cookie-management.md) to learn more.
## 1.0.1
### Patch Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/node",
"description": "Deploy your site to a Node.js server",
"version": "1.0.1",
"version": "1.1.0",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -1,5 +1,11 @@
# @astrojs/preact
## 1.1.1
### Patch Changes
- [#4842](https://github.com/withastro/astro/pull/4842) [`812658ad2`](https://github.com/withastro/astro/commit/812658ad2ab3732a99e35c4fd903e302e723db46) Thanks [@bluwy](https://github.com/bluwy)! - Add missing dependencies, support strict dependency installation (e.g. pnpm)
## 1.1.0
### Minor Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/preact",
"description": "Use Preact components within Astro",
"version": "1.1.0",
"version": "1.1.1",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -1,5 +1,11 @@
# @astrojs/svelte
## 1.0.1
### Patch Changes
- [#4842](https://github.com/withastro/astro/pull/4842) [`812658ad2`](https://github.com/withastro/astro/commit/812658ad2ab3732a99e35c4fd903e302e723db46) Thanks [@bluwy](https://github.com/bluwy)! - Add missing dependencies, support strict dependency installation (e.g. pnpm)
## 1.0.0
### Major Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/svelte",
"version": "1.0.0",
"version": "1.0.1",
"description": "Use Svelte components within Astro",
"type": "module",
"types": "./dist/index.d.ts",

View file

@ -1,5 +1,11 @@
# @astrojs/tailwind
## 2.0.2
### Patch Changes
- [#4842](https://github.com/withastro/astro/pull/4842) [`812658ad2`](https://github.com/withastro/astro/commit/812658ad2ab3732a99e35c4fd903e302e723db46) Thanks [@bluwy](https://github.com/bluwy)! - Add missing dependencies, support strict dependency installation (e.g. pnpm)
## 2.0.1
### Patch Changes

View file

@ -1,7 +1,7 @@
{
"name": "@astrojs/tailwind",
"description": "Tailwind + Astro Integrations",
"version": "2.0.1",
"version": "2.0.2",
"type": "module",
"types": "./dist/index.d.ts",
"author": "withastro",

View file

@ -1,5 +1,54 @@
# @astrojs/vercel
## 2.1.0
### Minor Changes
- [#4876](https://github.com/withastro/astro/pull/4876) [`d3091f89e`](https://github.com/withastro/astro/commit/d3091f89e92fcfe1ad48daca74055d54b1c853a3) Thanks [@matthewp](https://github.com/matthewp)! - Adds the Astro.cookies API
`Astro.cookies` is a new API for manipulating cookies in Astro components and API routes.
In Astro components, the new `Astro.cookies` object is a map-like object that allows you to get, set, delete, and check for a cookie's existence (`has`):
```astro
---
type Prefs = {
darkMode: boolean;
};
Astro.cookies.set<Prefs>(
'prefs',
{ darkMode: true },
{
expires: '1 month',
}
);
const prefs = Astro.cookies.get<Prefs>('prefs').json();
---
<body data-theme={prefs.darkMode ? 'dark' : 'light'}></body>
```
Once you've set a cookie with Astro.cookies it will automatically be included in the outgoing response.
This API is also available with the same functionality in API routes:
```js
export function post({ cookies }) {
cookies.set('loggedIn', false);
return new Response(null, {
status: 302,
headers: {
Location: '/login',
},
});
}
```
See [the RFC](https://github.com/withastro/rfcs/blob/main/proposals/0025-cookie-management.md) to learn more.
## 2.0.1
### Patch Changes

View file

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

View file

@ -1,5 +1,15 @@
# @astrojs/vue
## 1.1.0
### Minor Changes
- [#4897](https://github.com/withastro/astro/pull/4897) [`fd9d323a6`](https://github.com/withastro/astro/commit/fd9d323a68c0f0cbb3b019e0a05e2c33450f3d33) Thanks [@bluwy](https://github.com/bluwy)! - Support Vue JSX
### Patch Changes
- [#4842](https://github.com/withastro/astro/pull/4842) [`812658ad2`](https://github.com/withastro/astro/commit/812658ad2ab3732a99e35c4fd903e302e723db46) Thanks [@bluwy](https://github.com/bluwy)! - Add missing dependencies, support strict dependency installation (e.g. pnpm)
## 1.0.2
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/vue",
"version": "1.0.2",
"version": "1.1.0",
"description": "Use Vue components within Astro",
"type": "module",
"types": "./dist/index.d.ts",

View file

@ -1,5 +1,13 @@
# @astrojs/markdown-remark
## 1.1.3
### Patch Changes
- [#4842](https://github.com/withastro/astro/pull/4842) [`812658ad2`](https://github.com/withastro/astro/commit/812658ad2ab3732a99e35c4fd903e302e723db46) Thanks [@bluwy](https://github.com/bluwy)! - Fix non-hoisted remark/rehype plugin loading
- [#4842](https://github.com/withastro/astro/pull/4842) [`812658ad2`](https://github.com/withastro/astro/commit/812658ad2ab3732a99e35c4fd903e302e723db46) Thanks [@bluwy](https://github.com/bluwy)! - Add missing dependencies, support strict dependency installation (e.g. pnpm)
## 1.1.2
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/markdown-remark",
"version": "1.1.2",
"version": "1.1.3",
"type": "module",
"author": "withastro",
"license": "MIT",

View file

@ -1,5 +1,11 @@
# @astrojs/telemetry
## 1.0.1
### Patch Changes
- [#4842](https://github.com/withastro/astro/pull/4842) [`812658ad2`](https://github.com/withastro/astro/commit/812658ad2ab3732a99e35c4fd903e302e723db46) Thanks [@bluwy](https://github.com/bluwy)! - Add missing dependencies, support strict dependency installation (e.g. pnpm)
## 1.0.0
### Major Changes

View file

@ -1,6 +1,6 @@
{
"name": "@astrojs/telemetry",
"version": "1.0.0",
"version": "1.0.1",
"type": "module",
"types": "./dist/types/index.d.ts",
"author": "withastro",

View file

@ -58,16 +58,16 @@ importers:
examples/basics:
specifiers:
astro: ^1.3.1
astro: ^1.4.0
dependencies:
astro: link:../../packages/astro
examples/blog:
specifiers:
'@astrojs/mdx': ^0.11.2
'@astrojs/rss': ^1.0.1
'@astrojs/mdx': ^0.11.3
'@astrojs/rss': ^1.0.2
'@astrojs/sitemap': ^1.0.0
astro: ^1.3.1
astro: ^1.4.0
dependencies:
'@astrojs/mdx': link:../../packages/integrations/mdx
'@astrojs/rss': link:../../packages/astro-rss
@ -76,14 +76,14 @@ importers:
examples/component:
specifiers:
astro: ^1.3.1
astro: ^1.4.0
devDependencies:
astro: link:../../packages/astro
examples/deno:
specifiers:
'@astrojs/deno': ^1.0.1
astro: ^1.3.1
'@astrojs/deno': ^1.1.0
astro: ^1.4.0
dependencies:
astro: link:../../packages/astro
devDependencies:
@ -92,14 +92,14 @@ importers:
examples/docs:
specifiers:
'@algolia/client-search': ^4.13.1
'@astrojs/preact': ^1.1.0
'@astrojs/preact': ^1.1.1
'@astrojs/react': ^1.1.4
'@docsearch/css': ^3.1.0
'@docsearch/react': ^3.1.0
'@types/node': ^18.0.0
'@types/react': ^17.0.45
'@types/react-dom': ^18.0.0
astro: ^1.3.1
astro: ^1.4.0
preact: ^10.7.3
react: ^18.1.0
react-dom: ^18.1.0
@ -122,7 +122,7 @@ importers:
'@astrojs/alpinejs': ^0.1.2
'@types/alpinejs': ^3.7.0
alpinejs: ^3.10.2
astro: ^1.3.1
astro: ^1.4.0
dependencies:
'@astrojs/alpinejs': link:../../packages/integrations/alpinejs
'@types/alpinejs': 3.7.0
@ -133,7 +133,7 @@ importers:
specifiers:
'@astrojs/lit': ^1.0.0
'@webcomponents/template-shadowroot': ^0.1.0
astro: ^1.3.1
astro: ^1.4.0
lit: ^2.2.5
dependencies:
'@astrojs/lit': link:../../packages/integrations/lit
@ -143,12 +143,12 @@ importers:
examples/framework-multiple:
specifiers:
'@astrojs/preact': ^1.1.0
'@astrojs/preact': ^1.1.1
'@astrojs/react': ^1.1.4
'@astrojs/solid-js': ^1.1.0
'@astrojs/svelte': ^1.0.0
'@astrojs/vue': ^1.0.2
astro: ^1.3.1
'@astrojs/svelte': ^1.0.1
'@astrojs/vue': ^1.1.0
astro: ^1.4.0
preact: ^10.7.3
react: ^18.1.0
react-dom: ^18.1.0
@ -171,8 +171,8 @@ importers:
examples/framework-preact:
specifiers:
'@astrojs/preact': ^1.1.0
astro: ^1.3.1
'@astrojs/preact': ^1.1.1
astro: ^1.4.0
preact: ^10.7.3
dependencies:
'@astrojs/preact': link:../../packages/integrations/preact
@ -184,7 +184,7 @@ importers:
'@astrojs/react': ^1.1.4
'@types/react': ^18.0.10
'@types/react-dom': ^18.0.5
astro: ^1.3.1
astro: ^1.4.0
react: ^18.1.0
react-dom: ^18.1.0
dependencies:
@ -198,7 +198,7 @@ importers:
examples/framework-solid:
specifiers:
'@astrojs/solid-js': ^1.1.0
astro: ^1.3.1
astro: ^1.4.0
solid-js: ^1.4.3
dependencies:
'@astrojs/solid-js': link:../../packages/integrations/solid
@ -207,8 +207,8 @@ importers:
examples/framework-svelte:
specifiers:
'@astrojs/svelte': ^1.0.0
astro: ^1.3.1
'@astrojs/svelte': ^1.0.1
astro: ^1.4.0
svelte: ^3.48.0
dependencies:
'@astrojs/svelte': link:../../packages/integrations/svelte
@ -217,8 +217,8 @@ importers:
examples/framework-vue:
specifiers:
'@astrojs/vue': ^1.0.2
astro: ^1.3.1
'@astrojs/vue': ^1.1.0
astro: ^1.4.0
vue: ^3.2.37
dependencies:
'@astrojs/vue': link:../../packages/integrations/vue
@ -227,27 +227,27 @@ importers:
examples/minimal:
specifiers:
astro: ^1.3.1
astro: ^1.4.0
dependencies:
astro: link:../../packages/astro
examples/non-html-pages:
specifiers:
astro: ^1.3.1
astro: ^1.4.0
dependencies:
astro: link:../../packages/astro
examples/portfolio:
specifiers:
astro: ^1.3.1
astro: ^1.4.0
dependencies:
astro: link:../../packages/astro
examples/ssr:
specifiers:
'@astrojs/node': ^1.0.1
'@astrojs/svelte': ^1.0.0
astro: ^1.3.1
'@astrojs/node': ^1.1.0
'@astrojs/svelte': ^1.0.1
astro: ^1.4.0
concurrently: ^7.2.1
lightcookie: ^1.0.25
svelte: ^3.48.0
@ -265,8 +265,8 @@ importers:
examples/with-markdown-plugins:
specifiers:
'@astrojs/markdown-remark': ^1.1.2
astro: ^1.3.1
'@astrojs/markdown-remark': ^1.1.3
astro: ^1.4.0
hast-util-select: 5.0.1
rehype-autolink-headings: ^6.1.1
rehype-slug: ^5.0.1
@ -283,15 +283,15 @@ importers:
examples/with-markdown-shiki:
specifiers:
astro: ^1.3.1
astro: ^1.4.0
dependencies:
astro: link:../../packages/astro
examples/with-mdx:
specifiers:
'@astrojs/mdx': ^0.11.2
'@astrojs/preact': ^1.1.0
astro: ^1.3.1
'@astrojs/mdx': ^0.11.3
'@astrojs/preact': ^1.1.1
astro: ^1.4.0
preact: ^10.6.5
dependencies:
'@astrojs/mdx': link:../../packages/integrations/mdx
@ -301,9 +301,9 @@ importers:
examples/with-nanostores:
specifiers:
'@astrojs/preact': ^1.1.0
'@astrojs/preact': ^1.1.1
'@nanostores/preact': ^0.1.3
astro: ^1.3.1
astro: ^1.4.0
nanostores: ^0.5.12
preact: ^10.7.3
dependencies:
@ -315,8 +315,8 @@ importers:
examples/with-tailwindcss:
specifiers:
'@astrojs/tailwind': ^2.0.1
astro: ^1.3.1
'@astrojs/tailwind': ^2.0.2
astro: ^1.4.0
autoprefixer: ^10.4.7
canvas-confetti: ^1.5.1
postcss: ^8.4.14
@ -331,7 +331,7 @@ importers:
examples/with-vite-plugin-pwa:
specifiers:
astro: ^1.3.1
astro: ^1.4.0
vite-plugin-pwa: 0.11.11
workbox-window: ^6.5.3
dependencies:
@ -341,7 +341,7 @@ importers:
examples/with-vitest:
specifiers:
astro: ^1.3.1
astro: ^1.4.0
vitest: ^0.20.3
dependencies:
astro: link:../../packages/astro
@ -351,8 +351,8 @@ importers:
specifiers:
'@astrojs/compiler': ^0.25.0
'@astrojs/language-server': ^0.26.2
'@astrojs/markdown-remark': ^1.1.2
'@astrojs/telemetry': ^1.0.0
'@astrojs/markdown-remark': ^1.1.3
'@astrojs/telemetry': ^1.0.1
'@astrojs/webapi': ^1.1.0
'@babel/core': ^7.18.2
'@babel/generator': ^7.18.2