[ci] release (#4903)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
10317c65fe
commit
d08093f7d4
65 changed files with 512 additions and 235 deletions
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
'@astrojs/image': patch
|
|
||||||
---
|
|
||||||
|
|
||||||
Updates the default image service to use format-specific quality defaults
|
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
'@astrojs/vue': minor
|
|
||||||
'astro': patch
|
|
||||||
---
|
|
||||||
|
|
||||||
Support Vue JSX
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
'@astrojs/image': patch
|
|
||||||
---
|
|
||||||
|
|
||||||
Specify sharp as optional peer dependency
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
'@astrojs/markdown-remark': patch
|
|
||||||
---
|
|
||||||
|
|
||||||
Fix non-hoisted remark/rehype plugin loading
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
'astro': patch
|
|
||||||
---
|
|
||||||
|
|
||||||
Prevent multiple rendering of head content
|
|
|
@ -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)
|
|
|
@ -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.
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
'astro': patch
|
|
||||||
---
|
|
||||||
|
|
||||||
Hoist hydration scripts out of slot templates
|
|
|
@ -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.
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
'@astrojs/rss': patch
|
|
||||||
---
|
|
||||||
|
|
||||||
Remove path-browserify dependency
|
|
|
@ -11,6 +11,6 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1"
|
"astro": "^1.4.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,9 +11,9 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1",
|
"astro": "^1.4.0",
|
||||||
"@astrojs/mdx": "^0.11.2",
|
"@astrojs/mdx": "^0.11.3",
|
||||||
"@astrojs/rss": "^1.0.1",
|
"@astrojs/rss": "^1.0.2",
|
||||||
"@astrojs/sitemap": "^1.0.0"
|
"@astrojs/sitemap": "^1.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
],
|
],
|
||||||
"scripts": {},
|
"scripts": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"astro": "^1.3.1"
|
"astro": "^1.4.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"astro": "^1.3.1"
|
"astro": "^1.4.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1"
|
"astro": "^1.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@astrojs/deno": "^1.0.1"
|
"@astrojs/deno": "^1.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,12 +12,12 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1",
|
"astro": "^1.4.0",
|
||||||
"preact": "^10.7.3",
|
"preact": "^10.7.3",
|
||||||
"react": "^18.1.0",
|
"react": "^18.1.0",
|
||||||
"react-dom": "^18.1.0",
|
"react-dom": "^18.1.0",
|
||||||
"@astrojs/react": "^1.1.4",
|
"@astrojs/react": "^1.1.4",
|
||||||
"@astrojs/preact": "^1.1.0",
|
"@astrojs/preact": "^1.1.1",
|
||||||
"@algolia/client-search": "^4.13.1",
|
"@algolia/client-search": "^4.13.1",
|
||||||
"@docsearch/css": "^3.1.0",
|
"@docsearch/css": "^3.1.0",
|
||||||
"@docsearch/react": "^3.1.0",
|
"@docsearch/react": "^3.1.0",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1",
|
"astro": "^1.4.0",
|
||||||
"alpinejs": "^3.10.2",
|
"alpinejs": "^3.10.2",
|
||||||
"@astrojs/alpinejs": "^0.1.2",
|
"@astrojs/alpinejs": "^0.1.2",
|
||||||
"@types/alpinejs": "^3.7.0"
|
"@types/alpinejs": "^3.7.0"
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1",
|
"astro": "^1.4.0",
|
||||||
"lit": "^2.2.5",
|
"lit": "^2.2.5",
|
||||||
"@astrojs/lit": "^1.0.0",
|
"@astrojs/lit": "^1.0.0",
|
||||||
"@webcomponents/template-shadowroot": "^0.1.0"
|
"@webcomponents/template-shadowroot": "^0.1.0"
|
||||||
|
|
|
@ -11,17 +11,17 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1",
|
"astro": "^1.4.0",
|
||||||
"preact": "^10.7.3",
|
"preact": "^10.7.3",
|
||||||
"react": "^18.1.0",
|
"react": "^18.1.0",
|
||||||
"react-dom": "^18.1.0",
|
"react-dom": "^18.1.0",
|
||||||
"solid-js": "^1.4.3",
|
"solid-js": "^1.4.3",
|
||||||
"svelte": "^3.48.0",
|
"svelte": "^3.48.0",
|
||||||
"vue": "^3.2.37",
|
"vue": "^3.2.37",
|
||||||
"@astrojs/preact": "^1.1.0",
|
"@astrojs/preact": "^1.1.1",
|
||||||
"@astrojs/react": "^1.1.4",
|
"@astrojs/react": "^1.1.4",
|
||||||
"@astrojs/solid-js": "^1.1.0",
|
"@astrojs/solid-js": "^1.1.0",
|
||||||
"@astrojs/svelte": "^1.0.0",
|
"@astrojs/svelte": "^1.0.1",
|
||||||
"@astrojs/vue": "^1.0.2"
|
"@astrojs/vue": "^1.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1",
|
"astro": "^1.4.0",
|
||||||
"preact": "^10.7.3",
|
"preact": "^10.7.3",
|
||||||
"@astrojs/preact": "^1.1.0"
|
"@astrojs/preact": "^1.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1",
|
"astro": "^1.4.0",
|
||||||
"react": "^18.1.0",
|
"react": "^18.1.0",
|
||||||
"react-dom": "^18.1.0",
|
"react-dom": "^18.1.0",
|
||||||
"@astrojs/react": "^1.1.4",
|
"@astrojs/react": "^1.1.4",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1",
|
"astro": "^1.4.0",
|
||||||
"solid-js": "^1.4.3",
|
"solid-js": "^1.4.3",
|
||||||
"@astrojs/solid-js": "^1.1.0"
|
"@astrojs/solid-js": "^1.1.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"svelte": "^3.48.0",
|
"svelte": "^3.48.0",
|
||||||
"@astrojs/svelte": "^1.0.0",
|
"@astrojs/svelte": "^1.0.1",
|
||||||
"astro": "^1.3.1"
|
"astro": "^1.4.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1",
|
"astro": "^1.4.0",
|
||||||
"vue": "^3.2.37",
|
"vue": "^3.2.37",
|
||||||
"@astrojs/vue": "^1.0.2"
|
"@astrojs/vue": "^1.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,6 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1"
|
"astro": "^1.4.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,6 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1"
|
"astro": "^1.4.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,6 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1"
|
"astro": "^1.4.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1",
|
"astro": "^1.4.0",
|
||||||
"svelte": "^3.48.0",
|
"svelte": "^3.48.0",
|
||||||
"@astrojs/svelte": "^1.0.0",
|
"@astrojs/svelte": "^1.0.1",
|
||||||
"@astrojs/node": "^1.0.1",
|
"@astrojs/node": "^1.1.0",
|
||||||
"concurrently": "^7.2.1",
|
"concurrently": "^7.2.1",
|
||||||
"lightcookie": "^1.0.25",
|
"lightcookie": "^1.0.25",
|
||||||
"unocss": "^0.15.6",
|
"unocss": "^0.15.6",
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1",
|
"astro": "^1.4.0",
|
||||||
"@astrojs/markdown-remark": "^1.1.2",
|
"@astrojs/markdown-remark": "^1.1.3",
|
||||||
"hast-util-select": "5.0.1",
|
"hast-util-select": "5.0.1",
|
||||||
"rehype-autolink-headings": "^6.1.1",
|
"rehype-autolink-headings": "^6.1.1",
|
||||||
"rehype-slug": "^5.0.1",
|
"rehype-slug": "^5.0.1",
|
||||||
|
|
|
@ -11,6 +11,6 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1"
|
"astro": "^1.4.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,9 +11,9 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1",
|
"astro": "^1.4.0",
|
||||||
"preact": "^10.6.5",
|
"preact": "^10.6.5",
|
||||||
"@astrojs/preact": "^1.1.0",
|
"@astrojs/preact": "^1.1.1",
|
||||||
"@astrojs/mdx": "^0.11.2"
|
"@astrojs/mdx": "^0.11.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,9 +11,9 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1",
|
"astro": "^1.4.0",
|
||||||
"preact": "^10.7.3",
|
"preact": "^10.7.3",
|
||||||
"@astrojs/preact": "^1.1.0",
|
"@astrojs/preact": "^1.1.1",
|
||||||
"nanostores": "^0.5.12",
|
"nanostores": "^0.5.12",
|
||||||
"@nanostores/preact": "^0.1.3"
|
"@nanostores/preact": "^0.1.3"
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1",
|
"astro": "^1.4.0",
|
||||||
"@astrojs/tailwind": "^2.0.1",
|
"@astrojs/tailwind": "^2.0.2",
|
||||||
"autoprefixer": "^10.4.7",
|
"autoprefixer": "^10.4.7",
|
||||||
"canvas-confetti": "^1.5.1",
|
"canvas-confetti": "^1.5.1",
|
||||||
"postcss": "^8.4.14",
|
"postcss": "^8.4.14",
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1",
|
"astro": "^1.4.0",
|
||||||
"vite-plugin-pwa": "0.11.11",
|
"vite-plugin-pwa": "0.11.11",
|
||||||
"workbox-window": "^6.5.3"
|
"workbox-window": "^6.5.3"
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"test": "vitest"
|
"test": "vitest"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.3.1",
|
"astro": "^1.4.0",
|
||||||
"vitest": "^0.20.3"
|
"vitest": "^0.20.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
# @astrojs/rss
|
# @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
|
## 1.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@astrojs/rss",
|
"name": "@astrojs/rss",
|
||||||
"description": "Add RSS feeds to your Astro projects",
|
"description": "Add RSS feeds to your Astro projects",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"author": "withastro",
|
"author": "withastro",
|
||||||
|
|
|
@ -1,5 +1,100 @@
|
||||||
# astro
|
# 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
|
## 1.3.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "astro",
|
"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.",
|
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"author": "withastro",
|
"author": "withastro",
|
||||||
|
@ -97,8 +97,8 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/compiler": "^0.25.0",
|
"@astrojs/compiler": "^0.25.0",
|
||||||
"@astrojs/language-server": "^0.26.2",
|
"@astrojs/language-server": "^0.26.2",
|
||||||
"@astrojs/markdown-remark": "^1.1.2",
|
"@astrojs/markdown-remark": "^1.1.3",
|
||||||
"@astrojs/telemetry": "^1.0.0",
|
"@astrojs/telemetry": "^1.0.1",
|
||||||
"@astrojs/webapi": "^1.1.0",
|
"@astrojs/webapi": "^1.1.0",
|
||||||
"@babel/core": "^7.18.2",
|
"@babel/core": "^7.18.2",
|
||||||
"@babel/generator": "^7.18.2",
|
"@babel/generator": "^7.18.2",
|
||||||
|
|
|
@ -1,5 +1,54 @@
|
||||||
# @astrojs/cloudflare
|
# @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
|
## 2.0.0
|
||||||
|
|
||||||
### Major Changes
|
### Major Changes
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@astrojs/cloudflare",
|
"name": "@astrojs/cloudflare",
|
||||||
"description": "Deploy your site to cloudflare pages functions",
|
"description": "Deploy your site to cloudflare pages functions",
|
||||||
"version": "2.0.0",
|
"version": "2.1.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"author": "withastro",
|
"author": "withastro",
|
||||||
|
|
|
@ -1,5 +1,54 @@
|
||||||
# @astrojs/node
|
# @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
|
## 1.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@astrojs/deno",
|
"name": "@astrojs/deno",
|
||||||
"description": "Deploy your site to a Deno server",
|
"description": "Deploy your site to a Deno server",
|
||||||
"version": "1.0.1",
|
"version": "1.1.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"author": "withastro",
|
"author": "withastro",
|
||||||
|
|
|
@ -1,5 +1,15 @@
|
||||||
# @astrojs/image
|
# @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
|
## 0.8.0
|
||||||
|
|
||||||
### Minor Changes
|
### Minor Changes
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@astrojs/image",
|
"name": "@astrojs/image",
|
||||||
"description": "Load and transform images in your Astro site.",
|
"description": "Load and transform images in your Astro site.",
|
||||||
"version": "0.8.0",
|
"version": "0.8.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"author": "withastro",
|
"author": "withastro",
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
# @astrojs/mdx
|
# @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
|
## 0.11.2
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@astrojs/mdx",
|
"name": "@astrojs/mdx",
|
||||||
"description": "Use MDX within Astro",
|
"description": "Use MDX within Astro",
|
||||||
"version": "0.11.2",
|
"version": "0.11.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"author": "withastro",
|
"author": "withastro",
|
||||||
|
|
|
@ -1,5 +1,58 @@
|
||||||
# @astrojs/netlify
|
# @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
|
## 1.0.4
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@astrojs/netlify",
|
"name": "@astrojs/netlify",
|
||||||
"description": "Deploy your site to Netlify",
|
"description": "Deploy your site to Netlify",
|
||||||
"version": "1.0.4",
|
"version": "1.1.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"author": "withastro",
|
"author": "withastro",
|
||||||
|
|
|
@ -1,5 +1,54 @@
|
||||||
# @astrojs/node
|
# @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
|
## 1.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@astrojs/node",
|
"name": "@astrojs/node",
|
||||||
"description": "Deploy your site to a Node.js server",
|
"description": "Deploy your site to a Node.js server",
|
||||||
"version": "1.0.1",
|
"version": "1.1.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"author": "withastro",
|
"author": "withastro",
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
# @astrojs/preact
|
# @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
|
## 1.1.0
|
||||||
|
|
||||||
### Minor Changes
|
### Minor Changes
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@astrojs/preact",
|
"name": "@astrojs/preact",
|
||||||
"description": "Use Preact components within Astro",
|
"description": "Use Preact components within Astro",
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"author": "withastro",
|
"author": "withastro",
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
# @astrojs/svelte
|
# @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
|
## 1.0.0
|
||||||
|
|
||||||
### Major Changes
|
### Major Changes
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@astrojs/svelte",
|
"name": "@astrojs/svelte",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Use Svelte components within Astro",
|
"description": "Use Svelte components within Astro",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
# @astrojs/tailwind
|
# @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
|
## 2.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@astrojs/tailwind",
|
"name": "@astrojs/tailwind",
|
||||||
"description": "Tailwind + Astro Integrations",
|
"description": "Tailwind + Astro Integrations",
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"author": "withastro",
|
"author": "withastro",
|
||||||
|
|
|
@ -1,5 +1,54 @@
|
||||||
# @astrojs/vercel
|
# @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
|
## 2.0.1
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@astrojs/vercel",
|
"name": "@astrojs/vercel",
|
||||||
"description": "Deploy your site to Vercel",
|
"description": "Deploy your site to Vercel",
|
||||||
"version": "2.0.1",
|
"version": "2.1.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"author": "withastro",
|
"author": "withastro",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
@ -1,5 +1,15 @@
|
||||||
# @astrojs/vue
|
# @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
|
## 1.0.2
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@astrojs/vue",
|
"name": "@astrojs/vue",
|
||||||
"version": "1.0.2",
|
"version": "1.1.0",
|
||||||
"description": "Use Vue components within Astro",
|
"description": "Use Vue components within Astro",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
# @astrojs/markdown-remark
|
# @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
|
## 1.1.2
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@astrojs/markdown-remark",
|
"name": "@astrojs/markdown-remark",
|
||||||
"version": "1.1.2",
|
"version": "1.1.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"author": "withastro",
|
"author": "withastro",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
# @astrojs/telemetry
|
# @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
|
## 1.0.0
|
||||||
|
|
||||||
### Major Changes
|
### Major Changes
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@astrojs/telemetry",
|
"name": "@astrojs/telemetry",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./dist/types/index.d.ts",
|
"types": "./dist/types/index.d.ts",
|
||||||
"author": "withastro",
|
"author": "withastro",
|
||||||
|
|
86
pnpm-lock.yaml
generated
86
pnpm-lock.yaml
generated
|
@ -58,16 +58,16 @@ importers:
|
||||||
|
|
||||||
examples/basics:
|
examples/basics:
|
||||||
specifiers:
|
specifiers:
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
dependencies:
|
dependencies:
|
||||||
astro: link:../../packages/astro
|
astro: link:../../packages/astro
|
||||||
|
|
||||||
examples/blog:
|
examples/blog:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/mdx': ^0.11.2
|
'@astrojs/mdx': ^0.11.3
|
||||||
'@astrojs/rss': ^1.0.1
|
'@astrojs/rss': ^1.0.2
|
||||||
'@astrojs/sitemap': ^1.0.0
|
'@astrojs/sitemap': ^1.0.0
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@astrojs/mdx': link:../../packages/integrations/mdx
|
'@astrojs/mdx': link:../../packages/integrations/mdx
|
||||||
'@astrojs/rss': link:../../packages/astro-rss
|
'@astrojs/rss': link:../../packages/astro-rss
|
||||||
|
@ -76,14 +76,14 @@ importers:
|
||||||
|
|
||||||
examples/component:
|
examples/component:
|
||||||
specifiers:
|
specifiers:
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
devDependencies:
|
devDependencies:
|
||||||
astro: link:../../packages/astro
|
astro: link:../../packages/astro
|
||||||
|
|
||||||
examples/deno:
|
examples/deno:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/deno': ^1.0.1
|
'@astrojs/deno': ^1.1.0
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
dependencies:
|
dependencies:
|
||||||
astro: link:../../packages/astro
|
astro: link:../../packages/astro
|
||||||
devDependencies:
|
devDependencies:
|
||||||
|
@ -92,14 +92,14 @@ importers:
|
||||||
examples/docs:
|
examples/docs:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@algolia/client-search': ^4.13.1
|
'@algolia/client-search': ^4.13.1
|
||||||
'@astrojs/preact': ^1.1.0
|
'@astrojs/preact': ^1.1.1
|
||||||
'@astrojs/react': ^1.1.4
|
'@astrojs/react': ^1.1.4
|
||||||
'@docsearch/css': ^3.1.0
|
'@docsearch/css': ^3.1.0
|
||||||
'@docsearch/react': ^3.1.0
|
'@docsearch/react': ^3.1.0
|
||||||
'@types/node': ^18.0.0
|
'@types/node': ^18.0.0
|
||||||
'@types/react': ^17.0.45
|
'@types/react': ^17.0.45
|
||||||
'@types/react-dom': ^18.0.0
|
'@types/react-dom': ^18.0.0
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
preact: ^10.7.3
|
preact: ^10.7.3
|
||||||
react: ^18.1.0
|
react: ^18.1.0
|
||||||
react-dom: ^18.1.0
|
react-dom: ^18.1.0
|
||||||
|
@ -122,7 +122,7 @@ importers:
|
||||||
'@astrojs/alpinejs': ^0.1.2
|
'@astrojs/alpinejs': ^0.1.2
|
||||||
'@types/alpinejs': ^3.7.0
|
'@types/alpinejs': ^3.7.0
|
||||||
alpinejs: ^3.10.2
|
alpinejs: ^3.10.2
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@astrojs/alpinejs': link:../../packages/integrations/alpinejs
|
'@astrojs/alpinejs': link:../../packages/integrations/alpinejs
|
||||||
'@types/alpinejs': 3.7.0
|
'@types/alpinejs': 3.7.0
|
||||||
|
@ -133,7 +133,7 @@ importers:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/lit': ^1.0.0
|
'@astrojs/lit': ^1.0.0
|
||||||
'@webcomponents/template-shadowroot': ^0.1.0
|
'@webcomponents/template-shadowroot': ^0.1.0
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
lit: ^2.2.5
|
lit: ^2.2.5
|
||||||
dependencies:
|
dependencies:
|
||||||
'@astrojs/lit': link:../../packages/integrations/lit
|
'@astrojs/lit': link:../../packages/integrations/lit
|
||||||
|
@ -143,12 +143,12 @@ importers:
|
||||||
|
|
||||||
examples/framework-multiple:
|
examples/framework-multiple:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/preact': ^1.1.0
|
'@astrojs/preact': ^1.1.1
|
||||||
'@astrojs/react': ^1.1.4
|
'@astrojs/react': ^1.1.4
|
||||||
'@astrojs/solid-js': ^1.1.0
|
'@astrojs/solid-js': ^1.1.0
|
||||||
'@astrojs/svelte': ^1.0.0
|
'@astrojs/svelte': ^1.0.1
|
||||||
'@astrojs/vue': ^1.0.2
|
'@astrojs/vue': ^1.1.0
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
preact: ^10.7.3
|
preact: ^10.7.3
|
||||||
react: ^18.1.0
|
react: ^18.1.0
|
||||||
react-dom: ^18.1.0
|
react-dom: ^18.1.0
|
||||||
|
@ -171,8 +171,8 @@ importers:
|
||||||
|
|
||||||
examples/framework-preact:
|
examples/framework-preact:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/preact': ^1.1.0
|
'@astrojs/preact': ^1.1.1
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
preact: ^10.7.3
|
preact: ^10.7.3
|
||||||
dependencies:
|
dependencies:
|
||||||
'@astrojs/preact': link:../../packages/integrations/preact
|
'@astrojs/preact': link:../../packages/integrations/preact
|
||||||
|
@ -184,7 +184,7 @@ importers:
|
||||||
'@astrojs/react': ^1.1.4
|
'@astrojs/react': ^1.1.4
|
||||||
'@types/react': ^18.0.10
|
'@types/react': ^18.0.10
|
||||||
'@types/react-dom': ^18.0.5
|
'@types/react-dom': ^18.0.5
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
react: ^18.1.0
|
react: ^18.1.0
|
||||||
react-dom: ^18.1.0
|
react-dom: ^18.1.0
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -198,7 +198,7 @@ importers:
|
||||||
examples/framework-solid:
|
examples/framework-solid:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/solid-js': ^1.1.0
|
'@astrojs/solid-js': ^1.1.0
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
solid-js: ^1.4.3
|
solid-js: ^1.4.3
|
||||||
dependencies:
|
dependencies:
|
||||||
'@astrojs/solid-js': link:../../packages/integrations/solid
|
'@astrojs/solid-js': link:../../packages/integrations/solid
|
||||||
|
@ -207,8 +207,8 @@ importers:
|
||||||
|
|
||||||
examples/framework-svelte:
|
examples/framework-svelte:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/svelte': ^1.0.0
|
'@astrojs/svelte': ^1.0.1
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
svelte: ^3.48.0
|
svelte: ^3.48.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@astrojs/svelte': link:../../packages/integrations/svelte
|
'@astrojs/svelte': link:../../packages/integrations/svelte
|
||||||
|
@ -217,8 +217,8 @@ importers:
|
||||||
|
|
||||||
examples/framework-vue:
|
examples/framework-vue:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/vue': ^1.0.2
|
'@astrojs/vue': ^1.1.0
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
vue: ^3.2.37
|
vue: ^3.2.37
|
||||||
dependencies:
|
dependencies:
|
||||||
'@astrojs/vue': link:../../packages/integrations/vue
|
'@astrojs/vue': link:../../packages/integrations/vue
|
||||||
|
@ -227,27 +227,27 @@ importers:
|
||||||
|
|
||||||
examples/minimal:
|
examples/minimal:
|
||||||
specifiers:
|
specifiers:
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
dependencies:
|
dependencies:
|
||||||
astro: link:../../packages/astro
|
astro: link:../../packages/astro
|
||||||
|
|
||||||
examples/non-html-pages:
|
examples/non-html-pages:
|
||||||
specifiers:
|
specifiers:
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
dependencies:
|
dependencies:
|
||||||
astro: link:../../packages/astro
|
astro: link:../../packages/astro
|
||||||
|
|
||||||
examples/portfolio:
|
examples/portfolio:
|
||||||
specifiers:
|
specifiers:
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
dependencies:
|
dependencies:
|
||||||
astro: link:../../packages/astro
|
astro: link:../../packages/astro
|
||||||
|
|
||||||
examples/ssr:
|
examples/ssr:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/node': ^1.0.1
|
'@astrojs/node': ^1.1.0
|
||||||
'@astrojs/svelte': ^1.0.0
|
'@astrojs/svelte': ^1.0.1
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
concurrently: ^7.2.1
|
concurrently: ^7.2.1
|
||||||
lightcookie: ^1.0.25
|
lightcookie: ^1.0.25
|
||||||
svelte: ^3.48.0
|
svelte: ^3.48.0
|
||||||
|
@ -265,8 +265,8 @@ importers:
|
||||||
|
|
||||||
examples/with-markdown-plugins:
|
examples/with-markdown-plugins:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/markdown-remark': ^1.1.2
|
'@astrojs/markdown-remark': ^1.1.3
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
hast-util-select: 5.0.1
|
hast-util-select: 5.0.1
|
||||||
rehype-autolink-headings: ^6.1.1
|
rehype-autolink-headings: ^6.1.1
|
||||||
rehype-slug: ^5.0.1
|
rehype-slug: ^5.0.1
|
||||||
|
@ -283,15 +283,15 @@ importers:
|
||||||
|
|
||||||
examples/with-markdown-shiki:
|
examples/with-markdown-shiki:
|
||||||
specifiers:
|
specifiers:
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
dependencies:
|
dependencies:
|
||||||
astro: link:../../packages/astro
|
astro: link:../../packages/astro
|
||||||
|
|
||||||
examples/with-mdx:
|
examples/with-mdx:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/mdx': ^0.11.2
|
'@astrojs/mdx': ^0.11.3
|
||||||
'@astrojs/preact': ^1.1.0
|
'@astrojs/preact': ^1.1.1
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
preact: ^10.6.5
|
preact: ^10.6.5
|
||||||
dependencies:
|
dependencies:
|
||||||
'@astrojs/mdx': link:../../packages/integrations/mdx
|
'@astrojs/mdx': link:../../packages/integrations/mdx
|
||||||
|
@ -301,9 +301,9 @@ importers:
|
||||||
|
|
||||||
examples/with-nanostores:
|
examples/with-nanostores:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/preact': ^1.1.0
|
'@astrojs/preact': ^1.1.1
|
||||||
'@nanostores/preact': ^0.1.3
|
'@nanostores/preact': ^0.1.3
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
nanostores: ^0.5.12
|
nanostores: ^0.5.12
|
||||||
preact: ^10.7.3
|
preact: ^10.7.3
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -315,8 +315,8 @@ importers:
|
||||||
|
|
||||||
examples/with-tailwindcss:
|
examples/with-tailwindcss:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/tailwind': ^2.0.1
|
'@astrojs/tailwind': ^2.0.2
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
autoprefixer: ^10.4.7
|
autoprefixer: ^10.4.7
|
||||||
canvas-confetti: ^1.5.1
|
canvas-confetti: ^1.5.1
|
||||||
postcss: ^8.4.14
|
postcss: ^8.4.14
|
||||||
|
@ -331,7 +331,7 @@ importers:
|
||||||
|
|
||||||
examples/with-vite-plugin-pwa:
|
examples/with-vite-plugin-pwa:
|
||||||
specifiers:
|
specifiers:
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
vite-plugin-pwa: 0.11.11
|
vite-plugin-pwa: 0.11.11
|
||||||
workbox-window: ^6.5.3
|
workbox-window: ^6.5.3
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -341,7 +341,7 @@ importers:
|
||||||
|
|
||||||
examples/with-vitest:
|
examples/with-vitest:
|
||||||
specifiers:
|
specifiers:
|
||||||
astro: ^1.3.1
|
astro: ^1.4.0
|
||||||
vitest: ^0.20.3
|
vitest: ^0.20.3
|
||||||
dependencies:
|
dependencies:
|
||||||
astro: link:../../packages/astro
|
astro: link:../../packages/astro
|
||||||
|
@ -351,8 +351,8 @@ importers:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@astrojs/compiler': ^0.25.0
|
'@astrojs/compiler': ^0.25.0
|
||||||
'@astrojs/language-server': ^0.26.2
|
'@astrojs/language-server': ^0.26.2
|
||||||
'@astrojs/markdown-remark': ^1.1.2
|
'@astrojs/markdown-remark': ^1.1.3
|
||||||
'@astrojs/telemetry': ^1.0.0
|
'@astrojs/telemetry': ^1.0.1
|
||||||
'@astrojs/webapi': ^1.1.0
|
'@astrojs/webapi': ^1.1.0
|
||||||
'@babel/core': ^7.18.2
|
'@babel/core': ^7.18.2
|
||||||
'@babel/generator': ^7.18.2
|
'@babel/generator': ^7.18.2
|
||||||
|
|
Loading…
Add table
Reference in a new issue