From 986bed8ca4101ec1e56f89ce0cf136d01b6919ad Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 18 Aug 2021 09:24:09 -0700 Subject: [PATCH] Version Packages (#1150) Co-authored-by: github-actions[bot] --- .changeset/light-ads-grin.md | 21 ------- .changeset/pre.json | 51 --------------- .changeset/seven-singers-mate.md | 19 ------ .changeset/slow-planets-film.md | 34 ---------- docs/CHANGELOG.md | 2 + docs/package.json | 4 +- examples/blog-multiple-authors/package.json | 2 +- examples/blog/package.json | 2 +- examples/docs/package.json | 2 +- examples/framework-lit/package.json | 2 +- examples/framework-multiple/package.json | 2 +- examples/framework-preact/package.json | 2 +- examples/framework-react/package.json | 2 +- examples/framework-solid/package.json | 2 +- examples/framework-svelte/package.json | 2 +- examples/framework-vue/package.json | 2 +- examples/minimal/package.json | 2 +- examples/portfolio/package.json | 2 +- examples/snowpack/package.json | 2 +- examples/starter/package.json | 2 +- examples/with-markdown-plugins/package.json | 2 +- examples/with-markdown/package.json | 2 +- examples/with-nanostores/package.json | 2 +- examples/with-tailwindcss/package.json | 2 +- packages/astro-parser/CHANGELOG.md | 2 + packages/astro-parser/package.json | 2 +- packages/astro/CHANGELOG.md | 70 +++++++++++++++++++++ packages/astro/package.json | 4 +- tools/language-server/package.json | 2 +- www/package.json | 2 +- 30 files changed, 99 insertions(+), 150 deletions(-) delete mode 100644 .changeset/light-ads-grin.md delete mode 100644 .changeset/pre.json delete mode 100644 .changeset/seven-singers-mate.md delete mode 100644 .changeset/slow-planets-film.md diff --git a/.changeset/light-ads-grin.md b/.changeset/light-ads-grin.md deleted file mode 100644 index 0774ccb68..000000000 --- a/.changeset/light-ads-grin.md +++ /dev/null @@ -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 - - - - diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index 5ee5b5af7..000000000 --- a/.changeset/pre.json +++ /dev/null @@ -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" - ] -} diff --git a/.changeset/seven-singers-mate.md b/.changeset/seven-singers-mate.md deleted file mode 100644 index fff1417fb..000000000 --- a/.changeset/seven-singers-mate.md +++ /dev/null @@ -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 - -``` - -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 - -``` \ No newline at end of file diff --git a/.changeset/slow-planets-film.md b/.changeset/slow-planets-film.md deleted file mode 100644 index 2fd9e0a39..000000000 --- a/.changeset/slow-planets-film.md +++ /dev/null @@ -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 ``. 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. \ No newline at end of file diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 01aeffc67..433b54eeb 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,7 @@ # docs +## 0.0.5 + ## 0.0.5-next.0 ### Patch Changes diff --git a/docs/package.json b/docs/package.json index b91ca1042..a4f4fce20 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,6 +1,6 @@ { "name": "docs", - "version": "0.0.5-next.0", + "version": "0.0.5", "private": true, "scripts": { "start": "astro dev", @@ -15,7 +15,7 @@ }, "devDependencies": { "@snowpack/plugin-dotenv": "^2.1.0", - "astro": "^0.19.0-next.3", + "astro": "^0.19.0", "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 a2ca38bb7..2d2568ca6 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.3" + "astro": "^0.19.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/blog/package.json b/examples/blog/package.json index f54fe696d..4d09610e0 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.19.0-next.3" + "astro": "^0.19.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/docs/package.json b/examples/docs/package.json index 601bd600d..b353670d7 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.19.0-next.3" + "astro": "^0.19.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json index 26a275305..2ab2eb2d4 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.3" + "astro": "^0.19.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json index dfeefdde5..c9ed2f7a1 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.3" + "astro": "^0.19.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json index a282dde42..b291e0d99 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.3" + "astro": "^0.19.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json index fddc1357d..4a40bbc96 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.3" + "astro": "^0.19.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json index 4f60348bf..9e9fa80d7 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.3", + "astro": "^0.19.0", "@astrojs/renderer-solid": "0.1.0" }, "snowpack": { diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json index c73b485c7..4041cf47b 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.3" + "astro": "^0.19.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json index dd0fe0f4c..46e2eb766 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.3" + "astro": "^0.19.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/minimal/package.json b/examples/minimal/package.json index dfd088fd8..4ee13ffc6 100644 --- a/examples/minimal/package.json +++ b/examples/minimal/package.json @@ -7,6 +7,6 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.19.0-next.3" + "astro": "^0.19.0" } } diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json index 3873dd3c7..3a4e8ffef 100644 --- a/examples/portfolio/package.json +++ b/examples/portfolio/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.19.0-next.3" + "astro": "^0.19.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/snowpack/package.json b/examples/snowpack/package.json index c3b1a2865..2d6121895 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.3" + "astro": "^0.19.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/starter/package.json b/examples/starter/package.json index 6ba0fb054..1680f55a8 100644 --- a/examples/starter/package.json +++ b/examples/starter/package.json @@ -7,7 +7,7 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.19.0-next.3" + "astro": "^0.19.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json index 0a5c91e8b..520e7552d 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.3", + "astro": "^0.19.0", "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 aacdeab04..b220c8dc3 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.3" + "astro": "^0.19.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json index 3da89bc0d..83d7d4e76 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.3" + "astro": "^0.19.0" }, "dependencies": { "nanostores": "^0.3.3" diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json index a2a69f191..adc554c08 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.3" + "astro": "^0.19.0" }, "snowpack": { "workspaceRoot": "../.." diff --git a/packages/astro-parser/CHANGELOG.md b/packages/astro-parser/CHANGELOG.md index 9c2da8ef7..3da1b144d 100644 --- a/packages/astro-parser/CHANGELOG.md +++ b/packages/astro-parser/CHANGELOG.md @@ -1,5 +1,7 @@ # @astrojs/parser +## 0.18.6 + ## 0.18.5 ### Patch Changes diff --git a/packages/astro-parser/package.json b/packages/astro-parser/package.json index 6623a7497..fa617cad8 100644 --- a/packages/astro-parser/package.json +++ b/packages/astro-parser/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/parser", - "version": "0.18.5", + "version": "0.18.6", "author": "Skypack", "license": "MIT", "type": "commonjs", diff --git a/packages/astro/CHANGELOG.md b/packages/astro/CHANGELOG.md index 87f3a6a6c..f12430a6f 100644 --- a/packages/astro/CHANGELOG.md +++ b/packages/astro/CHANGELOG.md @@ -1,5 +1,75 @@ # 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 + + ``` + + 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 + + ``` + +- 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 ``. 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 + +- @astrojs/parser@0.18.6 + ## 0.19.0-next.3 ### Minor Changes diff --git a/packages/astro/package.json b/packages/astro/package.json index dc0028adb..aced2e9e8 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -1,6 +1,6 @@ { "name": "astro", - "version": "0.19.0-next.3", + "version": "0.19.0", "author": "Skypack", "license": "MIT", "type": "module", @@ -44,7 +44,7 @@ }, "dependencies": { "@astrojs/markdown-support": "0.2.3", - "@astrojs/parser": "0.18.5", + "@astrojs/parser": "0.18.6", "@astrojs/prism": "0.2.2", "@astrojs/renderer-preact": "0.2.1", "@astrojs/renderer-react": "0.2.0", diff --git a/tools/language-server/package.json b/tools/language-server/package.json index 2faf955a0..fd225bbab 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.3", + "astro": "0.19.0", "astro-scripts": "0.0.1" } } diff --git a/www/package.json b/www/package.json index 75429ecc6..e9b4459bb 100644 --- a/www/package.json +++ b/www/package.json @@ -7,6 +7,6 @@ "build": "astro build" }, "devDependencies": { - "astro": "^0.19.0-next.3" + "astro": "^0.19.0" } }