* fix(types): Fix InferGetStaticParamsType (and its props equivalent) not working when getStaticPaths wasn't async
* chore: changeset
* fix: use type imports
* update lit-ssr dependency
* delete unnecessary lit shim checks
* delete another unused lit shim feature
* fix sass build
* bump lit and polyfill versions to match ssr req
* shim HTMLElement in test
* remove lit global shim workarounds
* re-shim Astro's ce.define
* remove fix window test and shim HTML Element
* Update .changeset/gold-windows-fly.md
Co-authored-by: Augustine Kim <ajk830@gmail.com>
* fix window check test
* implement suggestoins
---------
Co-authored-by: Augustine Kim <ajk830@gmail.com>
* fix(images): Improve error handling around the new assets feature
* fix: add missing error message
* fix(images): Fix schema preprocessing logic returning undefined when the file doesn't exist
* test: add tests
* chore: lockfile
* chore: changeset
* Apply suggestions from code review
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
* test: remove console.logs
* fix(images): properly join with path
* fix: attempt a fix
* test: remove console.log
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* fix: add undefined test for global for SSR
---------
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* fix(images): Fix images having the wrong path when using `base`
* test(images): Add test for using images with base
* test: add more tests
* chore: changeset
* fix: paths
* refactor: feedback
* fix: updating a few camel-cased properties on the LinkHTMLAttributes type
* chore: add changeset
---------
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
* Fix for Node SSR with Express JSON middleware fails on POST
* Removed the unwanted setting of the req property
* Removed the unwanted setting of the req property
* Removed the unwanted setting of the req property
* Fixed the if statement to not break the existing logic and unit test
* Cleaned up the if statement
* Changed to better solution from Geoffrey-Pliez
* Added class NodeIncomingMessage with body defined as any
---------
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
* Avoid implicit head injection when there is a head element in the tree
* more
* only do it once
* Update the tests
* Update more tests
* update compiler version
* See if scope stuff can be removed now
* Move up where head injection occurs
* Remove result scoping
* wip: scrappy implementation. It works! 🥳
* chore: add code comments on inline utils
* fix: code cleanup, run on experimental.assets
* feat: support ~/assets alias
* fix: spoof `astro:assets` when outside experimental
* test: image paths in dev and prod
* feat: support any vite alias with ctx.resolve
* fix: avoid trying to process absolute paths
* fix: raise helpful error for invalid vite paths
* refactor: revert URL support on emitAsset
* chore: lint
* refactor: expose emitESMImage from assets base
* wip: why doesn't assets exist
* scary chore: make @astrojs/markdoc truly depend on astro
* fix: import emitESMImage straight from dist
* chore: remove type def from assets package
* chore: screw it, just ts ignore
* deps: rollup types
* refactor: optimize images during parse step
* chore: remove unneeded `.flat()`
* fix: use file-based relative paths
* fix: add back helpful error
* chore: changeset
* deps: move astro back to dev dep
* fix: put emit assets behind flag
* chore: change to markdoc patch