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

7742 commits

Author SHA1 Message Date
Arsh
bd7effcf72
qol(runtime): clarify message about unavailable headers (#10583)
* qol(runtime): clarify message about unavailable headers

* update test assertion
2024-03-27 21:45:23 +05:30
Matthew Phillips
4abdb9d285 [ci] format 2024-03-27 13:05:53 +00:00
Matthew Phillips
764d67fc3f
Prevent importing db core from db runtime (#10568)
* Prevent importing db core from db runtime

* Move runtime errors into runtime

* Add changeset
2024-03-27 09:04:39 -04:00
Houston (Bot)
bb7707e171
[ci] release (#10556)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-26 17:24:02 -04:00
apetta
348c1ca132
Patch for Astro VS Code Plugin type errors (#10562)
* Update Code.astro

Adding 'as any' to suppress Astro VS Code extension complaining

* Changes to Picture.astro to stop Astro VS Code extension complaining

* Couple more changes for supressing type errors

* fix(types): Fixes type errors in component properly

* chore: changeset

---------

Co-authored-by: Princesseuh <3019731+Princesseuh@users.noreply.github.com>
2024-03-26 17:20:28 -04:00
Ben Holmes
b5a80405b9
Fix db.run() type signature in production (#10566)
* deps: bump drizzle to latest patch

* chore: changeset

* feat(test): db.run output
2024-03-26 13:43:04 -04:00
Ming-jun Lu
5f7e9c47e0
fix(sitemap): fix missing base path in sitemap-index.xml (#10557)
* fix(sitemap): fix missing base path in `sitemap-index.xml`

* test(sitemap): update test cases in `base-path.test.js`

* chore: add changeset
2024-03-26 10:11:44 -04:00
Erika
51a4ea5f72
fix(types): Fixes HTMLAttribute extend to allow everything (#10561)
* fix(types): Fixes HTMLAttribute extend to allow everything

* nit: add types.d.ts file to the list of file to run astrocheck for

* nit: do it some other way
2024-03-26 14:46:02 +01:00
Simon Knott
303cacc058 [ci] format 2024-03-26 10:45:08 +00:00
Simon Knott
34fa8e131b
fix: ensure outDir doesn't lead to bundlers bloating Lambda size (#10550)
* fix: ensure outDir doesn't lead to bundlers bloating Lambda size

* add changeset

* Update packages/astro/src/assets/vite-plugin-assets.ts

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

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-03-26 11:44:04 +01:00
Admir Šaheta
54c2f9707f
Fix: Type error on <Image /> component when strict TypeScript rules are used with library type checking. (#10549)
* hotfix:ts-explicit-error

* add:changeset

* update:changeset

* Update .changeset/blue-dolls-melt.md

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

* add:types-htmlattribute-extends

* Update .changeset/blue-dolls-melt.md

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>

* Update blue-dolls-melt.md

* addition: allow specifying null type

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-03-26 10:44:17 +01:00
Kyle Nguyen
c585528f44
fix: use Shiki's isSpecialLang to allow ansi codeblocks (#10540)
* fix: use `isSpecialLang` instead of hardcode

Hardcoding this value makes it impossible to use Shiki's `ansi` feature

* Add changeset
2024-03-25 15:44:08 -04:00
Houston (Bot)
1cd2a74022
[ci] release (#10522)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-22 12:35:50 -04:00
Matthew Phillips
44dacedb3a [ci] format 2024-03-22 15:53:54 +00:00
Matthew Phillips
6576f5d458
Require that ASTRO_STUDIO_REMOTE_DB_URL is defined at runtime (#10533)
* Require that ASTRO_STUDIO_REMOTE_DB_URL is defined at runtime

* Add changeset

* Fix build
2024-03-22 11:52:38 -04:00
Martin Trapp
8306ce1ff7
Fixes a style issue of client:only components in DEV mode during view transitions. (#10532)
* Fix DEV-mode-only style issue of client:only components during view transitions.

* reworded changeset

* fixed quotes
2024-03-22 15:36:40 +01:00
Bjorn Lu
8cac744746
Avoid generators in render head API (#10528) 2024-03-22 21:27:06 +08:00
Bjorn Lu
ca5455af3d
Avoid generators when crawling module graph (#10529) 2024-03-22 21:26:40 +08:00
Emanuele Stoppa
1ebd6d2490 [ci] format 2024-03-22 12:44:43 +00:00
Emanuele Stoppa
347642b1b3
chore: add issue triaging workflow (#10436)
* chore: add issue triaging workflow

* Update CONTRIBUTING.md

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

* better disclaimer

* account for feature request

* Update CONTRIBUTING.md

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

* apply suggestion

* Update CONTRIBUTING.md

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-03-22 12:43:34 +00:00
Ben Holmes
7ae1392d66 [ci] format 2024-03-22 12:29:14 +00:00
Ben Holmes
95e3cc84e8
db: dev --remote test fixture (#10527)
* feat: scaffold basic proxy

* feat: setupDbServer util

* feat: ASTRO_INTERNAL_TEST_REMOTE bypass

* feat: basic --remote test

* chore: add port incrementer
2024-03-22 08:28:12 -04:00
Arsh
fda2a800e0
chore: test with latest minor versions of node (#10526) 2024-03-22 10:53:18 +08:00
Bjorn Lu
627e47d67a
Improve Astro JSX rendering (#10473) 2024-03-21 23:25:09 +08:00
Houston (Bot)
cf8f2cafa0
[ci] release (#10521)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-21 10:31:45 -04:00
Matthew Phillips
30ce9a0c47
Revert "Removing embedding appToken from CI (#10497)" (#10520)
* Revert "Removing embedding appToken from CI (#10497)"

This reverts commit 2fc7231df2.

* Changeset
2024-03-21 10:21:35 -04:00
Houston (Bot)
e457bb2e90
[ci] release (#10508)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-20 16:38:59 -04:00
Matthew Phillips
297571eb98 [ci] format 2024-03-20 18:43:56 +00:00
Matthew Phillips
980020c5e0
Ensure --force-reset drops previous tables (#10506)
* Ensure --force-reset drops previous tables

* Remove unused import

* Do suggestions
2024-03-20 14:42:41 -04:00
Houston (Bot)
fdceed5889
[ci] release (#10503)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-20 20:46:06 +05:30
Arsh
4adcda0e25 [ci] format 2024-03-20 14:34:39 +00:00
Arsh
cfbaa8a767
deprecation(vercel): vercel-edge-middleware.js file (#10476)
* deprecation(vercel): `vercel-edge-middleware.js` file

* add changeset

* `Astro.locals.waitUntil()` -> `Astro.locals.vercel.edge.waitUntil()`

* export edge locals interface
2024-03-20 20:03:17 +05:30
Erika
8e4e554cc2
chore: update Babel version (#10504)
* chore: update Babel version

* Create sharp-cobras-drive.md
2024-03-20 14:43:36 +01:00
Ben Holmes
98b982bdfc [ci] format 2024-03-20 11:29:14 +00:00
Ben Holmes
f0fc78c873
db: expose isDbError() utility (#10498)
* feat: expose isDbError

* test: foreign key constraint error detection

* fix(test); use isDbError

* chore: changeset
2024-03-20 07:27:48 -04:00
Bjorn Lu
19e42c3681
Pass meta to shiki transformers (#10494) 2024-03-20 19:15:07 +08:00
Houston (Bot)
17b4991cff
[ci] release (#10488)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-20 08:41:00 +00:00
Ben Holmes
4831051260
Fix: remove db.transaction() from types until supported (#10501)
* fix: remove transaction from db types

* fix: transaction() runtime error

* chore: changeset
2024-03-20 08:27:48 +00:00
Matthew Phillips
2fc7231df2
Removing embedding appToken from CI (#10497) 2024-03-19 14:48:01 -04:00
James Garbutt
2ebcf94d0a
chore(db): Add missing github-slugger dependency & tests (#10405)
* chore: add missing github-slugger dependency

* test: add column-queries data loss tests

* chore: remove unused vars

* test: assert length rather than message content
2024-03-19 17:10:33 +00:00
Andrés Correa Casablanca
4268d389fc [ci] format 2024-03-19 15:44:07 +00:00
Andrés Correa Casablanca
28e33a2f9c
fix: do not append trailing slash to subresource urls (#10491)
* fix: do not append traling slash to subresource urls

Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>

* test: fix broken test

Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>

* refactor: packages/integrations/node/src/serve-static.ts

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>

---------

Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-03-19 21:13:08 +05:30
firefoxic
e4a6462751
fix: void elements (#10493)
* 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>
2024-03-19 20:21:08 +05:30
Ben Holmes
ad57a02c33
db: Expose aggregation helpers (#10479)
* deps: drizzle 0.30

* feat: expose drizzle aggregation helpers

* chore: changeset
2024-03-19 08:56:48 +00:00
Satya Rohith
2330f22d6c
fix(packages/create-astro): wait for writeFile to complete in updateFiles (#10487)
* fix(packages/create-astro): wait for writeFile to complete in updateFiles

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>

* changeset

---------

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-03-19 08:07:42 +00:00
Houston (Bot)
7eac778cce
[ci] release (#10483)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-18 21:05:27 -07:00
Fred K. Schott
124cdd64f2
remove token wait time (#10477) 2024-03-18 20:45:47 -07:00
Houston (Bot)
0ddc327ee8
[ci] release (#10471)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-18 22:36:58 +05:30
Arsh
1fc9b6062a [ci] format 2024-03-18 14:37:48 +00:00
Arsh
c12666166d
qol(endpoints): helpful error message when a response is not provided (#10455)
* qol(endpoints): helpful error message when a response is not provded

* add changeset

* add test
2024-03-18 20:06:46 +05:30