* 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
* feat(images): Resolve images in the frontmatter relative to the current file
* fix(images): Only recursively go through the object if it's not undefined
* fix(images): Add more safeguards
* test(images): Update content collections tests to be relative
* chore: changeset
* WIP fix image integration in Netlify
* Add a changeset
* Try another way
* Get the chunks folder
* try inlining
* deep sigh
* fix some things
* more
* Remove some stuff
* remove unused imports
* Add changeset
* remove unused --copy-wasm
* Remove unused post:build
* fix(images): Fix using optimized images in Markdown
* test(images): Update tests to be a bit more robust + new tests
* chore: changeset
* refactor: use spreadAttributes instead