summaryrefslogtreecommitdiff
path: root/examples/framework-multiple/src (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2024-03-11[ci] formatGravatar Ben Holmes 1-1/+1
2024-03-11New CLI help reference for studio and db commands (#10390)Gravatar Ben Holmes 4-22/+102
* feat: new, formatted astro db help * feat: add "studio commands" section to cli * chore: changeset * Update packages/db/src/core/cli/print-help.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update .changeset/thirty-bags-live.md Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> --------- Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2024-03-11Fixes broken transition types (#10392)Gravatar Martin Trapp 2-5/+8
* Fixes broken transition types * adds changeset * adds changeset
2024-03-11fix: remove runtime/config suggestion for db config exports (#10391)Gravatar Ben Holmes 4-6/+10
* chore: remove runtime/config from package json * fix: use relative path to dist * chore: changeset * Revert "fix: use relative path to dist" This reverts commit 16c0cc296ec52be163f0d2c213559ca07008af4b. * Revert "chore: remove runtime/config from package json" This reverts commit c1b46789983384ca66172b404a74440784888514. * refactor: types null * fix: exclude config.ts from tsc * chore: update consts * chore: comment on intellisense
2024-03-11[ci] formatGravatar Fred K. Schott 1-3/+1
2024-03-11add handling for success=false responses (#10387)Gravatar Fred K. Schott 3-2/+32
2024-03-11Add `pkg: db` to labelling automation (#10394)Gravatar Chris Swithinbank 1-0/+3
2024-03-11[ci] formatGravatar Chris Swithinbank 1-1/+1
2024-03-11Fix db for projects without a seed file or with integrations (#10385)Gravatar Chris Swithinbank 18-74/+314
* 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
2024-03-11Fix use of db.batch in Stackblitz (#10384)Gravatar Matthew Phillips 3-39/+40
* Fix use of db.batch in Stackblitz * Update .changeset/rare-items-protect.md --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-03-11Use static imports for integration seed files in `astro:db` (#10381)Gravatar Chris Swithinbank 7-33/+51
* 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>
2024-03-11[ci] release (#10365)astro@4.5.0@astrojs/vercel@7.3.6@astrojs/react@3.1.0@astrojs/mdx@2.2.0@astrojs/markdown-remark@4.3.0@astrojs/markdoc@0.9.2@astrojs/internal-helpers@0.3.0@astrojs/db@0.7.1Gravatar Houston (Bot) 62-294/+344
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-10handle undefined snapshot from API (#10378)Gravatar Fred K. Schott 4-4/+8
2024-03-08[ci] formatGravatar Arsh 9-42/+60
2024-03-08feat: middleware and virtual routes (#10206)Gravatar Arsh 18-15/+142
* add test * app * dev * api route -> page * adjust test * add changeset * remove `any` * DEFAULT_404_COMPONENT constant * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-03-08Treeshake unused Astro scoped styles (#10291)Gravatar Bjorn Lu 17-31/+166
2024-03-08[ci] formatGravatar Sarah Rainsberger 1-2/+2
2024-03-08[docs] update JSDoc for formatting in docs (#10372)Gravatar Sarah Rainsberger 1-3/+3
2024-03-08fix(tsconfigs): Add `jsx: 'preserve'` to the base template (#10368)Gravatar Erika 2-1/+8
* fix(tsconfigs): Add `jsx: 'preserve'` to the base template * chore: changeset
2024-03-08[ci] formatGravatar Zhang Zhipeng 6-10/+10
2024-03-08Add multiple cdn v2 (#10189)Gravatar Zhang Zhipeng 13-37/+289
* feat: add multiple cdn * add multiple cdn test * assetsPrefix not empty string * add changeset * simplify code * change docs * replace getFileExtension with node path.extname * Adapt node extname * multiple image test * wip space * update docs * update docs, assetsPrefix type * update docs * update docs * chore: update types and rename to `fallback` * enhance changelog * change docs * update change defaultAeestsPrefix to fallback key test * move utility to a new to avoid importing `node:path` inside vite plugins * Update packages/astro/src/@types/astro.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * chore: address Bjorn's comments * kill the variable * kill the variable /2 * Fix CI fail * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * uniform code sample * add `.` string for fit getAssetsPrefix * Fix extension function --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: bluwy <bjornlu.dev@gmail.com> Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-03-08[ci] formatGravatar Bjorn Lu 1-1/+5
2024-03-08Add `experimental.directRenderScript` option (#10102)Gravatar Bjorn Lu 30-199/+239
* Add `experimental.directRenderScript` option * Support inlining scripts * Use compiler preview release * Address feedback * Fix * Add enable by default note * Fix build * Dedupe rendered scripts * Fix test * Update deps * Update .changeset/cool-jobs-fetch.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update jsdoc * Typo * resolve merge conflicts * Fix examples check fail --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-03-08Allow Code Component to have custom props and extra class styles (#9960)Gravatar StandardGage 3-4/+24
* 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>
2024-03-08fix(toolbar): Fixes some errors tests after merges brought up (#10371)Gravatar Erika 7-17/+24
2024-03-08Fix mdx test fail with rehype-pretty-code (#10370)Gravatar Bjorn Lu 2-98/+27
2024-03-08[ci] formatGravatar Erika 2-4/+4
2024-03-08feat(audits): Add new UI (#10217)Gravatar Erika 14-340/+924
* 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>
2024-03-08[ci] formatGravatar Erika 6-9/+9
2024-03-08feat(audits): Handle mutations (#10268)Gravatar Erika 6-3/+224
* feat(audits): Handle mutations * chore: changeset * nit: add comments
2024-03-08Reload scripts (#9977)Gravatar Oliver Speir 2-4/+16
* do not add astroExec if data-astro-reload attr exists * add changeset * Update .changeset/rare-coins-jump.md Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com> * change to data-astro-rerun * Update .changeset/rare-coins-jump.md Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * add example to changeset --------- Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com> Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com> Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-03-08feat: experimental content collection JSON schemas (#10145)Gravatar Alexander Niebuhr 22-6/+359
* feat: experimental content collection JSON schemas * solves review comments * solves review comments * updates changeset * updates path * fixes formatting * removes unrelated changes * adds test * fixes lockfile * chore: fixes package name * improves code branching depth * resolves docs comments Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com> * Update packages/astro/src/content/types-generator.ts * Update .changeset/slow-items-heal.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/astro/src/@types/astro.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-03-08Allow islands to be re-rendered with new props on page transition (#10136)Gravatar Matthew Phillips 10-15/+106
* 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>
2024-03-08Add new levels of notification for dev toolbar apps (#10252)Gravatar Erika 5-25/+105
* 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>
2024-03-08fix(markdown): don’t generate mdast html nodes (#10104)Gravatar Remco Haszing 10-37/+166
* 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>
2024-03-08Move to shiki and stabilize dual themes support (#10130)Gravatar Bjorn Lu 14-51/+70
* Update to shiki * Stabilize shikiConfig.experimentalThemes * Add changeset * Fix merge issues
2024-03-08feat(toolbar): Allow every element to have every color (#10186)Gravatar Erika 7-99/+413
* 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
2024-03-08Update security flow to report on GitHub (#10328)Gravatar Bjorn Lu 1-2/+2
2024-03-08Fix check-merge workflow on PRs from forks (#10366)Gravatar Bjorn Lu 1-1/+2
2024-03-08fix(config): prevent vite from loading config (#10360)Gravatar Nicolas Mattia 2-0/+6
2024-03-07[ci] release (#10362)create-astro@4.7.4astro@4.4.15@astrojs/db@0.7.0Gravatar Houston (Bot) 44-174/+162
* [ci] release * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-03-07Rename `defineDB` to `defineDb` (#10364)Gravatar Chris Swithinbank 9-14/+22
* Rename `defineDB` to `defineDb` * Add changeset * Improve changeset
2024-03-08Revert "[ci] release (#10359)" (#10363)Gravatar Chris Swithinbank 42-151/+161
This reverts commit 76c21b19d2dfe8fba570593124cc2989c6179ba4.
2024-03-07[ci] release (#10359)Gravatar Houston (Bot) 42-161/+151
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-07[ci] formatGravatar Nate Moore 1-6/+14
2024-03-07db: scaffold db files when using `astro add db` (#10349)Gravatar Nate Moore 3-30/+75
* feat(add): scaffold db files * refactor: no `recursive` needed
2024-03-07Add batch support (#10361)Gravatar Ben Holmes 6-66/+146
* 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
2024-03-07[ci] formatGravatar Chris Swithinbank 6-8/+8
2024-03-07Add integrations API for db config/seed files (#10321)Gravatar Chris Swithinbank 22-38/+401
* 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 ef2156e41bd08919a64a799e6b9bcdc5a3f99e3a. * 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>
2024-03-07[ci] formatGravatar Ben Holmes 4-10/+10