Skip to content

Commit

Permalink
Merge branch 'main' into preact-prepass-render
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-lefebvre authored Jan 3, 2024
2 parents d7f6fd6 + da307e4 commit 87c265a
Show file tree
Hide file tree
Showing 102 changed files with 769 additions and 205 deletions.
8 changes: 8 additions & 0 deletions .changeset/breezy-eyes-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"astro": patch
---

Fixes back navigation to fragment links (e.g. `#about`) in Firefox when using view transitions

Co-authored-by: Florian Lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
5 changes: 5 additions & 0 deletions .changeset/bright-feet-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': minor
---

Adds a `'load'` prefetch strategy to prefetch links on page load
5 changes: 5 additions & 0 deletions .changeset/chatty-penguins-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-astro': minor
---

Improves the `create astro` CLI experience by asking all the questions upfront, then creating your new Astro project based on your responses.
5 changes: 5 additions & 0 deletions .changeset/chilly-students-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': minor
---

Adds "Missing ARIA roles check" and "Unsupported ARIA roles check" audit rules for the dev toolbar
5 changes: 5 additions & 0 deletions .changeset/cyan-seals-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro": minor
---

Allows passing a string to `--open` and `server.open` to open a specific URL on startup in development
5 changes: 5 additions & 0 deletions .changeset/four-moles-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': minor
---

Adds a helpful error for static sites when you use the `astro preview` command if you have not previously run `astro build`.
5 changes: 0 additions & 5 deletions .changeset/great-beans-check.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ninety-buses-occur.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/olive-sloths-brush.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/plenty-dingos-relax.md

This file was deleted.

21 changes: 21 additions & 0 deletions .changeset/poor-apes-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
'astro': minor
---

Adds an option for the Sharp image service to allow large images to be processed. Set `limitInputPixels: false` to bypass the default image size limit:

```js
// astro.config.mjs
import { defineConfig } from 'astro/config';

export default defineConfig({
image: {
service: {
entrypoint: 'astro/assets/services/sharp',
config: {
limitInputPixels: false,
},
},
},
});
```
5 changes: 0 additions & 5 deletions .changeset/quiet-weeks-teach.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silent-wasps-learn.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/six-bottles-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro": patch
---

Sets correct `process.env.NODE_ENV` default when using the JS API
5 changes: 0 additions & 5 deletions .changeset/sixty-bugs-unite.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/slow-kiwis-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"astro": patch
---

Adds a `CSSProperties` interface that allows extending the style attribute
5 changes: 0 additions & 5 deletions .changeset/small-snakes-build.md

This file was deleted.

10 changes: 10 additions & 0 deletions .changeset/stupid-peas-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'astro': minor
---

Extends the `client:visible` directive by adding an optional `rootMargin` property. This allows a component to be hydrated when it is close to the viewport instead of waiting for it to become visible.

```html
<!-- Load component when it's within 200px away from entering the viewport -->
<Component client:visible="200px" />
```
5 changes: 0 additions & 5 deletions .changeset/tall-mayflies-deliver.md

This file was deleted.

28 changes: 28 additions & 0 deletions .changeset/tiny-days-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
'astro': minor
---

Cookie encoding / decoding can now be customized

Adds new `encode` and `decode` functions to allow customizing how cookies are encoded and decoded. For example, you can bypass the default encoding via `encodeURIComponent` when adding a URL as part of a cookie:

```astro
---
import { encodeCookieValue } from "./cookies";
Astro.cookies.set('url', Astro.url.toString(), {
// Override the default encoding so that URI components are not encoded
encode: value => encodeCookieValue(value)
});
---
```

Later, you can decode the URL in the same way:

