Skip to content

Commit

Permalink
Merge branch 'main' into feat/slots
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored Jun 23, 2022
2 parents 41344a4 + 19cd962 commit b6fdaba
Show file tree
Hide file tree
Showing 54 changed files with 754 additions and 140 deletions.
23 changes: 0 additions & 23 deletions .changeset/neat-seas-peel.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spotty-rockets-grow.md

This file was deleted.

2 changes: 1 addition & 1 deletion examples/basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"preview": "astro preview"
},
"devDependencies": {
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
}
}
2 changes: 1 addition & 1 deletion examples/blog-multiple-authors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"@astrojs/preact": "^0.1.3",
"astro": "^1.0.0-beta.52",
"astro": "^1.0.0-beta.53",
"sass": "^1.52.2"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"@astrojs/preact": "^0.1.3",
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
},
"dependencies": {
"preact": "^10.7.3"
Expand Down
2 changes: 1 addition & 1 deletion examples/component/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
},
"devDependencies": {
"@example/my-component": "workspace:*",
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
}
}
2 changes: 1 addition & 1 deletion examples/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"serve": "astro --root demo preview"
},
"devDependencies": {
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
}
}
2 changes: 1 addition & 1 deletion examples/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"devDependencies": {
"@astrojs/preact": "^0.1.3",
"@astrojs/react": "^0.1.3",
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
}
}
2 changes: 1 addition & 1 deletion examples/env-vars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"preview": "astro preview"
},
"devDependencies": {
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
}
}
2 changes: 1 addition & 1 deletion examples/framework-alpine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "astro preview"
},
"devDependencies": {
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
},
"dependencies": {
"alpinejs": "^3.10.2"
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 @@ -10,7 +10,7 @@
},
"devDependencies": {
"@astrojs/lit": "^0.2.0",
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
},
"dependencies": {
"@webcomponents/template-shadowroot": "^0.1.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/framework-multiple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"@astrojs/preact": "^0.1.3",
"@astrojs/react": "^0.1.3",
"@astrojs/solid-js": "^0.1.4",
"@astrojs/svelte": "^0.1.4",
"@astrojs/svelte": "^0.1.5",
"@astrojs/vue": "^0.1.5",
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
},
"dependencies": {
"@webcomponents/template-shadowroot": "^0.1.0",
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 @@ -10,7 +10,7 @@
},
"devDependencies": {
"@astrojs/preact": "^0.1.3",
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
},
"dependencies": {
"preact": "^10.7.3"
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 @@ -12,7 +12,7 @@
"@astrojs/react": "^0.1.3",
"@types/react": "^18.0.10",
"@types/react-dom": "^18.0.5",
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
},
"dependencies": {
"react": "^18.1.0",
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 @@ -10,7 +10,7 @@
},
"devDependencies": {
"@astrojs/solid-js": "^0.1.4",
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
},
"dependencies": {
"solid-js": "^1.4.3"
Expand Down
4 changes: 2 additions & 2 deletions examples/framework-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"preview": "astro preview"
},
"devDependencies": {
"@astrojs/svelte": "^0.1.4",
"astro": "^1.0.0-beta.52"
"@astrojs/svelte": "^0.1.5",
"astro": "^1.0.0-beta.53"
},
"dependencies": {
"svelte": "^3.48.0"
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 @@ -10,7 +10,7 @@
},
"devDependencies": {
"@astrojs/vue": "^0.1.5",
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
},
"dependencies": {
"vue": "^3.2.36"
Expand Down
4 changes: 2 additions & 2 deletions examples/integrations-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
},
"devDependencies": {
"@astrojs/lit": "^0.2.0",
"@astrojs/partytown": "^0.1.4",
"@astrojs/partytown": "^0.1.5",
"@astrojs/react": "^0.1.3",
"@astrojs/sitemap": "^0.2.1",
"@astrojs/solid-js": "0.1.4",
"@astrojs/tailwind": "^0.2.1",
"@astrojs/turbolinks": "^0.1.3",
"astro": "^1.0.0-beta.52",
"astro": "^1.0.0-beta.53",
"solid-js": "^1.4.3"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"preview": "astro preview"
},
"devDependencies": {
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
}
}
2 changes: 1 addition & 1 deletion examples/non-html-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"preview": "astro preview"
},
"devDependencies": {
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
}
}
2 changes: 1 addition & 1 deletion examples/portfolio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"@astrojs/preact": "^0.1.3",
"astro": "^1.0.0-beta.52",
"astro": "^1.0.0-beta.53",
"sass": "^1.52.2"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions examples/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
},
"devDependencies": {
"@astrojs/node": "^0.1.2",
"@astrojs/svelte": "^0.1.4",
"astro": "^1.0.0-beta.52",
"@astrojs/svelte": "^0.1.5",
"astro": "^1.0.0-beta.53",
"concurrently": "^7.2.1",
"lightcookie": "^1.0.25",
"unocss": "^0.15.6",
Expand Down
2 changes: 1 addition & 1 deletion examples/starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"preview": "astro preview"
},
"devDependencies": {
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
}
}
2 changes: 1 addition & 1 deletion examples/subpath/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"@astrojs/react": "^0.1.3",
"astro": "^1.0.0-beta.52",
"astro": "^1.0.0-beta.53",
"sass": "^1.52.2"
},
"dependencies": {
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 @@ -10,7 +10,7 @@
},
"devDependencies": {
"@astrojs/markdown-remark": "^0.11.3",
"astro": "^1.0.0-beta.52",
"astro": "^1.0.0-beta.53",
"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 @@ -10,6 +10,6 @@
},
"devDependencies": {
"@astrojs/markdown-remark": "^0.11.3",
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
}
}
4 changes: 2 additions & 2 deletions examples/with-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"@astrojs/markdown-remark": "^0.11.3",
"@astrojs/preact": "^0.1.3",
"@astrojs/react": "^0.1.3",
"@astrojs/svelte": "^0.1.4",
"@astrojs/svelte": "^0.1.5",
"@astrojs/vue": "^0.1.5",
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
},
"dependencies": {
"preact": "^10.7.3",
Expand Down
4 changes: 2 additions & 2 deletions examples/with-nanostores/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"@astrojs/preact": "^0.1.3",
"@astrojs/react": "^0.1.3",
"@astrojs/solid-js": "^0.1.4",
"@astrojs/svelte": "^0.1.4",
"@astrojs/svelte": "^0.1.5",
"@astrojs/vue": "^0.1.5",
"astro": "^1.0.0-beta.52"
"astro": "^1.0.0-beta.53"
}
}
2 changes: 1 addition & 1 deletion examples/with-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"@astrojs/tailwind": "^0.2.1",
"astro": "^1.0.0-beta.52",
"astro": "^1.0.0-beta.53",
"autoprefixer": "^10.4.7",
"canvas-confetti": "^1.5.1",
"postcss": "^8.4.14",
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 @@ -9,7 +9,7 @@
"preview": "astro preview"
},
"devDependencies": {
"astro": "^1.0.0-beta.52",
"astro": "^1.0.0-beta.53",
"vite-plugin-pwa": "0.11.11",
"workbox-window": "^6.5.3"
}
Expand Down
30 changes: 30 additions & 0 deletions packages/astro/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# astro

