0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
Commit graph

5504 commits

Author SHA1 Message Date
Erika
959ca5f9f8
feat(toolbar): Allow every element to have every color (#10186)
* 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-08 11:52:50 +01:00
Nicolas Mattia
ac766647b0
fix(config): prevent vite from loading config (#10360) 2024-03-08 12:22:58 +08:00
Houston (Bot)
82d81a1485
[ci] release (#10362)
* [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-07 19:53:37 -06:00
Chris Swithinbank
3f27e09628
Rename defineDB to defineDb (#10364)
* Rename `defineDB` to `defineDb`

* Add changeset

* Improve changeset
2024-03-07 19:21:03 -06:00
Chris Swithinbank
b6ccaa6dc7
Revert "[ci] release (#10359)" (#10363)
This reverts commit 76c21b19d2.
2024-03-08 01:45:27 +01:00
Houston (Bot)
76c21b19d2
[ci] release (#10359)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-07 14:55:50 -05:00
Nate Moore
6964b6f9a6 [ci] format 2024-03-07 19:51:22 +00:00
Nate Moore
7001ae48db
db: scaffold db files when using astro add db (#10349)
* feat(add): scaffold db files

* refactor: no `recursive` needed
2024-03-07 13:50:23 -06:00
Ben Holmes
988aad6705
Add batch support (#10361)
* 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 14:49:46 -05:00
Chris Swithinbank
52fba64cb2 [ci] format 2024-03-07 19:20:45 +00:00
Chris Swithinbank
2e4958c8a7
Add integrations API for db config/seed files (#10321)
* 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>
2024-03-07 20:19:17 +01:00
Ben Holmes
e086a9f8c8 [ci] format 2024-03-07 18:39:47 +00:00
Ben Holmes
06fe94e29d
Add --remote flag for remote connection (#10352)
* 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
2024-03-07 13:38:43 -05:00
Nate Moore
123f6f8551 [ci] format 2024-03-07 18:16:14 +00:00
Nate Moore
2aec2cdc21
Adds create-astro fallback values for package versions (#10255)
* 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
2024-03-07 12:14:48 -06:00
Chris Swithinbank
bad9b583a2
Update seed to use export default function() instead of top-level await (#10334)
* Update fixtures seed files to export default function

* Call default export when running seed files

* Add changeset
2024-03-07 13:04:16 -05:00
Ben Holmes
5a9dab286f
Fix: drizzle vs. config runtime export conflict (#10357)
* fix: drizzle vs config export problem

* chore: remove drizzle runtime export

* chore: changeset
2024-03-07 12:55:33 -05:00
Matthew Phillips
652bd497dc [ci] format 2024-03-07 16:38:45 +00:00
Matthew Phillips
9f422e9bd3
db: rename experimentalVersion to version (#10348)
* db: rename experimentalVersion to version

* Fix tests

* Update .changeset/fluffy-bobcats-arrive.md

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-03-07 11:37:36 -05:00
Arsh
e7eb83252e [ci] format 2024-03-07 16:26:03 +00:00
Arsh
33583e8b31
fix(rendering): prevent removal of necessary <astro-slot> elements (#10317)
* fix(rendering): prevent removal of necessary `<astro-slot>` elements

* add test

* add changeset

* missed a spot

* adjust test

* assume `supportsAstroStaticSlot`

* bring back accidentally removed `markHTMLString` call
2024-03-07 21:55:03 +05:30
Houston (Bot)
3de48e8f62
[ci] release (#10354)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-07 15:31:00 +00:00
Emanuele Stoppa
8ce9fffd44
fix(routing): regression on partial dynamic routes (#10355)
* fix(routing): regression on partial dynamic routes

* Update .changeset/eight-spoons-nail.md

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-03-07 14:48:39 +00:00
Arsh
4eab7f4ac3 [ci] format 2024-03-07 14:46:00 +00:00
Arsh
f33cce8f6c
fix(Astro global): parity with ctx.site (#10325)
* move `createResult()` into `RenderContext`

* `Astro.site`-`ctx.site` parity

* shared `clientAdress()` implementation

* remove base from `manifest.site`

* astro global tests

* add api context tests

* add changeset

* flaky test

* error on `Astro.response.headers` reassignment
2024-03-07 14:44:53 +00:00
Ross Robino
fdd5bf277e
fix: client prerender fallback (#10295)
* fix: client prerender fallback

* Use Speculation Rules prefetch as prerender fallback instead of link tag, improve changeset

* Update .changeset/warm-spoons-fetch.md

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-03-07 13:31:30 +00:00
Ming-jun Lu
d121311a3f
Fix an issue where getCollection might return undefined (#10356)
* Fix an issue where `getCollection` might return `undefined`

* Add changeset
2024-03-07 13:30:42 +00:00
Emanuele Stoppa
f973aa9110
fix(toolbar): add anchor element to interactive elements (#10343)
* fix(toolbar): add anchor element to interactive elements

* chore: apply better logic

* add test
2024-03-07 11:18:09 +00:00
Houston (Bot)
e88eeb0337
[ci] release (#10351)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-06 23:54:18 -08:00
Luiz Ferraz
393ad9b2aa
Include virtual declaration in package (#10350)
* Include virtual declaration in package

* Update .changeset/good-rats-bathe.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-03-06 17:00:22 -06:00
Houston (Bot)
c793f194c9
[ci] release (#10344)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-06 11:07:43 -05:00
Bryce Russell
74cf1af86e
Fix cli package resolution for @astrojs/db (#10338) 2024-03-06 23:37:08 +08:00
Matthew Phillips
a2e9b2b936
Fixes loading .ts configs in astro:db (#10342) 2024-03-06 09:50:02 -05:00
Houston (Bot)
1d9fb15a2d
[ci] release (#10341)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-06 08:53:27 -05:00
Ben Holmes
a60861c960
fix: move db ambient types to separate module (#10340)
* fix: move ambient types to separate modue

* chore: changeset
2024-03-06 08:30:45 -05:00
Houston (Bot)
038201fbae
[ci] release (#10337)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-05 16:58:48 -08:00
Fred K. Schott
f2e60a9675
Revert bad release (#10336)
* Revert "[ci] release (#10332)"

This reverts commit dd3935b31c.

* Revert "[ci] set `--tag` on release (#10323)"

This reverts commit 50215ae731.
2024-03-05 16:47:15 -08:00
Houston (Bot)
dd3935b31c
[ci] release (#10332)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-05 16:26:25 -08:00
Fred K. Schott
e1477bb3d6 [ci] format 2024-03-05 19:45:27 +00:00
Fred K. Schott
24bc169070
add back data loss confirmation handling (#10330) 2024-03-05 14:44:19 -05:00
Arsh
2809d13600 [ci] format 2024-03-05 15:57:04 +00:00
Arsh
507b4ac246
fix(rendering): allow render instructions to propagate while rendering slots (#10316)
* fix(rendering): allow render instructions to propagate while rendering slots

* add test

* add changeset

* undo changes to `playwright.config.js`
2024-03-05 21:25:48 +05:30
Phk
439155c36e [ci] format 2024-03-05 15:22:07 +00:00
Phk
9e76abc58b
fix: fixed an error in the vue component editor (#10293)
* fix: fixed an error in the vue component editor(https://github.com/withastro/language-tools/issues/758)

* chore: format code

* chore: change import path
2024-03-05 15:20:44 +00:00
Florian Lefebvre
29cbb88afd
chore(vercel): update @vercel/nft (#10305)
* chore(vercel): update @vercel/nft

* Update slimy-berries-mate.md
2024-03-05 15:17:35 +00:00
Bjorn Lu
8526ca3967
Update turbo test dependsOn (#10329)
* Update turbo test dependsOn

* Update mdx timeout
2024-03-05 15:16:55 +00:00
Matthew Phillips
57bded3057
Add minimal @astrojs/db readme (#10331) 2024-03-05 08:36:37 -05:00
Bohdan Yaroslavtsev
5fe98599a3
fix broken link in code examples (#10322) 2024-03-05 15:23:33 +08:00
Arsh
3c0b854ac6
chore: delete core/endpoint/index.ts (#10324) 2024-03-05 15:14:13 +08:00
Houston (Bot)
d1700cf731
[ci] release (#10314)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-04 13:17:06 -05:00