summaryrefslogtreecommitdiff
path: root/packages/integrations/node (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-05-03fix: don't include port twice from x-forwarded-host and x-forwarded-port ↵Gravatar Jakob Hellermann 1-0/+20
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-04-22chore(deps): update all non-major dependencies (#10833)Gravatar renovate[bot] 1-2/+2
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-04-05test(@astrojs/node) wait for server listening in trailing-slash tests (#10694)Gravatar Raz Luvaton 2-1/+8
* 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-05test(@astrojs/node) listen for server setup errors in test-utils (#10692)Gravatar Raz Luvaton 1-3/+10
2024-04-03[ci] formatGravatar Arsh 1-4/+4
2024-04-03fix(app/node): include `x-forwarded-port` header in url (#10666)Gravatar Arsh 4-19/+38
* fix(app/node): include `x-forwarded-port` header in url * add changeset * add test
2024-04-02[ci] update lockfile (#10551)Gravatar Houston (Bot) 1-2/+0
Co-authored-by: matthewp <matthewp@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-03-20[ci] release (#10488)create-astro@4.7.5astro@4.5.7@astrojs/node@8.2.5@astrojs/db@0.9.0Gravatar Houston (Bot) 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-19[ci] formatGravatar Andrés Correa Casablanca 2-4/+4
2024-03-19fix: do not append trailing slash to subresource urls (#10491)Gravatar Andrés Correa Casablanca 3-54/+76
* 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-18[ci] release (#10471)astro@4.5.6@astrojs/node@8.2.4@astrojs/db@0.8.7Gravatar Houston (Bot) 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-18[ci] formatGravatar Arsh 2-15/+17
2024-03-18fix(node): handle offshoot promise rejections (#10454)Gravatar Arsh 3-5/+46
* fix(node): handle offshoot promise rejections * add test * add changeset * Update packages/integrations/node/test/errors.test.js
2024-03-01[ci] release (#10286)astro@4.4.8@astrojs/node@8.2.3Gravatar Houston (Bot) 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-01fix(node): Safely create requests (#10285)Gravatar Erika 1-1/+9
* fix(node): Wrap request creation in try catch * chore: changeset
2024-03-01[ci] release (#10265)astro@4.4.7@astrojs/node@8.2.2Gravatar Houston (Bot) 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-01[ci] formatGravatar Satanshu Mishra 2-15/+15
2024-03-01fix(node): listen on 0.0.0.0 if server.host is set to true (#10282)Gravatar Satanshu Mishra 2-3/+30
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-02-27chore: import sort source code, exception for the `astro` package (#10242)Gravatar Emanuele Stoppa 8-16/+16
* 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-23[ci] release (#10213)astro@4.4.4@astrojs/vercel@7.3.3@astrojs/node@8.2.1@astrojs/db@0.4.0Gravatar Houston (Bot) 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-23[ci] formatGravatar Furkan Erdem 1-1/+1
2024-02-23Fix(node): Custom headers are not present in responses from standalone Node ↵Gravatar Furkan Erdem 4-0/+61
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-22chore: import sorting for test folder and e2e folder (#10190)Gravatar Emanuele Stoppa 2-3/+3
2024-02-21chore: use biome to sort imports - only test files (#10180)Gravatar Emanuele Stoppa 13-25/+25
* 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-16chore: fix failing tests and skip some (#10141)Gravatar Emanuele Stoppa 2-27/+38
2024-02-16chore: Change `strictEqual` to `equal` (#10140)Gravatar ktym4a 1-1/+1
2024-02-01[ci] formatGravatar Fred K. Schott 1-5/+3
2024-02-01fix(NodeApp): fix responses with null bodies never completing (#9931)Gravatar Arsh 6-18/+81
* 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[ci] release (#9904)astro@4.3.0@astrojs/vercel@7.1.0@astrojs/node@8.2.0Gravatar Houston (Bot) 2-1/+7
* [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[ci] formatGravatar Arsh 1-3/+3
2024-02-01fix(NodeApp): end with "Internal server error" on mid-stream error (#9908)Gravatar Arsh 2-2/+28
* 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-01-31feat(i18n): domain support (#9143)Gravatar Emanuele Stoppa 1-0/+1
* 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-30chore: add rule `switch-exhaustiveness-check` (#9867)Gravatar Emanuele Stoppa 3-3/+3
* chore: add rule `switch-exhaustiveness-check` * apply feedback * routing is always defined
2024-01-26fix(core): don't noop shared modules (#9828)Gravatar Emanuele Stoppa 4-2/+56
* 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[ci] release (#9802)create-astro@4.7.2astro@4.2.5@astrojs/vercel@7.0.2@astrojs/rss@4.0.4@astrojs/node@8.1.0@astrojs/alpinejs@0.4.0Gravatar Houston (Bot) 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-25[ci] formatGravatar Emanuele Stoppa 1-1/+1
2024-01-25chore(@astrojs/node): use Node.js for testing (#9758)Gravatar Emanuele Stoppa 15-138/+166
* 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[ci] formatGravatar Marvin 2-28/+27
2024-01-25feat(node): add trailingSlash support (#9080)Gravatar Marvin 9-22/+500
* 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-24Fix env var replacement for export const prerender (#9807)Gravatar Bjorn Lu 1-0/+38
2024-01-18[ci] release (#9709)astro@4.2.0@astrojs/vercel@7.0.0@astrojs/sitemap@3.0.5@astrojs/node@8.0.0@astrojs/mdx@2.0.5@astrojs/markdown-remark@4.1.0@astrojs/markdoc@0.8.3Gravatar Houston (Bot) 2-1/+16
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-17[ci] formatGravatar Emanuele Stoppa 8-86/+82
2024-01-17Adapter enhancements (#9661)Gravatar Emanuele Stoppa 20-528/+357
* 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-02[ci] release (#9541)astro@4.0.9@astrojs/vue@4.0.7@astrojs/vercel@6.1.2@astrojs/upgrade@0.2.2@astrojs/node@7.0.4Gravatar Houston (Bot) 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-29[ci] formatGravatar Arsh 1-4/+11
2023-12-29fix(node): prevent crash on stream error (#9533)Gravatar Arsh 1-11/+19
* fix(node): prevent crash on stream error * add changeset * Apply suggestions from code review
2023-12-27[ci] release (#9491)astro@4.0.8@astrojs/vue@4.0.6@astrojs/vercel@6.1.1@astrojs/tailwind@5.1.0@astrojs/svelte@5.0.3@astrojs/solid-js@3.0.3@astrojs/sitemap@3.0.4@astrojs/react@3.0.9@astrojs/preact@3.0.2@astrojs/partytown@2.0.3@astrojs/node@7.0.3@astrojs/mdx@2.0.3@astrojs/markdoc@0.8.2@astrojs/lit@4.0.1@astrojs/alpinejs@0.3.2Gravatar Houston (Bot) 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-21[ci] formatGravatar Sarah Rainsberger 1-1/+1
2023-12-21[docs] minimal integration READMEs (#9479)Gravatar Sarah Rainsberger 1-221/+22
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-20[ci] release (#9457)astro@4.0.7@astrojs/vue@4.0.5@astrojs/tailwind@5.0.4@astrojs/svelte@5.0.2@astrojs/react@3.0.8@astrojs/node@7.0.2@astrojs/mdx@2.0.2@astrojs/markdoc@0.8.1Gravatar Houston (Bot) 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>