Matthew Phillips
405913cdf2
Prevent script re-execution on page evaluation ( #8033 )
2023-08-11 08:56:12 -04:00
Emanuele Stoppa
87d4b18437
fix: middleware entry point to not be set ( #8036 )
...
* fix: middleware entry point to not be set
* chore: update tests
2023-08-11 12:24:12 +01:00
Matthew Phillips
2ee418e06a
Remove the Nelify Edge adapter ( #8029 )
2023-08-10 14:38:51 -04:00
Jerry_wu
b16cb787fd
Support --host
for Node adapter preview ( #6928 )
...
* supporting a network address access a website when an user set host = true in Node environment
* fix bug
* sumbit test code
* optimism
* delect white space
* test
* fix test
* fix test error
* test
* test
* test
* fix test error
* Optimizing code based on the comments
* optimize test
* fix: rebase issues
* chore: format
* chore: add changeset
* chore: format
* chore: format
* chore: lint
---------
Co-authored-by: wuls <linsheng.wu@beantechs.com>
Co-authored-by: Nate Moore <nate@astro.build>
2023-08-10 13:22:50 -05:00
Matthew Phillips
9cc4e48e6a
Remove the Vercel Edge adapter ( #8015 )
...
* Remove the Vercel Edge adapter
* Update tests
* Update .changeset/plenty-keys-add.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Show enabling edge middleware
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-10 13:12:13 -04:00
Nate Moore
8292c41311
fix( #5637 ): fix yarn berry support for create-astro ( #8028 )
2023-08-10 12:33:37 -04:00
Nate Moore
1b8d302099
Ensure dev server restart respects base
removal ( #8027 )
...
* fix(#6067 ): dev server restart respects base removal
* chore: remove baseCss
2023-08-10 10:52:21 -05:00
Alexander Niebuhr
ffcfcddb75
feat(@astrojs/cloudfalre): add cloudflare envs to Astro.locals
( #7541 )
...
* add support for advanced mode
* add support for directory mode
* use asset fallback as in cloudflare's docs
* update locals
* come up with new runtime in `Astro.locals`
* add overwrite protection
* minor cleanup
* changeset
* address review comments
* move overwrite protection to adapter
* fix types
* fix comment
* resolve review comments
* update changeset
* add test
* redo ts
* fix integration test port
* updated tests, add new port
* add TODO comment
* update changeset
* add JSDoc
* Update packages/integrations/cloudflare/src/runtime.ts
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-10 10:19:00 -05:00
Bjorn Lu
34cb200216
Clear todos and remove css kebab handling ( #8019 )
2023-08-10 22:15:21 +08:00
Bjorn Lu
c23377caaf
Fix getCollection return new instance in prod ( #8022 )
2023-08-10 22:13:32 +08:00
Martin Trapp
86bee28121
View Transitions: do not animate same page navigation, but animate hash links to different pages ( #8013 )
...
* Links with hash marks are now supported if they lead to a different page
* treat links to same page equally, independent of hash or not
* Links to the same page do not trigger view transitions
* special treatment for trailing hash
* view transitions: simpler rule to exclude in-page links
2023-08-10 10:07:13 -04:00
Houston (Bot)
fc30b8539c
[ci] release ( #8017 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-10 21:25:28 +08:00
Emanuele Stoppa
14b0626f3e
Merge remote-tracking branch 'origin/main' into next
2023-08-10 11:49:52 +01:00
Bjorn Lu
5b1e39ef6e
Move hoisted script analysis optimization as experimental ( #8011 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-10 12:52:57 +08:00
Marco Schumacher
ea30a9d4f2
more efficient _routes.json for cloudflare integration ( #7846 )
...
* more efficient _routes.json for cloudflare integration
* added tests
* updated pnpm-lock.yaml
* added changeset
* cleaned up test
* fix: convert window path separators
* updated docs
* handle more cases
* Apply suggestions from code review
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* incorporate feedback from code review
* used other pnpm version
* better fallback for empty include array
* adjust test case to changed fallback for empty include array
* updated docs
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-10 04:04:09 +01:00
Houston (Bot)
9cb32e2a5f
[ci] release ( #8000 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-09 15:31:34 -05:00
dave caruso
58b121d42a
Support Bun by adjusting how @babel/plugin-transform-react-jsx
is imported. ( #8007 )
...
* Support bun/other tooling that respects `__esModule`
* Add changeset file
2023-08-09 14:11:41 -05:00
Erika
08c3afb860
feat: remove @astrojs/image completely ( #7922 )
2023-08-09 15:03:59 -04:00
Emanuele Stoppa
670ef109db
Merge remote-tracking branch 'origin/main' into next
2023-08-09 16:28:14 +01:00
Jany Belluz
79376f842d
Remove nested JSON.stringify from props serialization ( #7995 )
2023-08-09 13:06:21 +01:00
Bjorn Lu
65c354969e
Fix examples check hang ( #7998 )
2023-08-09 17:06:29 +08:00
Bjorn Lu
0f637c71e5
Preserve base slash when trailingSlash ignore ( #7878 )
2023-08-09 17:02:37 +08:00
Juan Martín Seery
16161afb2b
fix: EndpointOutput
type with encoding 'binary'
( #8003 )
...
* fix: `EndpointOutput` type with encoding `'binary'`
* Changeset
2023-08-08 20:19:32 -03:00
Chris Swithinbank
315d58f27b
Add shorthand for Starlight templates to create astro
( #7993 )
...
* Add shorthand for Starlight templates to `create astro`
* Update packages/create-astro/src/actions/template.ts
* Update packages/create-astro/src/actions/template.ts
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-08 12:08:46 -05:00
Emanuele Stoppa
7bd1b86f85
feat: new attribute scope style strategy ( #7893 )
2023-08-08 12:59:56 +01:00
Bjorn Lu
70f34f5a35
Remove StreamingCompatibleResponse polyfill ( #7981 )
2023-08-08 11:04:17 +01:00
Bjorn Lu
b675acb2aa
Remove undici dep ( #7980 )
2023-08-08 11:04:17 +01:00
Bjorn Lu
3c31008519
Remove markdown component ( #7931 )
2023-08-08 11:04:17 +01:00
Houston (Bot)
2ac1c1e260
[ci] release (beta) ( #7897 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-08 11:04:14 +01:00
Emanuele Stoppa
f32d093a28
feat: change compressHTML
default value to true
( #7918 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-08 11:02:51 +01:00
Erika
7511a4980f
feat: add noop service and make integrations that needs it use it ( #7903 )
...
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-08 11:02:51 +01:00
Erika
997a0db8a4
feat: use external @astrojs/check ( #7892 )
...
* feat: use @astrojs/check
* fix: what happened in my rebase??
* nit: adjust with feedback
2023-08-08 11:02:51 +01:00
Bjorn Lu
32669cd475
Refactor MDX components exports handling ( #7904 )
2023-08-08 11:02:51 +01:00
Erika
c0de7a7b0f
feat: make Sharp the default image service ( #7908 )
...
* feat: make Sharp the default image service
* chore: lockfile
2023-08-08 11:02:51 +01:00
Emanuele Stoppa
f01eb585e7
feat: change default port to 4321 ( #7874 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-08-08 11:02:51 +01:00
Emanuele Stoppa
41390c2ebd
ci: change release tag name ( #7898 )
2023-08-08 11:02:51 +01:00
Matthew Phillips
e1ae56e724
Make Astro.cookies.get(key) return undefined ( #7888 )
2023-08-08 11:02:00 +01:00
Emanuele Stoppa
c69c347980
chore: remove deleted package
2023-08-08 11:02:00 +01:00
Emanuele Stoppa
c335881dcc
chore: enter pre release mode ( #7883 )
2023-08-08 11:02:00 +01:00
Bjorn Lu
84af8ed9d1
Move MDX plugin re-ordering hack to MDX integration ( #7872 )
2023-08-08 11:02:00 +01:00
Chris Swithinbank
e204270507
Tweak adapter config CHANGELOG ( #7853 )
2023-08-08 11:02:00 +01:00
Emanuele Stoppa
cd2d7e7698
feat: astro features ( #7815 )
2023-08-08 11:02:00 +01:00
Emanuele Stoppa
80f1494cda
feat: adapter features, deprecate astro configs ( #7839 )
2023-08-08 11:02:00 +01:00
Emanuele Stoppa
036388f66d
feat: pass logger to integrations ( #7816 )
2023-08-08 11:02:00 +01:00
Erika
364d861bd5
feat: remove automatic flattening of getStaticPaths
result ( #7845 )
...
* feat: remove automatic flattening of `getStaticPaths` result
* chore: changeset
2023-08-08 11:01:59 +01:00
Erika
148e61d249
feat: remove webapi in favor of a smaller polyfill ( #7840 )
...
* feat: remove webapi in favor of a smaller polyfill
* test: remove old test
* test: 🤦♀️
* chore: changeset
2023-08-08 11:01:45 +01:00
Emanuele Stoppa
7d2f311d42
feat: remove support for old API routes syntax ( #7822 )
2023-08-08 11:01:33 +01:00
Erika
96beb883ad
Update tsconfig.json
presets for TS 5.0 ( #7785 )
2023-08-08 11:01:33 +01:00
Emanuele Stoppa
0f06255041
feat: upper case the name of the endpoints ( #7783 )
...
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-08-08 11:01:33 +01:00
Erika
d0679a666f
Remove support for Node 16 ( #7780 )
2023-08-08 11:01:33 +01:00
Houston (Bot)
2e36d96588
[ci] release ( #7988 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-07 16:21:15 -05:00
Nate Moore
8e5a27b488
fix: ensure injectRoute
works during build ( #7986 )
2023-08-07 15:54:55 -05:00
Houston (Bot)
9509a66a7b
[ci] release ( #7958 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-07 13:51:05 -05:00
Chris Swithinbank
ec06dd9bbb
Fix formatting in Lit README ( #7985 )
...
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-07 20:03:09 +02:00
André Alves
9d0070095e
Fix missing CSS when 404 server Response redirects to a custom 404 page ( #7946 )
...
* Fix missing css import on 404 redirect
* Chore: changeset
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-07 12:51:50 -05:00
Nate Moore
c2682a17c0
Fix injectRoute
( #7943 )
...
* fix: inject route! hack!
* refactor: use integration container to resolve all injected routes
* chore: add changeset
* Fix pnpm workspace injectRoute bug
See https://github.com/withastro/astro/issues/7561#issuecomment-1620063634
Closes #7561
* Revert "Fix pnpm workspace injectRoute bug"
This reverts commit 3082c7c269
.
* Update .changeset/stupid-pants-press.md
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/vite-plugin-scripts/page-ssr.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* refactor: cleanup injectedRoute resolution logic
---------
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-08-07 11:24:28 -05:00
Nate Moore
6cd7290d2c
Refactor page filename logic ( #7983 )
...
* fix(#7561 ): refactor astro page filename logic
* chore: add changeset
2023-08-07 10:57:03 -05:00
Bjorn Lu
a4a637c8f7
Fix inline root resolve logic ( #7977 )
2023-08-07 21:43:03 +08:00
Timon Jurschitsch
51028f85c6
Add URL to RSSOptions.site type ( #7964 )
2023-08-07 16:49:55 +08:00
Matthew Phillips
a00cfb8942
Fix race condition when performing swap for fallback ( #7945 )
...
* Fix race condition when performing swap for fallback
* Adding a changeset
* Use let
2023-08-04 08:48:11 -04:00
Houston (Bot)
8226002c0a
[ci] release ( #7941 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-03 16:47:20 -05:00
Nate Moore
89cd4b877e
Handle error state for version ( #7939 )
...
* fix(create-astro): handle error state for version
* fix: handle missing version
2023-08-03 16:03:04 -05:00
Houston (Bot)
49b3cf423b
[ci] release ( #7937 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-03 15:16:51 -04:00
Matthew Phillips
4b6deda360
Export createTransitionScope from the runtime ( #7936 )
2023-08-03 14:41:08 -04:00
Nate Moore
6035bb35f2
Fix duplicate slash handling ( #7935 )
...
* fix(#7806 ): collapse duplicate slashes
* refactor: handle request.url with duplicate slashes
* chore: improve duplicate slash test
* fix: only collapse duplicate slashes once
* chore: appease TS
2023-08-03 13:13:39 -05:00
Houston (Bot)
39b044e09b
[ci] release ( #7912 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-03 10:54:48 -04:00
Bjorn Lu
1f0ee494a5
Fix failed server restart calling integration hooks twice ( #7917 )
...
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-03 22:26:24 +08:00
Matthew Phillips
41afb84057
Persistent DOM in ViewTransitions ( #7861 )
...
* First pass at transition:persist
* Persistent islands
* Changeset
* Updated compiler
* Use official release
* Upgrade again
* Refactor to allow head content to persist untouched
* >=
* Specify the types for "astro:persist"
* Automatically persist links
* Use reference for array
* Upgrade to latest compiler version
* Explain the feature
* Update .changeset/empty-experts-unite.md
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
* Update .changeset/empty-experts-unite.md
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
* Update .changeset/empty-experts-unite.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/empty-experts-unite.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-02 14:42:01 -04:00
Martin Trapp
c264be3497
Fix scroll position in view transition ( #7882 ) ( #7911 )
2023-08-02 13:07:30 -04:00
Bjorn Lu
00cb28f496
Improve sourcemap generation and performance ( #7901 )
2023-08-02 11:30:53 +08:00
ottomated
c00b6f0c49
Fix astro/app import ( #7821 )
...
* core -> core.js
* changeset
* test
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-01 18:34:22 -05:00
Hee
560d0dab1c
feat: add cache headers to assets in Vercel adapter ( #7729 )
...
* feat: cache assets in Vercel adapter
* Update tidy-tips-doubt.md
* chore: update lockfile
* Update packages/integrations/vercel/test/static-assets.test.js
* Update packages/integrations/vercel/test/static-assets.test.js
* Update packages/integrations/vercel/test/static-assets.test.js
* chore: update split test
---------
Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-01 18:06:50 -05:00
DixCouleur
4dd6c7900c
Fix "res.writeHead is not a function" in Express/node middleware ( #7708 )
...
* fix: res.writeHead is not a function
* fix: handler params type added
* fix: handler function params error
* Update packages/integrations/node/src/nodeMiddleware.ts
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-01 17:10:29 -05:00
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
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
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
Emanuele Stoppa
89d015db6c
fix: scan getStaticPaths
only in .astro
files ( #7876 )
2023-07-31 17:24:13 +01: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
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
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
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
Bjorn Lu
e50f646758
Fix head propagation for MDX components ( #7838 )
2023-07-28 18:00:53 +08: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
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
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
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
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
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
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
Bjorn Lu
0f677c009d
Refactor Astro rendering to write results directly ( #7782 )
2023-07-25 23:44:25 +08: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