summaryrefslogtreecommitdiff
path: root/packages/integrations/node/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-08-30chore: move node and vercel to adapters repo (#11866)Gravatar Alexander Niebuhr 91-2802/+0
2024-08-14Deprecates exporting prerender with dynamic values (#11657)Gravatar Bjorn Lu 1-0/+62
* 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-13[ci] formatGravatar Matthew Phillips 1-1/+1
2024-08-13Encrypt server islands props (#11535)Gravatar Matthew Phillips 1-1/+3
* 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-08update formatter config (#11640)Gravatar Darius 3-4/+4
* update formatter config * format --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-06-17Refactor prerendering chunk handling (#11245)Gravatar Bjorn Lu 4-42/+97
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-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-19[ci] formatGravatar Andrés Correa Casablanca 1-3/+3
2024-03-19fix: do not append trailing slash to subresource urls (#10491)Gravatar Andrés Correa Casablanca 2-53/+71
* 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] formatGravatar Arsh 1-9/+9
2024-03-18fix(node): handle offshoot promise rejections (#10454)Gravatar Arsh 2-2/+30
* fix(node): handle offshoot promise rejections * add test * add changeset * Update packages/integrations/node/test/errors.test.js
2024-03-01[ci] formatGravatar Satanshu Mishra 1-14/+14
2024-03-01fix(node): listen on 0.0.0.0 if server.host is set to true (#10282)Gravatar Satanshu Mishra 1-0/+21
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-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 3-0/+48
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] 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-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-25[ci] formatGravatar Emanuele Stoppa 1-1/+1
2024-01-25chore(@astrojs/node): use Node.js for testing (#9758)Gravatar Emanuele Stoppa 14-135/+165
* 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 1-15/+16
2024-01-25feat(node): add trailingSlash support (#9080)Gravatar Marvin 6-6/+451
* 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-17[ci] formatGravatar Emanuele Stoppa 1-2/+2
2024-01-17Adapter enhancements (#9661)Gravatar Emanuele Stoppa 6-88/+4
* 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>
2023-11-30Merge branch 'main' into nextGravatar bluwy 3-0/+58
2023-11-28feat: implement overlay main screen redesign (#9118)Gravatar Erika 2-1/+1
* 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[ci] formatGravatar Matthew Phillips 1-2/+2
2023-11-28Support immutable cache headers for _astro assets (#9125)Gravatar Matthew Phillips 3-0/+58
* Support immutable cache headers for _astro assets * Update .changeset/twelve-fishes-fail.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update packages/integrations/node/src/http-server.ts * Update expected max-age * Add teh docs * Update .changeset/twelve-fishes-fail.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/integrations/node/README.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-11-27Remove support for simple objects in endpoints (#9181)Gravatar Bjorn Lu 1-6/+4
* Deprecate simple object from endpoints * Update changeset * Add missing Response return Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com> * Update .changeset/clever-beds-notice.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-11-28Remove deprecated features from Astro 3.0 (#9168)Gravatar Bjorn Lu 1-1/+1
2023-11-28Clean up tests (#9183)Gravatar Bjorn Lu 2-1/+1
2023-11-15[ci] formatGravatar pilcrowOnPaper 1-1/+1
2023-11-16Cancel response stream when connection closes (#9071)Gravatar pilcrowOnPaper 3-1/+42
* cancel stream on close * add changeset * add test * Update .changeset/modern-ways-develop.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-12[ci] formatGravatar natemoo-re 1-2/+2
2023-10-12fix(middleware): instantiate locals if the adapter does not (#8800)Gravatar Arsh 5-5/+42
2023-09-22nit: optimize images (#8629)Gravatar Erika 1-0/+0
2023-09-12Removed `<style>` with `type="text/css"` from inline output at build time ↵Gravatar Okuto Oyama 1-1/+1
(#8480)