Skip to content

Commit

Permalink
Version Packages (next) (withastro#1129)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed Aug 18, 2021
1 parent 1aa2f92 commit 66a6c5b
Show file tree
Hide file tree
Showing 24 changed files with 101 additions and 23 deletions.
6 changes: 5 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
20 changes: 20 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "0.0.4",
"version": "0.0.5-next.0",
"private": true,
"scripts": {
"start": "astro dev",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/blog-multiple-authors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
Expand Down
2 changes: 1 addition & 1 deletion examples/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "../.."
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-multiple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
Expand Down
2 changes: 1 addition & 1 deletion examples/portfolio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
Expand Down
2 changes: 1 addition & 1 deletion examples/snowpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "../.."
Expand Down
2 changes: 1 addition & 1 deletion examples/starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
Expand Down
2 changes: 1 addition & 1 deletion examples/with-markdown-plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
Expand Down
2 changes: 1 addition & 1 deletion examples/with-nanostores/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"devDependencies": {
"tailwindcss": "^2.1.2",
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
},
"snowpack": {
"workspaceRoot": "../.."
Expand Down
54 changes: 54 additions & 0 deletions packages/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astro",
"version": "0.19.0-next.2",
"version": "0.19.0-next.3",
"author": "Skypack",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion tools/language-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"build": "astro build"
},
"devDependencies": {
"astro": "^0.19.0-next.2"
"astro": "^0.19.0-next.3"
}
}

0 comments on commit 66a6c5b

Please sign in to comment.