Tony Dang
e1e958a758
Fix: Content Collections - Ignore .json
files nested in non-underscored subdirectories within underscored directories ( #7909 )
...
* test: add test file so tests fail before fix
* fix: ignore files nested in underscore directories
* chore: add changeset
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-01 16:08:11 -05:00
Nate Moore
70bbec9c61
chore: address feedback from #7754 ( #7906 )
2023-08-01 13:24:02 -05:00
Houston (Bot)
1d9e34b136
[ci] release ( #7877 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-01 23:38:24 +08:00
Sam Hulick
5c5da8d2fb
feat: add logging for when hydrate's JSON parse fails ( #7887 )
...
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-08-01 16:33:38 +01:00
Bjorn Lu
fb833214e4
Fix prefetch test fail ( #7902 )
2023-08-01 23:05:36 +08:00
bluwy
1270d4d63e
[ci] format
2023-08-01 14:55:54 +00:00
Nate Moore
298dbb89f2
Refactor 404 and 500 approach ( #7754 )
...
* fix(app): refactor 404 and 500 approach
* chore: refactor logic
* fix: always treat error as page
* test: migrate ssr-prerender-404 to node adapter
* feat: merge original response metadata with error response
* chore: update lockfile
* chore: trigger ci
* chore(lint): fix lint issue
* fix: ensure merged request has proper status
* fix(node): prerender test
* chore: update test label
* fix(node): improve 404 behavior in middleware mode
* fix(vercel): improve 404 behavior
* fix(netlify): improve 404 behavior
* chore: update test labels
* chore: force ci
* chore: fix lint
* fix: avoid infinite loops
* test: fix failing test in Node 18
* chore: remove volta
2023-08-01 09:52:16 -05:00
Bjorn Lu
0b8375fe82
Fix streaming Astro components ( #7895 )
2023-08-01 21:30:47 +08:00
Bjorn Lu
ebf7ebbf7a
Refactor and improve Astro config loading flow ( #7879 )
2023-08-01 17:11:26 +08:00
André Alves
9e22038472
Fix incorrect build path logging for 404.astro pages ( #7885 )
...
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-01 08:53:47 +01:00
ematipico
bd8a01ae1b
[ci] format
2023-07-31 16:26:22 +00:00
Emanuele Stoppa
89d015db6c
fix: scan getStaticPaths
only in .astro
files ( #7876 )
2023-07-31 17:24:13 +01:00
ematipico
5fd4e5c848
[ci] format
2023-07-31 12:53:06 +00:00
Yan Thomas
1859960d04
Update old link from @astrojs/netlify
README ( #7862 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-07-31 13:50:53 +01:00
sdp971
04aea14ccc
[docs] removed the broken link and revised the content ( #7859 )
2023-07-31 08:49:06 -03:00
Houston (Bot)
d2b6dabfb3
[ci] release ( #7854 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-28 12:34:00 -04:00
matthewp
8867f3c99d
[ci] format
2023-07-28 16:02:32 +00:00
Matthew Phillips
861f10eafd
Fix redirect in SSR (Node and dynamic) ( #7856 )
2023-07-28 12:00:26 -04:00
Houston (Bot)
98ca04f915
[ci] release ( #7851 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-28 09:12:05 -04:00
matthewp
2f95a3e0ca
[ci] format
2023-07-28 13:09:24 +00:00
Matthew Phillips
49a4b28202
Scroll position restoration ( #7800 )
...
* Scroll position restoration
* Adding a changeset
* Throttle state persistence
* very important change
2023-07-28 09:07:00 -04:00
bluwy
46f9848052
[ci] format
2023-07-28 10:03:02 +00:00
Bjorn Lu
e50f646758
Fix head propagation for MDX components ( #7838 )
2023-07-28 18:00:53 +08:00
ematipico
365701f491
[ci] format
2023-07-28 08:23:13 +00:00
Emanuele Stoppa
2275c7d56b
fix: dev server should redirect when a page doesn't exist ( #7841 )
2023-07-28 09:20:00 +01:00
Houston (Bot)
3b422272e6
[ci] release ( #7813 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-27 15:33:13 -04:00
matthewp
fa6fc8ba4c
[ci] format
2023-07-27 19:11:02 +00:00
Matthew Phillips
59b5562326
Allow the Image component to get transitions ( #7836 )
...
* Images and view transitions
* Upgrade compiler
* Adding a changeset
2023-07-27 15:08:45 -04:00
matthewp
9fe1089e3e
[ci] format
2023-07-27 18:44:29 +00:00
Matthew Phillips
7dbcbc86b3
Track added links/styles/scripts to prevent duplicates ( #7843 )
...
* temporary change
* Track rendered styles and links to prevent duplicates
* Adding a changeset
* Fix names
2023-07-27 14:42:22 -04:00
matthewp
73eb4dfe2f
[ci] format
2023-07-27 12:59:49 +00:00
Matthew Phillips
5161cf919c
Add astro:beforeload event ( #7823 )
...
* Add astro:beforeload event
* Adding a changeset
* Update .changeset/chilled-elephants-develop.md
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
---------
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-27 08:57:37 -04:00
matthewp
30336bab94
[ci] format
2023-07-27 12:44:15 +00:00
Matthew Phillips
267487e63e
Prevent navigation on hash change ( #7824 )
2023-07-27 08:42:04 -04:00
Erika
b063a2d8ae
fix(assets): Fix endpoint not being injected when an integration would enable experimental.assets
( #7829 )
2023-07-27 11:37:27 +02:00
Arnav K
05ee09f9c2
fix: typo alpine -> alpinejs ( #7825 )
2023-07-27 17:31:23 +08:00
Erika
d5f526b339
test: add test in the Node adapter for astro:assets ( #7734 )
2023-07-26 23:58:47 +02:00
Erika
31c4031ba7
fix: squoosh not working on Windows in certain situations ( #7826 )
2023-07-26 21:38:37 +02:00
Sarah Rainsberger
54fb03b444
[docs] Markdoc README problematic aside notation ( #7817 )
2023-07-26 10:38:45 -03:00
Matthew Phillips
42a21b5da6
Prevent building .html files in hybrid mode ( #7805 )
...
* Prevent building .html files in hybrid mode
* Adding a changeset
2023-07-26 07:58:57 -04:00
Houston (Bot)
db8c04002f
[ci] release ( #7784 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-25 15:15:41 -04:00
Sarah Rainsberger
3156d9df15
[docs] Markdoc README ( #7799 )
2023-07-25 14:28:59 -03:00
Sarah Rainsberger
32cedb3dab
[docs] Markdoc README syntax fixes ( #7798 )
2023-07-25 14:05:03 -03:00
bluwy
0d86457d64
[ci] format
2023-07-25 15:47:03 +00:00
Bjorn Lu
0f677c009d
Refactor Astro rendering to write results directly ( #7782 )
2023-07-25 23:44:25 +08:00
matthewp
0c1a26adc8
[ci] format
2023-07-25 12:38:25 +00:00
Matthew Phillips
188eeddd47
Execute scripts on page navigation (view transitions) ( #7786 )
...
* Execute scripts on page navigation (view transitions)
* Update .changeset/sharp-seas-smile.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-25 08:35:47 -04:00
bholmesdev
25e04a2ecb
[ci] format
2023-07-24 23:36:32 +00:00
Alex Sherwin
7461e82c81
Add "allowHTML" option for Markdoc with HTML parsing/processing ( #7597 )
...
* 7576 - initial support for HTML inside Markdoc.
This uses htmlparser2 to perform a pure token transform/mutation
on the markdown-it tokens, replacing the original raw HTML string
tokens with a richer set of tokens per HTML node, and in the process
Markdoc tags are interleaved in the resulting token graph at the
appropriate locations
This removes the legacy config of the @astrojs/markdoc integration
entirely (suggested by @bholmesdev) and introduces a new type for
options to be specified in the astro config, initially, with just the new
"enableHTML" option
When "enableHTML" is *not* enabled (the default), the behavior
of the entire @astrojs/markdoc integration should remain functionally
equivalent to before this change
* 7576 - fixed issues with whitespace preservation
also:
* cleaned up " to ' for astro project preferred linting
* made the html rendering test fixture use a dynamic path
* 7576 - detailed nested HTML test coverage
* 7576 - component + HTML interleaved tests
* 7576 - fix lint problems from previous changes
* 7576 - some commentary
* 7576 - file naming, refactor html under imports, package.json exports definition for html
* 7576
* move out of extensions dir, remove export
* cdata handling changes
* 7576
* inline license from third party code
* cleanup test class copy of HTML output
* remove // third party indicators for imports (clarification: not third party code, just a indicator this group of imports is third party)
* 7576 - fixed test before/after for DRY'ness
* 7576 - no need to React-ify HTML attribute case
* 7576 - rename "enableHTML" option to "allowHTML"
* Added Markdoc allowHTML feature changeset
* 7576 - updated README with allowHTML info
* 7576 - fixed changeset typo
* 7576 - minor edits based on PR feedback for docs
* 7576 - minor edits based on PR feedback for docs
2023-07-24 19:34:06 -04:00
Kevin Whinnery
0a1b33349f
Update esbuild target for Deno ( #7687 )
...
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-07-24 22:58:05 +08:00
Houston (Bot)
e80896a67c
[ci] release ( #7763 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-24 17:09:11 +08:00
Bjorn Lu
3567afac44
Fix rendering TextEncoder encoding error regression ( #7777 )
2023-07-24 16:22:05 +08:00
Birk Skyum
0c9959704f
Bump vite to 4.4.6 ( #7746 )
2023-07-24 16:21:17 +08:00
Bjorn Lu
baaf80b27d
Fix prerender getStaticPaths flaky test ( #7745 )
2023-07-24 15:49:29 +08:00
Erika
da7f1128bf
Fix missing referrerpolicy
attribute on script tags ( #7766 )
...
* fix(astro-jsx): Add missing `referrerpolicy` attribute for script tags
* chore: changeset
2023-07-23 15:00:41 +02:00
Erika
1792737dae
Misc improvements for astro:assets
( #7759 )
2023-07-21 23:59:14 +02:00
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
Bjorn Lu
03c28aa629
Refactor simple CLI commands ( #7619 )
2023-07-11 17:21:57 +08:00
Emanuele Stoppa
3669e2d276
fix: astro info
command fallback for package manager ( #7618 )
2023-07-10 19:08:18 +01:00
Bjorn Lu
255dead86f
Add CLI startup speed benchmark ( #7617 )
2023-07-10 23:43:01 +08:00
bluwy
65ecbcb286
[ci] format
2023-07-10 14:30:38 +00:00
Bjorn Lu
1c7fda8169
Document codebase rendering concepts ( #7596 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-07-10 22:28:29 +08:00
Yan Thomas
131c92279e
Update prefetch README filename styling ( #7613 )
2023-07-10 14:37:09 +01:00
Bjorn Lu
904921cbe4
Ignore content .json files prefixed with underscores ( #7611 )
2023-07-10 20:39:32 +08:00
Ben Holmes
8df6a423c5
Fix: Hyphens breaking Markdoc tags ( #7599 )
...
* fix: handle hyphens in tag names
* test: add hyphen in test suite
* chore: changeset
2023-07-07 16:50:06 -04:00
matthewp
6fd9f4a160
[ci] format
2023-07-07 20:04:18 +00:00
Kory Smith
9807e4dc22
Updates prefetch integration to add "only prefetch link on hover/mouseover/focus" option ( #6585 )
...
* modifies prefetch to add the option to only prefetch certain pages on hover
* adds new pages to the test website to showcase prefetch-intent functionality
* adds tests to verify prefetch-intent behavior
* adds changelog
* waits until networkidle to check if the prefetching worked instead of waiting on a specific url load
* allows intentSelector to be either a string or array of strings
* Revert "allows intentSelector to be either a string or array of strings"
This reverts commit b0268eb0d5
.
* fixes the multiple selector logic and adds tests
* updates docs to include new prefetch-intent integration
* Update packages/integrations/prefetch/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/prefetch/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/prefetch/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/little-cars-exist.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/prefetch/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-07-07 16:01:23 -04:00
Ben Holmes
c135633bf6
Fix: Markdoc v0.4.0 docs ( #7593 )
...
* docs: add docs link to markdoc error
* docs: add named exports guide to README
* chore: changeset
* edit: no like so
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* edit: exposed as named exports
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
---------
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-07-07 09:22:26 -04:00
zyoshoka
6f1c4ea388
Fix code snippet in markdoc README ( #7592 )
2023-07-07 07:22:47 -04:00
Tom Adler
3153d04dad
Runtime environment variables docs for node integration ( #7378 )
...
* Runtime environment variables docs for node integration
* Update packages/integrations/node/README.md
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
* final fixes
---------
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
2023-07-07 09:45:12 +01:00
Yusuf
6bf20b62ce
docs(cloudflare): fix code snippet in enabling preview ( #7591 )
2023-07-07 09:28:30 +01:00
Houston (Bot)
f224078a65
[ci] release ( #7578 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-06 23:16:08 +08:00
Bjorn Lu
a0a1ca3e58
Refactor passing compressHTML ( #7585 )
2023-07-06 20:29:57 +08:00
Bjorn Lu
2d9c621c77
Simpify passing endpoint logging option ( #7584 )
2023-07-06 20:28:18 +08:00
sank.eth
2ca5bdde2b
corrected grammar. minor change ( #7580 )
2023-07-06 16:29:13 +08:00
Bjorn Lu
30d04db981
Refactor SSRResult
and RenderContext
( #7575 )
2023-07-06 00:25:24 +08:00
ematipico
44e56bb3bc
[ci] format
2023-07-05 16:05:32 +00:00
Emanuele Stoppa
6e9c295799
feat: astro info
command ( #7432 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-05 17:02:51 +01:00
ematipico
c490eb6e52
[ci] format
2023-07-05 15:48:32 +00:00
Emanuele Stoppa
9e5fafa2b2
feat: vercel edge middleware support ( #7532 )
...
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-05 16:45:58 +01:00
Emanuele Stoppa
cfd5b2b785
refactor: use only manifest to compute information ( #7571 )
...
* refactor: use only manifest to compute information
* use entry modules
* revert entry modules
2023-07-05 12:36:19 +01:00
Houston (Bot)
f820bb3f0b
[ci] release ( #7559 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-05 14:48:04 +08:00
bluwy
6dc251334f
[ci] format
2023-07-05 06:17:56 +00:00
THARAK HEGDE
4aecebae26
Fix MDX README typo ( #7567 )
2023-07-05 14:15:32 +08:00
Bjorn Lu
5ffdec7580
Fix style crawling logic for CSS HMR ( #7565 )
2023-07-05 14:13:45 +08:00
Bjorn Lu
c459b81785
Move createBasicEnvironment as test-util ( #7560 )
2023-07-04 22:56:40 +08:00
Bjorn Lu
917f25cffe
Handle callGetStaticPaths TODO ( #7558 )
2023-07-04 21:58:41 +08:00
Emanuele Stoppa
c412e4a7bb
chore: fix incorrect default type ( #7562 )
2023-07-04 14:04:25 +01:00
Johannes Spohr
47b756e3e1
Batch iterator buffering to reduce number of timeout calls ( #7544 )
2023-07-04 17:32:01 +08:00
Bjorn Lu
e7cea6f755
Fix incorrect format from organize-imports-cli ( #7553 )
2023-07-03 21:11:09 +08:00
Bjorn Lu
6036bdd3ae
Refactor getParamsAndProps code ( #7537 )
2023-07-03 21:05:47 +08:00
bluwy
cf515254a5
[ci] format
2023-07-03 13:02:42 +00:00
Josh Goldberg ✨
2fea174303
feat: use typescript-eslint@v6's reworked configs ( #7425 )
2023-07-03 20:59:43 +08:00
Houston (Bot)
fc6826ff76
[ci] release ( #7526 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-03 20:53:45 +08:00
bluwy
94a1529587
[ci] format
2023-07-03 08:12:47 +00:00
Wooseop Kim
e644b34659
fix: make Picture
generate valid dev URLs ( #7500 )
2023-07-03 16:09:40 +08:00
bluwy
3df71fd34f
[ci] format
2023-07-03 08:01:57 +00:00
Nate Moore
cdc28326cf
Update style attribute behavior for better object support ( #7542 )
2023-07-03 15:59:35 +08:00
Ken Powers
19c2d43ea4
Make APIRoute generic like APIContext ( #7521 )
2023-07-03 15:58:27 +08:00
Hippo
bc9ce779d3
Move code block titles into comments to match docs ( #7543 )
...
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-01 16:34:49 +02:00
natemoo-re
0251e4e6cf
[ci] format
2023-06-30 22:27:42 +00:00
金成
1170877b51
Fix multiple create-astro
registry issues ( #7539 )
...
* fix: getVersion Error when registry ends with '/'
* Update .changeset/old-seahorses-fold.md
* Update .changeset/old-seahorses-fold.md
* refactor: cleanup registry logic
* chore: update changeset
* fix(create-astro): update registry logic to rely on `fetch`
* chore: update changeset
* chore: update lockfile
* Update old-seahorses-fold.md
---------
Co-authored-by: jincheng32537 <jincheng32537@hundsun.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@astro.build>
2023-06-30 17:24:36 -05:00
wackbyte
2172dd4f0d
fix: don't serialize undefined
as null
( #7531 )
...
* fix: don't serialize `undefined` as `null`
* test: include more types in the pass-js test
2023-06-30 16:24:29 -05:00
Bjorn Lu
4dd8849be2
Remove unused getParamsAndProps call ( #7535 )
2023-06-30 16:18:29 -05:00
Paweł Mrowiec
4256409a94
Fix image metadata generation ( #7510 )
...
* Fix problem where image metadata generation throwed error when provided url started with /@astroimage
* Remove unnecessary changes
2023-06-30 09:38:23 -05:00
Nate Moore
9e2426f756
fix( #7471 ): fallback to npm registry if config command fails ( #7527 )
2023-06-30 09:25:21 -05:00
Bjorn Lu
fcba0f0199
Refactor telemetry usage flow ( #7522 )
2023-06-30 17:28:17 +08:00
ematipico
5b1745bf31
[ci] format
2023-06-30 09:12:30 +00:00
Alexander Niebuhr
1a59185ddd
feature(astrojs/cloudflare): add support for splitted
SSR bundles ( #7464 )
...
* initial commit
* try to fix windows
* output files directly into the correct folder
* allow for rest parameters
* use fixed hook
* improve tests
* apply doc's team suggestions for README
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* try to fix prerendering
* apply doc's team suggestion for changeset
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* bump to minor
* readme update
* resolve review comments
* optimize memory allocation
* resolve review comments
* add removed link, to make sure old docs keep same
* resolve comment
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-06-30 10:09:21 +01:00
matthewp
7ae6e89292
[ci] format
2023-06-29 20:21:41 +00:00
Matthew Phillips
154af8f5ea
Split support in the Vercel Serverless adapter ( #7514 )
...
* start of vercel split support
* Split Mode with the Vercel Adapter
* Write routes into the config.json
* Add a changeset
* Add docs
* Better changeset
2023-06-29 16:18:28 -04:00
bluwy
5df4853bd1
[ci] format
2023-06-29 13:22:07 +00:00
Bjorn Lu
baaeab0a67
Refactor component and renderers loading flow ( #7518 )
2023-06-29 21:19:43 +08:00
Houston (Bot)
56f1b1229c
[ci] release ( #7496 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-29 17:14:24 +08:00
natemoo-re
40029e1af4
[ci] format
2023-06-28 19:51:38 +00:00
Nate Moore
d3247851f0
Pass compressHTML
settings to manifest ( #7488 )
...
* fix(#7333 ): pass compressHTML to manifest
* chore: add compressHTML to astro:ssr-manifest test
2023-06-28 14:49:10 -05:00
ematipico
34517ce8c0
[ci] format
2023-06-28 12:08:41 +00:00
Emanuele Stoppa
f4fea3b02b
fix: correctly handle prerender pages in split mode ( #7509 )
2023-06-28 13:06:16 +01:00
Ben Holmes
1a9b644e20
fix: ts-expect-error ( #7505 )
2023-06-27 16:25:27 -05:00
bholmesdev
647079da14
[ci] format
2023-06-27 19:08:29 +00:00
Ben Holmes
fb7af55114
feat: New Markdoc render
API ( #7468 )
...
* feat: URL support for markdoc tags
* refactor: move to separate file
* feat: support URL for markdoc nodes
* feat: support `extends` with URL
* chore: changeset
* fix: bad AstroMarkdocConfig type
* fix: experimentalAssetsConfig missing
* fix: correctly merge runtime config
* chore: formatting
* deps: astro internal helpers
* feat: component() util, new astro bundling
* chore: remove now unused code
* todo: missing hint
* fix: import.meta.url type error
* wip: test nested collection calls
* feat: resolve paths from project root
* refactor: move getHeadings() to runtime module
* fix: broken collectHeadings
* test: update fixture configs
* chore: remove suggestions. Out of scope!
* fix: throw outside esbuild
* refactor: shuffle imports around
* Revert "wip: test nested collection calls"
This reverts commit 9354b3cf9222fd65b974b0cddf4e7a95ab3cd2b2.
* chore: revert back to mjs config
* chore: add jsdocs to stringified helpers
* fix: restore updated changeset
---------
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2023-06-27 15:05:17 -04:00
delucis
47b47e0e54
[ci] format
2023-06-27 15:17:59 +00:00
r-southworth
b51d515d2d
Update astro.ts to clarify configuration settings for base ( #7392 )
...
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-06-27 17:15:10 +02:00
Ben Holmes
f6feff7a29
feat: restart server on markdoc config change ( #7467 )
...
* deps: vite-plugin-restart
* feat: restart on markdoc config change
* chore: changeset
* chore: roll our own restarter!
* deps: remove vite-plugin-restart
* refactor: use good enough option
2023-06-27 10:46:59 -04:00
Matteo Manfredi
2726098bc8
Update setTimeout()
to queueMicrotask()
( #7494 )
2023-06-27 22:16:41 +08:00
Bjorn Lu
a82c6df25b
Remove unused rendering code ( #7497 )
2023-06-27 22:16:22 +08:00
Bjorn Lu
a3928016cc
Fix CSS error line offset ( #7491 )
2023-06-27 21:16:43 +08:00
Bjorn Lu
6dfd7081b7
Fix error stacktrace from Vite SSR runtime ( #7273 )
2023-06-27 21:16:29 +08:00
Bjorn Lu
83016795e9
Simplify nested hydration flow ( #7370 )
2023-06-27 21:16:10 +08:00
Houston (Bot)
da56a005d9
[ci] release ( #7449 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-27 08:42:46 -04:00
ematipico
275d0d1683
[ci] format
2023-06-27 11:00:40 +00:00
Emanuele Stoppa
6014037441
fix: correct URL for entry points ( #7490 )
...
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-06-27 11:58:23 +01:00
Bjorn Lu
57e603038f
Handle esbuild 0.18 changes ( #7479 )
2023-06-27 11:59:22 +08:00
Chris Swithinbank
2eca765f91
Remove invalid code block language tag in sitemap README ( #7487 )
2023-06-27 00:02:20 +02:00
bluwy
0daaa9efba
[ci] format
2023-06-26 09:30:08 +00:00
Rasso Hilber
478cd9d8fa
fix: Installs underneath a path containing leading underscores ( #7476 )
2023-06-26 17:27:39 +08:00
bluwy
c1564d3c02
[ci] format
2023-06-26 08:53:27 +00:00
Erika
4e02a59e42
fix(errors): Deprecate error codes ( #7347 )
...
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-06-26 16:51:06 +08:00
bluwy
39a24f111d
[ci] format
2023-06-26 03:40:32 +00:00
Reuben Tier
f75b354715
Bump dependency versions ( #7477 )
2023-06-26 11:38:16 +08:00
Waxer59
409734a9af
Typo fixed in node.mdx
( #7465 )
2023-06-26 11:34:56 +08:00
Bjorn Lu
8e3cb20b5c
Format markdown files ( #7439 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-06-26 11:34:13 +08:00
Willow (GHOST)
6e7f38dd79
Svelte Four ( #7454 )
2023-06-25 22:33:00 +08:00
Bjorn Lu
869197aafd
Fix markdoc test fail in main ( #7459 )
...
* Early out if `importedModule` has no `id`
We can do this as line 97 also has this guard for each `importedModules`
* Simplify `isPropagationStoppingPoint`
* Fix actual bug
* chore: changeset
---------
Co-authored-by: bholmesdev <hey@bholmes.dev>
2023-06-23 17:00:19 -04:00
Bjorn Lu
2b75399520
Remove slash package ( #7440 )
2023-06-23 16:48:05 +08:00
matthewp
56d04e4100
[ci] format
2023-06-22 18:39:21 +00:00
Matthew Phillips
f359d77b18
Prevent accidental CSS inclusion in dev ( #7381 )
...
* Prevent accidental CSS inclusion in dev
* Use ssrTransformResult.deps instead
* Fix types
* Get dynamic deps too
* Handle virtual module deps
* Fix test on windows
2023-06-22 14:36:35 -04:00
Bjorn Lu
32bde967f4
Fix vercel redirects with trailingSlash always ( #7447 )
2023-06-22 23:40:08 +08:00
Houston (Bot)
38b104049a
[ci] release ( #7434 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-22 10:06:15 -04:00
Chris Swithinbank
03b7d17b99
Fix two errors for use in docs ( #7445 )
2023-06-22 12:10:59 +02:00
Wooseop Kim
9739adc91f
fix: encode spaces when generating srcset
( #7340 )
2023-06-22 15:56:41 +08:00
Benjamin MENANT
33cdc8622a
fix(astro:assets): inject /_image endpoint with prerendered=false on serverLikeOutput ( #7423 )
2023-06-22 15:20:35 +08:00
Ben Holmes
76fcdb84dd
Chore: remove legacy mdx content collections handler ( #7353 )
...
* chore: remove legacy mdx mapping
* chore: changeset
* chore: remove dead mdxEntryType
* nit: comments on mdx pkg name
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* smol smol smol nit: and vs or
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-06-21 19:51:15 -04:00
Ben Holmes
3f9f5c117e
fix: pnpm
failure on create-astro
( #7435 )
...
* fix: use which-pm-runs instead of preferred-pm
* deps: remove preferred-pm
* chore: move which-pm-runs to regular deps
* chore: changeset
2023-06-21 16:02:20 -04:00
Bjorn Lu
30bb363713
Fix astro:build:setup
hook updateConfig
utility ( #7438 )
...
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-06-21 21:56:25 +08:00
Bjorn Lu
f275d058fc
Update safe dependencies ( #7430 )
2023-06-21 21:09:49 +08:00
ematipico
01b1c21c6b
[ci] format
2023-06-21 12:35:19 +00:00
Emanuele Stoppa
459b5bd05f
feat: SSR split
mode ( #7220 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-06-21 13:32:20 +01:00
ematipico
c8bccb47d3
[ci] format
2023-06-21 12:10:24 +00:00
Emanuele Stoppa
8e2923cc62
feat: expose locals to render api and from requests in dev mode ( #7385 )
...
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: wrapperup <wrapperup4@gmail.com>
2023-06-21 13:07:16 +01:00
Emanuele Stoppa
61d6e45cef
docs: add snippet for base
option ( #7384 )
2023-06-21 13:06:43 +01:00
KDTS
3943fa390a
Fix minior issue in the documentation related to port customization ( #7436 )
2023-06-21 10:40:52 +01:00
Ben Holmes
7877a06d82
Fix up pnpm dev
( #7424 )
...
* feat: use persistent per turbo recs
* feat: preserve types yay
* fix: *actually* solve problem
* fix: type failures from content types template
* fix: bad JS doc comments
* fix: bad src/content/template path
* chore: changeset
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-20 14:06:36 -04:00
ematipico
3fd10f4597
[ci] format
2023-06-20 16:34:32 +00:00
Emanuele Stoppa
e314a04bfb
fix: correctly emit middleware file name ( #7427 )
2023-06-20 17:32:30 +01:00
Houston (Bot)
1589eaabcd
[ci] release ( #7428 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-20 10:32:26 -04:00
Emanuele Stoppa
2b34fc4928
fix: document open
option ( #7418 )
...
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-06-20 15:24:29 +01:00
Chris Swithinbank
89a4835202
Fix telemetry reporting for integrations that return an array ( #7429 )
2023-06-20 14:42:49 +02:00
ematipico
82b1964432
[ci] format
2023-06-20 10:26:55 +00:00
Torbjørn Holtmon
94afaa3e50
fix: cloudflare waitUntil not working as inteded with getRuntime ( #7419 )
...
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-06-20 11:24:32 +01:00
Houston (Bot)
f87680f6df
[ci] release ( #7390 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-19 11:36:45 -04:00
Bjorn Lu
bb644834ef
Simplify telemetry Vite version detection ( #7414 )
2023-06-19 17:18:46 +08:00
Nate Moore
d2020c29cf
Fix injected route edge case ( #7399 )
...
* fix(#7397 ): update astro page entryname logic
* chore: add changeset
* fix: update printed log for injected routes
* fix: ensure /index is included
* test: add custom-404-pkg test
* chore: cleanup
2023-06-16 15:58:07 -05:00
Bjorn Lu
556fd694a6
Rename tailwind integration options ( #7391 )
2023-06-15 23:40:42 +08:00
Alvin Bryan
e407073c9e
Update error message for custom slugs in collection ( #7395 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-06-15 12:40:32 -03:00
Arsh
d67ae84610
Node built-in modules support for Deno adapter ( #7288 )
...
* feature(deno adapter): allow built-in node modules
* Add changeset
* format
2023-06-15 10:20:35 -04:00
Tom
3f1cb6b1a0
@astrojs/tailwind: simplify, upgrade & fix support for ts config file ( #6724 )
...
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-06-14 17:55:37 +08:00
Houston (Bot)
06315a1fde
[ci] release ( #7368 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-13 16:55:58 -04:00
matthewp
32b0f84a1c
[ci] format
2023-06-13 20:37:42 +00:00
beynar
6d8aa4b61f
[Cloudflare integration] Expose cf metadata and Cloudflare caches API ( #7386 )
...
* Add cf and cache properties to runtime
* add changeset
* reorder import
* fix types and add tests
* fix package name
* test
2023-06-13 16:34:44 -04:00
Bjorn Lu
3e1fbc2c8f
Use stub image service for tests ( #7376 )
2023-06-13 22:47:24 +08:00
Ben Holmes
1c7b635956
Fix: Zod errors missing stacktrace ( #7380 )
...
* wip: figure out stack issue, weird JSON stringify bug on zod issue
* refactor: return data instead of mutating
* refactor: remove need for reassignment
* fix: e.stack only
* chore: changeset
2023-06-12 17:20:04 -04:00
Matthew Phillips
0986a44ddd
Upgrade lit deps ( #7373 )
...
* Upgrade lit deps
* Add changeset
* Downgrade peer dep
* Upgrade lockfile
* add client dep
2023-06-12 15:52:13 -04:00
Bjorn Lu
807f46791d
Increase parallel test time tolerance ( #7372 )
2023-06-12 21:51:20 +08:00
Chris Swithinbank
0325bf7e0f
Add @message
to DuplicateContentEntrySlugError
( #7369 )
2023-06-12 11:48:53 +02:00
adenpun
42baf62e7c
Fixed AstroUserConfig
's redirect type definition ( #7366 )
2023-06-12 16:34:05 +08:00
Houston (Bot)
4f7091206c
[ci] release ( #7354 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-10 13:54:36 -04:00
Ben Holmes
0a8d178c90
Raise error for duplicate content entry slugs ( #7352 )
...
* chore: throw error on dup slugs
* chore: move to ErrorData
* fix: remove unknownerror
* chore: changeset
2023-06-10 13:49:17 -04:00
bholmesdev
777e5d7587
[ci] format
2023-06-10 17:45:51 +00:00
Ben Holmes
a30f2f3de4
Fix Markdoc cloudflare errors ( #7351 )
...
* fix: move `node:` libs out of utils
* fix: node -> default
* chore: remove kleur from markdoc ex (why was this there??)
* chore: lock
* chore: changeset
2023-06-10 13:43:26 -04:00
Ben Holmes
491c2db424
Fix: better collection entry devalue error ( #7341 )
...
* feat: add clear error for devalue parse
* refactor: create error data entry
* deps: up devalue
* chore: changeset
2023-06-09 18:15:11 -04:00
MoustaphaDev
1ac016225d
[ci] format
2023-06-09 20:23:53 +00:00
Happydev
bc7c164bc3
Do not silence runtime MDX errors ( #7089 )
...
* test: add fixture
* chore: remove unneeded files in fixture
* test: update test mdx filfe
* test: add test case
* mark component as mdx
* add error builder utility
* throw error when it comes from an MDX component
* chore: update lock file
* Add comment to refactor later
* apply review
* add missing comma
2023-06-09 20:21:32 +00:00
Houston (Bot)
e138f66344
[ci] release ( #7318 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-09 08:40:17 +03:00
matthewp
8341c461b5
[ci] format
2023-06-09 04:58:51 +00:00
Caleb Williams
1430ffb473
Fixes an issue where create Astro doesn't respect custom npm registries ( #7326 )
...
* Fixes an issue where create Astro doesn't respect custom npm registries
* chore: fix pnpm-lock
* chore: update lockfile
---------
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-09 07:56:29 +03:00
matthewp
5c20476fd3
[ci] format
2023-06-09 04:56:15 +00:00
Matthew Phillips
bbcf69e7b8
Fix redirects in dev mode ( #7342 )
...
* Fix redirects in dev mode
* Adding a changeset
2023-06-09 07:54:14 +03:00
Matthew Phillips
3d9a392a09
Remove error message for using Markdown component ( #7343 )
2023-06-09 07:41:08 +03:00
Ben Holmes
e3271f8c16
Better dynamic route regex error ( #7339 )
...
* feat: add helpful invalid route seg error
* chore: add errors-data entry
* refactor: add hint for non-spread errors
* chore: add `undefined` to common cases
* nit: if the param contains slashes
* chore: changeset
* chore: it's trivial my dear watson
2023-06-08 18:12:39 -04:00
Edo-San
52f0480d14
Fix/update spread attribute ( #7310 )
...
* fix: add default fallback for spreadAttributes values
* chore: add PR changeset
* chore: fix pnpm lock
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-08 15:58:17 -05:00