Version Packages (#1150)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2021-08-18 09:24:09 -07:00 committed by GitHub
parent 68f46c827e
commit 986bed8ca4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 99 additions and 150 deletions

View file

@ -1,21 +0,0 @@
---
'astro': minor
---
**[BREAKING]** Replace the Collections API with new file-based routing.
This is a breaking change which impacts collections, pagination, and RSS support.
Runtime warnings have been added to help you migrate old code to the new API.
If you have trouble upgrading, reach out on https://astro.build/chat
This change was made due to confusion around our Collection API, which many users found difficult to use. The new file-based routing approach should feel more familiar to anyone who has used Next.js or SvelteKit.
Documentation added:
- https://astro-docs-git-main-pikapkg.vercel.app/core-concepts/routing
- https://astro-docs-git-main-pikapkg.vercel.app/guides/pagination
- https://astro-docs-git-main-pikapkg.vercel.app/guides/rss
- https://astro-docs-git-main-pikapkg.vercel.app/reference/api-reference#getstaticpaths

View file

@ -1,51 +0,0 @@
{
"mode": "exit",
"tag": "next",
"initialVersions": {
"docs": "0.0.4",
"@example/blog": "0.0.1",
"@example/blog-multiple-authors": "0.0.1",
"@example/docs": "0.0.1",
"@example/framework-lit": "0.0.1",
"@example/framework-multiple": "0.0.1",
"@example/framework-preact": "0.0.1",
"@example/framework-react": "0.0.1",
"@example/framework-solid": "0.0.1",
"@example/framework-svelte": "0.0.1",
"@example/framework-vue": "0.0.1",
"@example/portfolio": "0.0.1",
"@example/snowpack": "0.0.1",
"@example/starter": "0.0.1",
"@example/with-markdown": "0.0.1",
"@example/with-markdown-plugins": "0.0.2",
"@example/with-nanostores": "0.0.1",
"@example/with-tailwindcss": "0.0.1",
"astro": "0.18.10",
"@astrojs/parser": "0.18.5",
"@astrojs/prism": "0.2.2",
"@astrojs/astro-test-builtins-polyfillnode": "1.2.0",
"@astrojs/astro-test-builtins-dep": "0.0.1",
"@astrojs/test-custom-element-renderer": "0.0.1",
"create-astro": "0.6.0",
"@astrojs/markdown-support": "0.2.3",
"@astrojs/renderer-lit": "0.1.0",
"@astrojs/renderer-preact": "0.2.1",
"@astrojs/renderer-react": "0.2.0",
"@astrojs/renderer-solid": "0.1.0",
"@astrojs/renderer-svelte": "0.1.1",
"@astrojs/renderer-vue": "0.1.7",
"astro-scripts": "0.0.1",
"@astrojs/language-server": "0.6.0",
"astro-vscode": "0.6.1",
"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,19 +0,0 @@
---
'astro': minor
---
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')} />
```

View file

@ -1,34 +0,0 @@
---
'astro': minor
---
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.

View file

@ -1,5 +1,7 @@
# docs # docs
## 0.0.5
## 0.0.5-next.0 ## 0.0.5-next.0
### Patch Changes ### Patch Changes

View file

@ -1,6 +1,6 @@
{ {
"name": "docs", "name": "docs",
"version": "0.0.5-next.0", "version": "0.0.5",
"private": true, "private": true,
"scripts": { "scripts": {
"start": "astro dev", "start": "astro dev",
@ -15,7 +15,7 @@
}, },
"devDependencies": { "devDependencies": {
"@snowpack/plugin-dotenv": "^2.1.0", "@snowpack/plugin-dotenv": "^2.1.0",
"astro": "^0.19.0-next.3", "astro": "^0.19.0",
"broken-link-checker": "^0.7.8", "broken-link-checker": "^0.7.8",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"pa11y-ci": "^2.4.2", "pa11y-ci": "^2.4.2",

View file

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

View file

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

View file

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

View file

@ -8,7 +8,7 @@
}, },
"devDependencies": { "devDependencies": {
"@astrojs/renderer-lit": "^0.1.0", "@astrojs/renderer-lit": "^0.1.0",
"astro": "^0.19.0-next.3" "astro": "^0.19.0"
}, },
"snowpack": { "snowpack": {
"workspaceRoot": "../.." "workspaceRoot": "../.."

View file

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

View file

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

View file

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

View file

@ -7,7 +7,7 @@
"build": "astro build" "build": "astro build"
}, },
"devDependencies": { "devDependencies": {
"astro": "^0.19.0-next.3", "astro": "^0.19.0",
"@astrojs/renderer-solid": "0.1.0" "@astrojs/renderer-solid": "0.1.0"
}, },
"snowpack": { "snowpack": {

View file

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

View file

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

View file

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

View file

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

View file

@ -18,7 +18,7 @@
"devDependencies": { "devDependencies": {
"@contentful/rich-text-html-renderer": "^14.1.2", "@contentful/rich-text-html-renderer": "^14.1.2",
"@contentful/rich-text-types": "^14.1.2", "@contentful/rich-text-types": "^14.1.2",
"astro": "^0.19.0-next.3" "astro": "^0.19.0"
}, },
"snowpack": { "snowpack": {
"workspaceRoot": "../.." "workspaceRoot": "../.."

View file

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

View file

@ -7,7 +7,7 @@
"build": "astro build" "build": "astro build"
}, },
"devDependencies": { "devDependencies": {
"astro": "^0.19.0-next.3", "astro": "^0.19.0",
"rehype-add-classes": "^1.0.0", "rehype-add-classes": "^1.0.0",
"rehype-toc": "^3.0.2", "rehype-toc": "^3.0.2",
"remark-autolink-headings": "^6.0.1", "remark-autolink-headings": "^6.0.1",

View file

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

View file

@ -7,7 +7,7 @@
"build": "astro build" "build": "astro build"
}, },
"devDependencies": { "devDependencies": {
"astro": "^0.19.0-next.3" "astro": "^0.19.0"
}, },
"dependencies": { "dependencies": {
"nanostores": "^0.3.3" "nanostores": "^0.3.3"

View file

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

View file

@ -1,5 +1,7 @@
# @astrojs/parser # @astrojs/parser
## 0.18.6
## 0.18.5 ## 0.18.5
### Patch Changes ### Patch Changes

View file

@ -1,6 +1,6 @@
{ {
"name": "@astrojs/parser", "name": "@astrojs/parser",
"version": "0.18.5", "version": "0.18.6",
"author": "Skypack", "author": "Skypack",
"license": "MIT", "license": "MIT",
"type": "commonjs", "type": "commonjs",

View file

@ -1,5 +1,75 @@
# astro # astro
## 0.19.0
### Minor Changes
- 239065e2: **[BREAKING]** Replace the Collections API with new file-based routing.
This is a breaking change which impacts collections, pagination, and RSS support.
Runtime warnings have been added to help you migrate old code to the new API.
If you have trouble upgrading, reach out on https://astro.build/chat
This change was made due to confusion around our Collection API, which many users found difficult to use. The new file-based routing approach should feel more familiar to anyone who has used Next.js or SvelteKit.
Documentation added:
- https://astro-docs-git-main-pikapkg.vercel.app/core-concepts/routing
- https://astro-docs-git-main-pikapkg.vercel.app/guides/pagination
- https://astro-docs-git-main-pikapkg.vercel.app/guides/rss
- https://astro-docs-git-main-pikapkg.vercel.app/reference/api-reference#getstaticpaths
- 239065e2: 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')} />
```
- 239065e2: 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
- @astrojs/parser@0.18.6
## 0.19.0-next.3 ## 0.19.0-next.3
### Minor Changes ### Minor Changes

View file

@ -1,6 +1,6 @@
{ {
"name": "astro", "name": "astro",
"version": "0.19.0-next.3", "version": "0.19.0",
"author": "Skypack", "author": "Skypack",
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
@ -44,7 +44,7 @@
}, },
"dependencies": { "dependencies": {
"@astrojs/markdown-support": "0.2.3", "@astrojs/markdown-support": "0.2.3",
"@astrojs/parser": "0.18.5", "@astrojs/parser": "0.18.6",
"@astrojs/prism": "0.2.2", "@astrojs/prism": "0.2.2",
"@astrojs/renderer-preact": "0.2.1", "@astrojs/renderer-preact": "0.2.1",
"@astrojs/renderer-react": "0.2.0", "@astrojs/renderer-react": "0.2.0",

View file

@ -29,7 +29,7 @@
"vscode-languageserver-textdocument": "^1.0.1" "vscode-languageserver-textdocument": "^1.0.1"
}, },
"devDependencies": { "devDependencies": {
"astro": "0.19.0-next.3", "astro": "0.19.0",
"astro-scripts": "0.0.1" "astro-scripts": "0.0.1"
} }
} }

View file

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