0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
Commit graph

389 commits

Author SHA1 Message Date
Houston (Bot)
0ddc327ee8
[ci] release (#10471)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-18 22:36:58 +05:30
Arsh
7138aa4678 [ci] format 2024-03-18 14:15:46 +00:00
Arsh
83f9105cd5
fix(node): handle offshoot promise rejections (#10454)
* fix(node): handle offshoot promise rejections

* add test

* add changeset

* Update packages/integrations/node/test/errors.test.js
2024-03-18 19:44:46 +05:30
Houston (Bot)
87a3d51f2c
[ci] release (#10286)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-01 12:10:51 +00:00
Erika
d5277df5a4
fix(node): Safely create requests (#10285)
* fix(node): Wrap request creation in try catch

* chore: changeset
2024-03-01 10:26:28 +00:00
Houston (Bot)
afd41cc28b
[ci] release (#10265)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-01 10:31:12 +01:00
Satanshu Mishra
df05138ebe [ci] format 2024-03-01 08:33:27 +00:00
Satanshu Mishra
b47dcaa259
fix(node): listen on 0.0.0.0 if server.host is set to true (#10282)
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Kevin Zuniga Cuellar <46791833+kevinzunigacuellar@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-03-01 09:32:22 +01:00
Emanuele Stoppa
2dd00a0024
chore: import sort source code, exception for the astro package (#10242)
* chore: import sort source code, exception for the `astro` package

* fix import sorting bug

* Update packages/integrations/lit/server.js

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-02-27 11:15:27 +00:00
Houston (Bot)
3de7b2c7ec
[ci] release (#10213)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-23 09:31:55 -05:00
Furkan Erdem
dddbb09fe0 [ci] format 2024-02-23 13:24:45 +00:00
Furkan Erdem
8cd38f0245
Fix(node): Custom headers are not present in responses from standalone Node server in preview mode (#10208)
* fix(node): add user specified headers to preview server responses

* docs: clarify comment

* style: new line

* test: remove test

* chore: add changeset
2024-02-23 08:23:33 -05:00
Emanuele Stoppa
1e638c4019
chore: import sorting for test folder and e2e folder (#10190) 2024-02-22 13:58:10 +00:00
Emanuele Stoppa
062623438b
chore: use biome to sort imports - only test files (#10180)
* chore: use biome to sort imports

* do the sorting

* Update package.json

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-02-21 14:08:19 +00:00
Emanuele Stoppa
2351c5e5de
chore: fix failing tests and skip some (#10141) 2024-02-16 14:02:18 +00:00
ktym4a
5ff288f61b
chore: Change strictEqual to equal (#10140) 2024-02-16 11:41:16 +00:00
Fred K. Schott
055bd27d9d [ci] format 2024-02-01 21:26:08 +00:00
Arsh
4467441896
fix(NodeApp): fix responses with null bodies never completing (#9931)
* fix(NodeApp): fix responses with null bodies never completing

* add changeset

* add test

* chore(tests): restore correct assertions

* adjust incorrect test

* added Astro.redirect and Response.redirect test cases

* updated incorrect HTTP status

* adjust api-routes.test.js after cherry-pick

* bup markdoc test timeout

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Friedemann Sommer <friedemannsommer@users.noreply.github.com>
2024-02-01 16:24:21 -05:00
Houston (Bot)
2561c99598
[ci] release (#9904)
* [ci] release

* Update packages/astro/CHANGELOG.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update packages/integrations/vercel/CHANGELOG.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update packages/astro/CHANGELOG.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-02-01 10:04:19 +00:00
Arsh
d702d6ae50 [ci] format 2024-02-01 07:03:42 +00:00
Arsh
2f6d1faa6f
fix(NodeApp): end with "Internal server error" on mid-stream error (#9908)
* fix(NodeApp): end with "Internal server error" on mid-stream error

* add changeset

* add test

* Apply suggestions from code review

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-02-01 07:02:40 +00:00
Emanuele Stoppa
041fdd5c89
feat(i18n): domain support (#9143)
* i18n(domains): validation and updated logic (#9099)

* feat(i18n): domain with lookup table (#9112)

* chore: add changelog, fix types and enable experimental support in node/vercel

* rebase and update lock file

* chore: fix failing test

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by:  Matthew Phillips <matthew@skypack.dev>

* Update .changeset/tidy-carrots-jump.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* wip

* chore: rebase, conflicts and tests

* update lock file

* chore: correct configuration

* chore: correct configuration

* fix: regressions

* chore: fix conflicts and add more tests

* chore: add more validation

* chore: more tests and add more restrictions

* fix changeset

* change and revert adapters

* add another restriction

* lock file update

* Update packages/astro/src/@types/astro.ts

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update packages/astro/src/@types/astro.ts

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

* wat

* fix syntax error

* fix config example

* Fix for #9673 (#9680)

* Fix for #9673

* 🦋 add changeset file

* Update breezy-plants-smoke.md

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

* ️ simplified normalizeConfigPath

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

* Fix env var replacement for export const prerender (#9807)

* feat(alpinejs): allow customizing the Alpine instance (#9751)

* feat(alpinejs): allows customzing the Alpine instance

* chore: add e2e tests

* fix: rename script

* Update index.ts

* fix: lockfile

* [ci] format

* chore: use correct lock file

* chore: rebase

* fix regressions in tests

* fix regressions in tests

* fix build

* add description

* fix missing types

* chore: fix tests, again :D

* eslint

* Update packages/astro/src/@types/astro.ts

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* chore: address feedback

* chore: fix regressions

* chore: refactor naming

* Update packages/astro/src/core/app/index.ts

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

* chore: address feedback

* update lock file

* chore: infer routing from options, not strategy

* merge from main

* merge from main

* Experimental support in vercel adapter

* Update packages/astro/src/@types/astro.ts

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update packages/astro/src/@types/astro.ts

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update .changeset/tidy-carrots-jump.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* better changesets

* Updates both experimental.i18nDomains and i18ndomains for experimental strategy

* fix link syntax

* consistent tabs/spaces

* Update packages/astro/src/@types/astro.ts

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* apply suggestion

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Lou Cyx <git@lou.cx>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Florian Lefebvre <ematipico@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-31 13:55:03 +00:00
Emanuele Stoppa
bcc504dae0
chore: add rule switch-exhaustiveness-check (#9867)
* chore: add rule `switch-exhaustiveness-check`

* apply feedback

* routing is always defined
2024-01-30 08:35:08 +00:00
Emanuele Stoppa
a3df9d83ca
fix(core): don't noop shared modules (#9828)
* fix(core): don't noop shared modules

* address feedback

* add test

* changeset

* check astro pages

* address feedback

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-26 17:17:32 +00:00
Houston (Bot)
8281ebddaa
[ci] release (#9802)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-26 13:30:42 +00:00
Emanuele Stoppa
d777adc5ca [ci] format 2024-01-25 16:18:40 +00:00
Emanuele Stoppa
fc21a3c306
chore(@astrojs/node): use Node.js for testing (#9758)
* chore(@astrojs/node): use Node.js for testing

* revert file

* address feedback

* feedback

* Run tests in a single process (#9823)

* Run tests in a single process

* Make test less flaky

* chore: remove module

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-25 16:17:31 +00:00
Marvin
6206fa91e5 [ci] format 2024-01-25 10:24:46 +00:00
Marvin
a12196d6b5
feat(node): add trailingSlash support (#9080)
* feat(node): add trailing slash support

* add changeset

* test(node): add base route test in trailing-slash.js

detected an infinite loop in base path when trailingSlash: never

* fix(node): avoid infinite redirect when trailingSlash: never

* address test failures after rebase pt.1

* address test failures after rebase pt.2

---------

Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
2024-01-25 10:23:27 +00:00
Bjorn Lu
b3f313138b
Fix env var replacement for export const prerender (#9807) 2024-01-24 14:42:24 +00:00
Houston (Bot)
2292d0b580
[ci] release (#9709)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-18 10:30:19 +00:00
Emanuele Stoppa
9680cf2780 [ci] format 2024-01-17 13:11:46 +00:00
Emanuele Stoppa
d6edc75408
Adapter enhancements (#9661)
* quality of life updates for `App` (#9579)

* feat(app): writeResponse for node-based adapters

* add changeset

* Apply suggestions from code review

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* Apply suggestions from code review

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* add examples for NodeApp static methods

* unexpose createOutgoingHttpHeaders from public api

* move headers test to core

* clientAddress test

* cookies test

* destructure renderOptions right at the start

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* Fallback node standalone to localhost (#9545)

* Fallback node standalone to localhost

* Update .changeset/tame-squids-film.md

* quality of life updates for the node adapter (#9582)

* descriptive names for files and functions

* update tests

* add changeset

* appease linter

* Apply suggestions from code review

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* `server-entrypoint.js` -> `server.js`

* prevent crash on stream error (from PR 9533)

* Apply suggestions from code review

Co-authored-by: Luiz Ferraz <luiz@lferraz.com>

* `127.0.0.1` -> `localhost`

* add changeset for fryuni's fix

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Luiz Ferraz <luiz@lferraz.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* chore(vercel): delete request response conversion logic (#9583)

* refactor

* add changeset

* bump peer dependencies

* unexpose symbols (#9683)

* Update .changeset/tame-squids-film.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Luiz Ferraz <luiz@lferraz.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-17 13:10:43 +00:00
Houston (Bot)
d854330571
[ci] release (#9541)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-02 10:26:33 -05:00
Arsh
af59b83162 [ci] format 2023-12-29 15:49:10 +00:00
Arsh
48f47b50a0
fix(node): prevent crash on stream error (#9533)
* fix(node): prevent crash on stream error

* add changeset

* Apply suggestions from code review
2023-12-29 21:17:52 +05:30
Houston (Bot)
98fa8f02ab
[ci] release (#9491)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-27 13:34:07 -05:00
Sarah Rainsberger
36bedf1a5f [ci] format 2023-12-21 20:36:15 +00:00
Sarah Rainsberger
1baf0b0d3c
[docs] minimal integration READMEs (#9479)
Co-authored-by: Emanuele Stoppa <602478+ematipico@users.noreply.github.com>
Co-authored-by: Elian <15145918+ElianCodes@users.noreply.github.com>
Co-authored-by: Alexander Niebuhr <45965090+alexanderniebuhr@users.noreply.github.com>
2023-12-21 16:35:11 -04:00
Houston (Bot)
97342d218e
[ci] release (#9457)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-20 17:39:13 +00:00
Alex Nguyen
6bf470cfb8
Fix typo in @astrojs/node README (#9471) 2023-12-19 08:28:43 +00:00
Houston (Bot)
f47b85ce6f
[ci] release (#9365)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-11 11:57:19 +00:00
Arsh
1b4e918981
chore: update peer dependencies (#9366) 2023-12-07 23:34:14 +08:00
Houston (Bot)
5f13e7e0dc
[ci] release (#9307)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-12-05 09:39:16 -04:00
Erika
4aa8091582
fix: enforce separate type imports (#9288) 2023-12-04 17:56:32 +01:00
bluwy
05628aaa3c Merge branch 'main' into next 2023-11-30 22:42:29 +08:00
Houston (Bot)
c495f1ac17
[ci] release (beta) (#9228)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-29 13:50:18 -05:00
Arsh
49aa215a01
Switch app.render signature (#9199)
* feat(app): app.render optional object

* tests

* update vercel and node

* update changeset

* deprecation notice and loggin

* clarify changeset

* add node, vercel changeset

* deduplicate code
2023-11-29 21:08:42 +05:30
Houston (Bot)
d0d5ff78c9
[ci] release (#9202)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-28 10:07:52 -06:00
Erika
000e8f4654
feat: implement overlay main screen redesign (#9118)
* feat: implement redesign

* fix: make it build

* feat: visual tweaks

* feat(overlay): update styling, integration endpoint

* feat: add fallback icons

* Clean up tests (#9183)

* Add `@astrojs/upgrade` package for automatic package upgrades (#8525)

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* [ci] format

* fix: links with same path but different search params not prefetched (#9189)

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* fix: discord icon

* chore: changeset

---------

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Spencer Whitehead <35475068+SpencerWhitehead7@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-11-28 09:39:38 -05:00