From a22a601e9fc491ea55cdf58df99a84803efc5d50 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 13 Jul 2021 08:31:28 -0400 Subject: [PATCH] Version Packages (next) (#663) Co-authored-by: github-actions[bot] --- .changeset/pre.json | 10 ++++- examples/blog-multiple-authors/package.json | 2 +- examples/blog/package.json | 2 +- examples/docs/package.json | 2 +- examples/framework-lit/package.json | 2 +- examples/framework-multiple/package.json | 2 +- examples/framework-preact/package.json | 2 +- examples/framework-react/package.json | 2 +- examples/framework-svelte/package.json | 2 +- examples/framework-vue/package.json | 2 +- examples/portfolio/package.json | 2 +- examples/snowpack/package.json | 4 +- examples/starter/package.json | 2 +- examples/with-markdown-plugins/package.json | 2 +- examples/with-markdown/package.json | 2 +- examples/with-nanostores/package.json | 2 +- examples/with-tailwindcss/package.json | 2 +- packages/astro/CHANGELOG.md | 44 +++++++++++++++++++++ packages/astro/package.json | 2 +- tools/language-server/package.json | 2 +- www/package.json | 2 +- 21 files changed, 72 insertions(+), 22 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 81f1c55a8..b67845ec7 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -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" + ] } diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json index b239a9e4c..6b4e3422f 100644 --- a/examples/blog-multiple-authors/package.json +++ b/examples/blog-multiple-authors/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.17.2" + "astro": "^0.18.0-next.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/blog/package.json b/examples/blog/package.json index 365d640af..076cb5c43 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.17.2" + "astro": "^0.18.0-next.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/docs/package.json b/examples/docs/package.json index e2c1252d8..deb860b53 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.17.2" + "astro": "^0.18.0-next.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 5b88fd9d4..deb5df928 100644 --- a/examples/framework-lit/package.json +++ b/examples/framework-lit/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.17.2" + "astro": "^0.18.0-next.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index 89cb69a74..ba10e6bdb 100644 --- a/examples/framework-multiple/package.json +++ b/examples/framework-multiple/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.17.2" + "astro": "^0.18.0-next.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index 77eb1e875..49619ff3e 100644 --- a/examples/framework-preact/package.json +++ b/examples/framework-preact/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.17.2" + "astro": "^0.18.0-next.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index c443caf21..04c727981 100644 --- a/examples/framework-react/package.json +++ b/examples/framework-react/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.17.2" + "astro": "^0.18.0-next.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index e2e149a90..b3fbfc72e 100644 --- a/examples/framework-svelte/package.json +++ b/examples/framework-svelte/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.17.2" + "astro": "^0.18.0-next.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index 9bdacbc8b..4eb4635b8 100644 --- a/examples/framework-vue/package.json +++ b/examples/framework-vue/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.17.2" + "astro": "^0.18.0-next.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 89e0cb393..7c954a551 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.17.2" + "astro": "^0.18.0-next.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/snowpack/package.json b/examples/snowpack/package.json index d36abe5b5..668534aef 100644 --- a/examples/snowpack/package.json +++ b/examples/snowpack/package.json @@ -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", diff --git a/examples/starter/package.json b/examples/starter/package.json index e513bc5d9..b07deaf9b 100644 --- a/examples/starter/package.json +++ b/examples/starter/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.17.2" + "astro": "^0.18.0-next.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index d21922c47..a3157d13c 100644 --- a/examples/with-markdown-plugins/package.json +++ b/examples/with-markdown-plugins/package.json @@ -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", diff --git a/examples/with-markdown/package.json b/examples/with-markdown/package.json index cc925a789..ca123df08 100644 --- a/examples/with-markdown/package.json +++ b/examples/with-markdown/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.17.2" + "astro": "^0.18.0-next.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index ad1287718..bc0a39ef8 100644 --- a/examples/with-nanostores/package.json +++ b/examples/with-nanostores/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.17.2" + "astro": "^0.18.0-next.0" }, "dependencies": { "nanostores": "^0.3.3" diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index b7a0ffd36..848b9a0b8 100644 --- a/examples/with-tailwindcss/package.json +++ b/examples/with-tailwindcss/package.json @@ -8,7 +8,7 @@ }, "devDependencies": { "tailwindcss": "^2.1.2", - "astro": "^0.17.2" + "astro": "^0.18.0-next.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 63e19065f..3477c18b7 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -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'; + --- + + + ``` + + 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'; + ---(); + ``` + +### 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 diff --git a/packages/astro/package.json b/packages/astro/package.json index e0ef89326..3472783fa 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "0.17.2", + "version": "0.18.0-next.0", "author": "Skypack", "license": "MIT", "type": "module", diff --git a/tools/language-server/package.json b/tools/language-server/package.json index 3ae123c8f..fe05e8d8b 100644 --- a/tools/language-server/package.json +++ b/tools/language-server/package.json @@ -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" } } diff --git a/www/package.json b/www/package.json index 7b4ae0cb4..1f081db02 100644 --- a/www/package.json +++ b/www/package.json @@ -7,6 +7,6 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.17.2" + "astro": "^0.18.0-next.0" } }