diff --git a/.changeset/pre.json b/.changeset/pre.json
index 8f8d4e1ce..2d2bf3680 100644
--- a/.changeset/pre.json
+++ b/.changeset/pre.json
@@ -37,11 +37,15 @@
"astro-scripts": "0.0.1",
"@astrojs/language-server": "0.6.0",
"astro-vscode": "0.6.1",
- "www": "1.1.0"
+ "www": "1.1.0",
+ "@example/minimal": "0.0.1"
},
"changesets": [
+ "calm-walls-unite",
"honest-rivers-call",
"light-ads-grin",
+ "seven-singers-mate",
+ "slow-planets-film",
"tidy-hotels-serve"
]
}
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index dc735847c..01aeffc67 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -1,5 +1,25 @@
# docs
+## 0.0.5-next.0
+
+### Patch Changes
+
+- 78b5bde1: Adds support for Astro.resolve
+
+ `Astro.resolve()` helps with creating URLs relative to the current Astro file, allowing you to reference files within your `src/` folder.
+
+ Astro _does not_ resolve relative links within HTML, such as images:
+
+ ```html
+
+ ```
+
+ The above will be sent to the browser as-is and the browser will resolve it relative to the current **page**. If you want it to be resolved relative to the .astro file you are working in, use `Astro.resolve`:
+
+ ```astro
+
+ ```
+
## 0.0.4
### Patch Changes
diff --git a/docs/package.json b/docs/package.json
index 9c372f085..b91ca1042 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -1,6 +1,6 @@
{
"name": "docs",
- "version": "0.0.4",
+ "version": "0.0.5-next.0",
"private": true,
"scripts": {
"start": "astro dev",
@@ -15,7 +15,7 @@
},
"devDependencies": {
"@snowpack/plugin-dotenv": "^2.1.0",
- "astro": "^0.19.0-next.0",
+ "astro": "^0.19.0-next.3",
"broken-link-checker": "^0.7.8",
"npm-run-all": "^4.1.5",
"pa11y-ci": "^2.4.2",
diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json
index d519e608a..a2ca38bb7 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.19.0-next.2"
+ "astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
diff --git a/examples/blog/package.json b/examples/blog/package.json
index bab568312..f54fe696d 100644
--- a/examples/blog/package.json
+++ b/examples/blog/package.json
@@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
- "astro": "^0.19.0-next.2"
+ "astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
diff --git a/examples/docs/package.json b/examples/docs/package.json
index b4911cd41..601bd600d 100644
--- a/examples/docs/package.json
+++ b/examples/docs/package.json
@@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
- "astro": "^0.19.0-next.2"
+ "astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json
index 11fe4b1f6..26a275305 100644
--- a/examples/framework-lit/package.json
+++ b/examples/framework-lit/package.json
@@ -8,7 +8,7 @@
},
"devDependencies": {
"@astrojs/renderer-lit": "^0.1.0",
- "astro": "^0.19.0-next.2"
+ "astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json
index ea6daf0de..dfeefdde5 100644
--- a/examples/framework-multiple/package.json
+++ b/examples/framework-multiple/package.json
@@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
- "astro": "^0.19.0-next.2"
+ "astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json
index 4f6969c1e..a282dde42 100644
--- a/examples/framework-preact/package.json
+++ b/examples/framework-preact/package.json
@@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
- "astro": "^0.19.0-next.2"
+ "astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json
index 8f10fa81a..fddc1357d 100644
--- a/examples/framework-react/package.json
+++ b/examples/framework-react/package.json
@@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
- "astro": "^0.19.0-next.2"
+ "astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json
index a3a11cc19..4f60348bf 100644
--- a/examples/framework-solid/package.json
+++ b/examples/framework-solid/package.json
@@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
- "astro": "^0.19.0-next.2",
+ "astro": "^0.19.0-next.3",
"@astrojs/renderer-solid": "0.1.0"
},
"snowpack": {
diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json
index 36764af9e..c73b485c7 100644
--- a/examples/framework-svelte/package.json
+++ b/examples/framework-svelte/package.json
@@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
- "astro": "^0.19.0-next.2"
+ "astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json
index 1aa9cd924..dd0fe0f4c 100644
--- a/examples/framework-vue/package.json
+++ b/examples/framework-vue/package.json
@@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
- "astro": "^0.19.0-next.2"
+ "astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json
index d49a0353f..3873dd3c7 100644
--- a/examples/portfolio/package.json
+++ b/examples/portfolio/package.json
@@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
- "astro": "^0.19.0-next.2"
+ "astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
diff --git a/examples/snowpack/package.json b/examples/snowpack/package.json
index fe6ef49e6..c3b1a2865 100644
--- a/examples/snowpack/package.json
+++ b/examples/snowpack/package.json
@@ -18,7 +18,7 @@
"devDependencies": {
"@contentful/rich-text-html-renderer": "^14.1.2",
"@contentful/rich-text-types": "^14.1.2",
- "astro": "^0.19.0-next.2"
+ "astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
diff --git a/examples/starter/package.json b/examples/starter/package.json
index f86b0ac74..6ba0fb054 100644
--- a/examples/starter/package.json
+++ b/examples/starter/package.json
@@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
- "astro": "^0.19.0-next.2"
+ "astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json
index 298d8b682..0a5c91e8b 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.19.0-next.2",
+ "astro": "^0.19.0-next.3",
"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 c3e91234e..aacdeab04 100644
--- a/examples/with-markdown/package.json
+++ b/examples/with-markdown/package.json
@@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
- "astro": "^0.19.0-next.2"
+ "astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json
index 2f88efe54..3da89bc0d 100644
--- a/examples/with-nanostores/package.json
+++ b/examples/with-nanostores/package.json
@@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
- "astro": "^0.19.0-next.2"
+ "astro": "^0.19.0-next.3"
},
"dependencies": {
"nanostores": "^0.3.3"
diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json
index 9d35d053c..a2a69f191 100644
--- a/examples/with-tailwindcss/package.json
+++ b/examples/with-tailwindcss/package.json
@@ -8,7 +8,7 @@
},
"devDependencies": {
"tailwindcss": "^2.1.2",
- "astro": "^0.19.0-next.2"
+ "astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md
index 699f736d0..87f3a6a6c 100644
--- a/packages/astro/CHANGELOG.md
+++ b/packages/astro/CHANGELOG.md
@@ -1,5 +1,59 @@
# astro
+## 0.19.0-next.3
+
+### Minor Changes
+
+- 1971ab3c: Adds support for client:only hydrator
+
+ The new `client:only` hydrator allows you to define a component that should be skipped during the build and only hydrated in the browser.
+
+ In most cases it is best to render placeholder content during the build, but that may not always be feasible if an NPM dependency attempts to use browser APIs as soon as is imported.
+
+ **Note** If more than one renderer is included in your Astro config, you need to include a hint to determine which renderer to use. Renderers will be matched to the name provided in your Astro config, similar to ``. Shorthand can be used for `@astrojs` renderers, i.e. `` will use `@astrojs/renderer-react`.
+
+ An example usage:
+
+ ```jsx
+ ---
+ import BarChart from '../components/BarChart.jsx';
+ ---
+
+
+ /**
+ * If multiple renderers are included in the Astro config,
+ * this will ensure that the component is hydrated with
+ * the Preact renderer.
+ */
+
+ /**
+ * If a custom renderer is required, use the same name
+ * provided in the Astro config.
+ */
+
+ ```
+
+ This allows you to import a chart component dependent on d3.js while making sure that the component isn't rendered at all at build time.
+
+### Patch Changes
+
+- 1f13e403: Fix CSS scoping issue
+- 78b5bde1: Adds support for Astro.resolve
+
+ `Astro.resolve()` helps with creating URLs relative to the current Astro file, allowing you to reference files within your `src/` folder.
+
+ Astro _does not_ resolve relative links within HTML, such as images:
+
+ ```html
+
+ ```
+
+ The above will be sent to the browser as-is and the browser will resolve it relative to the current **page**. If you want it to be resolved relative to the .astro file you are working in, use `Astro.resolve`:
+
+ ```astro
+
+ ```
+
## 0.19.0-next.2
### Patch Changes
diff --git a/packages/astro/package.json b/packages/astro/package.json
index 284a118ba..dc0028adb 100644
--- a/packages/astro/package.json
+++ b/packages/astro/package.json
@@ -1,6 +1,6 @@
{
"name": "astro",
- "version": "0.19.0-next.2",
+ "version": "0.19.0-next.3",
"author": "Skypack",
"license": "MIT",
"type": "module",
diff --git a/tools/language-server/package.json b/tools/language-server/package.json
index d9f3ef0b8..2faf955a0 100644
--- a/tools/language-server/package.json
+++ b/tools/language-server/package.json
@@ -29,7 +29,7 @@
"vscode-languageserver-textdocument": "^1.0.1"
},
"devDependencies": {
- "astro": "0.19.0-next.2",
+ "astro": "0.19.0-next.3",
"astro-scripts": "0.0.1"
}
}
diff --git a/www/package.json b/www/package.json
index 3b975ebb4..75429ecc6 100644
--- a/www/package.json
+++ b/www/package.json
@@ -7,6 +7,6 @@
"build": "astro build"
},
"devDependencies": {
- "astro": "^0.19.0-next.2"
+ "astro": "^0.19.0-next.3"
}
}