Michaili K
e797b68160
Fix assets not getting optimized when outDir
is outside the CWD ( #8670 )
...
* Fix assets not getting optimized when `outDir` is outside the CWD
* Add missing import
* Add changeset
* Fix import, again.
* Use getOutDirWithinCwd in the serverRoot declaration
2023-09-27 18:18:36 -04:00
Matthew Phillips
87d5b841af
New code ( #8559 )
2023-09-27 17:06:11 -04:00
Matthew Phillips
4ed410db50
Remove Netlify adapter from core ( #8574 )
...
* New link
* More explicit
* Add placeholder package.json
* lockfile
* add keyworkds
2023-09-27 16:48:26 -04:00
matthewp
a10a798c18
[ci] format
2023-09-27 19:25:02 +00:00
Matthew Phillips
e6be2d8146
Add View Transitions announcer ( #8621 )
...
* Add View Transitions announcer
* fix astro check
* Append the text in a setTimeout
* Use 60 for the timeout
* Add comment on magic number
* Add a changeset
* Update .changeset/small-rules-relax.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Bring back announce logic
* Remove mention of env file
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-27 15:21:56 -04:00
delucis
5121740de7
[ci] format
2023-09-27 19:19:41 +00:00
Chris Swithinbank
9b0114c7d3
Support integrations added in updateConfig() in astro:config:setup ( #8672 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-27 21:17:27 +02:00
Bjorn Lu
e8495c853b
Fix logLevel passed to Vite build ( #8678 )
2023-09-27 22:30:30 +08:00
martrapp
aad756297c
[ci] format
2023-09-27 13:33:07 +00:00
Martin Trapp
63bc37f2b6
API for clientside router ( #8571 )
...
* refactored CSR into goto() function
* first refectoring for router API
* added test
* added comments to fixture
* rename + preliminary changeset
* changeset: now 'minor' and featuring Mathew's example from the docs
* moved for simpler diff
* update after #8617
* fixed ts-errors
* more comprehensible handling of intra-page state
* sync with main
* synch from next_tm
2023-09-27 15:30:13 +02:00
Nolan Lawson
9fe4b95969
fix: print image path for NoImageMetadata ( #8666 )
2023-09-26 21:51:57 +08:00
Houston (Bot)
60684fad72
[ci] release ( #8663 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-25 15:54:55 -04:00
matthewp
7fc700e30d
[ci] format
2023-09-25 14:17:53 +00:00
Matthew Phillips
69fbf95b22
Head propagation graph walking on new pages ( #8646 )
...
* Head propagation graph walking on new pages
* Add changeset
* Avoid the bang
* Add TODOs about handling in resolveId
2023-09-25 10:14:37 -04:00
ematipico
306649c5a4
[ci] format
2023-09-25 13:47:26 +00:00
Simon Knott
008f7647c4
fix(netlify): bundle netlify functions as ESM to support top-level await ( #8661 )
2023-09-25 15:45:13 +02:00
Arsh
954cadc1e5
fix(deno): do not set vite.ssr.noExternal ( #8652 )
...
* fix(deno): safely set external specifiers
* noExternal does not need to be manually set at all
2023-09-25 19:13:43 +05:30
Houston (Bot)
211bfe3b00
[ci] release ( #8635 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-25 18:28:54 +08:00
Rishi Raj Jain
863f5171e8
fix: generated redirect page canonical lacks of site prefix ( #8591 )
2023-09-25 09:54:58 +02:00
Marco Schumacher
2365c12464
fix(cloudflare): added config for _routes.json generation ( #8459 )
...
* added config for _routes.json generation
* added changeset
* renamed test file
* updated comments
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* worked on tests
* worked on docs
* worked on docs
* worked on tests
* updated pnpm-lock.yaml
* worked on tests
* moved the _worker.js in cloudflareSpecialFiles statement
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-09-24 08:32:03 +02:00
Alexander Niebuhr
4c4ad9d167
chore(core): improve the logging of assets feature ( #8615 )
...
* improve assets logging
* changeset
* fix typo
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* improve log message
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* update log message
* update changeset
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-23 18:15:49 +02:00
matthewp
1d4f91b033
[ci] format
2023-09-22 22:14:57 +00:00
Matthew Phillips
cb838b84b4
fix getDataEntryById to lookup by base name ( #8645 )
2023-09-22 18:12:51 -04:00
natemoo-re
421257fc1c
[ci] format
2023-09-22 21:03:31 +00:00
Jacob Lamb
139b0f54d9
Refine CLI flag descriptions for clarity ( #8545 )
...
* Refine CLI flag descriptions for clarity
* Update README.md
* Update README.md
* Update README.md
* Update help.ts
* Update packages/create-astro/src/actions/help.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/create-astro/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/create-astro/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update README.md
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-22 16:00:38 -05:00
matthewp
4f2bf2156f
[ci] format
2023-09-22 18:15:46 +00:00
Matthew Phillips
f36c4295be
Warn on empty content collections ( #8640 )
...
* Warn on empty content collections
* Update packages/astro/src/core/errors/errors-data.ts
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
---------
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
2023-09-22 14:12:36 -04:00
Martin Trapp
974d5117ab
fix: no deletion of scripts during view transition ( #8636 )
2023-09-22 12:01:22 -04:00
ematipico
0352dec47b
[ci] format
2023-09-22 15:00:18 +00:00
Adrian Lyjak
faeead4232
feat(@astrojs/cloudflare): Add support for wasm module imports ( #8542 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-22 16:58:00 +02:00
bluwy
b1310e6f13
[ci] format
2023-09-22 14:49:43 +00:00
Paul Valladares
a3bee1477e
Update: Improve manual install guide of @astrojs/tailwind
integration ( #8619 )
2023-09-22 22:47:40 +08:00
bluwy
f35a55bd4f
[ci] format
2023-09-22 13:20:50 +00:00
Reuben Tier
b64dd45c0d
Fix behaviour regression in create-astro ( #8634 )
2023-09-22 21:18:46 +08:00
Yan Thomas
bd00ad776d
Fix subheading inconsistency ( #8623 )
2023-09-22 14:57:27 +02:00
Erika
63141f3f3e
fix: properly generate code for multiple images in same markdown file ( #8633 )
2023-09-22 14:28:03 +02:00
Erika
de7a7fbdc3
nit: optimize images ( #8629 )
2023-09-22 12:04:39 +02:00
Matthew Phillips
da00425a5f
Revert "fix: islands are not being rendered correctly ( #8580 )" ( #8624 )
...
This reverts commit 8d361169b8
.
2023-09-22 09:39:27 +02:00
Houston (Bot)
4e1e8dc5c6
[ci] release ( #8597 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-21 14:32:12 -04:00
matthewp
fe29ce2731
[ci] format
2023-09-21 17:10:10 +00:00
Erika
bdd267d089
fix(markdown): Fix Markdown images breaking the build ( #8598 )
...
* fix(markdown): Fix Markdown images breaking the build
* chore: changeset
* Update packages/astro/src/core/errors/errors-data.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Fix tla chunking
* One directory up
* Down we go
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-09-21 13:07:33 -04:00
Bjorn Lu
5a988eaf60
Fix Astro HMR from a CSS dependency ( #8609 )
...
* Fix Astro HMR from a CSS dependency
* Improve css test
* Create wise-donuts-tickle.md
2023-09-21 12:53:37 -04:00
Martin Trapp
e8c997db99
Clean-up router implementation ( #8617 )
...
* Update regarding review comments from #8571
* Update regarding review comments from #8571 (2)
* Update regarding review comments from #8571 (3)
* Update regarding review comments from #8571 (4)
2023-09-21 10:21:29 -04:00
matthewp
a576ba9c37
[ci] format
2023-09-21 12:58:10 +00:00
Matthew Phillips
bcad715ce6
Ensure cookies are attached when middleware changes the Response ( #8612 )
...
* Ensure cookies are attached when middleware changes the Response
* fix test
2023-09-21 08:55:05 -04:00
ematipico
defab70cb2
[ci] format
2023-09-21 08:37:23 +00:00
Timon Jurschitsch
e522a5eb41
Remove AstroError if content directory is empty ( #8382 )
...
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-09-21 10:34:20 +02:00
Arsh
4398e92987
fix(middleware): undo config's path to URL encoding ( #8614 )
...
* fix(middleware): undo config's path to URL encoding
* add changeset
* middleware-dev => "middleware space"
2023-09-21 07:35:33 +02:00
FredKSchott
b4034aabea
[ci] format
2023-09-20 16:52:04 +00:00
Fred K. Schott
ed54d46449
improve telemetry ( #8600 )
2023-09-20 09:50:04 -07:00
matthewp
0119a271ae
[ci] format
2023-09-20 13:20:38 +00:00
Matthew Phillips
8f8b9069dd
Prevent body scripts from re-executing on navigation ( #8603 )
...
* Prevent body scripts from re-executing on navigation
* Adding changeset
* Run script replacement logic before head
* Rename doc to newDocument
2023-09-20 09:18:02 -04:00
Martin Trapp
2d7f5429a5
test: since we check the media-type, data-astro-reload has fewer use cases ( #8605 )
2023-09-20 17:50:56 +08:00
Bjorn Lu
70f2a80039
Fix alias plugin causing CSS ordering issue ( #8592 )
2023-09-20 17:45:11 +08:00
ematipico
c49e865f4f
[ci] format
2023-09-20 08:30:38 +00:00
Arsh
2e1d5f8739
fix(node): report render error to the terminal ( #8599 )
2023-09-20 10:27:46 +02:00
ematipico
767599522c
[ci] format
2023-09-19 09:53:20 +00:00
Alexander Niebuhr
5b0b3c9a8e
fix(@astrojs/cloudflare): support for nodejs_compat ( #8595 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-09-19 11:51:06 +02:00
Houston (Bot)
9b84a7ef96
[ci] release ( #8590 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-19 17:21:05 +08:00
bluwy
86acd0f1d5
[ci] format
2023-09-19 09:11:23 +00:00
Jacob Lamb
1d5b3f079d
feat(create-astro): Update flag behavior for template and project-name ( #8551 )
2023-09-19 17:09:27 +08:00
Rishi Raj Jain
d0e513f214
fix: Vercel serverless adapter logs too much ( #8581 )
2023-09-18 19:22:55 +08:00
Rishi Raj Jain
0586e20e83
fix: redirect page type icon not properly displayed ( #8579 )
2023-09-18 17:59:19 +08:00
ematipico
6024955882
[ci] format
2023-09-18 09:47:02 +00:00
Alexander Niebuhr
3da5d8404e
feat(@astro/cloudflare): improve DX for runtime typing ( #8560 )
2023-09-18 10:44:19 +01:00
Miguel Carneiro
c9bbd304ca
Tailwind configuration file changed from cjs
to ts
( #8583 )
2023-09-18 17:41:38 +08:00
Erika
95b5f6280d
fix(assets): Fix misc types issues ( #8568 )
...
* fix(assets): Fix misc types issues
* fix: remove unnecessary change
* chore: changeset
2023-09-18 11:39:21 +02:00
Rishi Raj Jain
8d361169b8
fix: islands are not being rendered correctly ( #8580 )
2023-09-18 17:35:27 +08:00
Houston (Bot)
fca6892f8d
[ci] release ( #8540 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-14 12:44:09 -04:00
matthewp
8376f24b47
[ci] format
2023-09-14 12:17:20 +00:00
Matthew Phillips
b79e11f3c4
Change functionPerRoute to false by default ( #8546 )
...
* Change functionPerRoute to false by default
* Update test that depends on functionPerRoute
* Update .changeset/cool-pianos-smell.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/cool-pianos-smell.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/vercel/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/vercel/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/cool-pianos-smell.md
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-14 08:15:11 -04:00
Bjorn Lu
74dc3edb30
Improve MDX rendering performance ( #8533 )
2023-09-14 20:05:38 +08:00
Chris
2e8726feec
[@astrojs/vercel] Individually enable Speed Insights and Web Analytics ( #8021 )
...
* Individually enable Speed Insights and Web Analytics
* Update pnpm-lock.yaml
* Remove .only on tests
* Fix build
* Move `beforeSend` out of config
* Address feedback from review
* Update README.md
* Add back the `analytics` property and add deprecation warning when used
* Add migration guide for the deprecated `analytics` property
* Update packages/integrations/vercel/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update README.md
* Fix external dependency issue
* Simplify plugin and reduce scope
* Update .changeset/sixty-teachers-tap.md
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Apply feedback from review
* Move exposeEnv to speed-insights since it's only used there
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-09-14 08:02:11 -04:00
Bjorn Lu
7522bb4914
Improve markdown rendering performance ( #8532 )
2023-09-14 18:22:16 +08:00
Jacob Lamb
61ac5c9eaa
chore(astro): update readme ( #8530 )
...
* chore(astro): update readme
* Update packages/astro/README.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-13 16:19:30 -05:00
Martin Trapp
f95febf96b
Fix for checking media type in CSR ( #8537 )
...
* bugfix checking media-type
* bugfix checking media-type
* Update packages/astro/components/ViewTransitions.astro
.* is longest possible run, but a dollar won't harm us :)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* make typescript happy
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-13 16:17:07 -05:00
Princesseuh
eb3c33cff7
[ci] format
2023-09-13 19:18:07 +00:00
Andrew Moore
45364c3452
feat: added types to allow the creation of user space content services ( #7607 )
...
* feat: added types to astro:content to allow user space content services
* Create small-apes-clap.md
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-09-13 21:16:00 +02:00
Erika
91380378ce
feat(vercel): Use Sharp in dev instead of Squoosh by default ( #8445 )
...
* feat(vercel): Use Sharp in dev instead of Squoosh by default
* fix(build):
* nit: adjust with feedback
* fix: imports
* Update packages/integrations/vercel/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* docs: small change in other part of the README
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-13 18:40:02 +02:00
Martin Clementz
6c6f1aef43
chore: check if ssr works on netlify ( #8002 )
...
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-13 18:30:23 +02:00
Princesseuh
de8d6ad237
[ci] format
2023-09-13 16:29:09 +00:00
Ben Holmes
a8d72ceaee
[MDX] Support img
component prop for optimized images ( #8468 )
...
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-09-13 18:27:03 +02:00
Erika
ecc65abbf9
feat(assets): Allow users to set a custom endpoint to use for image optimization ( #8467 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-13 18:15:58 +02:00
Erika
c92e0acd71
feat(types): Add types for the object form of style ( #8464 )
2023-09-13 17:57:59 +02:00
Lars Kappert
d93987824d
feat(markdown): Add support for imageReference
paths when collecting images ( #8475 )
2023-09-13 17:29:39 +02:00
Erika
2c4fc878be
Support AVIF input assets ( #8518 )
2023-09-13 17:27:16 +02:00
btea
9552ef1481
chore(create-astro): Added create project using pnpm
( #8340 )
2023-09-13 16:58:18 +02:00
Erika
4e395a6cab
config: migrate us to moduleResolution: 'node16' ( #8519 )
2023-09-13 16:49:22 +02:00
Erika
b85c8a78a1
feat: better errors for images ( #8536 )
2023-09-13 16:44:15 +02:00
natemoo-re
3be8b67f89
[ci] format
2023-09-13 14:43:40 +00:00
Nate Moore
ed952b4cea
Improve create-astro
startup performance ( #8456 )
...
* feat(create-astro): improve performance
* test: fix test by wrapping promise values
* chore: remove uneeded deps
* Update ten-kings-smash.md
* chore: update lockfile
2023-09-13 09:40:53 -05:00
Jacob Lamb
f02dc9f7bf
chore(create-astro): Remove npm 6.x note ( #8529 )
...
* chore(create-astro): Remove npm 6.x note
* Add missing space
2023-09-13 08:56:34 -05:00
Houston (Bot)
c23ddb9ab3
[ci] release ( #8501 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-12 14:29:39 -04:00
matthewp
a02707a8b2
[ci] format
2023-09-12 16:56:23 +00:00
Martin Trapp
43bc5f2a55
Vt follow redirects ( #8522 )
...
* View Transitions redirects WIP
* transition across redirects
* added changeset
---------
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-09-12 12:54:32 -04:00
Martin Trapp
2db9762eb0
Restore horizontal scroll position on history navigation (view transitions) ( #8505 )
2023-09-12 11:37:28 -04:00
bluwy
4105491732
[ci] format
2023-09-12 09:58:47 +00:00
Okuto Oyama
644825845c
Removed <style>
with type="text/css"
from inline output at build time ( #8480 )
2023-09-12 17:56:52 +08:00
Erika
bf341d6762
revert: avif support ( #8511 )
2023-09-11 23:00:43 +02:00
lilnasy
fdf9b66f9b
[ci] format
2023-09-11 18:07:37 +00:00