0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-31 23:31:30 -05:00
Commit graph

122 commits

Author SHA1 Message Date
Vitalii Rybachenko
f392bef0cf [ci] format 2025-02-13 11:23:13 +00:00
Matt Kane
8d4e566f54
feat: add support for automatic session driver config (#13145)
* feat: add support for automatic session driver config

* chore: fix error logic

* Lint test

* Add node support

* Add node test fixture

* Lock

* Add Netlify support

* Use workspace Astro version

* Format

* Changeset

* Add tests

* Add dep for tests

* chore: fix repo URL

* temp log

* Fix module resoltuion

* [skip ci] Update changeset

* chore: bump peer dependencies

* Changes from review

* Changeset changes from review

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>

* More changeset detail

* Lock

---------

Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
2025-02-12 14:57:03 +00:00
Matt Kane
9b65e1b359 [ci] format 2025-02-12 10:35:26 +00:00
Matt Kane
23094a1f48
fix: use shared helper for file extensions (#13223)
* fix: use shared helper for file extensions

* Lock
2025-02-12 10:34:32 +00:00
Emanuele Stoppa
74c0bbeb39
chore: fix linting issues, integration tests (#13187)
* chore: fix linting issues

* chore: update packages and directories

* apply suggestions

Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
2025-02-07 14:59:13 +00:00
Emanuele Stoppa
4e7d97fb09 [ci] format 2025-02-06 15:08:28 +00:00
Emanuele Stoppa
8d0ab54b0a chore: fix linting 2025-02-06 13:58:44 +00:00
renovate[bot]
bba875a16c [ci] format 2025-02-06 13:11:10 +00:00
Emanuele Stoppa
9f54f0ebdb fix: tests and skip few of them 2025-02-06 11:10:07 +00:00
Emanuele Stoppa
b91c35aeeb fix: deps and test utils 2025-02-05 16:28:13 +00:00
Matt Kane
0f3e23b50a chore(node): add tests for preview host (#518)
* Add tests

* Format
2025-01-23 13:24:12 +00:00
renovate[bot]
90bb35100c fix(deps): update all non-major dependencies (#503) 2025-01-14 10:47:30 +08:00
renovate[bot]
f6989c7a7d fix(deps): update all non-major dependencies (#457)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2025-01-07 23:36:12 +08:00
Emanuele Stoppa
c19ba1c1e9 refactor: readability (#463) 2024-12-04 12:00:03 +00:00
Matt Kane
a1edab6dd7 test(node): add image tests (#459)
* chore(node): add image tests

* Format

* Format
2024-12-03 15:30:35 +00:00
Emanuele Stoppa
a5803c74d8 test: use Astro v5 and update cloudflare assertions (#460)
* test: use Astro v5 and update cloudflare assertions

* disable check origin

* disable check origin

* update test

* fix another test

* remove logging

* format
2024-12-03 12:58:56 +00:00
Alexander Niebuhr
66b2fe2515 Merge branch 'main' into next 2024-09-17 07:52:50 +02:00
Alexander Niebuhr
7072f16e48 Adapter related changes for IntegrationData (#377)
* chore: port adapter related changes from astro #11864

* chore: bump version

* chore: bump

* fix: types

* fix

* fix: tests

* fix: locals

* Update expected image endpoint

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2024-09-16 13:31:49 -04:00
Erika
8ab2c8c018 feat: remove hybrid (#375)
* feat: remove hybrid

* fix: udpate with new API

* fix: update for latest next changes

* fix: more test-utils fix

* fix: build

* fix: build

* fix: tests

* fix: netlify

* fix: astro env

* fix: use types from AStro

* chore: changeset
2024-09-11 14:26:50 +02:00
renovate[bot]
31c7767ee8 chore(deps): update all non-major dependencies (#382)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-09 12:14:27 +08:00
renovate[bot]
cf4f1315e0 chore(deps): update all non-major dependencies (#370)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-09-02 19:57:07 +08:00
Alexander Niebuhr
8f650fbc9c chore: next to use astro v5 2024-08-29 08:50:03 +02:00
Alexander Niebuhr
dc9e610035 chore: fix testutils 2024-08-29 08:47:15 +02:00
Alexander Niebuhr
b93bc0a0c7 chore: supress linting 2024-08-29 08:45:22 +02:00
Alexander Niebuhr
0c67820480 chore: format 2024-08-29 08:28:37 +02:00
Alexander Niebuhr
c0aedf5b6a chore: fix testutils 2024-08-29 08:25:56 +02:00
Alexander Niebuhr
1b6f89c5b4 chore: supress linting 2024-08-29 08:17:42 +02:00
Alexander Niebuhr
29f97307e3 Merge branch 'node' into main 2024-08-29 07:51:04 +02:00
Alexander Niebuhr
a31854bfe8 Merge branch 'node' into next 2024-08-29 07:49:19 +02:00
Erika
08dce54a47 Refactor/types (#11715)
* refactor: types

* feat: refactor types

* chore: organize imports

* fix: remaining references

* docs: types

* refactor: small changes

* chore: changeset
2024-08-16 14:07:10 +02:00
Bjorn Lu
48322519b6 Deprecates exporting prerender with dynamic values (#11657)
* wip

* done i think

* Add changeset

* Use hook instead

* Reorder hooks [skip ci]

* Update .changeset/eleven-pens-glow.md

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

* Fix run

* Fix link

* Add link

Co-authored-by: Sarah Rainsberger <sarah11918@users.noreply.github.com>

* More accurate migration [skip ci]

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Sarah Rainsberger <sarah11918@users.noreply.github.com>
2024-08-14 11:05:19 +01:00
Matthew Phillips
eb31d0af28 [ci] format 2024-08-13 12:59:45 +00:00
Matthew Phillips
e4422606e7 Encrypt server islands props (#11535)
* Encrypt server islands props

* Comment on the hex algo

* Use @oslojs/encoding

* Rename functions

* Add base to test

* Remove old tests no longer valid

* Run test locally

* Make sure adapters run before manifest

* Add a changeset

* Adjust test adapter

* don't assume adapter is at root

* Add a changeset

* Updates on review comments

* Update oslo

* Add better description of Node adapter change
2024-08-13 08:58:47 -04:00
Darius
26c65914b1 update formatter config (#11640)
* update formatter config

* format

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-08-08 12:12:50 +02:00
Bjorn Lu
7a816ccbc3 Refactor prerendering chunk handling (#11245) 2024-06-17 14:23:10 +08:00
Jakob Hellermann
0c8da00eba fix: don't include port twice from x-forwarded-host and x-forwarded-port headers (#10917)
* fix: don't include port twice from x-forwarded-host and x-forwarded-port headers

* add changeset

* add test for port both in forwarded host and forwarded port

* don't include port if undefined

* Update .changeset/forty-wolves-turn.md

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-05-03 15:01:25 -04:00
Raz Luvaton
f79886cb8e test(@astrojs/node) wait for server listening in trailing-slash tests (#10694)
* test(@astrojs/node) wait for server listening in trailing-slash tests

* fix missing waitServerListen

* fix import statement

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-04-05 15:30:59 +02:00
Raz Luvaton
b6a572b75d test(@astrojs/node) listen for server setup errors in test-utils (#10692) 2024-04-05 13:24:00 +01:00
Arsh
934f8583b5 [ci] format 2024-04-03 13:30:23 +00:00
Arsh
68817f7a00 fix(app/node): include x-forwarded-port header in url (#10666)
* fix(app/node): include `x-forwarded-port` header in url

* add changeset

* add test
2024-04-03 18:57:23 +05:30
Houston (Bot)
0310a1f3f3 [ci] update lockfile (#10551)
Co-authored-by: matthewp <matthewp@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-04-02 11:02:18 +08:00
Andrés Correa Casablanca
d83b4c4102 [ci] format 2024-03-19 15:44:07 +00:00
Andrés Correa Casablanca
fd7be674ef fix: do not append trailing slash to subresource urls (#10491)
* fix: do not append traling slash to subresource urls

Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>

* test: fix broken test

Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>

* refactor: packages/integrations/node/src/serve-static.ts

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>

---------

Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-03-19 21:13:08 +05:30
Arsh
ef6d0acd31 [ci] format 2024-03-18 14:15:46 +00:00
Arsh
29d29e8d00 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
Satanshu Mishra
3351f7400e [ci] format 2024-03-01 08:33:27 +00:00
Satanshu Mishra
88a242b3fc 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
Furkan Erdem
2d27e0dbc9 [ci] format 2024-02-23 13:24:45 +00:00
Furkan Erdem
31595ad495 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
37f8e3b901 chore: import sorting for test folder and e2e folder (#10190) 2024-02-22 13:58:10 +00:00