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

7865 commits

Author SHA1 Message Date
Sarah Rainsberger
51b3a6a5ac
fix some i18n config docs (#10746)
* fix some i18n config docs

* Move manual option to last position

---------

Co-authored-by: = <otterlord.dev@gmail.com>
2024-04-10 20:49:12 +01:00
604qgc
c3008fd85a [ci] format 2024-04-10 16:56:31 +00:00
604qgc
ccafa8d230
Adds dataLanguage property to the replacement <pre> element. (#10538)
* Update highlight.ts

* Create cold-snakes-train.md

* Update Code.astro

Solution for use-case described in withastro/roadmap#276 (https://github.com/withastro/roadmap/discussions/276)

* roll-back initial fix

* new fix

* update changeset

* Update packages/markdown/remark/src/rehype-prism.ts

* Update .changeset/cold-snakes-train.md

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

* Update .changeset/cold-snakes-train.md

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

* Update .changeset/cold-snakes-train.md

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

* Update .changeset/cold-snakes-train.md

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

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-04-10 12:55:31 -04:00
Ming-jun Lu
39988ef8e2
feat(toolbar): allow the user to change the placement (#10591)
* feat(toolbar): add `placement` to settings

* feat(toolbar): update `settings.placement` with `<select>`

* feat(toolbar): adjust position based on `settings.placement`

* test(toolbar): add a test case for `settings.placement`

* refactor(toolbar): extract select element from settings app

* feat(toolbar): allow select element to have colors

* test(toolbar): fix failed test case

* refactor(toolbar): add `placement` property to window element

* refactor(toolbar): notify apps when placement changes

* test(toolbar): fix failed test case

* refactor(toolbar): extract `synchronizePlacementOnUpdate` function

* chore: add changeset

* chore: update changeset

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

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-04-10 16:40:38 +02:00
Emanuele Stoppa
3807e3e868 [ci] format 2024-04-10 14:39:33 +00:00
Emanuele Stoppa
440681e7b7
feat(i18n): manual routing (#10193)
* feat(i18n): manual routing

* one more function

* different typing

* tests

* fix merge

* throw error for missing middleware

* rename function

* fix conflicts

* lock file update

* fix options, error thrown and added tests

* rebase

* add tests

* docs

* lock file black magic

* increase timeout?

* fix regression

* merge conflict

* add changeset

* chore: apply suggestions

* apply suggestion

* Update .changeset/little-hornets-give.md

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>

* chore: address feedback

* fix regression of last commit

* update name

* add comments

* fix regression

* remove unused code

* Apply suggestions from code review

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

* chore: update reference

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

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

* chore: improve types

* fix regression in tests

* apply Sarah's suggestion

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-04-10 15:38:17 +01:00
Farzad
9e14a78cb0
Accept common cookie attributes when deleting a cookie (#10671)
* Accept common cookie attributes when deleting a cookie

* Fix AstroCookieSetOptions IDE annotations

* Use AstroCookieSetOptions to construct AstroCookieDeleteOptions

* Update .changeset/shaggy-cats-film.md

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-04-10 10:18:54 -04:00
Emanuele Stoppa
cdd0c7ca36 [ci] format 2024-04-10 13:55:07 +00:00
Emanuele Stoppa
683d51a5ee
feat: upgrade the minimum Node.js maintainance LTS version (#10689)
* feat: upgrade the minimum Node.js maintainance LTS version

* chore: update minimum npm version

* chore: revert npm change

* chore: address Erika's feedback

* chore: apply further suggestions

* Update .changeset/empty-rules-type.md

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-04-10 14:53:55 +01:00
Emanuele Stoppa
2e53b5fff6
feat: add origin check for CSRF protection (#10678)
* feat: add origin check for CSRF protection

* add tests

* chore: documentation

* changeset and grammar

* chore: add casing check

* split function

* better naming

* make the whole object experimental

* remove unused type

* update changeset

* manually apply Sarah's suggestions

* Apply suggestions from code review

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-04-10 14:53:32 +01:00
liruifengv
ba3af206b5 [ci] format 2024-04-10 10:59:24 +00:00
liruifengv
e2cd7f4291
fix: Fixed errorOverlay theme toggle bug. (#10661)
* fix: save `localStorage.astroErrorOverlayTheme` when detected dark mode

* add  changeset

* Fix theme toggle in ErrorOverlay

* update  changeset
2024-04-10 11:58:19 +01:00
Houston (Bot)
0fec72b35c
[ci] release (#10729)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-09 21:00:07 -04:00
Arsh
83d4536bd6 [ci] format 2024-04-10 00:56:41 +00:00
Arsh
8a30f257b1
fix(dev): break implicit rerouting loop (#10737)
* fix(dev): infinite implicit rerouting

* test adapter

* changeset
2024-04-10 06:25:33 +05:30
Emanuele Stoppa
2acea4defd
ci: add ref when checking out the repository (#10733) 2024-04-09 15:55:07 +01:00
Matthew Phillips
2d2ff58bb9
Fix db seeding when srcDir is root (#10720) 2024-04-09 09:11:32 -04:00
Emanuele Stoppa
f508c4b7d5
fix: regression for astro attributes escaping (#10728) 2024-04-09 12:37:06 +01:00
Emanuele Stoppa
b21b3ba307
fix(devtool): do not trigger interaction check for div and span (#10719)
* fix(devtool): do not trigger interaction check for `div` and `span`

* add test

* add tests

* Rephrase changeset

* remove log

* add reference link

* Update .changeset/swift-coats-teach.md

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-04-09 12:36:48 +01:00
Erika
4240386e8a
fix: use just pnpm to run the build and tests in citgm (#10727) 2024-04-09 12:26:15 +02:00
Houston (Bot)
f4f383d04e
[ci] release (#10680)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-09 14:42:19 +08:00
horo
5e044a5eaf
Increase log severity when a page's getStaticPaths fails (#10707) 2024-04-09 11:19:26 +08:00
Houston (Bot)
70ac71904f
[ci] update lockfile (#10718)
Co-authored-by: matthewp <matthewp@users.noreply.github.com>
2024-04-08 10:14:02 -04:00
Matthew Phillips
4e7f5f8951 [ci] format 2024-04-08 13:22:48 +00:00
Matthew Phillips
28e7535e5c
Provide better messaging when renaming a table (#10600)
* Provide better messaging when renaming a table

* Update based on review
2024-04-08 09:21:41 -04:00
Bjorn Lu
fa0f593890
Fix script inline with directRenderScript (#10686) 2024-04-08 18:53:50 +08:00
Bjorn Lu
903ed31b2a
Fix vue-jsx change (#10716) 2024-04-08 14:38:59 +08:00
Bjorn Lu
799f6f3f29
Refactor MDX transformJSX handling (#10688) 2024-04-08 13:35:41 +08:00
Bjorn Lu
4ea042c388
Remove unused config in Vue JSX integration (#10687) 2024-04-08 13:35:34 +08:00
Bjorn Lu
a15975e41c
Skip prerender chunk in static output (#10695) 2024-04-08 13:33:09 +08:00
Raz Luvaton
ecb44351e9
fix test:citgm --force flag not passed correctly (#10706) 2024-04-06 21:30:02 +02:00
Nate Moore
93d353528f
Improve dev toolbar notification contrast on hover (#10657)
* fix(#10399, PLT-1786): improve notification contrast on hover

* chore: add changeset
2024-04-05 17:39:24 -05:00
Raz Luvaton
8214bacfea
chore: fix build:ci:no-cache test:citgm (#10698) 2024-04-05 13:05:02 -04:00
Raz Luvaton
36195bac65
chore: add test:citgm command that would run tests without caching and build:ci:no-cache to skip caching for build as well (#10696)
* chore: add test:citgm command that would run tests without caching

* adding build ci with no cache
2024-04-05 16:07:12 +02:00
Raz Luvaton
5c4b7bfc08
test(@astrojs/node) wait for server listening in trailing-slash tests (#10694)
* test(@astrojs/node) wait for server listening in trailing-slash tests

* fix missing waitServerListen

* fix import statement

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-04-05 15:30:59 +02:00
apetta
1d26e9c7f7
Add disableremoteplayback attribute to VideoHTMLAttributes interface (#10693)
* Add disableremoteplayback attribute to VideoHTMLAttributes interface

* Move disableremoteplayback from VideoHTMLAttributes to MediaHTMLAttributes

* Create olive-camels-greet.md

* Update packages/astro/astro-jsx.d.ts

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-04-05 15:17:35 +02:00
Raz Luvaton
ab153fd888
test(@astrojs/node) listen for server setup errors in test-utils (#10692) 2024-04-05 13:24:00 +01:00
Emanuele Stoppa
e300ac9b9d
ci: update check-merge.yml action (#10690) 2024-04-05 11:54:12 +01:00
Matthew Phillips
48f158215d [ci] format 2024-04-04 19:14:51 +00:00
Matthew Phillips
4bf8bd3848
Prevent errors in finding workspaceId from interrupting link prompts (#10681) 2024-04-04 15:13:46 -04:00
fightingcat
9a1aee80a5 [ci] format 2024-04-04 17:58:30 +00:00
fightingcat
14f1d49a10
Expose Babel config for @astro/react. (#10675) 2024-04-04 13:57:20 -04:00
Houston (Bot)
e2a780a46d
[ci] release (#10674)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-04 13:11:24 -04:00
Martin Trapp
3bd6758e1c [ci] format 2024-04-04 17:06:11 +00:00
Martin Trapp
ca6bb1f31e
Generates missing popstate events for Firefox when navigating to hash targets on the same page. (#10679) 2024-04-04 19:05:10 +02:00
Matthew Phillips
d4b88c79b2 [ci] format 2024-04-04 16:43:57 +00:00
Matthew Phillips
1662aa8a85
Fix compatibility for @astrojs/db with cloudflare (#10677)
* Fix compatibility for @astrojs/db with cloudflare

* Use a manual implementation

* Update lockfile
2024-04-04 12:42:47 -04:00
Erika
45414a21cc [ci] format 2024-04-04 07:10:05 +00:00
Erika
0464563e52
fix(install-package): Automatically exit in CI instead of waiting for input (#10669) 2024-04-04 15:08:41 +08:00
Farzad
a8ab23700f
Fix test runner issues by upgrading nodejs version to 18.17.1 (#10672) 2024-04-04 15:08:25 +08:00