Houston (Bot)
16a41528e4
[ci] release ( #7737 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-21 16:37:17 -04:00
matthewp
c65da5f1cd
[ci] format
2023-07-21 20:29:15 +00:00
Matthew Phillips
274e675328
Prevent FOUC with production links in ViewTransitions ( #7756 )
...
* Prevent FOUC with production links in ViewTransitions
* Adding changeset
* Move up so it works with fallback too
2023-07-21 16:26:42 -04:00
matthewp
f79ab0bdb3
[ci] format
2023-07-21 20:13:33 +00:00
Matthew Phillips
c2d6cfd0c2
Prevent animations with prefers-reduced-motion ( #7757 )
...
* Prevent animations with prefers-reduced-motion
* Also disable animations in the fallback
* Change select to target elements
2023-07-21 16:10:48 -04:00
Erika
471324b0a3
test: add setup for Vercel / Netlify tests ( #7716 )
...
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-21 21:24:36 +02:00
matthewp
e5e5cc8e70
[ci] format
2023-07-21 14:43:17 +00:00
Matthew Phillips
201d32dcfc
Handle back navigation from page without VT ( #7750 )
...
* Handle back navigation from page without VT
* Adding a changeset
2023-07-21 10:40:36 -04:00
Sarah Rainsberger
29162c99fb
[docs] @astrojs/sitemap README update ( #7748 )
2023-07-21 09:59:23 -03:00
Bjorn Lu
bad65877a5
Refactor Astro page rendering ( #7730 )
2023-07-21 18:14:55 +08:00
Anders Kaseorg
e528526289
Fix parsing image assets from a Markdown line along with other markup ( #7742 )
...
Every regex that tries to match a substring with .* or .+ is
guaranteed to be wrong. In this case, it was giving incorrect matches
straddling multiple quoted attributes:
<img __ASTRO_IMAGE_="../assets/image.png"> and <a href="link">link</a>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Fixes #7741 .
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2023-07-21 07:59:10 +02:00
Sarah Rainsberger
379981efdc
[docs] update to view transitions in config ref ( #7738 )
2023-07-20 18:04:33 -03:00
natemoo-re
0c16a8da8d
[ci] format
2023-07-20 18:42:00 +00:00
Arsh
35a0b6c8a9
fix(vercel): Switch to node 18 when local version is not supported ( #7718 )
...
* fix(vercel): switch to node 18 when needed
* fix types, reword
* reorder sentences
* add changeset
* fix(vercel): switch to node 18 when needed
* add referencce to vercel documentation
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-07-20 13:39:46 -05:00
Houston (Bot)
92382ea1d4
[ci] release ( #7714 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-20 12:09:38 -04:00
matthewp
b4090f8526
[ci] format
2023-07-20 16:06:34 +00:00
ottomated
3a6e42e190
Determine hoisted scripts via AST analysis ( #7707 )
...
* initial hacky
* plural importNames and exportNames
* extract into function
* Add test
* fix issue with another component importing our tracked component
* fix dynamic imports
* changeset
* add mdx to checklist
* mdx exports Content
* remove unused var
* Update packages/astro/test/hoisted-imports.test.js
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Update packages/astro/src/core/build/plugins/plugin-analyzer.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Update packages/astro/src/core/build/plugins/plugin-analyzer.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Update real-drinks-melt.md
* Update .changeset/real-drinks-melt.md
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
* Update .changeset/real-drinks-melt.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/real-drinks-melt.md
* Update .changeset/real-drinks-melt.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-20 12:03:40 -04:00
ematipico
7a26a52e19
[ci] format
2023-07-20 14:47:18 +00:00
Emanuele Stoppa
c102c4a054
refactor: move dev rendering logic inside vite plugin ( #7728 )
2023-07-20 15:45:10 +01:00
Bjorn Lu
d8bae784b4
Fix organize-imports-cli with satisfies operator ( #7727 )
2023-07-20 20:47:36 +08:00
ematipico
47c698b08a
[ci] format
2023-07-20 08:07:29 +00:00
Emanuele Stoppa
3043f98723
refactor: unify renderPage
and callEndpoint
in one single function ( #7703 )
...
* refactor: unify `renderPage` and `callEndpoint` in one single function
* chore: lint
* don't return the response
* chore: update error
* rebase
2023-07-20 09:04:53 +01:00
matthewp
30cdc28057
[ci] format
2023-07-20 00:04:07 +00:00
Matthew Phillips
464eb4f825
Import missing TransitionAnimationPair ( #7726 )
...
* Import missing TransitionAnimationPair
* Don't use satisfies
2023-07-19 20:01:15 -04:00
natemoo-re
5cc54bbd5a
[ci] format
2023-07-19 22:13:44 +00:00
Nate Moore
b806452653
chore: fix ts error ( #7723 ) ( #7724 )
2023-07-19 17:11:31 -05:00
Nate Moore
77ffcc8f8b
fix(sitemap): ensure nested 404 and 500 pages are excluded ( #7722 )
2023-07-19 17:05:44 -05:00
natemoo-re
7a3f4efcd9
[ci] format
2023-07-19 22:01:10 +00:00
Nate Moore
e15f1e1cc9
chore: fix ts error ( #7723 )
2023-07-19 16:59:01 -05:00
matthewp
7a6ca236e8
[ci] format
2023-07-19 19:21:13 +00:00
Matthew Phillips
6a12fcecb0
Initial View Transition Support ( #7511 )
...
* Basic support
* Add the fade transition
* Move CSS into a separate file
* Add transition name
* View Transitions changeset
* Replace the boolean transition with 'morph'
* Update to use `transition:animate`
* Use head propagation
* Move CSS into a separate file
* Add builtin animations and namespaced module
* Misquote
* Remove unused code
* Add automatic prefetching to the View Transitions router
* Use a data attribute for back nav animations
* Use [data-astro-transition]
* Add view transitions to examples
* Wait on the HTML response before calling startViewTransition
* Updated stuff
* Update the compiler
* Fix
* Fallback support
* Properly do fallback
* Simplify the selectors
* Put viewTransitions support behind a flag
* Upgrade the compiler
* Remove unused import
* Add tests
* Use an explicit import instead of types
* Fix case where the click comes from within nested content
* Fix linting
* Add a test for the back button
* Prevent glitch in fallback
* Do not combine selectors
* Fallback to MPA nav if there is an issue fetching
* Fallback swap if there are no animations
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/components/ViewTransitions.astro
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Update packages/astro/components/ViewTransitions.astro
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Update the changeset
* PR review changes
* Update more based on review comments.
* Update the updateDOM default
* Pass in transitions options to the compiler
* Update broken tests
* Update .changeset/silly-garlics-live.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/silly-garlics-live.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/silly-garlics-live.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/silly-garlics-live.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* h2 -> h4
* Upgrade to stable compiler
* Remove exp redirects from sitemap
* Remove usage from examples
* Remove example updates
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-07-19 15:18:41 -04:00
natemoo-re
eafe996b60
[ci] format
2023-07-19 14:36:35 +00:00
Nate Moore
d088351f54
Warn when getStaticPaths
exists without a prerender
statement ( #7713 )
...
* wip: warning on getStaticPaths without prerender
* refactor: move getStaticPaths warning to scanner plugin
* chore: do not add to test fixture
* chore: remove legacy getStaticPaths validation
* refactor: update warning message
* chore: typo
* chore: add changeset
* chore: remove unused variables
* refactor: make settings optional
* chore: fix lint
* chore: update message to include reason
2023-07-19 09:33:45 -05:00
matthewp
4eba967d2b
[ci] format
2023-07-19 13:34:14 +00:00
Matthew Phillips
ec745d689a
Remove experimental flag for redirects config ( #7686 )
...
* Remove experimental flag for redirects config
* Remove experimental from tests
* Remove experimental CLI flag
* Add changeset
* Removing redirect test that is no longer relevant
* Remove experimental label"
* Update .changeset/dry-beers-grow.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/dry-beers-grow.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Remove old function
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-19 09:31:07 -04:00
bluwy
659b2b034c
[ci] format
2023-07-19 07:55:56 +00:00
Bjorn Lu
d78db48ac4
Fix absolute path handling for config validation in windows ( #7704 )
2023-07-19 15:53:24 +08:00
Bjorn Lu
019b797bf8
Fix redirects map object-form value validation ( #7701 )
2023-07-19 15:52:50 +08:00
Houston (Bot)
de65ad25ea
[ci] release ( #7699 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-19 09:32:32 +02:00
Nate Moore
72bbfac976
Fix 404 status code in dev server ( #7711 )
...
* chore: update tests
* chore: update tests
* fix(#7516 ): set response status to 404 when rendering 404 page
* chore: add changeset
* chore: update dev container test
* refactor: improve status handling logic
* chore: remove unused import
2023-07-18 16:40:09 -05:00
Nate Moore
d401866f93
Fix 404 handling in dev server ( #7693 )
...
* fix(#7301 ): load 404 page in dev server when returning 404 status code
* chore: add changeset
* fix(404): expose exact pathname/URL when rendering 404
* test: add custom-404-server test
2023-07-18 12:09:18 -05:00
Princesseuh
a8cbd7c71a
[ci] format
2023-07-18 16:06:17 +00:00
Erika
4f6b5ae2ba
Fix/markdoc assets ( #7706 )
2023-07-18 18:03:46 +02:00
Chris Swithinbank
a77741d25e
Add changeset & docs for next @astrojs/netlify
release ( #7700 )
...
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-18 16:57:19 +01:00
ematipico
b3b9fc52b3
[ci] format
2023-07-18 09:39:12 +00:00
Nate Moore
06c255716a
Fix routing behavior when getStaticPaths params include hyphens ( #7694 )
2023-07-18 10:36:43 +01:00
Houston (Bot)
d80e5fcf8e
[ci] release ( #7681 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-18 16:14:39 +08:00
Bjorn Lu
d9f4126645
Revert netlify edge middleware docs ( #7698 )
2023-07-18 16:07:11 +08:00
Princesseuh
1c85b39d38
[ci] format
2023-07-18 00:20:47 +00:00
Erika
f14e48098a
nit: use node:
prefix everywhere ( #7692 )
...
* nit: use `node:` prefix everywhere
* nit: fs/promises too
* test: workaround issue in node builtin detection
2023-07-18 02:17:59 +02:00
Erika
cc0f81c040
fix(assets): Remove Node deps from index of assets ( #7691 )
2023-07-17 22:32:23 +02:00
natemoo-re
b0d3652c59
[ci] format
2023-07-17 20:32:14 +00:00
Nate Moore
dd931a7806
Sitemap should only include page
routes ( #7656 )
...
* fix(#7080 ): sitemap should only add trailing slash to pages
* fix(sitemap): only include pages in sitemap
* chore: add test
* chore: remove unused import
* docs: update readme
2023-07-17 15:29:56 -05:00
ematipico
5e26faa864
[ci] format
2023-07-17 16:25:39 +00:00
Emanuele Stoppa
ed20154a5c
refactor: move page rendering in one single function ( #7684 )
2023-07-17 17:22:53 +01:00
ematipico
7832c4a850
[ci] format
2023-07-17 14:56:14 +00:00
Emanuele Stoppa
4c93bd8154
feat(@astrojs/netlify): edge middleware support ( #7632 )
...
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-17 15:53:10 +01:00
Emanuele Stoppa
cc8e9de881
fix: throw an error for incorrect configuration ( #7680 )
...
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-07-17 14:35:29 +01:00
matthewp
c84e8b8e3e
[ci] format
2023-07-17 13:15:32 +00:00
Alexander Niebuhr
6ec040761e
fix(@astrojs/cloudflare): SSR split file renaming misses ts endpoints ( #7568 )
...
* fix bug, where ts files where not renamed correctly
* try to make rename logic more robust
* remove log
* update tests
* update changeset
* cleanup
* fix lint
* debug windows tests
* fix windows support
* fix cloudflare directory code
* use EventContext type
* improve for loop
* change changeset
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* change changeset
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-07-17 09:12:41 -04:00
Bjorn Lu
1f0d0b5863
Fix vercel build error when passing includeFiles
( #7677 )
2023-07-17 20:57:27 +08:00
Bjorn Lu
1a6f833c40
Fix cloudflare runtime env var handling ( #7679 )
...
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-07-17 20:57:08 +08:00
Bjorn Lu
d69fe3a8d2
Handle flaky tests ( #7651 )
2023-07-17 20:30:02 +08:00
Houston (Bot)
dc7ab8af65
[ci] release ( #7658 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-14 16:16:31 -05:00
natemoo-re
ea910de61f
[ci] format
2023-07-14 21:03:24 +00:00
Nate Moore
57a5eff5ce
fix( #7654 ): exclude @vercel/nft ( #7659 )
2023-07-14 16:01:06 -05:00
natemoo-re
4f9032be7c
[ci] format
2023-07-14 19:32:59 +00:00
Nate Moore
c258492b72
Sitemap should only exclude 404 and 500 pages ( #7655 )
...
* fix(#7472 ): sitemap should only exclude 404 and 500 pages
* chore: refactor logic, add test
2023-07-14 14:30:33 -05:00
Matthew Phillips
795d598aeb
Revert "Clarify SSR limitations of sitemaps of dynamic routes ( #7625 )" ( #7653 )
...
This reverts commit 9352ac65f4
.
2023-07-14 11:47:24 -04:00
ematipico
6d6e0a80cd
[ci] format
2023-07-14 15:00:51 +00:00
Emanuele Stoppa
1568cb4324
refactor: use SSR manifest in dev ( #7587 )
2023-07-14 15:58:35 +01:00
matthewp
798442427d
[ci] format
2023-07-14 14:58:18 +00:00
paulrudy
9352ac65f4
Clarify SSR limitations of sitemaps of dynamic routes ( #7625 )
...
While this README doesn't distinguish between SSR mode and static mode (and SSR mode was recently made available for the sitemaps integration), there is one important difference: Dynamic routes that are server-rendered can't be used to create sitemap entries.
This note makes that clear.
2023-07-14 10:56:03 -04:00
Houston (Bot)
1f2d52bd7b
[ci] release ( #7645 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-14 10:44:25 -04:00
Erika
b3b640435b
nit: export props has been unnecessary.. forever ( #7646 )
2023-07-14 09:57:06 -04:00
Erika
7a6b48a1a4
fix(squoosh): Fix wrong file path in rotation check ( #7650 )
2023-07-14 15:52:14 +02:00
Sarah Rainsberger
de5fbd3e4b
[docs] fix link in image integration README ( #7649 )
2023-07-14 08:05:24 -03:00
Bjorn Lu
bde08c4b14
Refactor merge server config ( #7639 )
2023-07-14 16:13:58 +08:00
matthewp
4ce2ba972a
[ci] format
2023-07-13 20:12:07 +00:00
Matthew Phillips
213e10991a
Fixes for redirects config ( #7644 )
...
* Update redirects static generation based on recs
Got some great recommendations on how to handle our HTML written
redirect code based on SEO best practices.
See https://github.com/withastro/roadmap/issues/466#issuecomment-1595940678
This implements them all.
* Fix for using the root path / as a redirect
Fixes https://github.com/withastro/astro/issues/7478
* Fix static redirects prefer over dynamic page
Fixes https://github.com/withastro/astro/issues/7581
2023-07-13 16:09:44 -04:00
Erika
af5827d4f7
fix(assets): Fix images not following EXIF rotation ( #7637 )
2023-07-13 21:38:57 +02:00
Princesseuh
c90de81373
[ci] format
2023-07-13 19:25:34 +00:00
Alvin Bryan
4b82e55cf1
Allow SVGs when using Assets ( #7643 )
...
* Allow SVG files when using Assets
* Fixed TypeScript error
* fix: some small nits and add a test
* chore: changeset
---------
Co-authored-by: Princesseuh <princssdev@gmail.com>
2023-07-13 21:22:31 +02:00
Bjorn Lu
bdde6b9f6c
Convert CLI top-level imports as dynamic imports ( #7635 )
2023-07-13 22:34:59 +08:00
Houston (Bot)
db4095d3f5
[ci] release ( #7624 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-13 21:43:11 +08:00
sarah11918
14d4ce9246
[ci] format
2023-07-13 11:19:28 +00:00
Sarah Rainsberger
9b2629d7d4
[docs] update image integration README ( #7633 )
...
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-13 08:17:10 -03:00
bluwy
cd48c0764c
[ci] format
2023-07-13 08:41:54 +00:00
Bjorn Lu
bbab86db73
Move all CLI commands to their subfolders ( #7634 )
2023-07-13 16:39:34 +08:00
ematipico
d780508a42
[ci] format
2023-07-13 08:24:04 +00:00
Emanuele Stoppa
f21357b69d
feat(@astrojs/netlify): add build.split
support ( #7615 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-07-13 09:21:33 +01:00
Yan Thomas
c38b0c49da
Fix build.excludeMiddleware
default type docs ( #7630 )
2023-07-12 14:48:38 +01:00
Bjorn Lu
0952a815b7
Refactor config loading ( #7622 )
2023-07-12 19:54:14 +08:00
Josh Goldberg ✨
df49bbe7f1
feat: bumped typescript-eslint to v6 stable 🥳 ( #7626 )
2023-07-12 15:11:46 +08:00
Emanuele Stoppa
2ddf342626
fix(@astrojs/vercel): improve file detection ( #7621 )
2023-07-12 08:06:08 +01:00
matthewp
84e573a781
[ci] format
2023-07-11 18:24:09 +00:00
Matthew Phillips
86e19c7cf8
Fixes Response not being cloneable by middleware ( #7623 )
2023-07-11 14:21:05 -04:00
Houston (Bot)
f0666b92c3
[ci] release ( #7594 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-11 22:27:04 +08:00
Chris Swithinbank
831dfd1516
Filter out astro from peerDependencies
in astro add
( #7620 )
2023-07-11 12:42:11 +02:00
bluwy
13b36d962a
[ci] format
2023-07-11 09:24:06 +00:00