mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Version Packages (next) (#663)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
59f6792b00
commit
a22a601e9f
21 changed files with 72 additions and 22 deletions
|
@ -32,7 +32,13 @@
|
|||
"astro-scripts": "0.0.1",
|
||||
"@astrojs/language-server": "0.5.0",
|
||||
"astro-vscode": "0.5.0",
|
||||
"www": "1.1.0"
|
||||
"www": "1.1.0",
|
||||
"@example/framework-lit": "0.0.1",
|
||||
"@astrojs/renderer-lit": "0.1.0"
|
||||
},
|
||||
"changesets": []
|
||||
"changesets": [
|
||||
"fair-flowers-sleep",
|
||||
"tender-paws-smash",
|
||||
"wicked-gifts-cover"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"build": "astro build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^0.17.2"
|
||||
"astro": "^0.18.0-next.0"
|
||||
},
|
||||
"snowpack": {
|
||||
"workspaceRoot": "../.."
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"build": "astro build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^0.17.2"
|
||||
"astro": "^0.18.0-next.0"
|
||||
},
|
||||
"snowpack": {
|
||||
"workspaceRoot": "../.."
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"build": "astro build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^0.17.2"
|
||||
"astro": "^0.18.0-next.0"
|
||||
},
|
||||
"snowpack": {
|
||||
"workspaceRoot": "../.."
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"build": "astro build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^0.17.2"
|
||||
"astro": "^0.18.0-next.0"
|
||||
},
|
||||
"snowpack": {
|
||||
"workspaceRoot": "../.."
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"build": "astro build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^0.17.2"
|
||||
"astro": "^0.18.0-next.0"
|
||||
},
|
||||
"snowpack": {
|
||||
"workspaceRoot": "../.."
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"build": "astro build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^0.17.2"
|
||||
"astro": "^0.18.0-next.0"
|
||||
},
|
||||
"snowpack": {
|
||||
"workspaceRoot": "../.."
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"build": "astro build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^0.17.2"
|
||||
"astro": "^0.18.0-next.0"
|
||||
},
|
||||
"snowpack": {
|
||||
"workspaceRoot": "../.."
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"build": "astro build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^0.17.2"
|
||||
"astro": "^0.18.0-next.0"
|
||||
},
|
||||
"snowpack": {
|
||||
"workspaceRoot": "../.."
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"build": "astro build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^0.17.2"
|
||||
"astro": "^0.18.0-next.0"
|
||||
},
|
||||
"snowpack": {
|
||||
"workspaceRoot": "../.."
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"build": "astro build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^0.17.2"
|
||||
"astro": "^0.18.0-next.0"
|
||||
},
|
||||
"snowpack": {
|
||||
"workspaceRoot": "../.."
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
"lint": "prettier --check \"src/**/*.js\""
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^0.17.2",
|
||||
"astro": "^0.18.0-next.0",
|
||||
"date-fns": "^2.19.0",
|
||||
"deepmerge": "^4.2.2",
|
||||
"docsearch.js": "^2.6.3",
|
||||
|
@ -25,7 +25,7 @@
|
|||
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.4",
|
||||
"@contentful/rich-text-html-renderer": "^14.1.2",
|
||||
"@contentful/rich-text-types": "^14.1.2",
|
||||
"astro": "^0.17.2",
|
||||
"astro": "^0.18.0-next.0",
|
||||
"eleventy-plugin-nesting-toc": "^1.2.0",
|
||||
"luxon": "^1.25.0",
|
||||
"markdown-it": "^12.0.2",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"build": "astro build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^0.17.2"
|
||||
"astro": "^0.18.0-next.0"
|
||||
},
|
||||
"snowpack": {
|
||||
"workspaceRoot": "../.."
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"build": "astro build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^0.17.2",
|
||||
"astro": "^0.18.0-next.0",
|
||||
"rehype-add-classes": "^1.0.0",
|
||||
"rehype-toc": "^3.0.2",
|
||||
"remark-autolink-headings": "^6.0.1",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"build": "astro build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^0.17.2"
|
||||
"astro": "^0.18.0-next.0"
|
||||
},
|
||||
"snowpack": {
|
||||
"workspaceRoot": "../.."
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"build": "astro build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^0.17.2"
|
||||
"astro": "^0.18.0-next.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"nanostores": "^0.3.3"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"tailwindcss": "^2.1.2",
|
||||
"astro": "^0.17.2"
|
||||
"astro": "^0.18.0-next.0"
|
||||
},
|
||||
"snowpack": {
|
||||
"workspaceRoot": "../.."
|
||||
|
|
|
@ -1,5 +1,49 @@
|
|||
# astro
|
||||
|
||||
## 0.18.0-next.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 0340b0f: Adds support for the client:media hydrator
|
||||
|
||||
The new `client:media` hydrator allows you to define a component that should only be loaded when a media query matches. An example usage:
|
||||
|
||||
```jsx
|
||||
---
|
||||
import Sidebar from '../components/Sidebar.jsx';
|
||||
---
|
||||
|
||||
<Sidebar client:media="(max-width: 700px)" />
|
||||
```
|
||||
|
||||
This allows you to define components which, for example, only run on mobile devices. A common example is a slide-in sidebar that is needed to add navigation to a mobile app, but is never displayed in desktop view.
|
||||
|
||||
Since Astro components can have expressions, you can move common media queries to a module for sharing. For example here are defining:
|
||||
|
||||
**media.js**
|
||||
|
||||
```js
|
||||
export const MOBILE = '(max-width: 700px)';
|
||||
```
|
||||
|
||||
And then you can reference this in your page:
|
||||
|
||||
**index.astro**
|
||||
|
||||
```jsx
|
||||
import Sidebar from '../components/Sidebar.jsx';
|
||||
import { MOBILE } from '../media.js';
|
||||
---(<Sidebar client:media={MOBILE} />);
|
||||
```
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 8f4562a: Improve slot support, adding support for named slots and fallback content within `slot` elements.
|
||||
|
||||
See the new [Slots documentation](https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md#slots) for more information.
|
||||
|
||||
- 9859f53: Correcting typo in ReadMe
|
||||
|
||||
## 0.17.2
|
||||
|
||||
### Patch Changes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "astro",
|
||||
"version": "0.17.2",
|
||||
"version": "0.18.0-next.0",
|
||||
"author": "Skypack",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
"vscode-languageserver-textdocument": "^1.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^0.17.0",
|
||||
"astro": "^0.18.0-next.0",
|
||||
"astro-scripts": "0.0.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
"build": "astro build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"astro": "^0.17.2"
|
||||
"astro": "^0.18.0-next.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue