* fix(mdx): convert remark-images-to-component plugin to a rehype plugin (#10697)
* Remove fs read for MDX transform (#10866)
* Tag MDX component for faster checks when rendering (#10864)
* Use unified plugin only for MDX transform (#10869)
* Only traverse children and handle mdxJsxTextElement when optimizing (#10885)
* Rename to `optimize.ignoreComponentNames` in MDX (#10884)
* Allow remark/rehype plugins added after mdx to work (#10877)
* Improve MDX optimize with sibling nodes (#10887)
* Improve types in rehype-optimize-static.ts
* Rename `ignoreComponentNames` to `ignoreElementNames`
I think this better reflects what it's actually doing
* Simplify plain MDX nodes in optimize option (#10934)
* Format code
* Minimize diff changes
* Update .changeset/slimy-cobras-end.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Improve content collection styles and scripts build perf
* Update test
It was actually a bug. There was an empty module script injected.
* Skip test
* Fix test not matching non-ccc behaviour
* Workaround bug to make test pass
* Update .changeset/grumpy-pillows-develop.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Wait until after build to preserve content modules
* Properly build hoisted scripts
* Add changeset
* Fix tests hitting each other
* Global state, the shame
* Move the file copying over to earlier in the process
* fix: don't include port twice from x-forwarded-host and x-forwarded-port headers
* add changeset
* add test for port both in forwarded host and forwarded port
* don't include port if undefined
* Update .changeset/forty-wolves-turn.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* fix: move recreateTables() to integration hooks
* feat: recreate and seed at load, not in virtual runtime
* feat: eager build db on startup and seed file change
* fix: respect database_file in dbUrl
* chore: remove duplicate recreateTables call
* chore: remove now self-explanatory comments
* fix: remove invalidateModule call for eager loading
* feat: respect seed package paths
* fix: remove duplicate recreateTables() call
* refactor: move recreateTables() to vite-plugin-db
* refactor: move queries.ts from runtime/ to core/
* fix: update test import to core/queries
* refactor: move executeSeedFile to vite-plugin-db
* refactor: extract seeding and recreating to helper fns
* chore: changeset
* chore: revert connectToStudio refactor
* wip: log db url
* fix(test): normalize astro_database_file flag for windows
* Revert "wip: log db url"
This reverts commit 558e2de67a09a611377929b625127c649b8504d6.
* Revert "Revert "wip: log db url""
This reverts commit ffd004e00dff485b7bc5ddde0278dde6ff058b9e.
* fix: correctly resolve relative paths with unit test
* chore: remove unused dbDirPath
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* chore: remove unused import
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* chore: remove unused type
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* fix: remove bad import
* [db] Load seed files with vite dev server (#10941)
* feat: load seed files with full vite dev server
* chore: remove unused export
---------
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Detection and cancelation of previous navigations and view transitions
* typos and wording
* typos and wording
* add test for animation cancelation
* second round
* final touches
* final final touches
* Clear the most recent navigation after view transition finished
* feat(toolbar): Add a `astro:toolbar` module
* fix: use entrypoint
* feat: add new shape for defining toolbar apps
* fix: types
* feat(toolbar): Add helpers features (#10667)
* feat(toolbar): Add helpers features
* fix: consistent payloads and naming
* chore: changeset
* nit: rename eventTarget to app
* feat: add server-side helpers
* test: update test to use new APIs
* fix: types
* nit: erikaaaaa
* feat: add new event
* Update .changeset/khaki-pianos-burn.md
* test: use data to create text
* Apply suggestions from code review
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* nit: use diff
* nit: documentation effort
* test: fix
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* nit: small changes to helpers
* nit: update changeset
* fix: move to astro/toolbar for building purposes
* feat(toolbar): Add a toolbar example (#10793)
* feat: add a toolbar starter
* test: skip examples that are not Astro projects
* nit: small changes
* feat: setup for build step
* fix: add to devdep
* docs: add commands to README
* fix: reorder classes to make more sense
* fix: add improvements from recipe
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>