Skip to content

Commit

Permalink
Merge branch 'main' into pr/5478
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Jan 31, 2023
2 parents 8f75400 + 66677de commit cccf936
Show file tree
Hide file tree
Showing 169 changed files with 2,451 additions and 1,107 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilly-ads-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/image': patch
---

`getPicture()` return object with the correct image type
5 changes: 5 additions & 0 deletions .changeset/clever-panthers-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Error overlay will now show the error's `cause` if available.
5 changes: 0 additions & 5 deletions .changeset/fluffy-cherries-shake.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fresh-eels-speak.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/heavy-meals-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/image': minor
---

Allow images from outside srcDir
5 changes: 0 additions & 5 deletions .changeset/serious-turtles-explode.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/strong-hotels-sort.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ten-icons-raise.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tidy-ties-repeat.md

This file was deleted.

15 changes: 15 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,21 @@ There are 3 contexts in which code executes:

Understanding in which environment code runs, and at which stage in the process, can help clarify thinking about what Astro is doing. It also helps with debugging, for instance, if you’re working within `src/core/`, you know that your code isn’t executing within Vite, so you don’t have to debug Vite’s setup. But you will have to debug vite inside `runtime/server/`.

## Branches

### `main`

Active Astro development happens on the [`main`](https://github.com/withastro/astro/tree/main) branch. `main` always reflects the latest code.

> **Note:**
> During certain periods, we put `main` into a [**prerelease**](https://github.com/changesets/changesets/blob/main/docs/prereleases.md#prereleases) state. Read more about [Releasing Astro](#releasing-astro).
### `latest`

The **stable** release of Astro can always be found on the [`latest`](https://github.com/withastro/astro/tree/latest) branch. `latest` is automatically updated every time we publish a stable (not prerelease) version of Astro.

By default, `create-astro` and [astro.new](https://astro.new) point to this branch.

## Releasing Astro

_Note: Only [core maintainers (L3+)](https://github.com/withastro/.github/blob/main/GOVERNANCE.md#level-3-l3---core-maintainer) can release new versions of Astro._
Expand Down
2 changes: 1 addition & 1 deletion examples/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1"
"astro": "^2.0.4"
}
}
6 changes: 3 additions & 3 deletions examples/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1",
"@astrojs/mdx": "^0.15.0",
"astro": "^2.0.4",
"@astrojs/mdx": "^0.15.2",
"@astrojs/rss": "^2.1.0",
"@astrojs/sitemap": "^1.0.0"
"@astrojs/sitemap": "^1.0.1"
}
}
2 changes: 1 addition & 1 deletion examples/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^2.0.1"
"astro": "^2.0.4"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/deno/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1"
"astro": "^2.0.4"
},
"devDependencies": {
"@astrojs/deno": "^4.0.0"
Expand Down
5 changes: 2 additions & 3 deletions examples/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ npm create astro@latest -- --template docs
![docs](https://user-images.githubusercontent.com/4677417/186189283-0831b9ab-d6b9-485d-8955-3057e532ab31.png)


## Features

-**Full Markdown support**
Expand Down Expand Up @@ -104,10 +103,10 @@ Note the top-level `en` key: This is needed for multi-language support. You can

The Astro docs template supports multiple languages out of the box. The default theme only shows `en` documentation, but you can enable multi-language support features by adding a second language to your project.

To add a new language to your project, you'll want to extend the current `src/pages/[lang]/...` layout:
To add a new language to your project, you'll want to extend the current `src/content/docs/[lang]/...` layout:

```diff
📂 src/pages
📂 src/content/docs
┣ 📂 en
┃ ┣ 📜 page-1.md
┃ ┣ 📜 page-2.md
Expand Down
6 changes: 3 additions & 3 deletions examples/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1",
"astro": "^2.0.4",
"preact": "^10.7.3",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"@astrojs/react": "^2.0.0",
"@astrojs/preact": "^2.0.0",
"@astrojs/react": "^2.0.2",
"@astrojs/preact": "^2.0.1",
"@algolia/client-search": "^4.13.1",
"@docsearch/css": "^3.1.0",
"@docsearch/react": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/docs/src/layouts/MainLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type Props = CollectionEntry<'docs'>['data'] & {
const { headings, ...data } = Astro.props;
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const currentPage = Astro.url.pathname;
const currentFile = `src/pages${currentPage.replace(/\/$/, '')}.md`;
const currentFile = `src/content/docs${currentPage.replace(/\/$/, '')}.md`;
const githubEditUrl = `${GITHUB_EDIT_URL}/${currentFile}`;
---

Expand Down
4 changes: 2 additions & 2 deletions examples/framework-alpine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1",
"astro": "^2.0.4",
"alpinejs": "^3.10.2",
"@astrojs/alpinejs": "^0.1.2",
"@astrojs/alpinejs": "^0.1.3",
"@types/alpinejs": "^3.7.0"
}
}
4 changes: 2 additions & 2 deletions examples/framework-lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1",
"astro": "^2.0.4",
"lit": "^2.2.5",
"@astrojs/lit": "^1.1.0",
"@astrojs/lit": "^1.1.1",
"@webcomponents/template-shadowroot": "^0.1.0"
}
}
12 changes: 6 additions & 6 deletions examples/framework-multiple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1",
"astro": "^2.0.4",
"preact": "^10.7.3",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"solid-js": "^1.4.3",
"svelte": "^3.48.0",
"vue": "^3.2.37",
"@astrojs/preact": "^2.0.0",
"@astrojs/react": "^2.0.0",
"@astrojs/solid-js": "^2.0.0",
"@astrojs/svelte": "^2.0.0",
"@astrojs/vue": "^2.0.0"
"@astrojs/preact": "^2.0.1",
"@astrojs/react": "^2.0.2",
"@astrojs/solid-js": "^2.0.1",
"@astrojs/svelte": "^2.0.1",
"@astrojs/vue": "^2.0.1"
}
}
4 changes: 2 additions & 2 deletions examples/framework-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1",
"astro": "^2.0.4",
"preact": "^10.7.3",
"@astrojs/preact": "^2.0.0",
"@astrojs/preact": "^2.0.1",
"@preact/signals": "^1.1.0"
}
}
4 changes: 2 additions & 2 deletions examples/framework-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1",
"astro": "^2.0.4",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"@astrojs/react": "^2.0.0",
"@astrojs/react": "^2.0.2",
"@types/react": "^18.0.10",
"@types/react-dom": "^18.0.5"
}
Expand Down
4 changes: 2 additions & 2 deletions examples/framework-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1",
"astro": "^2.0.4",
"solid-js": "^1.4.3",
"@astrojs/solid-js": "^2.0.0"
"@astrojs/solid-js": "^2.0.1"
}
}
4 changes: 2 additions & 2 deletions examples/framework-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"svelte": "^3.48.0",
"@astrojs/svelte": "^2.0.0",
"astro": "^2.0.1"
"@astrojs/svelte": "^2.0.1",
"astro": "^2.0.4"
}
}
4 changes: 2 additions & 2 deletions examples/framework-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1",
"astro": "^2.0.4",
"vue": "^3.2.37",
"@astrojs/vue": "^2.0.0"
"@astrojs/vue": "^2.0.1"
}
}
4 changes: 2 additions & 2 deletions examples/hackernews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/node": "^5.0.0",
"astro": "^2.0.1"
"@astrojs/node": "^5.0.1",
"astro": "^2.0.4"
}
}
2 changes: 1 addition & 1 deletion examples/integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"scripts": {},
"devDependencies": {
"astro": "^2.0.1"
"astro": "^2.0.4"
},
"peerDependencies": {
"astro": "^2.0.0-beta.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1"
"astro": "^2.0.4"
}
}
2 changes: 1 addition & 1 deletion examples/non-html-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1"
"astro": "^2.0.4"
}
}
2 changes: 1 addition & 1 deletion examples/portfolio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1"
"astro": "^2.0.4"
}
}
6 changes: 3 additions & 3 deletions examples/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"server": "node dist/server/entry.mjs"
},
"dependencies": {
"astro": "^2.0.1",
"astro": "^2.0.4",
"svelte": "^3.48.0",
"@astrojs/svelte": "^2.0.0",
"@astrojs/node": "^5.0.0",
"@astrojs/svelte": "^2.0.1",
"@astrojs/node": "^5.0.1",
"concurrently": "^7.2.1",
"unocss": "^0.15.6",
"vite-imagetools": "^4.0.4"
Expand Down
4 changes: 2 additions & 2 deletions examples/with-markdown-plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1",
"@astrojs/markdown-remark": "^2.0.0",
"astro": "^2.0.4",
"@astrojs/markdown-remark": "^2.0.1",
"hast-util-select": "5.0.1",
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-markdown-shiki/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1"
"astro": "^2.0.4"
}
}
6 changes: 3 additions & 3 deletions examples/with-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1",
"astro": "^2.0.4",
"preact": "^10.6.5",
"@astrojs/preact": "^2.0.0",
"@astrojs/mdx": "^0.15.0"
"@astrojs/preact": "^2.0.1",
"@astrojs/mdx": "^0.15.2"
}
}
4 changes: 2 additions & 2 deletions examples/with-nanostores/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1",
"astro": "^2.0.4",
"preact": "^10.7.3",
"@astrojs/preact": "^2.0.0",
"@astrojs/preact": "^2.0.1",
"nanostores": "^0.5.12",
"@nanostores/preact": "^0.1.3"
}
Expand Down
6 changes: 3 additions & 3 deletions examples/with-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^0.15.0",
"@astrojs/tailwind": "^3.0.0",
"@astrojs/mdx": "^0.15.2",
"@astrojs/tailwind": "^3.0.1",
"@types/canvas-confetti": "^1.4.3",
"astro": "^2.0.1",
"astro": "^2.0.4",
"autoprefixer": "^10.4.7",
"canvas-confetti": "^1.5.1",
"postcss": "^8.4.14",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-tailwindcss/src/components/Button.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
---

<button
class="py-2 px-4 bg-purple-500 text-white font-semibold rounded-lg shadow-md hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-400 focus:ring-opacity-75"
class="appearance-none py-2 px-4 bg-purple-500 text-white font-semibold rounded-lg shadow-md hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-400 focus:ring-opacity-75"
>
<slot />
</button>
Expand Down
2 changes: 1 addition & 1 deletion examples/with-vite-plugin-pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.1",
"astro": "^2.0.4",
"vite-plugin-pwa": "0.11.11",
"workbox-window": "^6.5.3"
}
Expand Down
Loading

0 comments on commit cccf936

Please sign in to comment.