Ben Holmes
504d15d772
db: Better error messages when querying remote ( #10636 )
...
* feat: clear error messages on remote db error
* refactor: use AstroDbError for correct error name
* refactor: errorMessage -> responseMessage
* chore: changeset
* fix: revert seed file change
* fix: format seed errors as AstroDbError
* fix: correctly log eager seed errors
2024-04-01 17:02:36 -04:00
Matthew Phillips
17badaf55c
Give proper error when seed missing default export ( #10635 )
2024-04-01 14:18:46 -04:00
Matthew Phillips
157392ee44
Make ASTRO_DATABASE_FILE work with file paths ( #10631 )
...
* Make ASTRO_DATABASE_FILE work with file paths
* Use pathToFileURL
2024-04-01 11:39:49 -04:00
Bjorn Lu
da2fb875fc
Make @astrojs/markdown-remark
a dep in @astrojs/markdoc
( #10632 )
2024-04-01 23:39:29 +08:00
Ben Holmes
5a7733dde5
db: Seed on dev server startup ( #10599 )
...
* feat: load seed file on dev server startup
* feat: handle logging on dev server restart
* chore: changeset
* feat: support integration seed files
* fix: only run when seed is present, ignore unlink
* fix: load on startup for integration pkg paths
2024-04-01 11:16:46 -04:00
Bjorn Lu
2cf116f80c
Remove deprecated APIs from @astrojs/markdown-remark
( #10629 )
...
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-04-01 22:53:54 +08:00
James Garbutt
374efcdff9
Lazy loaded shiki languages during syntax highlighting ( #10618 )
2024-04-01 22:52:50 +08:00
Matthew Phillips
31590d44ef
Move nft warnings behind verbose logging ( #10609 )
...
* Move nft warnings behind verbose logging
* Update packages/integrations/vercel/src/lib/nft.ts
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
* Update packages/integrations/vercel/src/lib/nft.ts
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
---------
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-04-01 10:37:54 -04:00
Matthew Phillips
e31bea0704
Fixes issue with head content being pushed into body ( #10608 )
...
* Fixes issue with head content being pushed into body
* Update snapshot version
* Upgrade compiler version
2024-04-01 10:30:03 -04:00
Ryan Christian
ad50784adc
refactor: Drop Preact compat hack, remove incorrect alias ( #10585 )
...
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-04-01 16:53:59 +08:00
Satya Rohith
046d69d517
fix: use ReadableStream for response object if deno ( #10495 )
2024-04-01 16:05:30 +08:00
Tyler van der Hoeven
b3028caecf
Remove the ssr external for vue ( #10601 )
...
* remove the ssr external for vue
* Remove the external line vs comment it out
* add a changeset
2024-03-29 16:04:27 +00:00
Martin Trapp
a16a829f4e
reset history title after push/replace but prior to assignment to location ( #10605 )
...
* reset history title after push/replace but prior to assignment to location
* add changeset
2024-03-29 16:02:30 +00:00
duanwilliam
e648c5575a
fix: dont error on nullish prop values in jsx runtime ( #10584 )
...
* fix: prevent jsx runtime from erroring on nullish prop values when checking for slot props
* chore: changeset
2024-03-29 10:14:25 +00:00
Houston (Bot)
0ff5d72c78
[ci] release ( #10598 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-28 14:20:53 -04:00
TK
a573cc199a
feat: allow dynamic route segments in isr.exclude array ( #10513 )
...
* Allow dynamic route segments in isr.exclude array
* copy over eslint-disable as well
* add test
* update test: slashes dont need to be escaped
* update changeset
---------
Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
2024-03-28 23:46:18 +05:30
Houston (Bot)
50cc5f01c7
[ci] release ( #10597 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-28 14:09:23 -04:00
Ben Holmes
ed1031ba29
db: Rework index config with generated index names ( #10589 )
...
* feat: add indexes array config with name gen
* fix: add _idx suffix, remove name from output
* feat(test): new index config
* chore: remove unused type
* chore: changeset
* chore: add sort() for consistent names
* feat(test): consistent column ordering
* feat(test): ensure no queries when migrating legacy to new
2024-03-28 14:09:09 -04:00
Erika
20463a6c1e
fix: bump internal-helpers ( #10596 )
2024-03-28 13:45:43 -04:00
Houston (Bot)
636ba8c839
[ci] release ( #10588 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-28 13:27:19 -04:00
Erika
61e283e5a0
fix(types): Omit data types from polymorphic attributes ( #10593 )
...
* fix(types): Omit data types from polymorphic attributes
* chore: changeset
2024-03-28 15:41:03 +01:00
Matthew Phillips
0fd36bdb38
Fix inline stylesheets in content collection cache ( #10543 )
...
* Fix inline stylesheets in content collection cache
* Refactor for better reusability
* Update .changeset/tricky-cobras-mate.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-03-28 10:31:41 -04:00
Erika
fbdc10f90f
fix(assets): Fixes assets generation when using custom paths and configs ( #10567 )
...
* fix(assets): Fixes assets generation when using custom paths and configs
* fix: tests
* fix: make sure remote files don't end up in nested folders by accident
* test: add a whole bunch of tests
* chore: changeset
2024-03-28 13:43:41 +01:00
Arsh
a05953538f
fix(dev): consider pages' route priority when matching request to a page ( #10582 )
...
* fix(dev): consider pages' route priority when matching request to a page
* add test
* add changeset
2024-03-28 02:07:02 +05:30
Houston (Bot)
7d3b61c56d
[ci] release ( #10586 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-27 16:33:25 -04:00
Matthew Phillips
62a1d6df69
For --force-reset use conditional drop table query ( #10587 )
2024-03-27 16:30:59 -04:00
Ben Holmes
713abb2998
chore(db): Rename all collection usage to tables ( #10460 )
...
* chore: rename `collection` field to `table`
* chore: remove deprecated ResolvedCollectionConfig type (only used by studio)
* chore: collection -> table in migration-queries
* chore: update tests
* chore: last renames
* chore: bump migration version
* chore: remove deprecated collection field
* chore: droptablequeries
* chore(test): collection -> tables
* chore: revert collection -> table change on migration file
* chore: revert migration version change
* chore: changeset
2024-03-27 15:51:26 -04:00
Houston (Bot)
06a6c1a567
[ci] release ( #10578 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-27 15:24:37 -04:00
Matthew Phillips
f5df12cfeb
Provide guidance when --remote is omitted ( #10579 )
...
* Provide guidance when --remote is omitted
* Only restrict to server mode
* Use an AstroError
* Update code
2024-03-27 15:20:11 -04: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
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
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
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
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
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
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