summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2024-01-22[ci] release (#9728)astro@4.2.2@astrojs/rss@4.0.3@astrojs/mdx@2.0.6@astrojs/markdown-remark@4.2.0Gravatar Houston (Bot) 47-123/+114
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-22normalize class property (#9723)Gravatar Degreat 2-3/+12
* normalize class property * Add changeset * properly type return value * normalize styles, rename function * properly describe change Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> --------- Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-22[ci] formatGravatar Nate Moore 1-7/+2
2024-01-22Add new top-level passthrough config option (#9767)Gravatar Nate Moore 4-0/+45
* feat: add db as top-level config value * merge * add passthrough db command * refactor: remove extra changes * docs: update type info * chore: remove changeset
2024-01-22fix: add missing attribute to button (#9762)Gravatar Emanuele Stoppa 2-0/+7
* fix: add missing attribute to button * feedback
2024-01-22fix(i18n): pass `build.format` when computing the redirect (#9739)Gravatar Emanuele Stoppa 9-7/+105
* fix(i18n): pass `build.format` when computing the direct * Update .changeset/fifty-pots-greet.md Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> * update tests * add more tests --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-22[ci] formatGravatar Tak Tran 1-26/+28
2024-01-22Fix dot files not being copied over on non-root builds (#9740) (#9741)Gravatar Tak Tran 2-1/+6
* Fix dot files not being copied over on non-root builds (#9740) When running `astro build` outside of where the astro files are, dotfiles are not copied over because the `includeDotfiles` parameter is not passed in. * update changeset * Update changeset description --------- Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-01-22fix(rss): rssSchema definition to allow calling standard zod object methods ↵Gravatar Florian Lefebvre 2-17/+12
(#9746) * fix(rss): rssSchema definition to allow calling standard zod object methods * fix: condition
2024-01-20[ci] formatGravatar Bjorn Lu 1-1/+1
2024-01-20Make `@astrojs/markdown-remark` browser-safe (#9738)Gravatar Bjorn Lu 8-20/+67
2024-01-19Fix `@astrojs/markdown-remark` bundling for non-node runtimes (#9736)Gravatar Bjorn Lu 2-1/+7
2024-01-19fix getRelativeLocaleUrl when redirectToDefaultLocale is false (#9730)Gravatar Blede 3-2/+224
* fix getRelativeLocaleUrl when redirectToDefaultLocale is false * Added tests * Fixed getLocaleRelativeUrlList
2024-01-19Refactor style-only HMR cache and performance (#9712)Gravatar Bjorn Lu 9-175/+145
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-18fix(compiler): Support dynamic slot names (#9605)Gravatar Happydev 9-9/+78
* chore: try new compiler version * update mergeSlots function * chore: update lock file * add tests * simplify `mergeSlots` code * update compiler version * update lock file * fix failing test We were expecting the source code to produce an error, but in 2.4.0 of the compiler, that generates valid code * chore: changeset * chore: update deps --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Nate Moore <nate@astro.build>
2024-01-18[ci] formatGravatar Martin Trapp 1-1/+1
2024-01-18makes the output of 'astro preferences list' more verbose (#9381)Gravatar Martin Trapp 3-20/+79
* makes astro preference list more verbose * adds changeset * refactor: improve global flag language * Update .changeset/selfish-donuts-approve.md --------- Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-18[ci] release (#9727)astro@4.2.1Gravatar Houston (Bot) 31-60/+61
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-18[ci] formatGravatar Luiz Ferraz 2-18/+18
2024-01-18Fix regression in the routing priority of index routes (#9726)Gravatar Luiz Ferraz 3-46/+111
* fix: Fix regression in the routing priority of index routes * chore: Add changeset * Update .changeset/smart-rules-train.md Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> --------- Co-authored-by: Matthew Phillips <matthew@matthewphillips.info> Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-18Fix eslint warnings (#9721)Gravatar Bjorn Lu 13-24/+13
* Fix eslint warnings * Revert endpoint changes to be safe
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) 60-296/+284
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-18Avoid vite 5.1 warning (#9719)Gravatar Bjorn Lu 3-2/+7
2024-01-17[ci] formatGravatar Sarah Rainsberger 1-1/+1
2024-01-17[docs] fix syntax error, avoid a Markdown table (#9713)Gravatar Sarah Rainsberger 1-8/+8
2024-01-17@astrojs/sitemap: Fixes generated URLs when using a `base` with a SSR ↵Gravatar André Alves 3-5/+50
adapter (#9704) * Fix base path formatting for ssr adapters * Update .changeset/curly-seals-count.md Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> --------- Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-17[ci] formatGravatar Luiz Ferraz 1-28/+30
2024-01-17Implement priority overrides for injected routes and redirects (#9439)Gravatar Luiz Ferraz 6-193/+755
* Implement priority overrides for injected routes and redirects * Fix ordering for route specificity * Don't mix rules on tests * Detailed collision detection * Add changeset * Remove TODO * Add comments to clarify default values * Update terminology * Revert unrelated changes * WIP * Refactor * Fix typo and typing * chore: default to legacy * chore: use experimental flag instead of option * fix: do not throw an error on collisions * chore: fix regression * chore: use `continue` instead of `return` * chore: fix tests but one * chore: Update test * chore: Change remaining new error to warning * chore: Test collision warnings * docs: Update docs of new config * docs: Improve changesets * chore: rename experimental flag * chore: update changeset and docs * Sarah editing pass * nit: Align Markdown table * defined definitions! Co-authored-by: Luiz Ferraz <luiz@lferraz.com> * added logging info to docs for experimental flag * Yan final boss review Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com> * chore: Update flag name in tests * chore: Update flag name in tests --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2024-01-17[ci] formatGravatar Emanuele Stoppa 1-1/+1
2024-01-17feat(i18n): disable redirect to default language (#9638)Gravatar Emanuele Stoppa 14-52/+260
* feat(i18n): disable redirect * feat(i18n): add option to disable redirect to default language * chore: add schema validation * docs * changeset * Update packages/astro/src/core/config/schema.ts Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * chore: address feedback * fix test * Update .changeset/cyan-grapes-suffer.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/astro/src/@types/astro.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Fix discord fetch code (#9663) * Force re-execution of Partytown's head snippet on view transitions (#9666) * Remove the header script before a view transition takes place to force a reload on the next page * Add changeset * Save another char * [ci] format * fix(assets): Implement all hooks in the passthrough image service (#9668) * fix(assets): Implement all hooks in the passthrough image service * chore: changeset * refactor(toolbar): Rename every internal reference of overlay/plugins to toolbar/apps (#9647) * refactor(toolbar): Rename every internal reference of overlay/plugins to toolbar/apps * refactor: rename vite plugin * fix: update import * nit: add setting fallback * Disable file watcher for internal one-off vite servers (#9665) * Use node:test and node:assert/strict (#9649) * [ci] format * fix(i18n): emit an error when the index isn't found (#9678) * fix(i18n): emit an error when the index isn't found * changeset * Update .changeset/proud-guests-bake.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * rename * Update packages/astro/src/core/errors/errors-data.ts Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> * feat(i18n): add option to disable redirect to default language * chore: rebase * Update packages/astro/src/@types/astro.ts Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * lock file update --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com> Co-authored-by: Martin Trapp <martrapp@users.noreply.github.com> Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> Co-authored-by: Bjorn Lu <bluwy@users.noreply.github.com> Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-17[ci] formatGravatar Oliver Speir 3-44/+52
2024-01-17Allow remark plugins to affect getImage call for .md files (#9566)Gravatar Oliver Speir 12-58/+215
* pass hProperties to getImage for optimized imgs * fix to allow multiple images to have hProps added * update test to reflect new expected result * add comment back in Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> * add srcset * works on multiple images * fix tests, fix images.ts type and remove console logs * add warning back to images.ts again lol * update changeset to be user oriented * Update calm-socks-shake.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * pass alt through getImage * added fixture and test * update lockfile * fix lockfile again (had installed an extra package during testing and had sharp33 installed) * update test to reflect passing alt through getImage --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-17Bump shikiji, use transformers API, expose transformers API (#9643)Gravatar Degreat 12-105/+132
* Bump shikiji, use transformers API, expose transformers API * update astro config schema * include shikiji-core * Use default import * address css-variables theme * Remove shikiji markdoc * Improve schema transformers handling * Fix tests * Update changeset * bump shikiji version * Update .changeset/six-scissors-worry.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update wording Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: bluwy <bjornlu.dev@gmail.com> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-17[Content collections] Remove "unsupported file type" warning (#9671)Gravatar Ben Holmes 4-73/+27
* feat: remove "unsupported file type" warning for CC * chore(test): remove unsupported file type unit * chore: remove unused imports * chore: changeset * chore: changeset edits * edit: add note on underscores to exclude content Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * edit: front-load "removes the requirement" 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>
2024-01-17feat: add experimental client prerender (#9644)Gravatar Ross Robino 6-2/+206
* feat: add experimental client prerender * Update packages/astro/src/@types/astro.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * docs: add more details about effects of the feature * add changeset * add tests * edit jsdoc and changeset with suggestions * Update packages/astro/src/@types/astro.ts Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * Update packages/astro/src/prefetch/index.ts Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * Update .changeset/sixty-dogs-sneeze.md 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/sixty-dogs-sneeze.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/sixty-dogs-sneeze.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * 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: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-17[ci] formatGravatar Emanuele Stoppa 14-153/+148
2024-01-17Adapter enhancements (#9661)Gravatar Emanuele Stoppa 34-789/+706
* 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-17Update a11y.ts (#9567)Gravatar Oliver Speir 2-3/+67
* improve error message and allow for aria-label, aria-labelledby, img alt and svg title * add checks for input * Update packages/astro/src/runtime/client/dev-overlay/plugins/audit/a11y.ts Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Update .changeset/orange-trainers-learn.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-17Simplify HMR for circular imports and CSS (#9706)Gravatar Bjorn Lu 12-103/+110
2024-01-16[ci] release (#9669)astro@4.1.3@astrojs/partytown@2.0.4Gravatar Houston (Bot) 40-95/+80
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-15fix: image proxy not working correctly (#9659)Gravatar Erika 18-30/+129
* fix: image proxy not working correctly * fix: only take in valid images * test: add tests * Create slimy-mayflies-vanish.md * nit: remove erika-ism
2024-01-15Add fallback compile for astro script and style load (#9664)Gravatar Bjorn Lu 2-2/+20
2024-01-15fix(ViewTransition): Disables View Transition form handling when the ↵Gravatar An Li 4-1/+24
`action` property points to an external URL.(#9674) (#9693)
2024-01-12[ci] formatGravatar Arsh 1-1/+1
2024-01-13fix(transitions router): attempt to find the clicked element within an open ↵Gravatar Arsh 4-0/+26
shadow root (#9685) * implementation * add test * add changeset
2024-01-12Update `check-merge` action (#9682)Gravatar Nate Moore 1-11/+15
2024-01-12fix(i18n): emit an error when the index isn't found (#9678)Gravatar Emanuele Stoppa 4-0/+29
* fix(i18n): emit an error when the index isn't found * changeset * Update .changeset/proud-guests-bake.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * rename * Update packages/astro/src/core/errors/errors-data.ts Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-12[ci] formatGravatar Bjorn Lu 1-1/+1
2024-01-12Use node:test and node:assert/strict (#9649)Gravatar Bjorn Lu 9-55/+119
2024-01-12Disable file watcher for internal one-off vite servers (#9665)Gravatar Bjorn Lu 3-2/+7