Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #285

Merged
merged 1 commit into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/brave-panthers-heal.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/cold-paws-remember.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fast-colts-shout.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/forty-rice-provide.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/khaki-avocados-lie.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/long-masks-itch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/nine-buttons-decide.md

This file was deleted.

27 changes: 0 additions & 27 deletions .changeset/pre.json

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/shaggy-countries-battle.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/smooth-toes-tan.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sour-students-remain.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/thirty-fans-know.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wise-olives-type.md

This file was deleted.

2 changes: 1 addition & 1 deletion examples/astro-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"astro-dev": "nodemon --delay 0.5 -w ../../packages/astro/dist -x '../../packages/astro/astro.mjs dev'"
},
"devDependencies": {
"astro": "0.12.0-next.1",
"astro": "0.12.0",
"nodemon": "^2.0.7"
},
"snowpack": {
Expand Down
2 changes: 1 addition & 1 deletion examples/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"astro-dev": "nodemon --delay 0.5 -w ../../packages/astro/dist -x '../../packages/astro/astro.mjs dev'"
},
"devDependencies": {
"astro": "^0.12.0-next.1",
"astro": "^0.12.0",
"nodemon": "^2.0.7"
},
"snowpack": {
Expand Down
2 changes: 1 addition & 1 deletion examples/doc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"astro-dev": "nodemon --delay 0.5 -w ../../packages/astro/dist -x '../../packages/astro/astro.mjs dev'"
},
"devDependencies": {
"astro": "^0.12.0-next.1",
"astro": "^0.12.0",
"nodemon": "^2.0.7"
},
"snowpack": {
Expand Down
2 changes: 1 addition & 1 deletion examples/kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"astro-dev": "nodemon --delay 0.5 -w ../../packages/astro/dist -x '../../packages/astro/astro.mjs dev'"
},
"devDependencies": {
"astro": "^0.12.0-next.1",
"astro": "^0.12.0",
"nodemon": "^2.0.7"
},
"snowpack": {
Expand Down
2 changes: 1 addition & 1 deletion examples/portfolio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"astro-dev": "nodemon --delay 0.5 -w ../../packages/astro/dist -x '../../packages/astro/astro.mjs dev'"
},
"devDependencies": {
"astro": "^0.12.0-next.1"
"astro": "^0.12.0"
},
"snowpack": {
"workspaceRoot": "../.."
Expand Down
4 changes: 2 additions & 2 deletions examples/snowpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lint": "prettier --check \"src/**/*.js\""
},
"dependencies": {
"astro": "^0.12.0-next.1",
"astro": "^0.12.0",
"date-fns": "^2.19.0",
"deepmerge": "^4.2.2",
"docsearch.js": "^2.6.3",
Expand All @@ -25,7 +25,7 @@
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.4",
"@contentful/rich-text-html-renderer": "^14.1.2",
"@contentful/rich-text-types": "^14.1.2",
"astro": "^0.12.0-next.1",
"astro": "^0.12.0",
"eleventy-plugin-nesting-toc": "^1.2.0",
"luxon": "^1.25.0",
"markdown-it": "^12.0.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"astro-dev": "nodemon --delay 0.5 -w ../../packages/astro/dist -x '../../packages/astro/astro.mjs dev'"
},
"devDependencies": {
"astro": "^0.12.0-next.1",
"astro": "^0.12.0",
"tailwindcss": "^2.1.2"
},
"snowpack": {
Expand Down
6 changes: 6 additions & 0 deletions packages/astro-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# astro-parser

## 0.12.0

### Patch Changes

- d2330a5: Improve error display for missing local files

### 0.12.0-next.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/astro-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astro-parser",
"version": "0.12.0-next.0",
"version": "0.12.0",
"author": "Skypack",
"license": "MIT",
"type": "commonjs",
Expand Down
43 changes: 43 additions & 0 deletions packages/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
# astro

## 0.12.0

### Minor Changes

- 8ff7998: Enable Snowpack's [built-in HMR support](https://www.snowpack.dev/concepts/hot-module-replacement) to enable seamless live updates while editing.
- ffb6380: Support for dynamic Markdown through the content attribute.
- 8ff7998: Enabled Snowpack's built-in HMR engine for Astro pages
- 643c880: **This is a breaking change**

Updated the rendering pipeline for `astro` to truly support any framework.

For the vast majority of use cases, `astro` should _just work_ out of the box. Astro now depends on `@astrojs/renderer-preact`, `@astrojs/renderer-react`, `@astrojs/renderer-svelte`, and `@astrojs/renderer-vue`, rather than these being built into the core library. This opens the door for anyone to contribute additional renderers for Astro to support their favorite framework, as well as the ability for users to control which renderers should be used.

**Features**

- Expose a pluggable interface for controlling server-side rendering and client-side hydration
- Allows components from different frameworks to be nested within each other.
> Note: `svelte` currently does support non-destructive hydration, so components from other frameworks cannot currently be nested inside of a Svelte component. See https://github.com/sveltejs/svelte/issues/4308.

**Breaking Changes**

- To improve compiler performance, improve framework support, and minimize JS payloads, any children passed to hydrated components are automatically wrapped with an `<astro-fragment>` element.

### Patch Changes

- 3d20623: Fixed a bug where Astro did not conform to JSX Expressions' [`&&`](https://reactjs.org/docs/conditional-rendering.html#inline-if-with-logical--operator) syntax.

Also fixed a bug where `<span data-attr="" />` would render as `<span data-attr="undefined" />`.

- 46871d2: Fixed bug where a class attribute was added to the doctype
- c9d833e: Fixed a number of bugs and re-enabled the `@astrojs/renderer-vue` renderer
- ce30bb0: Temporarily disable `@astrojs/renderer-vue` while we investigate an issue with installation
- addd67d: Rename `astroConfig` to `pages` in config. Docs updated.
- d2330a5: Improve error display for missing local files
- Updated dependencies [643c880]
- Updated dependencies [d2330a5]
- Updated dependencies [c9d833e]
- @astrojs/renderer-preact@0.1.0
- @astrojs/renderer-react@0.1.0
- @astrojs/renderer-svelte@0.1.0
- @astrojs/renderer-vue@0.1.0
- astro-parser@0.12.0

## 0.12.0-next.1

### Patch Changes
Expand Down
12 changes: 6 additions & 6 deletions packages/astro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "astro",
"version": "0.12.0-next.1",
"version": "0.12.0",
"author": "Skypack",
"license": "MIT",
"type": "module",
Expand Down Expand Up @@ -35,10 +35,10 @@
"test": "uvu test -i fixtures -i benchmark -i test-utils.js"
},
"dependencies": {
"@astrojs/renderer-preact": "0.1.0-next.0",
"@astrojs/renderer-react": "0.1.0-next.0",
"@astrojs/renderer-svelte": "0.1.0-next.0",
"@astrojs/renderer-vue": "0.1.0-next.0",
"@astrojs/renderer-preact": "0.1.0",
"@astrojs/renderer-react": "0.1.0",
"@astrojs/renderer-svelte": "0.1.0",
"@astrojs/renderer-vue": "0.1.0",
"@babel/code-frame": "^7.12.13",
"@babel/generator": "^7.13.9",
"@babel/parser": "^7.13.15",
Expand All @@ -48,7 +48,7 @@
"@snowpack/plugin-sass": "^1.4.0",
"acorn": "^7.4.0",
"astring": "^1.7.4",
"astro-parser": "0.12.0-next.0",
"astro-parser": "0.12.0",
"astro-prism": "0.0.2",
"autoprefixer": "^10.2.5",
"cheerio": "^1.0.0-rc.6",
Expand Down
6 changes: 6 additions & 0 deletions packages/renderers/renderer-preact/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @astrojs/renderer-preact

## 0.1.0

### Minor Changes

- 643c880: Initial release

## 0.1.0-next.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/renderers/renderer-preact/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@astrojs/renderer-preact",
"version": "0.1.0-next.0",
"version": "0.1.0",
"type": "module",
"exports": {
".": "./index.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/renderers/renderer-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @astrojs/renderer-react

## 0.1.0

### Minor Changes

- 643c880: Initial release

## 0.1.0-next.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/renderers/renderer-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@astrojs/renderer-react",
"version": "0.1.0-next.0",
"version": "0.1.0",
"type": "module",
"exports": {
".": "./index.js",
Expand Down
10 changes: 10 additions & 0 deletions packages/renderers/renderer-svelte/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @astrojs/renderer-svelte

## 0.1.0

### Minor Changes

- 643c880: Initial release

### Patch Changes

- c9d833e: Fixed a bug that was preventing SSR from working

## 0.1.0-next.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/renderers/renderer-svelte/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@astrojs/renderer-svelte",
"version": "0.1.0-next.0",
"version": "0.1.0",
"type": "module",
"exports": {
".": "./index.js",
Expand Down
6 changes: 6 additions & 0 deletions packages/renderers/renderer-vue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @astrojs/renderer-vue

## 0.1.0

### Minor Changes

- 643c880: Initial release

## 0.1.0-next.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/renderers/renderer-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@astrojs/renderer-vue",
"version": "0.1.0-next.0",
"version": "0.1.0",
"type": "module",
"exports": {
".": "./index.js",
Expand Down
2 changes: 1 addition & 1 deletion www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"build": "astro build ."
},
"devDependencies": {
"astro": "^0.12.0-next.1"
"astro": "^0.12.0"
}
}