Version Packages (next) (#1129)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2021-08-17 22:34:47 -07:00 committed by GitHub
parent 1aa2f92bbc
commit 66a6c5b06f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 101 additions and 23 deletions

View file

@ -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"
]
}

View file

@ -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
<img src="../images/penguin.png" />
```
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
<img src={Astro.resolve('../images/penguin.png')} />
```
## 0.0.4
### Patch Changes

View file

@ -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",

View file

@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."

View file

@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."

View file

@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."

View file

@ -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": "../.."

View file

@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."

View file

@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."

View file

@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."

View file

@ -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": {

View file

@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."

View file

@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."

View file

@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."

View file

@ -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": "../.."

View file

@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."

View file

@ -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",

View file

@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."

View file

@ -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"

View file

@ -8,7 +8,7 @@
},
"devDependencies": {
"tailwindcss": "^2.1.2",
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."

View file

@ -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 `<MyComponent client:only="@astrojs/renderer-react" />`. Shorthand can be used for `@astrojs` renderers, i.e. `<MyComponent client:only="react" />` will use `@astrojs/renderer-react`.
An example usage:
```jsx
---
import BarChart from '../components/BarChart.jsx';
---
<BarChart client:only />
/**
* If multiple renderers are included in the Astro config,
* this will ensure that the component is hydrated with
* the Preact renderer.
*/
<BarChart client:only="preact" />
/**
* If a custom renderer is required, use the same name
* provided in the Astro config.
*/
<BarChart client:only="my-custom-renderer" />
```
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
<img src="../images/penguin.png" />
```
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
<img src={Astro.resolve('../images/penguin.png')} />
```
## 0.19.0-next.2
### Patch Changes

View file

@ -1,6 +1,6 @@
{
"name": "astro",
"version": "0.19.0-next.2",
"version": "0.19.0-next.3",
"author": "Skypack",
"license": "MIT",
"type": "module",

View file

@ -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"
}
}

View file

@ -7,6 +7,6 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
}
}