* Fix void elements
HTML is not XML. It doesn't have self-closing tags, it has void element tags that don't need closing slashes.
Now generated void elements (e.g. link with path to style file) do not pass validation, which can be easily fixed by simply removing two characters.
* Add changeset
* Apply suggestions from code review
---------
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
* feat: db typegen on astro sync
* fix: avoid requiring db to be installed
* fix: make typegen optional for backwards compat
* chore: changeset
* fix: required -> optional
* fix: remove flags from sync API signature
* fix(db): validate column type before column schema
* add changeset
* Add test for text foreign keys
---------
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
* Add fixture and tests for integration with no user db config
* Create database tables when integration seed files load
* Defer running seed function until all modules are loaded
* Update package name
* Add test & fixture for a project with no seed file
* `recreateTables()` from `seedLocal()` (and move it out of main runtime module)
* Fix typo after rebase
* FREEZE DON’T MOVE
* Move `seedLocal` export back to runtime
* Simplify seed file normalization
* Clean up test files
* Add build tests for no-seed and integration-only fixtures
* Add changeset
* Fix use of db.batch in Stackblitz
* Update .changeset/rare-items-protect.md
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Use static imports for integration seed files in `astro:db`
* Add changeset
* Add build test for integrations fixture
* chore: comment on top-level seed imports
* fix: random db id for tests
* fix: set db id from build before
* wip: remove reset on env variable
* wip: move random db id env to top of test file
* refactor: remove unlink from db startup
* chore: remove random db id completely??
---------
Co-authored-by: bholmesdev <hey@bholmes.dev>
* Create simple react element if element has no children
* Fix for when element has text
* add changeset
* Add additionalProps to Code component and ShikiHighlighter.highlight()
* Add changeset
* Create simple react element if element has no children
* Fix for when element has text
* add changeset
* Add additionalProps to Code component and ShikiHighlighter.highlight()
* Add changeset
* reverted accidental changes
* remove unnecessary parts
* Add HTMLAttributes type to additionalProps
* Update .changeset/calm-bags-deliver.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* extend HTMLAtts instead
* add suggestions
* feat: address reviews
* chore: remove empty line
* feat: move attributes to options
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* feat(audits): Add selected style for audits
* feat(audits): Fully add new style
* feat: new iteration
* chore: changeset
* feat: separate audits by category
* fred pass
* feat: new UI
* refactor: fix everything
* fix: recreate UI on further lints
* fix: remove unnecessary changes
* chore: lockfile
* fix: tryout for descriptions
* fix: remove change, will do in other PR
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* test: fix
* nit: format styles
---------
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Allow islands to be re-rendered with new props on page transition
* Adjust the expected styles
* Restore test expectation
* Add changeset and final change
* linting
* Implement transition:persist-props behavior
* Fix lockfile
* Fix expectations
* App is hyrid
* Update .changeset/lovely-nails-cough.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/lovely-nails-cough.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/lovely-nails-cough.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Add new levels of notification
* feat: proper support
* chore: changeset
* fix: remove unrelated change
* test: add test
* feat: implement new icons
* fix: go back to previous layout
* fix: custom app number
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* fix(markdown): don’t generate mdast html nodes
`html` nodes from mdast are converted to `raw` hast nodes. These nodes
are then not processed by proper rehype plugins. Typically if a remark
plugin generates `html` nodes, this indicates it should have actually
been a rehype plugin.
This changes the remark plugins that generate `html` nodes into rehype
nodes. These were `remarkPrism` and `remarkShiki`.
Closes#9909
* Apply suggestions from code review
* refactor(mdx): move user defined rehype plugins after syntax highlighting
* fix(mdx): fix issue in mdx rehype plugin ordering
* docs: explain why html/raw nodes are avoided in changeset
This also includes some hints on what users could do to upgrade of they
rely on these nodes.
* Fix MDX rehype plugin ordering
* refactor(remark): restore remarkPrism and remarkShiki
They aren’t used anymore, but removing would be a breaking change.
* chore: mark deprecated
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/thirty-beds-smoke.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* feat(toolbar): Allow every element to have every color
* chore: changeset
* fix: add validatio
* fix: ok but what happened even
* nit: cooler messages
* fix: toggles
* deps: drizzle preview
* feat: db.batch and method run handling
* refactor: use db.batch in test fixture
* deps: bump to drizzle 0.29.5
* chore: changeset
* fix: unpin drizzle version
* fix: db execute should uh... execute
* Add integrations API for adding db config/seed files
* Fix seeding when user seed file is present
* Add basic test and fixture for integrations API
* Freeze that lockfile
* Test to see if this is a Windows fix
* Don’t import.meta.glob integration seed files
* Make integration seed files export a default function
* style: rejiggle
* Fix temporary file conflicts
* Remove changes to Astro’s core types, type utility method instead
* Use `astro:db` instead of `@astrojs/db`
* Revert unnecessarily cautious temporary path name
This reverts commit ef2156e41b.
* Add changeset
* Fix entrypoints and `asDrizzleTable` usage in changeset
* Getting Nate in on the co-author action
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Fix user seed file in integrations fixture
* Update `seedLocal()` after merge
* Provide empty `seedFiles` array in `db execute`
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* feat: check for --remote
* chore: remove bad ticketing example cols
* fix: get seed file working with build
* Revert "fix: get seed file working with build"
This reverts commit 92830a106164b0997c820a3e0bf2a582018084a0.
* fix: seed from build instead of runtime
* refactor: move recreateTables out of runtime
* Revert "refactor: move recreateTables out of runtime"
This reverts commit d01a802ad7915fabc4c4ac35b2d907eae0538d95.
* fix: in-memory db for test fixture
* chore: changeset
* refactor: generate random db name instead
* refactor: use yargs-parser for flag
* chore: remove in-memory db logi
* refactor: rename random id flag for clarity
* feat: support --remote in dev
* feat: support --remote on shell
* refactor: inline db client
* feat: support --remote on db execute
* chore: stray console log
* chore: remove recreateTables from runtime
* chore: update seeding for new signature
* chore: remove unused error imports
* fix(create-astro): add fallback when registry fails to return the current package version
* feat(create-astro): inline most current package versions as fallback
* test(create-astro): update typescript tests to check for undefined
* test(create-astro): properly reset fixtures
* refactor: read dependencies from workspace root
* refactor: error on missing values