* Base Environment
* SSRRoutePipeline -> AppEnvironment
* BuildPipeline -> BuildEnvironment
* DevPipeline -> DevEnvironment
* per-request pipeline
* internal middleware: i18n
* delete callEndpoint
* pipeline access for internal middleware
* Address review comments
`environment.ts` is now lives directly in `src/core`, rather than `src/core/render`.
`environment.createPipeline` is removed. `Pipeline.create` is used instead.
Constructors with positional arguments are replaced by `Environment.create` with named arguments.
Clarifies the use of `HiddenPipeline`.
* migrate some of `RenderContext`'s responsibilities to `Pipeline`
* delete renderPage
* RenderContext.params -> Pipeline.params
* delete `RenderContext`
* `Pipeline` -> `RenderContext`
* `Environment` -> `Pipeline`
* `AppEnvironment` -> `AppPipeline`
* `BuildEnvironment` -> `BuildPipeline`
* `DevEnvironment` -> `DevPipeline`
* provide locals directly to renderContext
* add changeset
* add remote image dimension probing, and param for getImage options, and new astro error
* add inferSize parameter to getImage, which probes remote image size, and respective types to picture and image component
* add fixture and tests
* add changeset
* attempt to fix pnpm-lock.yaml
* fix pnpm-lock.yaml again
* pnpm-lock spacing
* fix pnpm-lock AGAIN
* better description of error for docgen
* improve failed to probe error message and correct required dimensions error
* increase timeout for mdx tests
* increasing mdx timeout to 2min to see if it passes, will reduce if it does
* setting mdx timeout to 70 seconds
* Update packages/astro/src/assets/services/service.ts
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
* refactor to move logic to getImage instead of validateOptions and to not add a third type to image and picture
* fix broken link created by docs PR
* remove the probe-image-size library due to its use of node APIs
* undo all changes to service.ts that were left after moving inferSize logic to getImage
* update error message
* remove probe-image-size library all together, update error message, add vendored version of complete image-size library instead of refactored version
* Update .changeset/tame-cameras-change.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/tame-cameras-change.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* reword the error message based on Sarah's previous review
* remove probe-image-size from pnpmlock
* fix lockfile?
* update error message name
* move image-size into vendor folder
* add eslint ignore to a line in image-size
* test if change to mdx test timeout was needed
* Update .changeset/tame-cameras-change.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* update changset syntax
* patch parse heif to account for filetype block being out of order
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Improve Node.js performance using an AsyncIterable
* Oops
* Get rid of extra abstraction
* Update .changeset/hip-cherries-behave.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* Check if already resolved
* Resolve on done
* Get rid of unneeded "done"
* Done when length is zero
* Let errors resolve
* Update packages/astro/src/runtime/server/render/astro/render.ts
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Move doctype to top-level
* Document the new function
* Update .changeset/hip-cherries-behave.md
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Update .changeset/hip-cherries-behave.md
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Fixes an issue with view transition names containing spaces or punctuation.
* reworked, more robust approach
* better readability and also escapes the escape character (_)
* update changeset
* add comemnts to describe the re-encoding
* updated changeset
* typos
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* simplify decoding it ever required.
* better coverage and now also checks animation behavior
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* fix: Fixing the issue of errors caused by multiple values in the role, when multiple roles exist, check each role.
fix#9856
* Update .changeset/eight-flowers-remain.md
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Fix an issue where ReadableStream wasn't canceled in dev mode
* Add changeset
* add test
---------
Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
* feat(markdoc): Add support for using a custom component for images
* chore: changeset
* test: add test
* Update .changeset/shaggy-spies-sit.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* Create simple react element if element has no children
* Fix for when element has text
* add changeset
* minor -> patch
---------
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* fix: use correct data object when parsing schema
* feat(test): add `strict()` to slug schema test
* chore: changeset
* docs: "Adds support for"
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
---------
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* fix(i18n): fix regression in current locale
* Update .changeset/shy-wolves-ring.md
* Update packages/astro/test/i18n-routing.test.js
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Update .changeset/six-fishes-beg.md
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* fix test case
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Revert "fix(compiler): Support dynamic slot names (#9605)"
This reverts commit 8ce40a417c.
* chore: changeset
* Update .changeset/weak-pans-sit.md
* chore: bump compiler version
* 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
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>