Skip to content

Commit

Permalink
Merge main into remove-start
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOtterlord committed Oct 11, 2024
2 parents fb19e87 + fd367b5 commit 0e3063e
Show file tree
Hide file tree
Showing 164 changed files with 160 additions and 88,377 deletions.
7 changes: 7 additions & 0 deletions .changeset/nervous-peaches-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'astro': patch
---

Ensure we target scripts for execution in the router

Using `document.scripts` is unsafe because if the application has a `name="scripts"` this will shadow the built-in `document.scripts`. Fix is to use `getElementsByTagName` to ensure we're only grabbing real scripts.
5 changes: 5 additions & 0 deletions .changeset/tidy-bugs-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-astro': minor
---

Ensures new line at the end of the generated `package.json` and `tsconfig.json` files
5 changes: 5 additions & 0 deletions .changeset/tough-snakes-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixes a bug where Astro Actions couldn't redirect to the correct pathname when there was a rewrite involved.
24 changes: 0 additions & 24 deletions examples/middleware/.gitignore

This file was deleted.

10 changes: 0 additions & 10 deletions examples/middleware/astro.config.mjs

This file was deleted.

21 changes: 0 additions & 21 deletions examples/middleware/package.json

This file was deleted.

65 changes: 0 additions & 65 deletions examples/middleware/src/components/Card.astro

This file was deleted.

9 changes: 0 additions & 9 deletions examples/middleware/src/env.d.ts

This file was deleted.

42 changes: 0 additions & 42 deletions examples/middleware/src/layouts/Layout.astro

This file was deleted.

83 changes: 0 additions & 83 deletions examples/middleware/src/middleware.ts

This file was deleted.

60 changes: 0 additions & 60 deletions examples/middleware/src/pages/admin.astro

This file was deleted.

21 changes: 0 additions & 21 deletions examples/middleware/src/pages/api/login.ts

This file was deleted.

5 changes: 0 additions & 5 deletions examples/middleware/src/pages/api/logout.ts

This file was deleted.

Loading

0 comments on commit 0e3063e

Please sign in to comment.