```astro
---
import { decodeCookieValue } from "./cookies";
const url = Astro.cookies.get('url', {
decode: value => decodeCookieValue(value)
});
---
```
5 changes: 5 additions & 0 deletions .changeset/two-hats-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Ignores `3g` in slow connection detection. Only `2g` and `slow-2g` are considered slow connections.
5 changes: 0 additions & 5 deletions .changeset/weak-oranges-relate.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/yellow-yaks-promise.md

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/check-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ jobs:
if: steps.blocked.outputs.result != 'true'
run: |
echo "Checking for changesets marked as minor"
echo '::set-output name=found::false'
echo "found=false" >> $GITHUB_OUTPUT
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
if grep -q "'astro': minor" "$file"; then
echo '::set-output name=found::true'
echo "found=true" >> $GITHUB_OUTPUT
echo "$file has a minor release tag"
fi
done
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ jobs:
if [[ $output = '{ "changesets": [], "releases": [] }' ]]
then
echo 'No changeset found'
echo "::set-output name=run_job::true"
echo "run_job=true" >> $GITHUB_OUTPUT
else
echo 'changes found, push to latest skipped'
echo "::set-output name=run_job::false"
echo "run_job=false" >> $GITHUB_OUTPUT
fi
update:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ jobs:
- name: Generate Notification
id: notification
if: steps.changesets.outputs.published == 'true'
run: message=$(node scripts/notify/index.js '${{ steps.changesets.outputs.publishedPackages }}') && echo ::set-output name=message::${message//$'\n'/'%0A'}
run: |
message=$(node scripts/notify/index.js '${{ steps.changesets.outputs.publishedPackages }}')
echo "message=${message//$'\n'/'%0A'}" >> $GITHUB_OUTPUT
- name: Discord Notification
if: steps.changesets.outputs.published == 'true'
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": "^4.0.8"
"astro": "^4.0.9"
}
}
2 changes: 1 addition & 1 deletion examples/blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@astrojs/mdx": "^2.0.3",
"@astrojs/rss": "^4.0.1",
"@astrojs/sitemap": "^3.0.4",
"astro": "^4.0.8"
"astro": "^4.0.9"
}
}
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": "^4.0.8"
"astro": "^4.0.9"
},
"peerDependencies": {
"astro": "^3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/framework-alpine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@astrojs/alpinejs": "^0.3.2",
"@types/alpinejs": "^3.13.5",
"alpinejs": "^3.13.3",
"astro": "^4.0.8"
"astro": "^4.0.9"
}
}
2 changes: 1 addition & 1 deletion examples/framework-lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/lit": "^4.0.1",
"@webcomponents/template-shadowroot": "^0.2.1",
"astro": "^4.0.8",
"astro": "^4.0.9",
"lit": "^2.8.0"
}
}
4 changes: 2 additions & 2 deletions examples/framework-multiple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"@astrojs/react": "^3.0.9",
"@astrojs/solid-js": "^3.0.3",
"@astrojs/svelte": "^5.0.3",
"@astrojs/vue": "^4.0.6",
"astro": "^4.0.8",
"@astrojs/vue": "^4.0.7",
"astro": "^4.0.9",
"preact": "^10.19.2",
"react": "^18.2.0",
"react-dom": "^18.2.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 @@ -13,7 +13,7 @@
"dependencies": {
"@astrojs/preact": "^3.0.2",
"@preact/signals": "^1.2.1",
"astro": "^4.0.8",
"astro": "^4.0.9",
"preact": "^10.19.2"
}
}
2 changes: 1 addition & 1 deletion examples/framework-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@astrojs/react": "^3.0.9",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"astro": "^4.0.8",
"astro": "^4.0.9",
"react": "^18.2.0",
"react-dom": "^18.2.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 @@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/solid-js": "^3.0.3",
"astro": "^4.0.8",
"astro": "^4.0.9",
"solid-js": "^1.8.5"
}
}
2 changes: 1 addition & 1 deletion examples/framework-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/svelte": "^5.0.3",
"astro": "^4.0.8",
"astro": "^4.0.9",
"svelte": "^4.2.5"
}
}
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": {
"@astrojs/vue": "^4.0.6",
"astro": "^4.0.8",
"@astrojs/vue": "^4.0.7",
"astro": "^4.0.9",
"vue": "^3.3.8"
}
}
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": "^7.0.3",
"astro": "^4.0.8"
"@astrojs/node": "^7.0.4",
"astro": "^4.0.9"
}
}
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": "^4.0.8"
"astro": "^4.0.9"
},
"peerDependencies": {
"astro": "^3.0.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"server": "node dist/server/entry.mjs"
},
"dependencies": {
"@astrojs/node": "^7.0.3",
"astro": "^4.0.8",
"@astrojs/node": "^7.0.4",
"astro": "^4.0.9",
"html-minifier": "^4.0.0"
},
"devDependencies": {
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": "^4.0.8"
"astro": "^4.0.9"
}
}
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": "^4.0.8"
"astro": "^4.0.9"
}
}
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": "^4.0.8"
"astro": "^4.0.9"
}
}
4 changes: 2 additions & 2 deletions examples/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"server": "node dist/server/entry.mjs"
},
"dependencies": {
"@astrojs/node": "^7.0.3",
"@astrojs/node": "^7.0.4",
"@astrojs/svelte": "^5.0.3",
"astro": "^4.0.8",
"astro": "^4.0.9",
"svelte": "^4.2.5"
}
}
2 changes: 1 addition & 1 deletion examples/starlog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^4.0.5",
"astro": "^4.0.9",
"sass": "^1.69.5",
"sharp": "^0.32.5"
}
Expand Down
Loading

0 comments on commit 87c265a

Please sign in to comment.