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

7196 commits

Author SHA1 Message Date
Arsh
3435b7f1e1
fix(vercel): make Astro.cookies work again (#9809)
* addCookieHeaders

* add changeset
2024-01-24 22:47:33 +05:30
Nate Moore
0f664e7a0a
Fix release announcement script (no seriously this time) (#9808) 2024-01-24 10:16:47 -06:00
Arsh
919bbe4a89 [ci] format 2024-01-24 15:42:42 +00:00
Arsh
267c5aa2c7
refactor: unsplit astro:i18n module (#9790)
* unsplit virtual module

* add changeset

* elaborate on Unreachable exception

* i18nNotEnabled error
2024-01-24 21:11:26 +05:30
Florian Lefebvre
60136f9c56 [ci] format 2024-01-24 14:44:08 +00:00
Florian Lefebvre
1153331cbb
feat(alpinejs): allow customizing the Alpine instance (#9751)
* feat(alpinejs): allows customzing the Alpine instance

* chore: add e2e tests

* fix: rename script

* Update index.ts

* fix: lockfile
2024-01-24 14:43:03 +00:00
Bjorn Lu
b3f313138b
Fix env var replacement for export const prerender (#9807) 2024-01-24 14:42:24 +00:00
Lou Cyx
5d7db1dbb0
Fix for #9673 (#9680)
* Fix for #9673

* 🦋 add changeset file

* Update breezy-plants-smoke.md

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

* ️ simplified normalizeConfigPath

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-24 14:40:02 +00:00
William Killerud
457e8b6422
fix(rss): apply refinement at the point of parsing (#9797) 2024-01-24 13:37:06 +08:00
Salvador Ferradás
c1e02688e7
deps: bump peer deps to 4.0 (#9799) 2024-01-24 13:23:48 +08:00
Houston (Bot)
eaf483fe73
[ci] release (#9785)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-23 19:27:10 -05:00
Luiz Ferraz
d7543d4e1b [ci] format 2024-01-24 00:24:13 +00:00
Luiz Ferraz
5b29550996
Fix regression on dynamic sibling trees and index inside rest parameter folders (#9786)
* fix: Fix regression on dynamic sibling trees and index inside rest parameter folders

* Add extra test scenarios

* Make `/[foo].astro` also win over `/[foo]/[...rest].astro`

* Make `/[foo].astro` also win over `/[foo]/[...rest].astro`

* Update tests

* Remove commented out code

* Update .changeset/six-shrimps-glow.md

* Fix sorting cycle

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-23 19:23:10 -05:00
cin
659087be1a [ci] format 2024-01-23 23:47:45 +00:00
cin
e6945bcf23
Fix .html file escaping (#9606)
* fix: escape bug

* chore: add changeset

* fix: add test case

* fix: add test case

* fix: ut bug

* fix: ut bug

* Update .changeset/metal-garlics-exercise.md

* fix(html): properly handle escape sequences

* Update .changeset/metal-garlics-exercise.md

Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com>

* fix(html): properly handle attributes with escaped characters

* chore: improve tests

* chore: update lockfile

* chore: update changeset

* Update packages/astro/src/vite-plugin-html/transform/index.ts

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com>
2024-01-23 17:46:28 -06:00
Oliver Speir
f04b563039 [ci] format 2024-01-23 23:19:35 +00:00
Oliver Speir
df37366556
MDX remark image props (#9753)
* rearrange plugins and add props to Image component

* add tests and update lockfile

* add changeset

* re-rearrange plugin order, gfm/smartypants then user defined then image related then shiki/prism

* make more generic

* add more/better tests

* remove unused logger

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-01-23 18:18:09 -05:00
Steven Benner
2e58904cd4 [ci] format 2024-01-23 23:17:58 +00:00
Steven Benner
ccc05d5401
Fix build failure when image file name includes special characters (#9781)
The latest version of `vite-plugin-markdown` uses a regular
expression that includes the file path via string concatenation.
However the file path is not escaped for use in a regular
expressions. So if a markdown document includes a reference to an
image file name which includes certain special characters it will
cause the build to fail.

This patch escapes regex special characters in the file path string
being injected into the regular expression. While I found that not
all special characters will cause this problem, it seems safer to
simply escape all regex specials. I also added test to verify this.

Related to: Commit 165cfc154b

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-01-23 18:16:56 -05:00
Nate Moore
5e466ef499
Fix release announcement script (again) (#9800) 2024-01-23 16:25:10 -06:00
Tugrul Ates
e22cb8b10c
fix: accept the 'switch' aria role during a11y checks (#9792)
* fix: accept the 'switch' aria role during a11y checks

* add changeset

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-01-23 16:31:39 -05:00
Nate Moore
e6c0fa5c33
chore(ci): fix release announcement script (#9796) 2024-01-23 15:28:28 -06:00
Erika
5994a901e8
fix: update vitest (#9787) 2024-01-23 10:37:20 -05:00
Arsh
17f27e7ceb [ci] format 2024-01-23 14:04:53 +00:00
Arsh
075706f26d
refactor: remove endpoint handling infra (#9775)
* remove endpoint handling infra

* add changeset
2024-01-23 19:33:51 +05:30
Stefano
9aa7a5368c
fix: vite security issue (#9773) 2024-01-23 20:48:20 +08:00
Leyan Lo
3b5824a65d
fix(portfolio): set min-height to 100% on html and body (#9780) 2024-01-23 18:19:11 +08:00
Houston (Bot)
bfd30041cf
[ci] release (#9772)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-22 18:37:25 -05:00
Arsh
3a233c9ea2 [ci] format 2024-01-22 23:35:50 +00:00
Arsh
05adaaa2d2
fix(vercel): edge middleware (#9585)
* create vercel edge middleware

remove getVercelOutput

* handle node built-in modules

* edge function to node fetch

* adjust tests

* add test

* add changeset

* function paths as constants

* ensure node built-in modules are namespaced with `node:`

* x-astro-path as constant

* appease linter

* add comments for ASTRO_PATH_HEADER and ASTRO_LOCALS_HEADER

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-23 05:04:48 +05:30
Matthew Phillips
a50926a6b6 [ci] format 2024-01-22 23:33:47 +00:00
Matthew Phillips
6c5f42d308
Change way args are passed to cli packages (#9774) 2024-01-22 18:32:50 -05:00
Erika
eed0e8757c
fix: handle error at load for apps (#9768)
* fix: handle error at load for apps

* Revert "fix: handle error at load for apps"

This reverts commit df9e98a8c4.

* fix: handle errors in load and init

* chore: changeset

* fix: build
2024-01-22 15:37:03 -05:00
Houston (Bot)
2b5f1d6be8
[ci] release (#9728)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-22 15:11:07 -05:00
Degreat
2f81cffa9d
normalize class property (#9723)
* normalize class property

* Add changeset

* properly type return value

* normalize styles, rename function

* properly describe change

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-22 20:00:00 +00:00
Nate Moore
ad01642517 [ci] format 2024-01-22 19:38:14 +00:00
Nate Moore
80d87fb3ef
Add new top-level passthrough config option (#9767)
* feat: add db as top-level config value

* merge

* add passthrough db command

* refactor: remove extra changes

* docs: update type info

* chore: remove changeset
2024-01-22 13:37:16 -06:00
Emanuele Stoppa
1fba85681e
fix: add missing attribute to button (#9762)
* fix: add missing attribute to button

* feedback
2024-01-22 19:05:31 +00:00
Emanuele Stoppa
3ecb3ef643
fix(i18n): pass build.format when computing the redirect (#9739)
* fix(i18n): pass `build.format` when computing the direct

* Update .changeset/fifty-pots-greet.md

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

* update tests

* add more tests

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-22 13:28:31 +00:00
Tak Tran
cfc02c7440 [ci] format 2024-01-22 12:09:16 +00:00
Tak Tran
73d7440200
Fix dot files not being copied over on non-root builds (#9740) (#9741)
* Fix dot files not being copied over on non-root builds (#9740)

When running `astro build` outside of where the astro files are, dotfiles are not copied over because the `includeDotfiles` parameter is not passed in.

* update changeset

* Update changeset description

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-01-22 12:07:59 +00:00
Florian Lefebvre
7356336d18
fix(rss): rssSchema definition to allow calling standard zod object methods (#9746)
* fix(rss): rssSchema definition to allow calling standard zod object methods

* fix: condition
2024-01-22 12:07:29 +00:00
Bjorn Lu
d0742bcfda [ci] format 2024-01-20 11:00:50 +00:00
Bjorn Lu
a505190933
Make @astrojs/markdown-remark browser-safe (#9738) 2024-01-20 18:59:40 +08:00
Bjorn Lu
53c69dcc82
Fix @astrojs/markdown-remark bundling for non-node runtimes (#9736) 2024-01-19 22:38:33 +08:00
Blede
8d2e5db096
fix getRelativeLocaleUrl when redirectToDefaultLocale is false (#9730)
* fix getRelativeLocaleUrl when redirectToDefaultLocale is false

* Added tests

* Fixed getLocaleRelativeUrlList
2024-01-19 14:02:23 +00:00
Bjorn Lu
ea6cbd06a2
Refactor style-only HMR cache and performance (#9712)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-19 16:44:17 +08:00
Happydev
8ce40a417c
fix(compiler): Support dynamic slot names (#9605)
* chore: try new compiler version

* update mergeSlots function

* chore: update lock file

* add tests

* simplify `mergeSlots` code

* update compiler version

* update lock file

* fix failing test

We were expecting the source code to produce an error, but in
2.4.0 of the compiler, that generates valid code

* chore: changeset

* chore: update deps

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@astro.build>
2024-01-18 13:56:49 -06:00
Martin Trapp
07f13e6650 [ci] format 2024-01-18 19:39:57 +00:00
Martin Trapp
9e01f9cc1e
makes the output of 'astro preferences list' more verbose (#9381)
* makes astro preference list more verbose

* adds changeset

* refactor: improve global flag language

* Update .changeset/selfish-donuts-approve.md

---------

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-18 13:38:46 -06:00