## 1.0.0-beta.53

### Patch Changes

- [#3685](https://github.com/withastro/astro/pull/3685) [`3d554fdb`](https://github.com/withastro/astro/commit/3d554fdbfb49d85d2945b7775825f7d9ace959ce) Thanks [@bholmesdev](https://github.com/bholmesdev)! - Fix PostCSS config not applied to Svelte component by default

* [#3665](https://github.com/withastro/astro/pull/3665) [`9a813268`](https://github.com/withastro/astro/commit/9a813268db2e3a7ed5644739b7a12e83e5d239b2) Thanks [@matthewp](https://github.com/matthewp)! - Allow TypeScript inside script tags

This makes it so that you can use TypeScript inside of script tags like so:

```html
<script>
interface Person {
name: string;
}
const person: Person = {
name: 'Astro',
};
console.log(person);
</script>
```

Note that the the VSCode extension does not currently support this, however.

- [#3633](https://github.com/withastro/astro/pull/3633) [`921d9a27`](https://github.com/withastro/astro/commit/921d9a27e243c27e40e429a0a5c7d562d7b9633f) Thanks [@FredKSchott](https://github.com/FredKSchott)! - Fix a bug with `astro add react` adding a too-complex semver to your package.json

* [#3676](https://github.com/withastro/astro/pull/3676) [`85c33751`](https://github.com/withastro/astro/commit/85c33751c20002e29bd646325a6e39f83cbb1f4d) Thanks [@matthewp](https://github.com/matthewp)! - Allow specifying entryFileNames for client JS

## 1.0.0-beta.52

### 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": "1.0.0-beta.52",
"version": "1.0.0-beta.53",
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
"type": "module",
"author": "withastro",
Expand Down
4 changes: 3 additions & 1 deletion packages/astro/src/core/add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,9 @@ async function getInstallIntegrationsCommand({
.map<[string, string | null][]>((i) => [[i.packageName, null], ...i.dependencies])
.flat(1)
.filter((dep, i, arr) => arr.findIndex((d) => d[0] === dep[0]) === i)
.map(([name, version]) => (version === null ? name : `${name}@${version}`))
.map(([name, version]) =>
version === null ? name : `${name}@${version.split(/\s*\|\|\s*/).pop()}`
)
.sort();

switch (pm.name) {
Expand Down
3 changes: 3 additions & 0 deletions packages/astro/test/fixtures/postcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@
"astro": "workspace:*",
"autoprefixer": "^10.4.7",
"postcss": "^8.4.14"
},
"devDependencies": {
"postcss-preset-env": "^7.7.1"
}
}
15 changes: 10 additions & 5 deletions packages/astro/test/fixtures/postcss/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
const postcssPresetEnv = require('postcss-preset-env')
const autoPrefixer = require('autoprefixer')

module.exports = {
plugins: {
autoprefixer: {
plugins: [
// included to ensure public/ CSS resources are NOT transformed
autoPrefixer({
overrideBrowserslist: ['> 0.1%', 'IE 11'] // enforce `appearance: none;` is prefixed with -webkit and -moz
}
}
};
}),
postcssPresetEnv({ features: { 'nesting-rules': true } }),
]
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<style>
.astro-component {
appearance: none;
&.nested {
color: red;
}
}
</style>

<div class="astro-component">
Astro
<div class="astro-component nested">
Astro
</div>
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.solid {
appearance: none;
&.nested {
color: red;
}
}
Loading

0 comments on commit b6fdaba

Please sign in to comment.