summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-06-09[ci] release (#7318)create-astro@3.1.7astro@2.6.2@astrojs/svelte@3.0.0@astrojs/markdown-component@1.0.5Gravatar Houston (Bot) 26-57/+86
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-09[ci] formatGravatar matthewp 1-1/+1
2023-06-09Fixes an issue where create Astro doesn't respect custom npm registries (#7326)Gravatar Caleb Williams 6-4/+42
* Fixes an issue where create Astro doesn't respect custom npm registries * chore: fix pnpm-lock * chore: update lockfile --------- Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-09[ci] formatGravatar matthewp 3-14/+22
2023-06-09Fix redirects in dev mode (#7342)Gravatar Matthew Phillips 4-54/+109
* Fix redirects in dev mode * Adding a changeset
2023-06-09Remove error message for using Markdown component (#7343)Gravatar Matthew Phillips 2-7/+6
2023-06-08Better dynamic route regex error (#7339)Gravatar Ben Holmes 3-2/+61
* feat: add helpful invalid route seg error * chore: add errors-data entry * refactor: add hint for non-spread errors * chore: add `undefined` to common cases * nit: if the param contains slashes * chore: changeset * chore: it's trivial my dear watson
2023-06-08Fix/update spread attribute (#7310)Gravatar Edo-San 2-1/+6
* fix: add default fallback for spreadAttributes values * chore: add PR changeset * chore: fix pnpm lock --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-07Fix: catch and report config errors from `handleConfigError` (#7316)Gravatar Ben Holmes 2-16/+20
* fix: catch and report config errors from `handleConfigError` * chore: changeset
2023-06-07Refactor some integration tests (#7303)Gravatar Bjorn Lu 12-180/+192
2023-06-07Mark #7314 changeset as major (#7320)Gravatar Bjorn Lu 1-1/+1
2023-06-06Update to svelte2tsx 0.6.15 and vite-plugin-svelte 2.4.1 (#7314)Gravatar wackbyte 4-17/+42
2023-06-06[ci] release (#7312)astro@2.6.1@astrojs/mdx@0.19.7@astrojs/markdoc@0.3.2Gravatar Houston (Bot) 19-231/+36
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-06[ci] formatGravatar bholmesdev 2-4/+4
2023-06-06Fix: Markdoc type errors (#7311)Gravatar Ben Holmes 8-20/+68
* fix: config, prism, shiki exports * fix: type error for `render` property * chore: use `.ts` files in select tests for type checks * fix: type error on shiki() promise * chore: changeset
2023-06-06Fix [Object AsyncGenerator] logging for Markdoc components (#7307)Gravatar Ben Holmes 10-136/+6
* Revert "Bug 6672 (#7062)" This reverts commit cf621340b00fda441f4ef43196c0363d09eae70c. * chore: remove unused test * chore: changeset
2023-06-06Fix missing styles and scripts on `document: {render:null}` (#7309)Gravatar Ben Holmes 5-35/+20
* fix: propagate assets when using document `render: null` * fix: reverse spread order * refactor: use README rec in test * chore: changeset * chore: revert unneeded changes
2023-06-06[docs-errors] Astro.redirects link changed (#7308)Gravatar Sarah Rainsberger 1-2/+2
2023-06-06chore: remove docs example (#7306)Gravatar Nate Moore 43-2519/+0
2023-06-06[ci] release (#7295)astro@2.6.0@astrojs/vercel@3.5.0@astrojs/underscore-redirects@0.1.0@astrojs/node@5.2.0@astrojs/netlify@2.3.0@astrojs/image@0.17.0@astrojs/cloudflare@6.4.0Gravatar Houston (Bot) 33-156/+165
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-06[ci] formatGravatar natemoo-re 7-238/+234
2023-06-06#7226 - fixes NodeJS adapter for multiple set-cookie headers (and other ↵Gravatar Alex Sherwin 24-2/+404
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 3-1/+49
* 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-06Fix injected scripts not injected to injected routes (#7262)Gravatar André Alves 5-1/+56
* Fix injected scripts not injected to injected routes * chore: changeset --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-06fix note syntax in Netlify README (#7305)Gravatar Sarah Rainsberger 1-1/+2
2023-06-06Fix nested astro-island hydration race condition (#7197)Gravatar Bjorn Lu 3-3/+14
2023-06-05[ci] formatGravatar natemoo-re 1-2/+2
2023-06-05Unflag hybrid output (#7260)Gravatar Nate Moore 29-141/+68
* feat(hybrid): unflag hybrid output * chore: cleanup rebase errors
2023-06-06Remove experimental flag for custom client directives (#7237)Gravatar Bjorn Lu 10-53/+5
2023-06-05feat(tsconfigs): Enable allowJs in base preset (#7274)Gravatar Erika 3-2/+11
2023-06-05[ci] formatGravatar matthewp 5-7/+3
2023-06-05feat: remove experimental flag middleware (#7109)Gravatar Emanuele Stoppa 16-83/+45
* fix: middleware for API endpoints * feat: remove experimental flag middleware * chore: rebase and update * chore: check if physical file exists * chore: restore change * merge * merge * fix: remove options, not needed * remove experimental from types * chore: don't have the middleware inside the manifest * Update how redirects work, slightly --------- Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-06-05[ci] formatGravatar Princesseuh 1-1/+1
2023-06-05fix(html): Export HTML components as default export so their type is valid ↵Gravatar Erika 4-9/+12
JSX (#7296) Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-06-05[ci] formatGravatar matthewp 1-1/+1
2023-06-05Stabilize inline stylesheets (#7180)Gravatar Arsh 5-34/+61
* changeset * chore(inline stylesheets config): stabilize * grammar * not a major change * Update inlineStylesheets version in the configuration reference Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-06-05[ci] formatGravatar matthewp 33-202/+225
2023-06-05Redirects (#7067)Gravatar Matthew Phillips 70-319/+1733
* Redirects spike * Allow redirects in static mode * Support in Netlify as well * Adding a changeset * Rename file * Fix build problem * Refactor to be more modular * Fix location ref * Late test should only run in SSR * Support redirects in Netlify SSR configuration (#7167) * Implement support for dynamic routes in redirects (#7173) * Implement support for dynamic routes in redirects * Remove the .only * No need to special-case redirects in static build * Implement support for redirects config in the Vercel adapter (#7182) * Implement support for redirects config in the Vercel adapter * Remove unused condition * Move to a internal helper package * Add support for the object notation in redirects * Use status 308 for non-GET redirects (#7186) * Implement redirects in Cloudflare (#7198) * Implement redirects in Cloudflare * Fix build * Update tests b/c of new ordering * Debug issue * Use posix.join * Update packages/underscore-redirects/package.json Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Update based on review comments * Update broken test --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Test that redirects can come from middleware (#7213) * Test that redirects can come from middleware * Allow non-promise returns for middleware * Implement priority (#7210) * Refactor * Fix netlify test ordering * Fix ordering again * Redirects: Allow preventing the output of the static HTML file (#7245) * Do a simple push for priority * Adding changesets * Put the implementation behind a flag. * Self review * Update .changeset/chatty-actors-stare.md Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/astro/src/@types/astro.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/astro/src/@types/astro.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/astro/src/@types/astro.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/astro/src/@types/astro.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update docs on dynamic restrictions. * 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> * Code review changes * Document netlify static adapter * Update packages/astro/src/@types/astro.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Slight reword * Update .changeset/twenty-suns-vanish.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Add a note about public/_redirects file * Update packages/astro/src/@types/astro.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-05Fixes cookies being set by middleware (#7294)Gravatar Matthew Phillips 6-1/+19
* Fixes cookies being set by middleware * Adding a changeset
2023-06-05[ci] formatGravatar bluwy 3-6/+28
2023-06-05remove the white space after the doctype according to the property co… (#7242)Gravatar Jerry_wu 5-9/+18
2023-06-05Simplify Deno test (#7276)Gravatar Bjorn Lu 3-105/+37
2023-06-02[ci] release (#7278)create-astro@3.1.6Gravatar Houston (Bot) 3-6/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-02Add 'starlight' as template alias (#7277)Gravatar Nate Moore 2-3/+12
* feat(create-astro): add starlight as template alias * chore: lint
2023-06-02[ci] release (#7254)astro@2.5.7@astrojs/sitemap@1.3.3@astrojs/mdx@0.19.6@astrojs/markdoc@0.3.1Gravatar Houston (Bot) 25-56/+53
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-02Run example check in parallel with 5 at most (#7275)Gravatar Bjorn Lu 3-5/+17
2023-06-02Fix Vitest with content collections (#7233)Gravatar Bjorn Lu 3-0/+54
2023-06-02Content collections: ignored underscore directories in file glob (#7268)Gravatar Ben Holmes 2-6/+23
* fix: ignored underscore dirs in glob * chore: changeset
2023-06-02[ci] formatGravatar bluwy 1-1/+1
2023-06-02fix(astro/core/app/node): support http2 requests (#7215)Gravatar Benjamin MENANT 2-3/+9