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

1640 commits

Author SHA1 Message Date
voxel!()
4349254376
chore(@astrojs/integrations/react) Migrate tests to node:test for @astrojs/react (#9899)
* Migrate Telemetry tests to node:test

* Remove fallback to chai

* Remove chai and mocha dependencies

* Fix trailing comma

* Fix pnpm-lock.yaml desync

* Add back old tests with progression

* Convert tests to node:test

* Remove unused dependencies

* Remove artifact changes

* Revert more artifacts

* Fix more
2024-01-31 08:29:26 +00:00
Houston (Bot)
3a50cbf6ed
[ci] release (#9843)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-30 15:41:06 +00:00
Furkan Erdem
202d3fbaa9
chore(@astrojs/integrations/tailwind): use Node.js for testing (#9875)
* chore(@astrojs/integrations/tailwind): use Node.js for testing

* chore: update pnpm lock
2024-01-30 15:17:32 +00:00
Emanuele Stoppa
bcc504dae0
chore: add rule switch-exhaustiveness-check (#9867)
* chore: add rule `switch-exhaustiveness-check`

* apply feedback

* routing is always defined
2024-01-30 08:35:08 +00:00
Emanuele Stoppa
a3df9d83ca
fix(core): don't noop shared modules (#9828)
* fix(core): don't noop shared modules

* address feedback

* add test

* changeset

* check astro pages

* address feedback

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-26 17:17:32 +00:00
Houston (Bot)
8281ebddaa
[ci] release (#9802)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-26 13:30:42 +00:00
Emanuele Stoppa
d777adc5ca [ci] format 2024-01-25 16:18:40 +00:00
Emanuele Stoppa
fc21a3c306
chore(@astrojs/node): use Node.js for testing (#9758)
* chore(@astrojs/node): use Node.js for testing

* revert file

* address feedback

* feedback

* Run tests in a single process (#9823)

* Run tests in a single process

* Make test less flaky

* chore: remove module

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-25 16:17:31 +00:00
Marvin
6206fa91e5 [ci] format 2024-01-25 10:24:46 +00:00
Marvin
a12196d6b5
feat(node): add trailingSlash support (#9080)
* feat(node): add trailing slash support

* add changeset

* test(node): add base route test in trailing-slash.js

detected an infinite loop in base path when trailingSlash: never

* fix(node): avoid infinite redirect when trailingSlash: never

* address test failures after rebase pt.1

* address test failures after rebase pt.2

---------

Co-authored-by: lilnasy <69170106+lilnasy@users.noreply.github.com>
2024-01-25 10:23:27 +00:00
Jacob Lamb
53f1c95717
Fix: update doc links (#9804)
* Fix: update doc links

* More links

* Remove docs line
2024-01-25 10:18:06 +00:00
Florian Lefebvre
57ab578bc7 [ci] format 2024-01-24 22:25:03 +00:00
Florian Lefebvre
c820defe65
chore(alpinejs): add e2e test (#9812)
* fix(rss): rssSchema definition to allow calling standard zod object methods

* fix: condition

* chore(alpinejs): add e2e test

* Discard changes to .changeset/mighty-icons-try.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-24 16:23:45 -06:00
Arsh
3435b7f1e1
fix(vercel): make Astro.cookies work again (#9809)
* addCookieHeaders

* add changeset
2024-01-24 22:47:33 +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
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
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
Stefano
9aa7a5368c
fix: vite security issue (#9773) 2024-01-23 20:48:20 +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
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
Houston (Bot)
2292d0b580
[ci] release (#9709)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-18 10:30:19 +00:00
André Alves
b325fada56
@astrojs/sitemap: Fixes generated URLs when using a base with a SSR adapter (#9704)
* Fix base path formatting for ssr adapters

* Update .changeset/curly-seals-count.md

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

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-17 13:33:23 +00:00
Degreat
e9a72d9a91
Bump shikiji, use transformers API, expose transformers API (#9643)
* Bump shikiji, use transformers API, expose transformers API

* update astro config schema

* include shikiji-core

* Use default import

* address css-variables theme

* Remove shikiji markdoc

* Improve schema transformers handling

* Fix tests

* Update changeset

* bump shikiji version

* Update .changeset/six-scissors-worry.md

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

* Update wording

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-01-17 13:13:05 +00:00
Emanuele Stoppa
9680cf2780 [ci] format 2024-01-17 13:11:46 +00:00
Emanuele Stoppa
d6edc75408
Adapter enhancements (#9661)
* quality of life updates for `App` (#9579)

* feat(app): writeResponse for node-based adapters

* add changeset

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* add examples for NodeApp static methods

* unexpose createOutgoingHttpHeaders from public api

* move headers test to core

* clientAddress test

* cookies test

* destructure renderOptions right at the start

---------

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

* Fallback node standalone to localhost (#9545)

* Fallback node standalone to localhost

* Update .changeset/tame-squids-film.md

* quality of life updates for the node adapter (#9582)

* descriptive names for files and functions

* update tests

* add changeset

* appease linter

* Apply suggestions from code review

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>

* `server-entrypoint.js` -> `server.js`

* prevent crash on stream error (from PR 9533)

* Apply suggestions from code review

Co-authored-by: Luiz Ferraz <luiz@lferraz.com>

* `127.0.0.1` -> `localhost`

* add changeset for fryuni's fix

* Apply suggestions from code review

* Apply suggestions from code review

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

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Luiz Ferraz <luiz@lferraz.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* chore(vercel): delete request response conversion logic (#9583)

* refactor

* add changeset

* bump peer dependencies

* unexpose symbols (#9683)

* Update .changeset/tame-squids-film.md

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

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Luiz Ferraz <luiz@lferraz.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-17 13:10:43 +00:00
Bjorn Lu
1539e04a8e
Simplify HMR for circular imports and CSS (#9706) 2024-01-17 11:27:21 +08:00
Houston (Bot)
6c64b149f8
[ci] release (#9669)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-16 11:45:09 +00:00
Martin Trapp
87ede76b3b [ci] format 2024-01-11 18:28:28 +00:00
Martin Trapp
cdf8ce0627
Force re-execution of Partytown's head snippet on view transitions (#9666)
* Remove the header script before a view transition takes place to force a reload on the next page

* Add changeset

* Save another char
2024-01-11 19:26:49 +01:00
Houston (Bot)
7a275c1648
[ci] release (#9625)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-11 16:32:08 +08:00
Bjorn Lu
e72efd6a9a
Use esbuild for env replacement (#9652) 2024-01-11 12:06:14 +08:00
Arsh
e50d75f41f [ci] format 2024-01-10 14:53:36 +00:00
Arsh
d7f1903cde
fix(vercel): fallback to static 404.html (#9648) 2024-01-10 14:52:29 +00:00
Houston (Bot)
75084b49d0
[ci] release (#9609)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-06 02:15:45 +05:30
Bjorn Lu
a1bb5fea55
Fix class property Vue hydration error (#9620) 2024-01-05 15:03:47 -05:00
Nate Moore
8b8bf603b1 [ci] format 2024-01-05 19:31:59 +00:00
Nate Moore
a1c31665cb
Ensure appEntrypoint is referenced in Vue components (#9490)
* fix(#6827): ensure `appEntrypoint` is referenced in Vue components

* chore: add test

* chore: add changeset

* fix: windows handling

* Update packages/integrations/vue/src/index.ts

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

* chore: address review feedback

* chore: update lockfile

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-05 13:30:53 -06:00
Arsh
bd3f36e6ab [ci] format 2024-01-05 18:28:59 +00:00
Arsh
22a5405b4a
fix(vercel): include 404.html as fallback in the static adapter (#9591)
* include 404.html as fallback

* add changeset

* include only when 404.astro exists

* add test

* route.component -> route.pathname
2024-01-05 23:57:48 +05:30
Arsh
218ea0781b [ci] format 2024-01-04 16:38:10 +00:00
Arsh
bd8fa7acd2
chore(vercel): deprecate speedInsights (#9598)
* deprecate speedInsights config

* add changeset
2024-01-04 16:37:13 +00:00
Marvin
2e4d110a87
[solidjs integration] Update solidjs dependency (#9355)
* update solidjs dependency

* update lockfile

* solidjs integration: update vite-plugin-solid

* update lockfile

* solidjs integration: decrease required version to match vite plugin

* Update moody-years-worry.md

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-04 16:25:53 +00:00
Houston (Bot)
e862d070b4
[ci] release (#9580)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-04 15:16:31 +00:00
Patrick Miller
825ba1a598 [ci] format 2024-01-04 11:38:04 +00:00
Patrick Miller
37021044dd
Render async SolidJS components (#6791)
* Render async SolidJS components

* Add renderer-specific hydration script to allow for proper SolidJS hydration

* Add support for Solid.js 1.8.x

* Address documentation feedback

* Rebuild pnpm lock file based on main branch

* Address PR feedback from ematipico

---------

Co-authored-by: Johannes Spohr <johannes.spohr@futurice.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-04 11:37:08 +00:00