0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00
Commit graph

4056 commits

Author SHA1 Message Date
Bjorn Lu
c280655655
Update to Vite 6.0.0-beta.6 (#12323) 2024-11-06 22:51:55 +08:00
Erika
94f4fe8180
Adds missing changeset for new basics template (#12379) 2024-11-06 21:32:27 +08:00
Erika
9263e96593
create-astro updates (#12083)
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Reuben Tier <otterlord.dev@gmail.com>
2024-11-04 16:15:11 +01:00
Houston (Bot)
731b69712b
[ci] release (beta) (#12250)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-31 17:07:35 +08:00
bluwy
81b0bf5734 Add changeset for vue to include changes from 4.5.2
closes #12289
2024-10-31 16:19:21 +08:00
Emanuele Stoppa
c1786d64c4
fix(i18n): default locale in server islands (#12341) 2024-10-30 19:38:10 +00:00
Emanuele Stoppa
25192a0599
fix(routing): match against decoded pathname (#12270) 2024-10-30 11:45:42 +00:00
Emanuele Stoppa
7196c244ea
fix(routing): don't check headers for prenredered pages (#12302) 2024-10-25 15:16:54 +01:00
Emanuele Stoppa
4e9a3ac0bd
feat: update astro add vercel (#12268) 2024-10-25 14:17:36 +01:00
Bjorn Lu
90ae100cf4
Unset charset=utf-8 content-type for md/mdx pages (#12231)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-24 17:13:22 +08:00
Florian Lefebvre
eb41d13162
feat(next): make defineConfig generic (#12243)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-21 18:26:00 +02:00
Bjorn Lu
93351bc78a
Support custom mode (#12150)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-17 23:01:35 +08:00
Houston (Bot)
c929e5d8c8
[ci] release (beta) (#12170)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-15 19:48:59 +02:00
Emanuele Stoppa
51d13e2f6c
feat: accept URL for entry points (#12226)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-10-15 15:07:18 +01:00
Emanuele Stoppa
15fa9babf3
fix(routing): correct redirects in dev (#12169)
* fix(routing): correct redirects in dev

* simplify code

* address feedback

* move delay inside the function, to keep the comment in one place
2024-10-09 16:24:34 +01:00
Matt Kane
1cd30852a3
fix: don't strip "slug" from content layer data (#12168)
* fix: don't strip "slug" from content layer data

* fix: catch fallback case
2024-10-09 12:42:29 +01:00
Houston (Bot)
676b2c66ee
[ci] release (beta) (#12100)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-07 15:56:30 +02:00
Princesseuh
b75758f883
Merge branch 'main' into next 2024-10-07 15:52:21 +02:00
Houston (Bot)
46cbf10c4b
[ci] release (#12115)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-07 15:41:40 +02:00
Luiz Ferraz
6e06e6ed4f
Fix problems with local libSQL DB (#12089)
Co-authored-by:  Matthew Phillips <361671+matthewp@users.noreply.github.com>
Co-authored-by: Emanuele Stoppa <602478+ematipico@users.noreply.github.com>
2024-10-07 10:17:26 -03:00
Julien Cayzac
de35daa851
[CVE 2024-47764] Update package 'cookie' (#12132) 2024-10-07 14:45:50 +08:00
sammibajrami
af8401ebf9
Fixed an "Uncaught ReferenceError" inside of the @astrojs/vue package (#12116)
* fix(vue): initialized the 'app' variable earlier in the client.js script by assigning the 'appInstance' reference to it so that it is available for the later established 'astro:unmount' event listener

* Add changeset

* fix(vue): reverted the last change and instead moved the 'astro:unmount' event listener to inside of the 'if' statement where the 'app' variable is initialized

---------

Co-authored-by: Matt Kane <m@mk.gg>
2024-10-05 13:48:30 +02:00
Martin Trapp
5bc6223b12
Fix-component-undefined-svelte-v5 (#12102) (#12129)
* - fix: 'component is not defined' error when unmount svelte 5 component

* added changeset

* Moving unmount listener to where the component is defined.

* Update .changeset/eighty-ligers-punch.md



---------

Co-authored-by: Hermit <70563349+hermit99@users.noreply.github.com>
2024-10-05 13:16:14 +02:00
Hermit
dcc1e895ab
Fix-component-undefined-svelte-v5 (#12102)
* - fix: 'component is not defined' error when unmount svelte 5 component

* added changeset

* Moving unmount listener to where the component is defined.

* Update .changeset/eighty-ligers-punch.md

Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>

---------

Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
2024-10-05 11:59:01 +02:00
Matt Kane
55e9cd8855
fix: copy server URLs to Vite dev server (#12127)
* fix: copy server URLs to Vite dev server

* Changeset
2024-10-04 19:33:42 +01:00
Matt Kane
abf9a89ac1 Implement legacy collections using glob (#11976)
* feat: support pattern arrays with glob

* wip

* feat: emulate legacy content collections

* Fixes

* Lint

* Correctly handle legacy data

* Fix tests

* Switch flag handling

* Fix warnings

* Add layout warning

* Update fixtures

* More tests!

* Handle empty md files

* Lockfile

* Dedupe name

* Handle data ID unslug

* Fix e2e

* Clean build

* Clean builds in tests

* Test fixes

* Fix test

* Fix typegen

* Fix tests

* Fixture updates

* Test updates

* Update changeset

* Test

* Remove wait in test

* Handle race condition

* Lock

* chore: changes from review

* Handle folders without config

* lint

* Fix test

* Update wording for auto-collections

* Delete legacyId

* Sort another fixture

* Rename flag to `legacy.collections`

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Changes from review

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* lockfile

* lock

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-04 16:13:51 +01:00
Matt Kane
953e6e0f23 Merge branch 'main' into next 2024-10-04 15:12:44 +01:00
Matt Kane
6e1dfeb76b
fix: clear content layer cache if astro version changes (#12126)
* fix: clear content layer cache if astro version changes

* changeset
2024-10-04 15:10:39 +01:00
Matt Kane
499fbc91a6
fix): allow special characters in Action names (#12124) 2024-10-04 15:08:04 +01:00
Bjorn Lu
423dfc19ad
Bump vite to beta (#11979) 2024-10-04 20:58:16 +08:00
Matt Kane
7a1d54a389 Merge branch 'main' into next 2024-10-04 13:26:22 +01:00
Erika
b8673df51c
fix: missing body type on content layer entries (#12123) 2024-10-04 14:15:46 +02:00
Matt Kane
2490cebdb9
fix: correctly serialize Infinity as island props (#12121) 2024-10-04 11:53:29 +01:00
Cristopher
f47b347da8
chore(deps): replace strip-ansi with native module (#12118)
* chore(deps): replace strip-ansi with native module

* chore: changeset

---------

Co-authored-by: Princesseuh <3019731+Princesseuh@users.noreply.github.com>
2024-10-04 11:21:03 +02:00
Armand Philippot
a46839a5c8
docs: update Vite links to use their new domain (#12117)
* docs: update Vite links to use their new domain

See https://github.com/withastro/docs/issues/9548

* update other links with the new Vite domain

* Create strange-cats-notice.md

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-10-03 23:29:52 +02:00
Matt Kane
a54e520d3c
fix: throw a useful error if rendering undefined entry (#12113)
* fix: throw a useful error if rendering undefined entry

* Update .changeset/wise-pumas-fry.md

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-03 19:55:55 +01:00
Florian Lefebvre
f9dd9428c6
fix(vue): useId() collisions (#12112) 2024-10-03 20:52:11 +02:00
Houston (Bot)
34d79527a4
[ci] release (#12098)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-03 14:50:19 +01:00
Emanuele Stoppa
ea225585fd
fix(routing): incorrect assumption when loading the middleware (#12109) 2024-10-03 14:38:23 +01:00
lam eu ler
918953bd09
use shorthash for data url image to prevent ENAMETOOLONG (#12108)
* use shorthash for filename of data url images

* add changeset

* add fixture to test processing of data url images

* run format

* update changeset

* fix test

* Update .changeset/dull-worms-own.md

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-10-03 10:54:01 +01:00
Matt Kane
d3a74da196
fix: handle immutable response object (#12106)
* fix: handle immutable response object

* changeset
2024-10-03 09:21:11 +01:00
Sondre Aasemoen
fbe1bc51d8
feat(sitemap): add xslURL to enable styling (#11485)
* feat(sitemap): add xslURL to enable styling

* Add test

* Update .changeset/proud-horses-cry.md

---------

Co-authored-by: bluwy <bjornlu.dev@gmail.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-10-03 09:01:42 +01:00
Matt Kane
42037f33e6
fix: pass custom statusText in Response (#12105)
* fix: pass custom statusText in Response

* Add changeset
2024-10-02 17:08:36 +01:00
Emanuele Stoppa
8f064fa5b9 fix changeset 2024-10-02 12:23:46 +01:00
Emanuele Stoppa
7febf1f6b5
feat(routing): decode pathname early, don't decode params (#12079)
* feat(routing): decode pathname early

* linting

* Update packages/astro/src/core/fs/index.ts

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

* address feedback

* Update .changeset/wet-foxes-walk.md

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

* fix changeset

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-10-02 12:06:42 +01:00
Mark Jaquith
d49a537f2a
Use IE conditional comment placeholders for server island start markers (#12090)
These placeholders are much less likely to be removed by HTML minifiers,
because they have traditionally been used to change the behavior of
site.
2024-10-01 15:58:14 -04:00
Matt Kane
a195629418 Merge branch 'main' into next 2024-10-01 16:06:44 +01:00
Matt Kane
11d447f66b
fix: defer check for schema references to content layer collections (#12097)
* fix: defer check for schema references

* More comments
2024-10-01 16:05:45 +01:00
Houston (Bot)
ece03449e3
[ci] release (beta) (#12072)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-01 15:46:45 +02:00
Florian Lefebvre
2eb62d07b5 Merge branch 'main' into next 2024-10-01 15:39:00 +02:00