summaryrefslogtreecommitdiff
path: root/packages/integrations/node/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
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)
2023-08-22Merge remote-tracking branch 'origin/main' into nextGravatar Emanuele Stoppa 2-1/+50
2023-08-21fix(@astrojs/node): handler should work with `express` (#8176)Gravatar Emanuele Stoppa 2-1/+50
2023-08-18Switch `build.inlineStylesheets` default to auto (#8118)Gravatar Arsh 1-1/+1
* switch inlineStylesheets default * use previous default for astro/test * use previous default for content-collections-render.test.js * integrations: node, deno, mdx, markdown * typedocs: switch inlineStylesheets default * Update example to show non-default * add changeset * reword changeset --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-17Merge branch 'main' into nextGravatar Matthew Phillips 12-33/+232
2023-08-17[ci] formatGravatar ematipico 1-18/+17
2023-08-17Prerendering corner cases (#8070)Gravatar Arsh 11-33/+175
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-16feat: unflag experimental.assets (#7921)Gravatar Erika 1-3/+0
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-15Stream request body instead of buffering it in memory (#8084)Gravatar hbgl 2-3/+58
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
2023-08-08Remove undici dep (#7980)Gravatar Bjorn Lu 2-2/+0
2023-08-08Fix node test fail (#7950)Gravatar Bjorn Lu 14-17/+15
2023-08-01[ci] formatGravatar bluwy 2-3/+7
2023-08-01Refactor 404 and 500 approach (#7754)Gravatar Nate Moore 6-13/+244
* 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-07-26test: add test in the Node adapter for astro:assets (#7734)Gravatar Erika 4-0/+59
2023-07-18nit: use `node:` prefix everywhere (#7692)Gravatar Erika 2-4/+4
* nit: use `node:` prefix everywhere * nit: fs/promises too * test: workaround issue in node builtin detection
2023-07-03feat: use typescript-eslint@v6's reworked configs (#7425)Gravatar Josh Goldberg ✨ 2-3/+2
2023-06-28fix: correctly handle prerender pages in split mode (#7509)Gravatar Emanuele Stoppa 1-1/+1
2023-06-21feat: expose locals to render api and from requests in dev mode (#7385)Gravatar Emanuele Stoppa 4-0/+76
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: wrapperup <wrapperup4@gmail.com>
2023-06-06[ci] formatGravatar natemoo-re 2-200/+197
2023-06-06#7226 - fixes NodeJS adapter for multiple set-cookie headers (and other ↵Gravatar Alex Sherwin 19-0/+339
header issues) (#7227) * Utilizes the new standard WebAPI Fetch Headers.getSetCookie() function to safely handle multiple set-cookie headers when converting from a WebAPI Response to a NodeJS ServerResponse Modifies the existing nodeMiddleware logic which first set AstroCookies on ServerResponse.setHeader(...) and then called ServerResponse.writeHead(status, Response.headers) which means any that if the WebAPI Response had any set-cookie headers on it, they would replace anything from AstroCookies. The new logic delegates appending AstroCookie values onto the WebAPI Response Headers object, so that a single unified function safely converts the WebAPI Response Headers into a NodeJS compatible OutgoingHttpHeaders object utilizing the new standard Headers.getSetCookie() function provided by the undici WebAPI polyfills. Plus extensive test coverage. * #7226 - changeset for NodeJS adapter set-cookie fix * fixing all double quotes to single quotes --------- Co-authored-by: Alex Sherwin <alex.sherwin@acadia.inc> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-06fix:query not considered in directory redirection (#7243)Gravatar Riki 1-0/+36
* fix:query not considered in directory redirection * feat: req.url may be empty * test(node): add redirect + query param tests * refactor(node): cleanup query param logic * chore: remove log * chore: add changeset --------- Co-authored-by: Riki <947968273@qq.com> Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-05Unflag hybrid output (#7260)Gravatar Nate Moore 1-6/+0
* feat(hybrid): unflag hybrid output * chore: cleanup rebase errors
2023-05-31Revert "feat(hybrid): unflag hybrid output (#7255)" (#7259)Gravatar Nate Moore 1-0/+6
This reverts commit bc5d6ed39faf2f73eab161774bf66ebc5fd00db2.
2023-05-31feat(hybrid): unflag hybrid output (#7255)Gravatar Nate Moore 1-6/+0
2023-05-17feat: hybrid output (#6991)Gravatar Happydev 2-9/+139
* update config schema * adapt default route `prerender` value * adapt error message for hybrid output * core hybrid output support * add JSDocs for hybrid output * dev server hybrid output support * defer hybrid output check * update endpoint request warning * support `output=hybrid` in integrations * put constant variable out of for loop * revert: reapply back ssr plugin in ssr mode * change `prerender` option default * apply `prerender` by default in hybrid mode * simplfy conditional * update config schema * add `isHybridOutput` helper * more readable prerender condition * set default prerender value if no export is found * only add `pagesVirtualModuleId` ro rollup input in `output=static` * don't export vite plugin * remove unneeded check * don't prerender when it shouldn't * extract fallback `prerender` meta Extract the fallback `prerender` module meta out of the `scan` function. It shouldn't be its responsibility to handle that * pass missing argument to function * test: update cloudflare integration tests * test: update tests of vercel integration * test: update tests of node integration * test: update tests of netlify func integration * test: update tests of netlify edge integration * throw when `hybrid` mode is malconfigured * update node integraiton `output` warning * test(WIP): skip node prerendering tests for now * remove non-existant import * test: bring back prerendering tests * remove outdated comments * test: refactor test to support windows paths * remove outdated comments * apply sarah review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * docs: `experiment.hybridOutput` jsodcs * test: prevent import from being cached * refactor: extract hybrid output check to function * add `hybrid` to output warning in adapter hooks * chore: changeset * add `.js` extension to import * chore: use spaces instead of tabs for gh formating * resolve merge conflict * chore: move test to another file for consitency --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-05-15Fix double prepended forward slash in certain cases (#7091)Gravatar Happydev 1-43/+90
* test: add test with no base * fix: don't always prepend a forward slash * chore: changeset * `'/' + base` ------> `prependForwardSlash(base)`
2023-05-12[ci] formatGravatar matthewp 1-1/+1
2023-05-12Correct handle directory finds when using base in the Node adapter (#7076)Gravatar Matthew Phillips 1-3/+12
2023-05-01Catch errors that occur within the stream in the Node adapter (#6935)Gravatar Matthew Phillips 3-0/+55
* Catch errors that occur within the stream in the Node adapter * Adding a changeset * Better error message on completely uncaught errors within the stream * Update test
2023-04-13Ensure unique workspace name (#6836)Gravatar Bjorn Lu 1-1/+1
2023-04-04fix(node): Fix malformed URLs crashing the server in certain cases (#6746)Gravatar Erika 3-0/+56
2023-02-02Node adapter: handle prerendering and serving with query params (#6110)Gravatar Matthew Phillips 4-0/+90
* Node adapter: handle prerendering and serving with query params * Adding a changeset
2023-01-26Fix `Astro.url.protocol` when using the @astrojs/node SSR adapter with HTTPS ↵Gravatar HiDeoo 3-0/+93
(#5992)
2023-01-12[ci] formatGravatar natemoo-re 1-1/+1
2023-01-12fix(core): handle encoded characters when matching routes (#5836)Gravatar Nate Moore 5-1/+71
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-11Add support for serving well-known URIs with the @astrojs/node SSR adapter ↵Gravatar HiDeoo 4-0/+58
(#5832)
2023-01-10[ci] formatGravatar bluwy 2-5/+5
2023-01-11can jump 404 when that page does not exist (#5701)Gravatar wulinsheng123 5-3/+76