0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
Commit graph

9116 commits

Author SHA1 Message Date
Bjorn Lu
fd367b5341
Remove some examples (#12196) 2024-10-11 22:39:31 +08:00
Emanuele Stoppa
58e22bd042 [ci] format 2024-10-11 13:48:39 +00:00
Emanuele Stoppa
2d10de5f21
fix(routing): actions should redirect the original pathname (#12173)
* fix(routing): actions should redirect the original pathname

* decode header to avoid index out of bounds

* fix e2e test

* Update packages/astro/e2e/actions-blog.test.js

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

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-10-11 14:47:14 +01:00
Matthew Phillips
a4ffbfaa5c
Ensure router only targets scripts for execution (#12177)
* Ensure router only targets scripts for execution

* Add a test

* Move the test up to the file that's testing

* remove extra prop

* just see if tests pass

* use local file

* smaller file

* use getElementsByTagName again
2024-10-11 09:37:06 -04:00
Bjorn Lu
411af55153 [ci] format 2024-10-11 12:49:26 +00:00
Bjorn Lu
2f5b28e938
Use p-queue instead of fastq (#12189) 2024-10-11 20:48:31 +08:00
Takahito Sueda
49c4f64673
Ensure that the generated package.json and tsconfig.json end with a newline. (#12186) 2024-10-11 20:47:46 +08:00
Bjorn Lu
1f93fca1d3
Fix biome lint warning (#12187) 2024-10-11 14:48:11 +08:00
Bjorn Lu
a55ce2977f
Check permissions for workflows (#12181) 2024-10-10 22:35:22 +08:00
Bjorn Lu
9988dd67e2
Improve default template download speed (#12154) 2024-10-10 21:32:49 +08:00
bluwy
9fc86e543a Merge branch 'main' into next 2024-10-10 21:28:25 +08:00
Houston (Bot)
582f12e1f6
[ci] release (#12148)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-10 12:21:19 +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
Arpan Patel
b9e8e96354
add info about content intellisense (#12164) 2024-10-09 12:36:18 +01:00
Louis Escher
c6fd1df695
Fix mts reloads (#12160)
* Add mts file extension to configRE regex

* Add changeset

* Apply suggestions from code review

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

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-10-09 11:12:22 +01:00
Emanuele Stoppa
cf24d6922a [ci] format 2024-10-09 09:53:00 +00:00
Emanuele Stoppa
710a1a11f4
feat(markdown): add support for shiki option langAlias (#12039)
* feat(shiki): add support for `langAlias`

* chore: apply feedback

* Update packages/markdown/remark/src/types.ts

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

* fix build

* Fix bug

* Apply suggestions from code review

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

* Update .changeset/dirty-socks-sip.md

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-09 10:51:38 +01:00
chaegumi
3ac2263ff6
add support parallel builds (#11984)
* 支持并发生成

* feat: Add support parallel builds

* feat: read concurrency config

* changeset

* fix: Explicit undefined is unnecessary on an optional parameter

* pnpm-lock.yaml rebuild

* fix: add innerPrevTimeEnd

* fix: modification time calculation

* update pnpm-lock.yaml

* Rewrite with p-limit

* update

* clean

* Update changeset

* typo [skip ci]

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Update packages/astro/src/core/config/schema.ts

* formatting

* merge main and update the lock file

* Update packages/astro/src/@types/astro.ts

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

* 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>

---------

Co-authored-by: bluwy <bjornlu.dev@gmail.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-09 10:51:03 +01:00
Jan Havlena
116c533596 [ci] format 2024-10-09 09:36:51 +00:00
Jan Havlena
e96bcae535
Fixed parsing of x-forwarded-* headers (#12130)
* Fixed parsing of x-forwarded-* headers

* changeset

* remotePort

* port fix

* port fix

* port fix

* Update .changeset/slimy-buses-agree.md

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

* Update packages/astro/src/core/app/node.ts

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

* Reverted formating change

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-10-09 10:35:58 +01:00
Emanuele Stoppa
22c70a2bdf
ci: use ci command (#12167) 2024-10-09 10:11:41 +01:00
Chris Swithinbank
8e500f2f96
Add css keyword to Tailwind integration (#12161)
* Add `css` keyword to Tailwind integration

* Add changeset
2024-10-08 23:40:49 +02:00
Emanuele Stoppa
2a1536d091
chore: move lint rules to Biome (#12145)
* chore: move lint rules to Astro

* better suppression system

* revert

* format code

* address more linting files

* address more linting files
2024-10-08 10:12:40 +01:00
Bjorn Lu
91ecad2cc7
Setup sync branches for create-astro (#12114) 2024-10-08 13:50:43 +08:00
Emanuele Stoppa
bb6d37f94a
fix(routing): default locale when there's a list (#12151)
* fix(routing): default locale when there's a list

* fix(routing): default locale when there's a list
2024-10-07 17:30:18 +01:00
Armand Philippot
50dd88bc66
fix(@astrojs/rss): prevent an error when pubDate is missing (#12137)
* fix(rss): prevent error when `pubDate` is missing

* docs(rss): switch some RSS items to optional
2024-10-07 11:42:19 -04:00
Bjorn Lu
2385d58389
Simplify giget dependency (#12143) 2024-10-07 22:59:16 +08:00
Matt Kane
b28bd74087 [ci] format 2024-10-07 14:28:00 +00:00
Matt Kane
9db755ab7c
fix: don't set statusMessage in HTTP/2 (#12147) 2024-10-07 15:27:10 +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
c87ae80053 [ci] format 2024-10-07 13:18:15 +00: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
renovate[bot]
fef0b8cce1
fix(deps): update all non-major dependencies (#12140)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-07 17:44:43 +08:00
Julien Cayzac
de35daa851
[CVE 2024-47764] Update package 'cookie' (#12132) 2024-10-07 14:45:50 +08:00
renovate[bot]
c8baa387b6
chore(deps): update dependency expect-type to v1 (#12141)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-07 14:29:16 +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
e8e37fd094 [ci] format 2024-10-04 14:08:54 +00: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