Compare commits

...

1149 commits

Author SHA1 Message Date
993c085952 expose file url to markdown renderer 2023-10-11 11:46:58 -05:00
Alexander Niebuhr
3f231cefed
port https://github.com/withastro/docs/pull/4980 (#8799) 2023-10-11 07:06:20 +02:00
lilnasy
a8b979ef40 [ci] format 2023-10-10 16:40:46 +00:00
Arsh
bd5aa1cd35
fix(transitions router): no-op on the server (#8771)
* fix(transitions router): no-op on the server

* factor out onPopState

* add e2e test case

* Apply suggestions from code review

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

* use supportsViewTransitions

* add changeset

* warn on navigate() use during ssr

* switch supportsViewTransitions to import.meta.env

* correct typo

* bring back import.meta.env

* !import.meta.env.SSR -> inBrowser

* Apply suggestions from code review

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

* Apply suggestions from code review

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

---------

Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
2023-10-10 22:08:35 +05:30
alexanderniebuhr
03e6979c28 [ci] format 2023-10-10 16:11:20 +00:00
Mikkel Ricafrente
75781643a2
fix(cloudflare): runtime types for Cloudflare caches (#8782)
* fix cachestorage reference in cloudflare integration

* add cachestorage to serverdirectorymode

* add changeset

* remove global caches type

* update unlucky-avocados-brake.md
2023-10-10 18:08:17 +02:00
Houston (Bot)
9cd6a6657b
[ci] release (#8768)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-10 22:30:52 +08:00
Arsh
c071458257
chore: removed adapters cleanup (#8726)
* update ci, readme, comments, remote workspaces

* fix hosted test fixture

* keep adapter config typedocs
2023-10-10 19:36:35 +05:30
Alexander Niebuhr
0ab6bad7df
fix(cloudflare): esbuild settings for cloudflare (#8788)
---------

Co-authored-by: Jonathan Dunlap <595843+jadbox@users.noreply.github.com>
2023-10-10 09:16:32 +02:00
alexanderniebuhr
90d70eb7c4 [ci] format 2023-10-09 17:16:02 +00:00
Jonathan Dunlap
054c5c6447
fix(cloudflare): support for 'cloudflare:*' imports (#8766)
* chore: add 'cloudflare:sockets' to external list

* chore: add Changeset

* patch: wildcard cloudflare packages

* chore: updated Readme for cloudflare module support

* Update .changeset/heavy-elephants-tan.md

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

* Update packages/integrations/cloudflare/README.md

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-10-09 19:13:46 +02:00
ematipico
7ea27f6319 [ci] format 2023-10-09 16:00:28 +00:00
Arsh
c4a7ec4255
fix(windows): ensure drive letter is uppercase (#8741) 2023-10-09 16:58:09 +01:00
bluwy
a0dc79b946 [ci] format 2023-10-09 14:23:53 +00:00
Florian Lefebvre
160d1cd755
feat(tailwind): create a tailwind.config.mjs file by default (#8638) 2023-10-09 22:21:26 +08:00
Martin Trapp
29cdfa0248
Fix transition attributes on islands (#8776)
* Fix transition attributes on islands

* Incorporate comments from review
2023-10-09 16:19:46 +02:00
Martin Trapp
c24f70d916
Fix flickering during view transitions (#8772)
* Fix for #8711

* more descriptive changeset

* chores, while we are at it ...
2023-10-09 16:15:23 +02:00
Bjorn Lu
33d0be50be
Fix snapshot release permissions (#8777) 2023-10-09 20:47:06 +08:00
Bjorn Lu
93b092266f
Make CSS chunk names less confusing (#8754) 2023-10-09 17:29:28 +08:00
Makito
eaed844ea8
fix(assets): add the missing await to getHTMLAttributes (#8773) 2023-10-07 21:22:47 +02:00
Martin Trapp
30de324361
Revert fix #8472 (#8767) 2023-10-06 23:17:27 +02:00
Matthew Phillips
2262814a92 Give snapshot releases the issues: write permission 2023-10-06 16:11:29 -04:00
Matthew Phillips
f9131003d7 Give the snapshot release the right permissions 2023-10-06 16:00:29 -04:00
Matthew Phillips
d51cf5e707 Snapshot release: prevent setting output 2023-10-06 15:50:36 -04:00
Matthew Phillips
e5e6cf16eb Add debugging information on preview releases 2023-10-05 14:14:05 -04:00
Matthew Phillips
41f93e0ccb Print the publish output when it fails 2023-10-05 13:58:03 -04:00
Bjorn Lu
4e5cafa5d2
Fix git tag release (#8752) 2023-10-05 18:45:41 +08:00
Bjorn Lu
ec82e73efa
Fix provenance release (#8749) 2023-10-05 18:29:36 +08:00
Houston (Bot)
584d6f0680
[ci] release (#8738)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-05 11:10:06 +01:00
Jacob Lamb
78adbc4433
Update Netlify SSR link (#8700) 2023-10-05 07:18:45 +01:00
Nate Moore
d78806dfe0
fix(#8746): improve error message for dynamic component usage (#8747) 2023-10-04 15:07:21 -05:00
Bjorn Lu
aa265d7302
Remove unused CSS output files when inlined (#8743) 2023-10-04 21:18:39 +08:00
bluwy
b18d4bf3b1 [ci] format 2023-10-04 10:31:04 +00:00
Arsh
21e0757ea2
chore: remove undici polyfill (#8729) 2023-10-04 18:28:36 +08:00
bluwy
272ad45958 [ci] format 2023-10-04 10:26:21 +00:00
Chris
21f4826576
Fixes: Shiki syntax highlighting adds is:raw attribute to the HTML output (#8715)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-10-04 18:23:58 +08:00
Kobe Ruado
71618f4074
Fix markdown rehype plugin example (#8733) 2023-10-04 17:55:02 +08:00
natemoo-re
240d8ff7c9 [ci] format 2023-10-03 21:00:07 +00:00
Nate Moore
357270f2a3
Improve astro info compatability (#8730)
* Improve `astro info` compatability

* Update packages/astro/src/cli/info/index.ts

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>

* chore: add changeset

* feat(info): add copy to clipboard support on Unix machines with xclip installed

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2023-10-03 15:57:31 -05:00
Florian Lefebvre
f277ba8b70
feat: expose partytown types (close #8723) (#8740) 2023-10-03 23:16:49 +08:00
Emanuele Stoppa
6f60da805e
feat: add provenance to packages (#8737) 2023-10-03 15:25:25 +01:00
Bjorn Lu
d1c75fe158
Fix tsconfig.json update causing the server to crash (#8736) 2023-10-03 14:36:38 +01:00
Genteure
f9477aade1
fix: typo in error deprecation message (#8708)
Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-10-02 18:36:15 +02:00
Houston (Bot)
78fda5c3ec
[ci] release (#8722)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-02 23:55:56 +08:00
Bjorn Lu
455af3235b
Fix CSS styles on windows (#8724) 2023-10-02 23:17:34 +08:00
Ray
6db2687ef0
fix(deno): link to adapter repo (#8712) 2023-10-02 16:33:24 +02:00
alexanderniebuhr
5fb6a266f8 [ci] format 2023-10-02 14:08:47 +00:00
Alexander Niebuhr
3dd65bf889
feat(cloudflare): add local mockings for CF bindings (#8655)
* feat(cloudflare): add D1 database binding

* feat(cloudflare): add local mocking for R2 bindings (#8656)

* feat(cloudflare): add local mocking for KV bindings (#8657)

* feat(cloudflare): add local mocking for Caches bindings (#8664)

* feat(cloudflare): add local mocking for DO bindings (#8690)

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-10-02 16:04:57 +02:00
matthewp
22fae5211a [ci] format 2023-10-02 12:54:01 +00:00
Matthew Phillips
4c2bec681b
Fixes View transition styles being missing when component used multiple times (#8710) 2023-10-02 08:51:53 -04:00
Houston (Bot)
a067c2a2c7
[ci] release (#8699)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-02 16:34:57 +08:00
Alexander Niebuhr
0b22bb9af4
fix(cloudflare): broken link in docs (#8709) 2023-09-30 06:49:04 +02:00
Erika
47ea310f01
feat: resolve images through the file systems on applicable runtimes (#8698)
* feat: add a node image endpoint

* test: fix
2023-09-29 23:14:40 +02:00
Erika
db83237dd3
refactor(markdown): Move astro:assets-specific code out of the main Vite plugin (#8704) 2023-09-29 23:14:09 +02:00
Martin Trapp
148b5b8769
Fix preloading stylesheets in view transitions (#8707)
* Fix preload of stylesheets (VT)

* Fix preload of stylesheets (VT)
2023-09-29 20:03:19 +02:00
Bjorn Lu
345808170f
Fix duplicated Astro and Vite injected styles (#8706) 2023-09-29 21:55:46 +08:00
Bjorn Lu
31c59ad8b6
Fix hydration on slow connection (#8680) 2023-09-29 21:54:46 +08:00
Dario Piotrowicz
c3572fd5e0
fix(cloudflare): target es2022 instead of es2020 to fix esbuild incompatibility issues (#8682)
* fix(cloudflare): target es2022 instead of es2020 to fix esbuild incompatibility issues

* add changeset

* update changeset

* fix(cloudflare): change build target to es2022

---------

Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-09-28 20:56:01 +02:00
Alexander Niebuhr
77d37853cb
fix(cloudflare): sneaky docs (#8694)
* fix(cloudflare): sneaky docs

* resolve docs review comments

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

* resolve docs review comments

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-28 20:26:47 +02:00
Matthew Phillips
eb530e9b61
Remove the Deno example (#8697) 2023-09-28 14:17:46 -04:00
Houston (Bot)
2d33b9362d
[ci] release (#8695)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-28 14:12:22 -04:00
Matthew Phillips
2167ffd72f
Revert "[ci] release (#8671)" (#8696)
This reverts commit eada8ab8fa.
2023-09-28 13:57:54 -04:00
Matthew Phillips
0ba32e4402 Adds a stub version number for the old netlify adapter 2023-09-28 13:27:57 -04:00
lilnasy
c4c616c0a5 [ci] format 2023-09-28 17:19:21 +00:00
Arsh
cfd895d877
fix(rerouting): check that the new route is different (#8648)
* fix(rerouting): check that the new route is different

* add tests

* changeset grammar
2023-09-28 22:46:15 +05:30
Houston (Bot)
eada8ab8fa
[ci] release (#8671)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-09-28 13:14:13 -04:00
matthewp
3c93476078 [ci] format 2023-09-28 16:23:05 +00:00
Matthew Phillips
824dd4670a
Support content collections with % in filename (#8684)
* Support content collections with % in filename

* Add changeset

* Unused eslint thing

* Update packages/astro/src/core/build/static-build.ts

Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>

---------

Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-09-28 12:20:25 -04:00
alexanderniebuhr
0e35457c0f [ci] format 2023-09-28 16:07:09 +00:00
Alexander Niebuhr
f6ba533df6
chore(cloudflare): refactor structure, optimize patterns (#8654)
---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: 100gle <loogle.space@gmail.com>
2023-09-28 18:04:49 +02:00
Arsh
23e7b259eb
chore(ci): pin CI Node version to 18.17.1 (#8693)
* chore(ci): pin E2E Node version to 18.17.1

* pin for the "test" as well

* ...for windows, not ubuntu

* ...for windows, not macos
2023-09-28 20:49:45 +05:30
ElianCodes
8617259fc9 [ci] format 2023-09-28 13:50:31 +00:00
Elian ☕️
ec249f7a98
update all the readme's for expressive code (#8691)
Co-authored-by: HiDeoo <HiDeoo@users.noreply.github.com>
Co-authored-by: Genteure <Genteure@users.noreply.github.com>
Co-authored-by: Bryce Russell <brycetrussell@gmail.com>
Co-authored-by: Reuben Tier <TheOtterlord@users.noreply.github.com>
Co-authored-by: Hippo <hippotastic@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Kevin Zuniga Cuellar <kevinzunigacuellar@users.noreply.github.com>
2023-09-28 15:48:03 +02:00
ElianCodes
0ab19ba615 [ci] format 2023-09-28 12:43:03 +00:00
Elian ☕️
e9b77cbf19
Update codesample for Alpine README (#8689)
Co-authored-by: HiDeoo <HiDeoo@users.noreply.github.com>
Co-authored-by: Genteure <Genteure@users.noreply.github.com>
Co-authored-by: Bryce Russell <brycetrussell@gmail.com>
Co-authored-by: Reuben Tier <TheOtterlord@users.noreply.github.com>
Co-authored-by: Hippo <hippotastic@users.noreply.github.com>
2023-09-28 14:40:08 +02:00
Adit Sachde
f5c617e3a3
Match the .well-known directory when generating routes.json (#7776)
* Match the .well-known directory when generating routes.json

* add changeset

* Update .changeset/clean-planets-retire.md

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-09-27 18:34:29 -04:00
matthewp
c0708c921c [ci] format 2023-09-27 22:21:43 +00:00
Arsh
408b50c5ea
fix(redirects): attempt to get only params in dev mode (#8647)
* fix(redirects): attempt to get only params in dev mode

* fixtures/ssr-redirect => fixtures/redirects

* add tests

* Update pnpm-lock.yaml
2023-09-27 18:19:06 -04:00
Michaili K
e797b68160
Fix assets not getting optimized when outDir is outside the CWD (#8670)
* Fix assets not getting optimized when `outDir` is outside the CWD

* Add missing import

* Add changeset

* Fix import, again.

* Use getOutDirWithinCwd in the serverRoot declaration
2023-09-27 18:18:36 -04:00
Matthew Phillips
87d5b841af
New code (#8559) 2023-09-27 17:06:11 -04:00
Matthew Phillips
4ed410db50
Remove Netlify adapter from core (#8574)
* New link

* More explicit

* Add placeholder package.json

* lockfile

* add keyworkds
2023-09-27 16:48:26 -04:00
matthewp
a10a798c18 [ci] format 2023-09-27 19:25:02 +00:00
Matthew Phillips
e6be2d8146
Add View Transitions announcer (#8621)
* Add View Transitions announcer

* fix astro check

* Append the text in a setTimeout

* Use 60 for the timeout

* Add comment on magic number

* Add a changeset

* Update .changeset/small-rules-relax.md

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

* Bring back announce logic

* Remove mention of env file

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-27 15:21:56 -04:00
delucis
5121740de7 [ci] format 2023-09-27 19:19:41 +00:00
Chris Swithinbank
9b0114c7d3
Support integrations added in updateConfig() in astro:config:setup (#8672)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-27 21:17:27 +02:00
Bjorn Lu
e8495c853b
Fix logLevel passed to Vite build (#8678) 2023-09-27 22:30:30 +08:00
martrapp
aad756297c [ci] format 2023-09-27 13:33:07 +00:00
Martin Trapp
63bc37f2b6
API for clientside router (#8571)
* refactored CSR into goto() function

* first refectoring for router API

* added test

* added comments to fixture

* rename + preliminary changeset

* changeset: now 'minor' and featuring Mathew's example from the docs

* moved for simpler diff

* update after #8617

* fixed ts-errors

* more comprehensible handling of intra-page state

* sync with main

* synch from next_tm
2023-09-27 15:30:13 +02:00
Nolan Lawson
9fe4b95969
fix: print image path for NoImageMetadata (#8666) 2023-09-26 21:51:57 +08:00
Houston (Bot)
60684fad72
[ci] release (#8663)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-25 15:54:55 -04:00
matthewp
7fc700e30d [ci] format 2023-09-25 14:17:53 +00:00
Matthew Phillips
69fbf95b22
Head propagation graph walking on new pages (#8646)
* Head propagation graph walking on new pages

* Add changeset

* Avoid the bang

* Add TODOs about handling in resolveId
2023-09-25 10:14:37 -04:00
ematipico
306649c5a4 [ci] format 2023-09-25 13:47:26 +00:00
Simon Knott
008f7647c4
fix(netlify): bundle netlify functions as ESM to support top-level await (#8661) 2023-09-25 15:45:13 +02:00
Arsh
954cadc1e5
fix(deno): do not set vite.ssr.noExternal (#8652)
* fix(deno): safely set external specifiers

* noExternal does not need to be manually set at all
2023-09-25 19:13:43 +05:30
Houston (Bot)
211bfe3b00
[ci] release (#8635)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-25 18:28:54 +08:00
Rishi Raj Jain
863f5171e8
fix: generated redirect page canonical lacks of site prefix (#8591) 2023-09-25 09:54:58 +02:00
Marco Schumacher
2365c12464
fix(cloudflare): added config for _routes.json generation (#8459)
* added config for _routes.json generation

* added changeset

* renamed test file

* updated comments

* Apply suggestions from code review

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

* worked on tests

* worked on docs

* worked on docs

* worked on tests

* updated pnpm-lock.yaml

* worked on tests

* moved the _worker.js in cloudflareSpecialFiles statement

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Alexander Niebuhr <alexander@nbhr.io>
2023-09-24 08:32:03 +02:00
Alexander Niebuhr
4c4ad9d167
chore(core): improve the logging of assets feature (#8615)
* improve assets logging

* changeset

* fix typo

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

* improve log message

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

* update log message

* update changeset

---------

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-23 18:15:49 +02:00
matthewp
1d4f91b033 [ci] format 2023-09-22 22:14:57 +00:00
Matthew Phillips
cb838b84b4
fix getDataEntryById to lookup by base name (#8645) 2023-09-22 18:12:51 -04:00
natemoo-re
421257fc1c [ci] format 2023-09-22 21:03:31 +00:00
Jacob Lamb
139b0f54d9
Refine CLI flag descriptions for clarity (#8545)
* Refine CLI flag descriptions for clarity

* Update README.md

* Update README.md

* Update README.md

* Update help.ts

* Update packages/create-astro/src/actions/help.ts

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

* Update packages/create-astro/README.md

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

* Update packages/create-astro/README.md

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

* Update README.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-22 16:00:38 -05:00
matthewp
4f2bf2156f [ci] format 2023-09-22 18:15:46 +00:00
Matthew Phillips
f36c4295be
Warn on empty content collections (#8640)
* Warn on empty content collections

* Update packages/astro/src/core/errors/errors-data.ts

Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>

---------

Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
2023-09-22 14:12:36 -04:00
Martin Trapp
974d5117ab
fix: no deletion of scripts during view transition (#8636) 2023-09-22 12:01:22 -04:00
ematipico
0352dec47b [ci] format 2023-09-22 15:00:18 +00:00
Adrian Lyjak
faeead4232
feat(@astrojs/cloudflare): Add support for wasm module imports (#8542)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-22 16:58:00 +02:00
bluwy
b1310e6f13 [ci] format 2023-09-22 14:49:43 +00:00
Paul Valladares
a3bee1477e
Update: Improve manual install guide of @astrojs/tailwind integration (#8619) 2023-09-22 22:47:40 +08:00
bluwy
f35a55bd4f [ci] format 2023-09-22 13:20:50 +00:00
Reuben Tier
b64dd45c0d
Fix behaviour regression in create-astro (#8634) 2023-09-22 21:18:46 +08:00
Yan Thomas
bd00ad776d
Fix subheading inconsistency (#8623) 2023-09-22 14:57:27 +02:00
Erika
63141f3f3e
fix: properly generate code for multiple images in same markdown file (#8633) 2023-09-22 14:28:03 +02:00
Erika
de7a7fbdc3
nit: optimize images (#8629) 2023-09-22 12:04:39 +02:00
Matthew Phillips
da00425a5f
Revert "fix: islands are not being rendered correctly (#8580)" (#8624)
This reverts commit 8d361169b8.
2023-09-22 09:39:27 +02:00
Houston (Bot)
4e1e8dc5c6
[ci] release (#8597)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-21 14:32:12 -04:00
matthewp
fe29ce2731 [ci] format 2023-09-21 17:10:10 +00:00
Erika
bdd267d089
fix(markdown): Fix Markdown images breaking the build (#8598)
* fix(markdown): Fix Markdown images breaking the build

* chore: changeset

* Update packages/astro/src/core/errors/errors-data.ts

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

* Fix tla chunking

* One directory up

* Down we go

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-09-21 13:07:33 -04:00
Bjorn Lu
5a988eaf60
Fix Astro HMR from a CSS dependency (#8609)
* Fix Astro HMR from a CSS dependency

* Improve css test

* Create wise-donuts-tickle.md
2023-09-21 12:53:37 -04:00
Martin Trapp
e8c997db99
Clean-up router implementation (#8617)
* Update regarding review comments from #8571

* Update regarding review comments from #8571 (2)

* Update regarding review comments from #8571 (3)

* Update regarding review comments from #8571 (4)
2023-09-21 10:21:29 -04:00
matthewp
a576ba9c37 [ci] format 2023-09-21 12:58:10 +00:00
Matthew Phillips
bcad715ce6
Ensure cookies are attached when middleware changes the Response (#8612)
* Ensure cookies are attached when middleware changes the Response

* fix test
2023-09-21 08:55:05 -04:00
ematipico
defab70cb2 [ci] format 2023-09-21 08:37:23 +00:00
Timon Jurschitsch
e522a5eb41
Remove AstroError if content directory is empty (#8382)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-09-21 10:34:20 +02:00
Arsh
4398e92987
fix(middleware): undo config's path to URL encoding (#8614)
* fix(middleware): undo config's path to URL encoding

* add changeset

* middleware-dev => "middleware space"
2023-09-21 07:35:33 +02:00
FredKSchott
b4034aabea [ci] format 2023-09-20 16:52:04 +00:00
Fred K. Schott
ed54d46449
improve telemetry (#8600) 2023-09-20 09:50:04 -07:00
matthewp
0119a271ae [ci] format 2023-09-20 13:20:38 +00:00
Matthew Phillips
8f8b9069dd
Prevent body scripts from re-executing on navigation (#8603)
* Prevent body scripts from re-executing on navigation

* Adding changeset

* Run script replacement logic before head

* Rename doc to newDocument
2023-09-20 09:18:02 -04:00
Martin Trapp
2d7f5429a5
test: since we check the media-type, data-astro-reload has fewer use cases (#8605) 2023-09-20 17:50:56 +08:00
Bjorn Lu
70f2a80039
Fix alias plugin causing CSS ordering issue (#8592) 2023-09-20 17:45:11 +08:00
ematipico
c49e865f4f [ci] format 2023-09-20 08:30:38 +00:00
Arsh
2e1d5f8739
fix(node): report render error to the terminal (#8599) 2023-09-20 10:27:46 +02:00
J. B. Rainsberger
1f1c47d909
Improved the spelling of a word in the Portfolio template. (#8576)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-19 16:33:33 -05:00
ematipico
767599522c [ci] format 2023-09-19 09:53:20 +00:00
Alexander Niebuhr
5b0b3c9a8e
fix(@astrojs/cloudflare): support for nodejs_compat (#8595)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-09-19 11:51:06 +02:00
Houston (Bot)
9b84a7ef96
[ci] release (#8590)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-19 17:21:05 +08:00
bluwy
86acd0f1d5 [ci] format 2023-09-19 09:11:23 +00:00
Jacob Lamb
1d5b3f079d
feat(create-astro): Update flag behavior for template and project-name (#8551) 2023-09-19 17:09:27 +08:00
Rishi Raj Jain
d0e513f214
fix: Vercel serverless adapter logs too much (#8581) 2023-09-18 19:22:55 +08:00
Rishi Raj Jain
0586e20e83
fix: redirect page type icon not properly displayed (#8579) 2023-09-18 17:59:19 +08:00
ematipico
6024955882 [ci] format 2023-09-18 09:47:02 +00:00
Alexander Niebuhr
3da5d8404e
feat(@astro/cloudflare): improve DX for runtime typing (#8560) 2023-09-18 10:44:19 +01:00
Miguel Carneiro
c9bbd304ca
Tailwind configuration file changed from cjs to ts (#8583) 2023-09-18 17:41:38 +08:00
Erika
95b5f6280d
fix(assets): Fix misc types issues (#8568)
* fix(assets): Fix misc types issues

* fix: remove unnecessary change

* chore: changeset
2023-09-18 11:39:21 +02:00
Rishi Raj Jain
8d361169b8
fix: islands are not being rendered correctly (#8580) 2023-09-18 17:35:27 +08:00
Houston (Bot)
fca6892f8d
[ci] release (#8540)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-14 12:44:09 -04:00
matthewp
8376f24b47 [ci] format 2023-09-14 12:17:20 +00:00
Matthew Phillips
b79e11f3c4
Change functionPerRoute to false by default (#8546)
* Change functionPerRoute to false by default

* Update test that depends on functionPerRoute

* Update .changeset/cool-pianos-smell.md

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

* Update .changeset/cool-pianos-smell.md

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

* Update packages/integrations/vercel/README.md

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

* Update packages/integrations/vercel/README.md

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

* Update .changeset/cool-pianos-smell.md

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-14 08:15:11 -04:00
Bjorn Lu
74dc3edb30
Improve MDX rendering performance (#8533) 2023-09-14 20:05:38 +08:00
Chris
2e8726feec
[@astrojs/vercel] Individually enable Speed Insights and Web Analytics (#8021)
* Individually enable Speed Insights and Web Analytics

* Update pnpm-lock.yaml

* Remove .only on tests

* Fix build

* Move `beforeSend` out of config

* Address feedback from review

* Update README.md

* Add back the `analytics` property and add deprecation warning when used

* Add migration guide for the deprecated `analytics` property

* Update packages/integrations/vercel/README.md

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

* Update README.md

* Fix external dependency issue

* Simplify plugin and reduce scope

* Update .changeset/sixty-teachers-tap.md

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

* Apply feedback from review

* Move exposeEnv to speed-insights since it's only used there

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-09-14 08:02:11 -04:00
Bjorn Lu
7522bb4914
Improve markdown rendering performance (#8532) 2023-09-14 18:22:16 +08:00
Jacob Lamb
61ac5c9eaa
chore(astro): update readme (#8530)
* chore(astro): update readme

* Update packages/astro/README.md

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

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-13 16:19:30 -05:00
Martin Trapp
f95febf96b
Fix for checking media type in CSR (#8537)
* bugfix checking media-type

* bugfix checking media-type

* Update packages/astro/components/ViewTransitions.astro

.* is longest possible run, but a dollar won't harm us :)

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

* make typescript happy

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-13 16:17:07 -05:00
Princesseuh
eb3c33cff7 [ci] format 2023-09-13 19:18:07 +00:00
Andrew Moore
45364c3452
feat: added types to allow the creation of user space content services (#7607)
* feat: added types to astro:content to allow user space content services

* Create small-apes-clap.md

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-09-13 21:16:00 +02:00
Erika
91380378ce
feat(vercel): Use Sharp in dev instead of Squoosh by default (#8445)
* feat(vercel): Use Sharp in dev instead of Squoosh by default

* fix(build):

* nit: adjust with feedback

* fix: imports

* Update packages/integrations/vercel/README.md

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

* docs: small change in other part of the README

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-13 18:40:02 +02:00
Martin Clementz
6c6f1aef43
chore: check if ssr works on netlify (#8002)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-13 18:30:23 +02:00
Princesseuh
de8d6ad237 [ci] format 2023-09-13 16:29:09 +00:00
Ben Holmes
a8d72ceaee
[MDX] Support img component prop for optimized images (#8468)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-09-13 18:27:03 +02:00
Erika
ecc65abbf9
feat(assets): Allow users to set a custom endpoint to use for image optimization (#8467)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-13 18:15:58 +02:00
Erika
c92e0acd71
feat(types): Add types for the object form of style (#8464) 2023-09-13 17:57:59 +02:00
Lars Kappert
d93987824d
feat(markdown): Add support for imageReference paths when collecting images (#8475) 2023-09-13 17:29:39 +02:00
Erika
2c4fc878be
Support AVIF input assets (#8518) 2023-09-13 17:27:16 +02:00
btea
9552ef1481
chore(create-astro): Added create project using pnpm (#8340) 2023-09-13 16:58:18 +02:00
Erika
4e395a6cab
config: migrate us to moduleResolution: 'node16' (#8519) 2023-09-13 16:49:22 +02:00
Erika
b85c8a78a1
feat: better errors for images (#8536) 2023-09-13 16:44:15 +02:00
natemoo-re
3be8b67f89 [ci] format 2023-09-13 14:43:40 +00:00
Nate Moore
ed952b4cea
Improve create-astro startup performance (#8456)
* feat(create-astro): improve performance

* test: fix test by wrapping promise values

* chore: remove uneeded deps

* Update ten-kings-smash.md

* chore: update lockfile
2023-09-13 09:40:53 -05:00
Jacob Lamb
f02dc9f7bf
chore(create-astro): Remove npm 6.x note (#8529)
* chore(create-astro): Remove npm 6.x note

* Add missing space
2023-09-13 08:56:34 -05:00
Houston (Bot)
c23ddb9ab3
[ci] release (#8501)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-12 14:29:39 -04:00
natemoo-re
93d5bef3e4 [ci] format 2023-09-12 17:52:22 +00:00
Nate Moore
aac51bd00b
chore: disallow node builtins in runtime (#8523) 2023-09-12 12:50:06 -05:00
matthewp
a02707a8b2 [ci] format 2023-09-12 16:56:23 +00:00
Martin Trapp
43bc5f2a55
Vt follow redirects (#8522)
* View Transitions redirects WIP

* transition across redirects

* added changeset

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-09-12 12:54:32 -04:00
Martin Trapp
2db9762eb0
Restore horizontal scroll position on history navigation (view transitions) (#8505) 2023-09-12 11:37:28 -04:00
bluwy
4105491732 [ci] format 2023-09-12 09:58:47 +00:00
Okuto Oyama
644825845c
Removed <style> with type="text/css" from inline output at build time (#8480) 2023-09-12 17:56:52 +08:00
Erika
bf341d6762
revert: avif support (#8511) 2023-09-11 23:00:43 +02:00
Erika
cda7d80ac5
chore: revert avif change (#8509) 2023-09-11 20:29:36 +02:00
Erika
f41157e955
chore: do a minor for avif support (#8508) 2023-09-11 20:20:55 +02:00
lilnasy
fdf9b66f9b [ci] format 2023-09-11 18:07:37 +00:00
Alexander Niebuhr
2c96144696
feat(@astrojs/cloudflare): add runtime support to astro dev (#8426)
* add necessary libs

* cleanup stale code

* add base feature-set of runtime to `astro dev`

* fix lockfile

* remove future code

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>

* remove future code

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>

* remove future code

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>

* remove future code

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>

* remove future code

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>

* address review comments

* fix linting issue

* add docs & tests

* fix test paths

* add changeset

* update README.md

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

* fix docs & make adapter options optional

* fix package resolve mode

* fix pnpm-lock

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-09-11 23:34:44 +05:30
Princesseuh
b384cf4f7d [ci] format 2023-09-11 17:30:40 +00:00
Matt Rossman
345cb4aeb9
Support AVIF input assets (#8380)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Princesseuh <princssdev@gmail.com>
2023-09-11 19:28:35 +02:00
Masaki Koyanagi
23f9536de0
chore: correct description of attribute option in scopedStyleStrategy (#8506)
* chore: correct description of `attribute` option in `scopedStyleStrategy`

* chore: fix typo (specifity -> specificity)
2023-09-11 18:26:45 +02:00
Emanuele Stoppa
5e1099f686
fix: minify HTML for redirects when emitted as HTML files (#8504) 2023-09-11 15:11:57 +01:00
matthewp
c934b087d7 [ci] format 2023-09-11 12:41:49 +00:00
Matthew Phillips
fa77fa63d9
Prevent style removal of client:only components (#8472) 2023-09-11 08:39:22 -04:00
Bjorn Lu
1ed21d10db
Clear caches older than 5 days (#8494) 2023-09-11 20:05:17 +08:00
Martin Trapp
0ca332ba4a
Bugfixes for back navigation in the view transition client-side router (#8491)
* Bugfixes for back navigation in the view transition client-side router

* re-introduced pushState on self links as required for update of browser's address bar

* format
2023-09-11 07:58:52 -04:00
bb010g
78b82bb392
fix(astro): support content/config.mts (#8484)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-09-11 13:54:56 +02:00
Oscar Lee-Vermeren
a6a516d944
fix(types): make image.service optional (#8492) 2023-09-11 13:52:25 +02:00
Marc
435b105498
Fix: lang unspecified code blocks (#8461) 2023-09-11 12:45:21 +01:00
Houston (Bot)
0a2567c288
[ci] release (#8465)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-08 10:08:35 -04:00
matthewp
b65e84d888 [ci] format 2023-09-08 14:02:12 +00:00
Matthew Phillips
7eea37a075
Fix multi-layout head injection (#8449)
* Fix multi-layout head injection

* Tracing fix

* Improved walk

* Upgrade the compiler version

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-08 10:00:07 -04:00
Erika
50c0a803e3
refactor: move type utils into a single file (#8462) 2023-09-08 14:58:37 +02:00
Houston (Bot)
98d501bde6
[ci] release (#8442)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-08 13:55:26 +02:00
Nate Moore
85fe213fe0
fix(react): support void children in experimentalReactChildren (#8455) 2023-09-07 15:54:39 -05:00
matthewp
5c23bf1c90 [ci] format 2023-09-07 18:24:12 +00:00
Martin Trapp
f66053a1ea
Transition only between pages where both have ViewTransitions enabled (#8441)
* added e2e test regarding loss of router

* only navigate to pages from which we can navigate back

* location does not change before deferred pushState

* initialize history state

* test cases adapted to new semantics (only traverse to pages w/ ViewTransigs)

* type URL instead of Location

* + changeset
2023-09-07 14:21:57 -04:00
Erika
7ea32c7fbf
feat: pass our domains and remote config to the Vercel config (#8452)
* feat: pass our domains and remote config to Vercel'S

* chore: changeset

* test: update test to test for this

* docs: update README
2023-09-07 18:12:00 +02:00
Nate Moore
3f49aa97ab
fix(svelte): unmount islands properly on navigation (#8448) 2023-09-07 09:49:59 -05:00
Bjorn Lu
f3f62a5a20
Refactor mdx remark plugins (#8430) 2023-09-07 22:28:02 +08:00
Mohammed Elhaouari
0fa483283e
Fix "Cannot read properties of null" in cli/telemetry (#8443)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-09-07 10:39:42 +02:00
natemoo-re
8a08cb8d2a [ci] format 2023-09-06 22:25:23 +00:00
Ryan Carniato
a525d5db17
fix hydration in solid renderer (#8365)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-06 17:22:58 -05:00
Houston (Bot)
88c76a9a42
[ci] release (#8439)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-06 16:35:56 -05:00
Nate Moore
0b8fbe2062
Update README.md (#8433) 2023-09-06 16:27:25 -05:00
Nate Moore
b92d066b73
fix(#8434): fix renderToFinalDestination handling (#8440) 2023-09-06 15:38:48 -05:00
Erika
b3cf1b3276
fix: imports for images with uppercase extensions not working (#8437) 2023-09-06 20:52:52 +02:00
Erika
6df4f3bd9d
fix: MDX errors not having stack trace and a confusing name (#8438)
* fix(mdx): Fix errors having weird names and no stack trace

* chore: changeset
2023-09-06 20:36:50 +02:00
natemoo-re
eb7615f25a [ci] format 2023-09-06 15:25:56 +00:00
Nate Moore
c06b41a6b8
Update Prettier (#8420)
* chore: fix prettier config

* chore: format

* chore(prettier): format `.astro` files
2023-09-06 10:23:44 -05:00
Houston (Bot)
14273d8f44
[ci] release (#8415)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-06 09:56:58 -04:00
Matthew Phillips
fa826f84b2
Temporarily pin Node 20 version in CI (#8431) 2023-09-06 09:33:00 -04:00
Sarah Rainsberger
bd8aa9a996
[docs] Typo fix in Cloudflare README (#8429)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-09-06 10:26:27 -03:00
matthewp
59672ad4e7 [ci] format 2023-09-06 13:24:09 +00:00
aswind7
b81ff8fcef
trim project name of the user input (#8427)
* fix: remove duplicate import

* project name should be trimed

* update changeset
2023-09-06 09:22:18 -04:00
matthewp
2272f8d3c4 [ci] format 2023-09-06 13:15:40 +00:00
Matthew Phillips
67e8348594
Fix React dev mode using a base (#8428) 2023-09-06 09:13:36 -04:00
Barthélémy Ledoux
1947ef7a99
fix: no asset plugin w/ img is imported with query (#8353)
* fix: no asset plugin w/ img is imported with query

* add changeset

* add test for the new feature

* remove exp

* use removeQueryString instead of `includes('?')`

it's more explicit

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-09-06 15:01:01 +02:00
Erika
48ff7855b2
fix: make sharp an optional dep (#8416)
* fix: make sharp an optional dep

* chore: lockfile

* chore: changeset

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-06 14:52:13 +02:00
bluwy
35dff8246d [ci] format 2023-09-06 09:17:34 +00:00
Jacob Lamb
d2f2a11cdb
Improve Package Detection (#8306) 2023-09-06 17:15:10 +08:00
ematipico
eb8c4cc2fc [ci] format 2023-09-06 04:46:18 +00:00
Slawek Kolodziej
9ffa1a84e8
fix: include route prefix in vercel func names, fix #8401 (#8408)
* fix: include route prefix in vercel func names

* chore: add changeset

* chore: update pnpm lockfile

* refactor: simplify logic that generates vercel func names

* fix: properly remove entryFile prefix from func name

* refactor: change how vercel function names are generated

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-06 05:43:53 +01:00
Matteo Manfredi
61ad70fdc5
fix: fix remote astro:assets caching logic (#8424) 2023-09-05 19:28:00 -05:00
Bjorn Lu
923a443cb0
Fix markdown page HMR (#8418)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-05 14:35:56 -05:00
Bjorn Lu
837ad16491
Skip cloudflare CLI tests if fail to start (#8417)
* Skip cloudflare CLI tests if fail to start

* Fix port

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-05 14:35:41 -05:00
Martin Trapp
8935b3b467
Fix scroll position when navigating back from page w/o ViewTransitions (#8332)
Co-authored-by: Justin Beaty <51970393+justinbeaty@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-09-05 15:05:55 -04:00
lilnasy
cde0cc4093 [ci] format 2023-09-05 18:03:21 +00:00
Arsh
7d95bd9baa
Allow vite to refer to inlined CSS (#8351)
* fix(client build): keep inlined stylesheets

* add changesets

* appease linter

* eslint: allow variables beginning with an underscore to be unused

* remove eslint-ignore that's no longer needed

* ready for review
2023-09-05 23:31:15 +05:30
Erika
5126c6a40f
fix: missing imageConfig type in astro:assets (#8414) 2023-09-05 15:11:05 +02:00
Shinya Fujino
8352ee0a9a
Fix some formatting problems and description in astro.ts (#8410) 2023-09-05 08:36:02 -03:00
Chris Swithinbank
93a1231f14
Add location data to MDX compile errors (#8405) 2023-09-05 12:48:39 +02:00
Julien Déramond
fd6ce9a99a
fix: funcitonPerRoutefunctionPerRoute in vercel integ package (#8406) 2023-09-05 07:28:23 +01:00
Ikko Eltociear Ashimine
b6066e109c
refactor: fix typo in astro.ts (#8385)
Co-authored-by: Elian ️ <hello@elian.codes>
2023-09-04 17:56:16 +02:00
bluwy
c48d4765c1 [ci] format 2023-09-04 15:12:28 +00:00
李瑞丰
d92ab06544
Update examples & uppercase endpoints & fix response (#8391)
Co-authored-by: liruifeng <liruifeng@troila.com>
2023-09-04 23:10:39 +08:00
Michael Oliver
77922ae5db
chore: use z.coerce.date() to pass input through new Date(input). (#8383) 2023-09-04 18:46:24 +08:00
giovanni
535a458999
fix: remove duplicate import (#8393)
Co-authored-by: jesse <qfei.shao@gmail.com>
2023-09-04 18:42:46 +08:00
Houston (Bot)
e43ae88528
[ci] release (#8372)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-04 10:09:43 +01:00
Nate Moore
362491b8da
Fix pipeline beforeHydrationScript handling (#8388) 2023-09-04 09:11:47 +01:00
李瑞丰
8d12659ce8
Fix benchmark import path (#8389) 2023-09-04 11:19:53 +08:00
matthewp
dc8bcb6ae7 [ci] format 2023-09-02 01:06:06 +00:00
Matteo Manfredi
06e7256b58
fix: remove double } (#8370)
* fix: remove extra `}`

* changeset: add
2023-09-01 21:03:50 -04:00
Houston (Bot)
e34175be34
[ci] release (#8356) 2023-09-01 18:26:05 -05:00
natemoo-re
d8ecae2c54 [ci] format 2023-09-01 23:15:14 +00:00
Nate Moore
c5633434f0
Ensure chunkFileNames do not include invalid characters (#8366) 2023-09-01 18:13:32 -05:00
Erika
405ad95017
fix: tsc complaining about astro imports again (#8367) 2023-09-01 23:20:42 +02:00
Nate Moore
0ce0720c7f
Wrap JSON.parse in try/catch (#8363)
* fix(telemetry): wrap JSON.parse in try/catch

* fix: always write the store

* chore(lint): fix
2023-09-01 14:19:12 -05:00
Princesseuh
7a91600a9e [ci] format 2023-09-01 18:32:11 +00:00
Matteo Manfredi
6b1e798146
feat: add progress to asset generation (#8357) 2023-09-01 20:29:57 +02:00
Chris Swithinbank
b74dacdb6a
Uppercase endpoint examples in adapter READMEs (#8346) 2023-09-01 17:11:55 +02:00
Houston (Bot)
1b9de31737
[ci] release (#8335)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-01 15:19:30 +01:00
Erika
0eb09dbab1
fix(vercel): Don't output an error message for failing to resolve sharp (#8354)
* fix(vercel): Don't output an error message for failing to resolve sharp

* chore: changeset
2023-09-01 16:14:15 +02:00
ematipico
cc99b2814f [ci] format 2023-09-01 13:35:21 +00:00
Emanuele Stoppa
5f2c55bb54
fix(@astrojs/vercel): slowness and symbolic link (#8348) 2023-09-01 14:33:04 +01:00
Martin Trapp
f21599671a
Respect the download attribute in links when using view transitions (#8339)
* Respect the download attribute in links when using view transitions

* cleanup
2023-08-31 17:51:03 -04:00
natemoo-re
a4780e97f6 [ci] format 2023-08-31 18:08:08 +00:00
Fred K. Schott
d3a6f9f836
add leading and trailing slash sanitization for params (#8276)
* add leading and trailing slash sanitization for params

* chore: fix lint

* refactor: use shared trimSlashes util

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@astro.build>
2023-08-31 13:05:39 -05:00
Houston (Bot)
84427f33c1
[ci] release (#8330)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-31 13:42:22 -04:00
natemoo-re
d7579f36d7 [ci] format 2023-08-31 17:37:00 +00:00
Emanuele Stoppa
b21038c193
fix: exclude redirects when running functionPerRoute (#8320)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-31 12:34:50 -05:00
Nate Moore
5f3a44aeef
Improve astro info command (#8327)
* feat(astro): improve info command

* chore: update browser field
2023-08-31 12:33:53 -05:00
Matthew Phillips
7a894eec3e
Prevent View Transition fallback from waiting on looping animations (#8331)
* Prevent View Transition fallback from waiting on looping animations

* Filter out infinite animations
2023-08-31 13:32:45 -04:00
Justin Beaty
af41b03d05
View Transitions: use history.scrollRestoration="manual" (#8231)
* View Transitions: use history.scrollRestoration="manual"

* Update changeset

* Set scrollRestoration to manual before popState

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

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
2023-08-31 12:20:26 -04:00
Emanuele Stoppa
c58472756e
fix(@astrojs/vercel): include astro feature map and adapter features to the static adapter (#8318) 2023-08-31 17:01:43 +01:00
Houston (Bot)
61ac0eb3d8
[ci] release (#8326)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-31 11:36:25 -04:00
matthewp
f36bce043f [ci] format 2023-08-31 15:32:51 +00:00
Matthew Phillips
0752cf3688
Prevent React hook call warnings when used with MDX (#8324)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-31 11:31:01 -04:00
Matthew Phillips
8fff0e9aeb
Update Vercel warning verbiage (#8328)
* Update Vercel warning verbiage

* Changeset and suggestion of functionPerRoute: false
2023-08-31 11:06:09 -04:00
Emanuele Stoppa
dc29e0f797
fix(@astrojs/vercel): warn user when functionPerRoute is true (#8319) 2023-08-31 15:36:37 +01:00
Houston (Bot)
1efd51fb47
[ci] release (#8304)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-30 16:31:20 -04:00
Emanuele Stoppa
d4a6ab7339
fix(ssr): inline middleware during the build, not rely on file system (#8300)
* fix(ssr): inline middleware during the build, not rely on file system

* feedback

* chore: fix lint

---------

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-30 12:56:10 -05:00
Houston (Bot)
d01c336c4d
[ci] release (#8302)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-30 19:20:51 +02:00
Erika
4e88ffd813
Update CodeSandbox config for Node 18 and new editor (#8292)
* config: update config for codesandbox

* feat: update create-astro to remove .codesandbox folder

* chore: changeset

* fix: use node18
2023-08-30 18:52:21 +02:00
Houston (Bot)
2a94614433
[ci] release (#8296)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-30 18:14:12 +02:00
Erika
d9bd7cf5ce
fix: tsc errors in components (#8293)
* fix: tsc errors in components.ts

* chore: changeset
2023-08-30 17:54:04 +02:00
Erika
7c67fa77b2
config: set proper default config on framework-react example (#8289)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-30 17:03:16 +02:00
Houston (Bot)
f8c171c944
[ci] release (#8288)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-30 10:35:16 -04:00
Matthew Phillips
ef37f9e290
Revert "[ci] release (#8285)" (#8290)
This reverts commit b4e67a0b1b.
2023-08-30 10:31:24 -04:00
Matthew Phillips
206a89d43e 3.0.1 release 2023-08-30 10:20:00 -04:00
Houston (Bot)
b4e67a0b1b
[ci] release (#8285)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-30 10:13:29 -04:00
Emanuele Stoppa
c32f52a624
chore: add warnings to console for deprecated options (#8283) 2023-08-30 10:10:28 -04:00
matthewp
f206bde0ff [ci] format 2023-08-30 14:09:54 +00:00
Matthew Phillips
1d2389cb6f
Fix astro check failure on first try (#8287) 2023-08-30 10:08:06 -04:00
Sarah Rainsberger
a0955f769f
[docs] remove experimental from image configs (#8282) 2023-08-30 10:12:45 -03:00
Houston (Bot)
5598feb718
[ci] release (#8279)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-30 13:38:28 +02:00
Yan Thomas
e33d951af1
Remove draft pages info from mdx integration guide (#8281) 2023-08-30 07:25:29 -04:00
Emanuele Stoppa
c2d92dc293
chore: exit from next mode (#8278) 2023-08-30 09:20:49 +01:00
Yan Thomas
264bbba4e0
Add missing backtics to scopedStyleStrategy value (#8275) 2023-08-29 18:36:28 -04:00
Houston (Bot)
28a49f8e0d
[ci] release (rc) (#8272)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-29 15:50:45 -04:00
matthewp
b0e021d41b [ci] format 2023-08-29 19:47:49 +00:00
Matthew Phillips
16f09dfff7
Fix video persistence regression (#8271)
* Fix video persistence regression

* Adding a changeset
2023-08-29 15:46:06 -04:00
Houston (Bot)
834a00d2d3
[ci] release (rc) (#8267)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-29 14:18:54 -04:00
Matthew Phillips
e7f872e91e
Prevent ViewTransition script from being added by mistake (#8268) (#8270)
* Prevent ViewTransition script from being added by mistake

* Add the 2-legacy branch to CI
2023-08-29 14:00:47 -04:00
Erika
8450379db8
fix: settings requiring service to be set when settings domains or remotePatterns (#8266) 2023-08-29 17:54:24 +02:00
Martin Trapp
a78175c1b8
added e2e tests for history navigation to fragment positions (#8265) 2023-08-29 11:30:52 -04:00
Houston (Bot)
6f47c6c919
[ci] release (rc) (#8256)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-29 10:58:09 -04:00
natemoo-re
51e67e0ab0 [ci] format 2023-08-29 14:32:02 +00:00
Nate Moore
1f58a7a1be
Unmount framework components when islands are destroyed (#8264)
* fix(view-transitions): update persistence logic for improved unmount behavior

* feat(astro): add `astro:unmount` event

* feat(vue): automatically unmount islands

* feat(react): automatically unmount islands

* feat(react): automatically unmount islands

* feat(solid): automatically dispose of islands

* feat(svelte): automatically destroy of islands

* feat(svelte): automatically destroy of islands

* feat(solid): automatically dispose of islands

* feat(preact): automatically unmount islands

* chore: update changeset

* fix: rebase issue

* chore: add clarifying comment

* chore: remove duplicate changeset

* chore: add changeset
2023-08-29 09:30:11 -05:00
Erika
9e021a91c5
feat: add generic to type params to Astro global (#8263)
* feat: add generic to type params to Astro global

* chore: changeset
2023-08-29 16:04:25 +02:00
natemoo-re
04fa5a1453 [ci] format 2023-08-28 21:05:20 +00:00
Nate Moore
0c7b42dc67
Update telemetry notice (#8234)
* chore: enable telemetry notice

* chore: update telemetry date, notify

* chore(telemetry): refactor telemetry notices

* chore: add changeset

* chore: improve debugging

* chore: update debug

* fix: logical error

* chore(lint): remove unused input

* chore: improve telemetry debug

* chore: improve telemetry tests

* chore: allow isCI to be stubbed

* chore: stub process.env

* chore: stub process.env

* chore: add env to class

* chore: act like we're not on CI

* test: didn't commit the env stub properly

* chore: tweak wording
2023-08-28 16:03:01 -05:00
Matthew Phillips
1db4e92c12
Allow fallback animations on html element (#8258)
* Allow fallback animations on html element

* Add fallback attr after swap

* Break apart addModern and addFallback into separate functions
2023-08-28 14:41:00 -04:00
Houston (Bot)
0a97524e38
[ci] release (rc) (#8238)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-28 12:23:04 -04:00
ematipico
ba7b23b9e0 [ci] format 2023-08-28 16:21:11 +00:00
Emanuele Stoppa
c7921e9e1b
refactor: use new Astro internals (#8254)
* refactor: use new Astro internals

* chore: update tests

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-08-28 17:19:04 +01:00
Matthew Phillips
52f0837bde
Vercel adapter default changes (#8239)
* Vercel adapter default changes

* Update .changeset/silly-dolphins-try.md

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

* Fix tests

* chore: correctly export `pageModule` when using `functionPerRoute`

* Update .changeset/silly-dolphins-try.md

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

* Update .changeset/silly-dolphins-try.md

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

* Make throw be the entrypoint

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-28 12:10:28 -04:00
Erika
ffc9e2d3de
feat(paginate): Return exact types from paginate() (#8229)
* feat(paginate): Return exact types from paginate()

* chore: changeset

* fix(types): Fix infer utils while I'm here

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-28 12:02:05 -04:00
matthewp
57e9a28063 [ci] format 2023-08-28 15:59:37 +00:00
Matthew Phillips
1048aca550
Lazily initialize ResponseWithEncoding (#8253)
* Lazily initialize ResponseWithEncoding

* Fix things

* Add a TODO about removing the workaround

* Remove unused lint ignore

* Use canplaythrough instead

* Use an inline script

* Check the readystate first

* Download the video locally

* Capture consoles

* More debugging

* Use autoplay instead of a ready event
2023-08-28 11:57:21 -04:00
Erika
46c4c0e053
feat(cli): Add docs error link to errors in the CLI (#8251) 2023-08-28 15:15:14 +02:00
Florian Lefebvre
ed39fbf168
fix(deno): add start to options interface and extract to new file (close #8221) (#8245)
* fix(deno): add start to options and extract to new file

* Reword changeset

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2023-08-28 02:51:28 +05:30
Mainak Das
cc740fb103
docs: Fix typo in react integration README (#8243) 2023-08-27 16:35:29 +02:00
Erika
3674584e02
fix: require.resolve call not finding @astrojs/check (#8237) 2023-08-26 11:26:20 +02:00
natemoo-re
3ad5a2a287 [ci] format 2023-08-25 23:11:22 +00:00
Nate Moore
2bdce4c4a0
feat(create-astro): --fancy (#8235) 2023-08-25 18:09:30 -05:00
Houston (Bot)
23096dbee8
[ci] release (rc) (#8233)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-25 14:10:30 -04:00
Matthew Phillips
a824863ab1
Use .js to import logger' (#8232) 2023-08-25 14:06:53 -04:00
ElianCodes
cd69aa7347 [ci] format 2023-08-25 17:08:19 +00:00
shelton louis
6cfaf75af9
chore: Write read me for the Markdoc config. (#7989)
Co-authored-by: Elian ️ <hello@elian.codes>
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-08-25 19:06:04 +02:00
Houston (Bot)
2b5d739bd9
[ci] release (rc) (#8215)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-25 12:52:51 -04:00
Bjorn Lu
4bd2fac8da
Publish missing react vnode-children.js file (#8228) 2023-08-25 23:28:23 +08:00
Matthew Phillips
44f7a28728
Unflag View Transition support (#8218)
* Unflag View Transition support

* Add a changeset

* Update .changeset/grumpy-pens-melt.md

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-25 11:20:17 -04:00
ematipico
3bae77dde1 [ci] format 2023-08-25 14:59:35 +00:00
Emanuele Stoppa
f91acd8fca
refactor: internal refactor to use the Logger (#8227) 2023-08-25 15:57:47 +01:00
André Alves
2c07656c8d
Update config error message for outDir infinity loop error (#8220)
Co-authored-by: Elian ️ <hello@elian.codes>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-25 15:25:59 +01:00
bluwy
6606245b35 [ci] format 2023-08-25 13:02:36 +00:00
Bjorn Lu
0ae3b7a7ba
Improve stress test benchmark (#8225) 2023-08-25 21:00:51 +08:00
Jacob Groß
acf652fc1d
feat(ViewTransitions): use scrollend instead of scroll where supported (#8156)
* feat(ViewTransitions): use `scrollend` instead of `scroll` where supported

The [scrollend](https://developer.chrome.com/blog/scrollend-a-new-javascript-event/#event-details) mechanism seems like a better way to record the scroll position compared to throttling, so we could use it whenever a browser supports it.

Additionally, I've removed the `{passive}` flag from the `scroll` event, as it does nothing ([source](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener?retiredLocale=de#improving_scrolling_performance_with_passive_listeners:~:text=You%20don%27t%20need%20to%20worry%20about%20the%20value%20of%20passive%20for%20the%20basic%20scroll%20event.%20Since%20it%20can%27t%20be%20canceled%2C%20event%20listeners%20can%27t%20block%20page%20rendering%20anyway.)).

* Create long-chefs-jump.md

* fix typo / update comment
2023-08-25 08:43:52 -04:00
ematipico
a35c21cfc8 [ci] format 2023-08-25 11:25:46 +00:00
Emanuele Stoppa
46d0a0b006
fix(ssr): correctly call the middleware when rendering error pages (#8200) 2023-08-25 12:23:58 +01:00
matthewp
660e6f80f4 [ci] format 2023-08-24 18:46:59 +00:00
Matthew Phillips
a8f35777e7
Finalize View Transition event names (#8181)
* Finalize View Transition event names

* Use hyphenated names
2023-08-24 14:44:48 -04:00
natemoo-re
d87837e32b [ci] format 2023-08-24 18:44:16 +00:00
Nate Moore
e45f302934
Update built-in view transitions (#8207)
* feat: rename morph => initial

* feat: update slide, fade animations, add none

* chore: add changeset

* fix: bump compiler

* feat: disable root transition by default

* chore: update changeset

* chore: fix build

* feat(transitions): crossfade => fade

* feat(transitions): remove opinionated default

* chore: update changeset

* feat(transitions): set root to fade

* feat: remove opinionated root style

* chore: remove unused easings

* feat: refactor transition logic, ensure defaults are wrapped in @layer

* Update .changeset/five-geese-crash.md

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

* Update .changeset/five-geese-crash.md

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

* Update .changeset/five-geese-crash.md

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

* Update five-geese-crash.md

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-24 13:42:12 -05:00
Martin Trapp
c37632a20d
View Transitions: adding data-astro-reload to anchor element forces browser default behavior for navigation (#8217) 2023-08-24 13:36:58 -04:00
matthewp
4bbcbac0b7 [ci] format 2023-08-24 14:40:44 +00:00
Matthew Phillips
f1c610636a
Merge pull request #8188 from withastro/next
Astro 3.0
2023-08-24 10:38:14 -04:00
Matthew Phillips
ebaccf8c1a Revert "Revert "View Transition: swap attributes of document's root element (#8206)""
This reverts commit e942855329.
2023-08-24 10:23:44 -04:00
Matthew Phillips
e942855329 Revert "View Transition: swap attributes of document's root element (#8206)"
This reverts commit 52606a3909.
2023-08-24 10:23:01 -04:00
Emanuele Stoppa
fd5fa86e9c Merge remote-tracking branch 'origin/main' into next 2023-08-24 15:05:39 +01:00
Houston (Bot)
608b2d732d
[ci] release (#8205)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-24 10:04:16 -04:00
Emanuele Stoppa
df568b3efc
chore: update @astrojs/language-server (#8213) 2023-08-24 10:04:01 -04:00
Erika
55c10d1d56
fix: add back code to update user's env.d.ts with proper types (#8214) 2023-08-24 15:55:11 +02:00
Martin Trapp
52606a3909
View Transition: swap attributes of document's root element (#8206)
* swap attributes of the root element

* + changeset
2023-08-24 09:09:22 -04:00
Emanuele Stoppa
44bd0cd825 Merge remote-tracking branch 'origin/main' into next 2023-08-24 13:02:27 +01:00
Bjorn Lu
048846fd53
Update breaking dependencies (#8201) 2023-08-24 16:34:33 +08:00
Arjun
85f2c2464c
refactor: replace header with div (#8204)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-23 14:44:52 -05:00
ematipico
0eb7f19729 [ci] format 2023-08-23 15:03:12 +00:00
Emanuele Stoppa
0be8d9bfa9
docs: better documentation for runtime (#8190) 2023-08-23 16:00:56 +01:00
Houston (Bot)
ee06c4fe5c
[ci] release (#8172)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-23 22:12:09 +08:00
Bjorn Lu
cb95aa5f8e
Update rss package to return a response (#8198) 2023-08-23 21:09:11 +08:00
bluwy
17d9aab39a [ci] format 2023-08-23 12:31:38 +00:00
Bjorn Lu
273335cb01
Fix Astro components parent-child render order (#8187) 2023-08-23 20:29:34 +08:00
Bjorn Lu
353dcb23e8
Update non-major dependencies (#8199) 2023-08-23 19:52:13 +08:00
Jothish JJ
1e8942c438
Add h3 for Installing dependencies manually (#8155) 2023-08-23 11:40:19 +01:00
Bjorn Lu
632579dc20
Prevent bundling sharp (#8196) 2023-08-23 17:52:53 +08:00
Paul Valladares
a571a1ac07
Fix(examples): changed inline-style to regular selector (#8185)
* fix: changed inline-style to a regular selector

* fix: fixed typo

* fix: removed styles from noscript tags
2023-08-23 07:11:12 +05:30
Martin Trapp
9142178b11
Mt scroll behavior (#8184)
* The scrolling behavior of ViewTransition is now more similar to the expected browser behavior

* format

* removed browser detection
2023-08-22 13:33:49 -04:00
Martin Trapp
fddd4dc71a
Fixes in the client-side router (#8166)
* Fixes in the client-side router

* reverted function declaration after review (#8166)

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-22 12:59:17 -04:00
Martin Trapp
cfc465ddeb
fix: self link does not trigger page reload (#8182) 2023-08-22 11:17:30 -04:00
Houston (Bot)
9f1881455a
[ci] release (rc) (#8147)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-22 10:19:18 -04:00
bluwy
a93e061cfb Fix turbolink changeset 2023-08-22 21:03:40 +08:00
Emanuele Stoppa
9751f01817 chore: update lock file 2023-08-22 14:02:37 +01:00
Emanuele Stoppa
2d50d50b6a Merge remote-tracking branch 'origin/main' into next 2023-08-22 14:02:15 +01:00
Emanuele Stoppa
ad245897f6
chore: update bug report to use the astro info command (#8175)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-22 14:01:29 +01:00
Bjorn Lu
b8ad9a2499
Remove turbolinks integration (#8186) 2023-08-22 20:23:34 +08:00
ematipico
f224c539c8 [ci] format 2023-08-22 10:19:52 +00:00
André Alves
5821323285
add: config error if outDir is inside publicDir (#8152)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-22 11:17:47 +01:00
Bjorn Lu
732111cdce
Deprecate drafts feature (#8099)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-22 16:11:59 +08:00
Chris Swithinbank
179796405e
Use more permissive type for defineCollection schema option (#8163)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-21 19:48:50 +02:00
Emanuele Stoppa
f003e73643
feat: style scoped hash is lowercase (#8180) 2023-08-21 13:43:48 -04:00
Matthew Phillips
6011d52d38
RC Release candidate (#8179)
* RC Release candidate

* Use the rc tag
2023-08-21 13:11:26 -04:00
Matthew Phillips
b4ef0b9a8c
Set Markdoc integration version to a minor (#8177) 2023-08-21 12:35:51 -04:00
Emanuele Stoppa
d08c83ee3f
fix(@astrojs/node): handler should work with express (#8176) 2023-08-21 17:29:38 +01:00
Sarah Rainsberger
d44052141b
[docs] deprecate build.split and build.excludeMiddleware in config ref (#8158) 2023-08-21 14:33:32 +01:00
Emanuele Stoppa
1f54deff22 chore: lock file 2023-08-21 14:24:08 +01:00
Emanuele Stoppa
d43ca69c1d Merge remote-tracking branch 'origin/main' into next 2023-08-21 14:21:53 +01:00
natemoo-re
a0500e09a6 [ci] format 2023-08-21 14:17:04 +01:00
Nate Moore
adf9fccfdd Stringify shouldn't throw on user object during rendering (#8127)
* fix(#7923): do not throw on user { type } object

* chore: remove unused type export

* chore: guess it wasn't unused
2023-08-21 14:17:04 +01:00
natemoo-re
bae5e46fbc [ci] format 2023-08-21 14:17:04 +01:00
Nate Moore
2ae9d37f0a fix(dev): open to base path (#8123) 2023-08-21 14:17:04 +01:00
Ben Elan
31a280e438 chore(gitpod): resolve potential globbing and word splitting issue (#8124)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-21 14:17:04 +01:00
Nate Moore
42785c7b78 fix(#6965): fix build stats (#8122) 2023-08-21 14:17:03 +01:00
Martin Trapp
33b8910cfd only update our own history entires during back navigation through view transitions (#8116) 2023-08-21 14:16:36 +01:00
Martin Trapp
a87cbe4003 fix: reinsert attribute to specify direction of ViewTransition (forward / back) (#8109) 2023-08-21 14:16:36 +01:00
Bjorn Lu
be6bbd2c86
Remove deprecated APIs (#8170) 2023-08-21 21:04:15 +08:00
Bjorn Lu
e79e3779df
Remove pre-shiki v0.14 theme names (#8169) 2023-08-21 21:02:30 +08:00
Sarah Rainsberger
15471e6b4f
[docs] JSX framework integration READMEs (#8151) 2023-08-21 09:47:28 -03:00
Erika
95120efbe8
fix(assets): Add missing type for imageConfig export (#8171) 2023-08-21 12:35:49 +02:00
Bjorn Lu
767eb68666
Deprecate simple objects from endpoints (#8132) 2023-08-21 13:55:56 +08:00
Sarah Rainsberger
fd6261dad4
[docs] update scopedStyleStragegy default and description (#8148) 2023-08-18 19:32:10 -03:00
Houston (Bot)
34c39a0c96
[ci] release (#8145)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-18 17:13:25 -04:00
Matthew Phillips
531cc3e490
Fix missing package file regression (#8149) 2023-08-18 17:08:18 -04:00
Arsh
4c15c06969
fix(node): delegate preview's not found and error handling to core/app (#8141)
* fix(node): delegate preview's not found and error handling to core/app

* add changeset

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-18 15:51:46 -05:00
Nate Moore
81545197a3
Replace class:list implementation with clsx (#8142)
* chore: replace `class:list` implementation with `clsx`

* chore: remove Set support from `class:list` test

* chore: better class:list test

* Update packages/astro/src/runtime/server/render/component.ts
2023-08-18 15:25:57 -05:00
matthewp
be2d60285e [ci] format 2023-08-18 19:45:55 +00:00
Arsh
04caa99c48
fix(data collections): normalize file paths for DataEntry.id (#8144)
* normalize file paths for DataEntry.id

* add changeset
2023-08-18 15:42:53 -04:00
Houston (Bot)
5e6bd6ab5d
[ci] release (beta) (#8140)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-18 18:49:34 +02:00
Sarah Rainsberger
a7b7b10839
[error messages] Update image errors-data.ts (#8126)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-18 18:46:29 +02:00
Princesseuh
632d1b6842
fix(polyfills): Use object shape for Stackblitz polyfill list 2023-08-18 18:39:10 +02:00
Erika
db39206cbb
fix: polyfill File using undici instead of node:buffer (#8139)
* fix: polyfill File using undici instead of node:buffer

* chore: changeset
2023-08-18 18:23:51 +02:00
Houston (Bot)
e5c13881f1
[ci] release (beta) (#8073)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-18 11:46:47 -04:00
Houston (Bot)
e3c030e5d3
[ci] release (#8138)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-18 10:36:25 -05:00
natemoo-re
ae766f31fe [ci] format 2023-08-18 15:30:30 +00:00
André Alves
97c8760d78
Fix 404 response leading to an infinite loop when there is no 404 page (#8136)
* fix: 404 response leads to infinite loop

* chore: changeset

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-18 10:27:44 -05:00
Nate Moore
8c0a4ed106
fix(react): add missing export (#8137) 2023-08-18 10:26:07 -05:00
Houston (Bot)
5c190d06f1
[ci] release (#8096)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-18 10:31:52 -04:00
Arsh
f50d02c201
changeset(next): inlineStylesheets default switch is major (#8133) 2023-08-18 14:56:21 +01:00
Erika
3e834293d4
feat: add polyfills for stackblitz (#8130)
* feat: add polyfills for Stackblitz

* chore: changeset
2023-08-18 15:13:35 +02:00
Matthew Phillips
43140b87ab
Add missing mdx changeset (#8131) 2023-08-18 09:03:56 -04:00
Erika
c2c71d90c2
fix: better error when Sharp can't be resolved (ex: pnpm) (#8128)
* fix: better error when Sharp can't be resolved (ex: pnpm)

* chore: changeset

* Apply suggestions from code review

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-18 15:02:55 +02:00
natemoo-re
821918bc0c [ci] format 2023-08-18 12:29:31 +00:00
Nate Moore
b12c8471f4
Stringify shouldn't throw on user object during rendering (#8127)
* fix(#7923): do not throw on user { type } object

* chore: remove unused type export

* chore: guess it wasn't unused
2023-08-18 07:26:52 -05:00
Bjorn Lu
dbc97b121f
Export experimental JS API (#7979)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-18 16:52:04 +08:00
Arsh
8a5b0c1f3a
Switch build.inlineStylesheets default to auto (#8118)
* switch inlineStylesheets default

* use previous default for astro/test

* use previous default for content-collections-render.test.js

* integrations: node, deno, mdx, markdown

* typedocs: switch inlineStylesheets default

* Update example to show non-default

* add changeset

* reword changeset

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-18 07:52:06 +01:00
natemoo-re
c7de971b10 [ci] format 2023-08-17 21:53:48 +00:00
Nate Moore
1f6497c334
fix(dev): open to base path (#8123) 2023-08-17 16:51:08 -05:00
Alexander Niebuhr
2540feedb0
feature(@astrojs/cloudflare): port functionPerRoute (#8078)
* port functionPerRoute to cloudflare

* add changeset

* port bugfix to next

* update changeset

* Update packages/astro/src/core/build/generate.ts

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

* update changeset

* update README

* add TODO comment

* Update .changeset/wise-cameras-agree.md

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

* Update .changeset/wise-cameras-agree.md

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

* Update .changeset/nasty-garlics-listen.md

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

* update README

* Update .changeset/wise-cameras-agree.md

Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>

* Update packages/integrations/cloudflare/README.md

Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-08-17 16:40:28 -05:00
Ben Elan
1b656233b3
chore(gitpod): resolve potential globbing and word splitting issue (#8124)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-17 15:35:52 -05:00
Nate Moore
fa6b68a776
fix(#6965): fix build stats (#8122) 2023-08-17 15:34:36 -05:00
Sarah Rainsberger
442f946116
[error msg] add hybrid option to a getStaticPaths error message (#8120) 2023-08-17 16:32:27 -03:00
Martin Trapp
b290f0a997
only update our own history entires during back navigation through view transitions (#8116) 2023-08-17 12:18:30 -04:00
Emanuele Stoppa
bbf0b7470b
refactor: use pipeline in Development mode (#8115) 2023-08-17 16:33:56 +01:00
Bjorn Lu
cdebbded0c
Fix cloudflare test (#8117) 2023-08-17 23:24:01 +08:00
Matthew Phillips
ea7ff5177d
astro: namespace for middleware and components (#8101)
* `astro:` namespace for middleware and components

* Update errors to use namespace

* Create a namespace module just for the astro: stuff
2023-08-17 09:28:42 -04:00
Martin Trapp
da6e3da1ce
fix: reinsert attribute to specify direction of ViewTransition (forward / back) (#8109) 2023-08-17 09:28:21 -04:00
Matthew Phillips
4843bff0d2 Fix more conflicts 2023-08-17 09:01:50 -04:00
Matthew Phillips
cbb77af978 Merge branch 'main' into next 2023-08-17 08:54:28 -04:00
Erika
2484dc4080
config: remove ~/assets alias (#8113)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Mia Kanashi <chad@redpilled.dev>
2023-08-17 14:22:26 +02:00
Julien Barbay
d6b4943764
feat(assets): support remote images (#7778)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Princesseuh <princssdev@gmail.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-08-17 13:10:50 +02:00
ematipico
2145960472 [ci] format 2023-08-17 08:37:38 +00:00
Colin McDonnell
dff0f0f8dd
Detect Bun package manager in create-astro (#7944)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-17 09:35:19 +01:00
Arsh
097a8e4e91
Prerendering corner cases (#8070)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-17 09:34:31 +01:00
Elian ☕️
4967c69221
chore: update codesamples for Vercel v3 adapter (#8111) 2023-08-17 09:01:12 +01:00
Elian ☕️
7a625d9bad
chore: update codesamples for Netlify v3 adapter (#8112) 2023-08-17 09:00:46 +01:00
Nate Moore
5b4b782451
fix(solid): update babel-preset-solid (#8107) 2023-08-16 15:59:36 -05:00
Martin Trapp
0e0fa605d1
Fix 8083 (#8105)
* override wrong positions in browser history

* Lost events are taken into account during throttling
2023-08-16 16:38:18 -04:00
Nel
9dd09e2c6a
Fix #7056 Splashing Navigation Menu in portfolio template (#7078)
* Fix #7056 Splashing Navigation Menu in portfolio template

* Add menu back to no-JS view

* Fix desktop view in non-JS & menu styling

* chore: force ci

---------

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-16 15:04:53 -05:00
natemoo-re
e0d1439f2a [ci] format 2023-08-16 19:39:52 +00:00
Nate Moore
e6e1de4f08
[create-astro] verify connectivity and --template (#8102)
* feat(create-astro): verify that --template exists

* feat: verify internet connectivity

* chore: skip connectivity check on --dry-run

* chore: fix lint
2023-08-16 14:37:43 -05:00
Nate Moore
42ed85b3e2
Fix flaky Cloudflare test (#8103)
* chore: fix flaky CF test

* chore: increase wrangler timeout
2023-08-16 13:28:57 -05:00
Adam Heath
79d35bbb90
Fix missing async/await in vite-plugin-integrations-container on astro:server:setup hook (#8104)
* All astro integrations hooks are defined as returning void|Promise, so
all calls need to deal with a possible async/await pattern.  One was
missed in vite-plugin-integrations-container.

This plugin is definitely used by the astro-dev when using a node
adapter, but I am not sure about other such scenarios.  I did a search
through the code base, and all other runHook* calls are properly
awaited.

* chore: make test async

---------

Co-authored-by: Nate Moore <nate@astro.build>
2023-08-16 12:57:00 -05:00
Reuben Tier
db5e8ad8af
Update build.inlineStylesheets docs (#8061)
Co-authored-by: Elian ️ <hello@elian.codes>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-16 12:52:40 -05:00
matthewp
fb31ce55d9 [ci] format 2023-08-16 17:44:01 +00:00
Matthew Phillips
16a3fdf931
Add experimentalReactChildren option to React integration (#8082)
* wip: support true react vnodes in renderer

* Add new experimentalReactChildren option to React integration

* Update the test

* Add docs

* Update packages/integrations/react/server.js

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

* Update with a better test

* Update .changeset/yellow-snakes-jam.md

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

* Update packages/integrations/react/README.md

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

* Update packages/integrations/react/README.md

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

---------

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-16 13:40:57 -04:00
Emanuele Stoppa
ca4cf01100
refactor: build pipeline (#8088)
* refactor: build pipeline

* refactor: build pipeline

* fix: manifest not extensible and correct directory for renderers.mjs

* fix: correctly resolve output directory

* fix: correctly compute encoding and body

* chore: update documentation

* refactor: change how tests are run

* refactor: fix test regressions!!
2023-08-16 16:45:21 +01:00
Bjorn Lu
788825bd8b
Refactor dependency usage (#8076) 2023-08-16 22:26:19 +08:00
Nate Moore
7177f7579b
Cleanup dotfiles in dist (#8092)
* fix(#7933, plt-789): cleanup dotfiles during build

* chore: add changeset
2023-08-16 09:20:38 -05:00
Arsh
0ad6a5e2d8
chore(test): remove duplicates fixtures (#8098) 2023-08-16 12:17:18 +01:00
Erika
b76c166bdd
feat: unflag experimental.assets (#7921)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-16 10:21:05 +02:00
Eric Mika
0bf2cca5d7
Filter out Svelte's unknown class prop console warnings (#7291)
* Filter out Svelte's unexpected class prop console warnings

Astro's hydration code passes a `class` prop to Svelte components, inducing Svelte to log a warning about an unknown prop. Preempting this by exporting a `class` prop from the Svelte component isn't a viable workaround since `class` is a reserved identifier in JS.

This PR implements the console-filtering workaround suggested by @HiDeoo in #5665, borrowing the `useConsoleFilter` approach from the [preact integration](a1c0cbe604/packages/integrations/preact/src/server.ts (L72-L94)).

It would probably be better to generalize console filtering so it could be shared across multiple integrations.

Ideally there would be a way to handle this in Svelte, but as was pointed out in the issue thread even they resort to [similar cringe-inducing hackery](https://github.com/sveltejs/kit/blob/master/packages/kit/src/runtime/client/client.js#L1974-L1996) in sveltekit.

* Only filter Svelte console warnings in dev builds

* Add changeset

* Fix lint error.

---------

Co-authored-by: bluwy <bjornlu.dev@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-15 17:31:01 -05:00
natemoo-re
0b59bc944b [ci] format 2023-08-15 22:21:05 +00:00
Nate Moore
483ecd5027
chore: update to use getEntry (#8093) 2023-08-15 17:18:28 -05:00
Houston (Bot)
53ad9efde4
[ci] release (#8090)
* [ci] release

* Update packages/create-astro/CHANGELOG.md

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-15 16:12:45 -05:00
Martin Trapp
56e7c5177b
Handle noscript tags in head during ViewTransitions (#8091) 2023-08-15 16:26:37 -04:00
natemoo-re
76a2ba270d [ci] format 2023-08-15 17:27:28 +00:00
Nate Moore
04755e8465
fix(create-astro): update install step (#8089) 2023-08-15 12:25:24 -05:00
Alexander Zaytsev
709f40538b
Add Transloadit to the Gold Sponsors list (#8074)
Co-authored-by: Darius <19603573+itsMapleLeaf@users.noreply.github.com>
2023-08-15 12:18:02 -05:00
natemoo-re
a37b2242d0 [ci] format 2023-08-15 17:13:43 +00:00
Nate Moore
74df833708
Update wrangler (#8081)
* chore: update wrangler

* chore(cloudflare): update tests to support wrangler@3

* chore(cloudflare): update debug message

* chore: force ci
2023-08-15 12:10:51 -05:00
Houston (Bot)
087270c61f
[ci] release (#8064)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-15 22:35:58 +08:00
Greg Cobb
a12027b6af
fix: Removed extra double quotes from computed style in shiki code component (#8035) 2023-08-15 22:29:16 +08:00
hbgl
560e459246
Stream request body instead of buffering it in memory (#8084)
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
2023-08-15 15:26:18 +01:00
bluwy
3755424f93 [ci] format 2023-08-15 13:17:37 +00:00
Bjorn Lu
5d1d0aeda6
Document SSG format and trailingSlash consistency (#8068)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-15 21:15:29 +08:00
Bjorn Lu
fa29e4a36f
Remove deepmerge-ts for simpler implementation (#8086) 2023-08-15 21:11:00 +08:00
Emanuele Stoppa
e12a101842 chore: merge 2023-08-15 09:24:34 +01:00
Emanuele Stoppa
7530d5689d Merge remote-tracking branch 'origin/main' into next 2023-08-15 09:24:06 +01:00
Bjorn Lu
68efd4a8b2
Export astro/compiler-runtime and cleanup exports (#8085) 2023-08-15 16:21:28 +08:00
Sergey Shishkin
c19987df0b
Export AstroConfigType properly as type and not as a Zod schema value (#7702) 2023-08-15 08:30:39 +01:00
natemoo-re
1e9902177d [ci] format 2023-08-14 19:25:29 +00:00
Alexander Niebuhr
7b77b34cef
fix(@astrojs/cloudflare): unsynced astro asset support flag (#8079)
* fix astro assets support in cloudflare

* add changeset
2023-08-14 14:23:36 -05:00
Nate Moore
44cf30a252
chore: slim create-astro deps (#8077) 2023-08-14 14:23:14 -05:00
natemoo-re
a34a48826c [ci] format 2023-08-14 16:29:04 +00:00
Robin Neal
da517d4055
fix: remove react identifierPrefix from client:only (#8075)
This was causing React components rendered with client:only
to be prefixed with null. While not technically causing any
issues, it is unintended and could be considered a bug.

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-14 11:26:03 -05:00
natemoo-re
7d7920ea91 [ci] format 2023-08-14 15:53:38 +00:00
Nate Moore
3e46634fd5
Support flags for astro add (#8032)
* astro add cli pass down arguments to install cmd

* add changeset

* feat: pass common flags down to install command

* Update .changeset/soft-colts-heal.md

---------

Co-authored-by: Elod Tobak <tobakelod@gmail.com>
2023-08-14 10:50:49 -05:00
Matthew Phillips
4477bb41c8
Update types to specify that compress defaults to true (#8072)
* Update types to specify that compress defaults to true

* Update astro.ts

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-14 11:10:37 -04:00
Nate Moore
5208a3c8fe
fix: remove ./dist/jsx/* exports (#8030) 2023-08-14 09:22:01 -05:00
James Garbutt
d1f7143f9c
fix(astro): strongly type Astro.self (#7866)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Princesseuh <princssdev@gmail.com>
2023-08-14 16:04:45 +02:00
Houston (Bot)
19f9edf977
[ci] release (beta) (#8067)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-14 08:46:22 -05:00
Erika
afc45af202
feat(assets): Add support for passing non-awaited imports to the Image component and getImage (#8066)
* feat(assets): Add support for passing non-awaited imports to the Image component and `getImage`

* test: add test
2023-08-14 15:29:42 +02:00
Bjorn Lu
2aa6d8ace3
Add changeset for internal helper package (#8062) 2023-08-14 08:22:44 -05:00
Elian ☕️
c5b60fadb8
chore: Update README.md (#8065) 2023-08-14 13:26:28 +02:00
Martin Trapp
bee284cb77
docs: fix github search link in README.md (#8063)
Co-authored-by: Elian ️ <hello@elian.codes>
2023-08-14 11:22:13 +02:00
Samuel Plumppu
41cfde9a7d
fix: Cleanup blog template images (#8051) 2023-08-14 15:53:10 +08:00
Houston (Bot)
f39a80c583
[ci] release (#8043)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-11 14:02:47 -04:00
matthewp
06fa76cec6 [ci] format 2023-08-11 17:57:40 +00:00
Matthew Phillips
4a145c4c7d
Fix same-page transition with different query params (#8042) 2023-08-11 13:54:31 -04:00
Houston (Bot)
e1a886530f
[ci] release (#8023)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-11 11:22:23 -04:00
Houston (Bot)
40efae6550
[ci] release (beta) (#7952)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-11 11:14:20 -04:00
Emanuele Stoppa
866ed4098e
feat: expose user astro error (#8012) 2023-08-11 15:57:29 +01:00
Arsh
718d8f5472
docs(netlify): remove comma (#8040)
* docs(netlify): remove comma

* Apply suggestions from code review

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

* them -> these functions

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-11 20:10:00 +05:30
lilnasy
6fafb3d15d [ci] format 2023-08-11 14:11:56 +00:00
Arsh
f974c95a27
Add Incremental Static Regeneration support for the Netlify's on-demand builders adapter (#7975)
* feat(netlify): expose builders ttl as a local

* add changeset

* docs(netlify): caching using on-demand builders

* reword readme section

* Update packages/integrations/netlify/package.json

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

* include builders-types.d.ts in the distribution

* document caveat regarding query params

* update changeset

* mutation -> function

* locals.netlify -> locals.runtime

* update types and changeset

* Apply suggestions from code review

Co-authored-by: Elian ️ <hello@elian.codes>

* Apply suggestions from code review

Co-authored-by: Elian ️ <hello@elian.codes>

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Elian ️ <hello@elian.codes>
2023-08-11 19:39:44 +05:30
Matthew Phillips
519a1c4e84
JSX refactor (#7924)
* JSX refactor

* Get preact/compat test to pass

* Use include config

* Remove old astro flavored markdown test

* Move babel dep to preact

* Remove errant debugger

* Update lockfile

* Update the multi-framework example

* Update e2e tests

* Fix nested-in-vue tests

* Add back in astro check

* Update packages/astro/src/core/create-vite.ts

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

* Update packages/astro/src/core/create-vite.ts

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

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

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

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

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

* Update .changeset/perfect-horses-tell.md

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

* Move the comment about the include config

* Remove redundant alias config

* Use react's own preamble code

* Use the base for the preamble

* Remove solid redundancy

* Update .changeset/perfect-horses-tell.md

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

* Update based on review comments

* Oops

---------

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-11 10:05:02 -04:00
matthewp
6a9fb2d95d [ci] format 2023-08-11 14:00:50 +00:00
Matthew Phillips
6b57628d12
Prevent Vercel NFT from scanning /dev (#8039)
* Prevent Vercel NFT from scanning /dev

* Add a comment
2023-08-11 09:58:32 -04:00
matthewp
2bdcba2aa7 [ci] format 2023-08-11 12:59:13 +00:00
Matthew Phillips
405913cdf2
Prevent script re-execution on page evaluation (#8033) 2023-08-11 08:56:12 -04:00
Emanuele Stoppa
87d4b18437
fix: middleware entry point to not be set (#8036)
* fix: middleware entry point to not be set

* chore: update tests
2023-08-11 12:24:12 +01:00
Matthew Phillips
2ee418e06a
Remove the Nelify Edge adapter (#8029) 2023-08-10 14:38:51 -04:00
natemoo-re
fa3e839843 [ci] format 2023-08-10 18:25:25 +00:00
Jerry_wu
b16cb787fd
Support --host for Node adapter preview (#6928)
* supporting a network address access a website when an user set host = true in Node environment

* fix bug

* sumbit test code

* optimism

* delect white space

* test

* fix test

* fix test error

* test

* test

* test

* fix test error

* Optimizing code based on the comments

* optimize test

* fix: rebase issues

* chore: format

* chore: add changeset

* chore: format

* chore: format

* chore: lint

---------

Co-authored-by: wuls <linsheng.wu@beantechs.com>
Co-authored-by: Nate Moore <nate@astro.build>
2023-08-10 13:22:50 -05:00
Matthew Phillips
9cc4e48e6a
Remove the Vercel Edge adapter (#8015)
* Remove the Vercel Edge adapter

* Update tests

* Update .changeset/plenty-keys-add.md

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

* Show enabling edge middleware

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-10 13:12:13 -04:00
natemoo-re
f7a901e7c4 [ci] format 2023-08-10 16:36:09 +00:00
Nate Moore
8292c41311
fix(#5637): fix yarn berry support for create-astro (#8028) 2023-08-10 12:33:37 -04:00
Nate Moore
1b8d302099
Ensure dev server restart respects base removal (#8027)
* fix(#6067): dev server restart respects base removal

* chore: remove baseCss
2023-08-10 10:52:21 -05:00
Shinya Fujino
3bc74dd4a9
Remove unnecessary hyphen from svg tag (#8025)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-10 10:31:50 -05:00
Shinya Fujino
210f8d9f79
Update path to image in public/ to suppress warning (#8026)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-10 10:31:37 -05:00
natemoo-re
0d3aa89dcf [ci] format 2023-08-10 15:21:42 +00:00
Alexander Niebuhr
ffcfcddb75
feat(@astrojs/cloudfalre): add cloudflare envs to Astro.locals (#7541)
* add support for advanced mode

* add support for directory mode

* use asset fallback as in cloudflare's docs

* update locals

* come up with new runtime in `Astro.locals`

* add overwrite protection

* minor cleanup

* changeset

* address review comments

* move overwrite protection to adapter

* fix types

* fix comment

* resolve review comments

* update changeset

* add test

* redo ts

* fix integration test port

* updated tests, add new port

* add TODO comment

* update changeset

* add JSDoc

* Update packages/integrations/cloudflare/src/runtime.ts

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-10 10:19:00 -05:00
bluwy
22c944712c [ci] format 2023-08-10 14:16:37 +00:00
Bjorn Lu
34cb200216
Clear todos and remove css kebab handling (#8019) 2023-08-10 22:15:21 +08:00
Bjorn Lu
c23377caaf
Fix getCollection return new instance in prod (#8022) 2023-08-10 22:13:32 +08:00
Martin Trapp
86bee28121
View Transitions: do not animate same page navigation, but animate hash links to different pages (#8013)
* Links with hash marks are now supported if they lead to a different page

* treat links to same page equally, independent of hash or not

* Links to the same page do not trigger view transitions

* special treatment for trailing hash

* view transitions: simpler rule to exclude in-page links
2023-08-10 10:07:13 -04:00
Emanuele Stoppa
a39ff7ed6b
refactor: add pipeline concept (#8020) 2023-08-10 14:56:13 +01:00
Houston (Bot)
fc30b8539c
[ci] release (#8017)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-10 21:25:28 +08:00
ematipico
6936c173c0 [ci] format 2023-08-10 12:42:09 +00:00
Oliver Speir
4c9d1cb8f2
Update content-types.template.d.ts (#8010)
Provides more useful information when hovering variables typed with CollectionEntry<"collectionName"> 

* Does not change the functionality of existing code

* Flatten<AnyEntryMap[C]> is the same as AnyEntryMap[C][keyof AnyEntryMap[C]]

* Both will produce a union of all note entry types within the "collectionName" key
2023-08-10 13:39:36 +01:00
Emanuele Stoppa
924bef998e chore: update after merge 2023-08-10 11:52:20 +01:00
Emanuele Stoppa
14b0626f3e Merge remote-tracking branch 'origin/main' into next 2023-08-10 11:49:52 +01:00
bluwy
1e3c9f515b [ci] format 2023-08-10 04:55:04 +00:00
Bjorn Lu
5b1e39ef6e
Move hoisted script analysis optimization as experimental (#8011)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-10 12:52:57 +08:00
Marco Schumacher
ea30a9d4f2
more efficient _routes.json for cloudflare integration (#7846)
* more efficient _routes.json for cloudflare integration

* added tests

* updated pnpm-lock.yaml

* added changeset

* cleaned up test

* fix: convert window path separators

* updated docs

* handle more cases

* Apply suggestions from code review

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

* incorporate feedback from code review

* used other pnpm version

* better fallback for empty include array

* adjust test case to changed fallback for empty include array

* updated docs

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-10 04:04:09 +01:00
Houston (Bot)
9cb32e2a5f
[ci] release (#8000)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-09 15:31:34 -05:00
dave caruso
58b121d42a
Support Bun by adjusting how @babel/plugin-transform-react-jsx is imported. (#8007)
* Support bun/other tooling that respects `__esModule`

* Add changeset file
2023-08-09 14:11:41 -05:00
Erika
08c3afb860
feat: remove @astrojs/image completely (#7922) 2023-08-09 15:03:59 -04:00
ElianCodes
e65b5b5495 [ci] format 2023-08-09 18:52:48 +00:00
Keshav Mohta
e2b1b4fa6e
fixed image path and add markdown syntax in example (#7802)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Elian ️ <hello@elian.codes>
2023-08-09 20:50:25 +02:00
Emanuele Stoppa
a6a16a6baf chore: merge from main 2023-08-09 16:28:34 +01:00
Emanuele Stoppa
670ef109db Merge remote-tracking branch 'origin/main' into next 2023-08-09 16:28:14 +01:00
Jany Belluz
79376f842d
Remove nested JSON.stringify from props serialization (#7995) 2023-08-09 13:06:21 +01:00
李瑞丰
895afd4447
docs: Fix error link in markdoc (#8006) 2023-08-09 12:10:40 +01:00
Bjorn Lu
65c354969e
Fix examples check hang (#7998) 2023-08-09 17:06:29 +08:00
Bjorn Lu
0f637c71e5
Preserve base slash when trailingSlash ignore (#7878) 2023-08-09 17:02:37 +08:00
Juan Martín Seery
16161afb2b
fix: EndpointOutput type with encoding 'binary' (#8003)
* fix: `EndpointOutput` type with encoding `'binary'`

* Changeset
2023-08-08 20:19:32 -03:00
Chris Swithinbank
315d58f27b
Add shorthand for Starlight templates to create astro (#7993)
* Add shorthand for Starlight templates to `create astro`

* Update packages/create-astro/src/actions/template.ts

* Update packages/create-astro/src/actions/template.ts

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-08 12:08:46 -05:00
Emanuele Stoppa
0f1e9d8361
chore: update prettier to 3.0 (#7957) 2023-08-08 13:01:38 +01:00
Emanuele Stoppa
7bd1b86f85
feat: new attribute scope style strategy (#7893) 2023-08-08 12:59:56 +01:00
Emanuele Stoppa
ba73dea026 chore: fix rebase issue 2023-08-08 11:09:20 +01:00
Bjorn Lu
70f34f5a35 Remove StreamingCompatibleResponse polyfill (#7981) 2023-08-08 11:04:17 +01:00
Bjorn Lu
b675acb2aa Remove undici dep (#7980) 2023-08-08 11:04:17 +01:00
Bjorn Lu
3c31008519 Remove markdown component (#7931) 2023-08-08 11:04:17 +01:00
Bjorn Lu
6333651a9f Fix node test fail (#7950) 2023-08-08 11:04:16 +01:00
Houston (Bot)
2ac1c1e260 [ci] release (beta) (#7897)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-08 11:04:14 +01:00
Emanuele Stoppa
f32d093a28 feat: change compressHTML default value to true (#7918)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-08 11:02:51 +01:00
Erika
7511a4980f feat: add noop service and make integrations that needs it use it (#7903)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-08 11:02:51 +01:00
Erika
997a0db8a4 feat: use external @astrojs/check (#7892)
* feat: use @astrojs/check

* fix: what happened in my rebase??

* nit: adjust with feedback
2023-08-08 11:02:51 +01:00
Bjorn Lu
32669cd475 Refactor MDX components exports handling (#7904) 2023-08-08 11:02:51 +01:00
Erika
c0de7a7b0f feat: make Sharp the default image service (#7908)
* feat: make Sharp the default image service

* chore: lockfile
2023-08-08 11:02:51 +01:00
Emanuele Stoppa
f01eb585e7 feat: change default port to 4321 (#7874)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-08-08 11:02:51 +01:00
Emanuele Stoppa
dc13687bb4 fix: update examples to use the new API of cookies (#7899) 2023-08-08 11:02:51 +01:00
Emanuele Stoppa
41390c2ebd ci: change release tag name (#7898) 2023-08-08 11:02:51 +01:00
Emanuele Stoppa
2777e7c0e5 chore: use workspace packages (#7896) 2023-08-08 11:02:51 +01:00
Emanuele Stoppa
32002c2954 chore: use workspace packages (#7894) 2023-08-08 11:02:50 +01:00
Matthew Phillips
e1ae56e724 Make Astro.cookies.get(key) return undefined (#7888) 2023-08-08 11:02:00 +01:00
Emanuele Stoppa
c69c347980 chore: remove deleted package 2023-08-08 11:02:00 +01:00
Emanuele Stoppa
c335881dcc chore: enter pre release mode (#7883) 2023-08-08 11:02:00 +01:00
Bjorn Lu
84af8ed9d1 Move MDX plugin re-ordering hack to MDX integration (#7872) 2023-08-08 11:02:00 +01:00
Chris Swithinbank
e204270507 Tweak adapter config CHANGELOG (#7853) 2023-08-08 11:02:00 +01:00
Emanuele Stoppa
cd2d7e7698 feat: astro features (#7815) 2023-08-08 11:02:00 +01:00
Emanuele Stoppa
80f1494cda feat: adapter features, deprecate astro configs (#7839) 2023-08-08 11:02:00 +01:00
Emanuele Stoppa
036388f66d feat: pass logger to integrations (#7816) 2023-08-08 11:02:00 +01:00
Erika
364d861bd5 feat: remove automatic flattening of getStaticPaths result (#7845)
* feat: remove automatic flattening of `getStaticPaths` result

* chore: changeset
2023-08-08 11:01:59 +01:00
Erika
148e61d249 feat: remove webapi in favor of a smaller polyfill (#7840)
* feat: remove webapi in favor of a smaller polyfill

* test: remove old test

* test: 🤦‍♀️

* chore: changeset
2023-08-08 11:01:45 +01:00
Emanuele Stoppa
7d2f311d42 feat: remove support for old API routes syntax (#7822) 2023-08-08 11:01:33 +01:00
Emanuele Stoppa
9a01cc64c2 Remove support for Node 16 (#7780) (#7820) 2023-08-08 11:01:33 +01:00
Erika
96beb883ad Update tsconfig.json presets for TS 5.0 (#7785) 2023-08-08 11:01:33 +01:00
Emanuele Stoppa
0f06255041 feat: upper case the name of the endpoints (#7783)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-08-08 11:01:33 +01:00
Emanuele Stoppa
42fc57ee60 chore: fix rebase problems 2023-08-08 11:01:33 +01:00
Erika
d0679a666f Remove support for Node 16 (#7780) 2023-08-08 11:01:33 +01:00
Elian ☕️
4d160fa1e2
chore: remove MDX integration from Tailwind example (#7987)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-07 16:23:39 -05:00
Houston (Bot)
2e36d96588
[ci] release (#7988)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-07 16:21:15 -05:00
Nate Moore
8e5a27b488
fix: ensure injectRoute works during build (#7986) 2023-08-07 15:54:55 -05:00
Jeff Ruane
2c2e9362a2
Add screen reader text to example blog footer (#7984)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-07 14:27:44 -05:00
Houston (Bot)
9509a66a7b
[ci] release (#7958)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-07 13:51:05 -05:00
Chris Swithinbank
ec06dd9bbb
Fix formatting in Lit README (#7985)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-07 20:03:09 +02:00
natemoo-re
1283cfd19f [ci] format 2023-08-07 17:54:43 +00:00
Marek Brzezinski
6a27e932d6
Added slashes at the end of the filter option in the sitemap docs (#7915)
I trend to implement the sitemap and I found out that filter option works only when the URL has slashes at the end. I changed the examples.

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-07 12:52:13 -05:00
André Alves
9d0070095e
Fix missing CSS when 404 server Response redirects to a custom 404 page (#7946)
* Fix missing css import on 404 redirect

* Chore: changeset

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-07 12:51:50 -05:00
natemoo-re
f6845d94f5 [ci] format 2023-08-07 16:27:34 +00:00
Nate Moore
c2682a17c0
Fix injectRoute (#7943)
* fix: inject route! hack!

* refactor: use integration container to resolve all injected routes

* chore: add changeset

* Fix pnpm workspace injectRoute bug

See https://github.com/withastro/astro/issues/7561#issuecomment-1620063634

Closes #7561

* Revert "Fix pnpm workspace injectRoute bug"

This reverts commit 3082c7c269.

* Update .changeset/stupid-pants-press.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Update packages/astro/src/vite-plugin-scripts/page-ssr.ts

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* refactor: cleanup injectedRoute resolution logic

---------

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-08-07 11:24:28 -05:00
natemoo-re
1a24ea6b5a [ci] format 2023-08-07 15:59:11 +00:00
Nate Moore
6cd7290d2c
Refactor page filename logic (#7983)
* fix(#7561): refactor astro page filename logic

* chore: add changeset
2023-08-07 10:57:03 -05:00
Bjorn Lu
a4a637c8f7
Fix inline root resolve logic (#7977) 2023-08-07 21:43:03 +08:00
Timon Jurschitsch
51028f85c6
Add URL to RSSOptions.site type (#7964) 2023-08-07 16:49:55 +08:00
Emanuele Stoppa
9ad0d326f9
ci: enable codegen errors job (#7961) 2023-08-04 16:54:11 +01:00
Emanuele Stoppa
0fd6dc7ec7
chore: fix issue in the check.js script (#7965) 2023-08-04 16:53:54 +01:00
Bjorn Lu
8ea6b6dedf
Add timeout for check CI (#7963) 2023-08-04 23:01:44 +08:00
astrobot-houston
57424b7db9 [ci] format 2023-08-04 14:47:35 +00:00
ElianCodes
f65756f661 [ci] format 2023-08-04 14:45:09 +00:00
Elian ☕️
37e18a9160
docs: Update Lit README.md (#7960) 2023-08-04 16:43:03 +02:00
ematipico
60616bb717 [ci] format 2023-08-04 14:02:02 +00:00
Emanuele Stoppa
f844238c9b
feat: break down AstroErrorData in multiple objects (#7949) 2023-08-04 14:57:19 +01:00
Elian ☕️
f3b234b258
chore: update Deno server import path (#7959) 2023-08-04 09:14:31 -04:00
Matthew Phillips
a00cfb8942
Fix race condition when performing swap for fallback (#7945)
* Fix race condition when performing swap for fallback

* Adding a changeset

* Use let
2023-08-04 08:48:11 -04:00
Elian ☕️
9b1de49075
fix broken partytown GitHub link (#7954) 2023-08-04 11:45:32 +02:00
Matthew Phillips
fa4367792b Revert "Fix race condition when performing swap for fallback"
This reverts commit e5f7d11ef5.
2023-08-03 19:57:36 -04:00
Matthew Phillips
e5f7d11ef5 Fix race condition when performing swap for fallback 2023-08-03 19:57:12 -04:00
Houston (Bot)
8226002c0a
[ci] release (#7941)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-03 16:47:20 -05:00
natemoo-re
53e824fe99 [ci] format 2023-08-03 21:05:44 +00:00
Nate Moore
89cd4b877e
Handle error state for version (#7939)
* fix(create-astro): handle error state for version

* fix: handle missing version
2023-08-03 16:03:04 -05:00
Mark Peck
a2b989cba1
light update to styles and updated astro icon (#7938)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-03 15:35:31 -05:00
Houston (Bot)
49b3cf423b
[ci] release (#7937)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-03 15:16:51 -04:00
Matthew Phillips
3a01ef7cc1 Use workspace version for Vercel test 2023-08-03 15:00:22 -04:00
Matthew Phillips
a765098ca3 Use workspace dependency in Netlify test 2023-08-03 14:55:22 -04:00
matthewp
3d91d4ad0a [ci] format 2023-08-03 18:43:21 +00:00
Matthew Phillips
4b6deda360
Export createTransitionScope from the runtime (#7936) 2023-08-03 14:41:08 -04:00
natemoo-re
8544a6318f [ci] format 2023-08-03 18:16:12 +00:00
Nate Moore
6035bb35f2
Fix duplicate slash handling (#7935)
* fix(#7806): collapse duplicate slashes

* refactor: handle request.url with duplicate slashes

* chore: improve duplicate slash test

* fix: only collapse duplicate slashes once

* chore: appease TS
2023-08-03 13:13:39 -05:00
natemoo-re
705432f8d2 [ci] format 2023-08-03 16:26:08 +00:00
Mike Gifford
b636b4ac53
Make the image decorative (#7926)
* Make the image decorative

* Update examples/basics/src/pages/index.astro

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-03 11:24:03 -05:00
Houston (Bot)
39b044e09b
[ci] release (#7912)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-03 10:54:48 -04:00
Bjorn Lu
1f0ee494a5
Fix failed server restart calling integration hooks twice (#7917)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-03 22:26:24 +08:00
matthewp
68066290df [ci] format 2023-08-02 18:44:36 +00:00
Matthew Phillips
41afb84057
Persistent DOM in ViewTransitions (#7861)
* First pass at transition:persist

* Persistent islands

* Changeset

* Updated compiler

* Use official release

* Upgrade again

* Refactor to allow head content to persist untouched

* >=

* Specify the types for "astro:persist"

* Automatically persist links

* Use reference for array

* Upgrade to latest compiler version

* Explain the feature

* Update .changeset/empty-experts-unite.md

Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>

* Update .changeset/empty-experts-unite.md

Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>

* Update .changeset/empty-experts-unite.md

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

* Update .changeset/empty-experts-unite.md

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

---------

Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-02 14:42:01 -04:00
matthewp
4e651af16f [ci] format 2023-08-02 17:10:18 +00:00
Martin Trapp
c264be3497
Fix scroll position in view transition (#7882) (#7911) 2023-08-02 13:07:30 -04:00
Bjorn Lu
00cb28f496
Improve sourcemap generation and performance (#7901) 2023-08-02 11:30:53 +08:00
natemoo-re
543d210752 [ci] format 2023-08-01 23:37:19 +00:00
ottomated
c00b6f0c49
Fix astro/app import (#7821)
* core -> core.js

* changeset

* test

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-01 18:34:22 -05:00
natemoo-re
2f06923764 [ci] format 2023-08-01 23:09:10 +00:00
Hee
560d0dab1c
feat: add cache headers to assets in Vercel adapter (#7729)
* feat: cache assets in Vercel adapter

* Update tidy-tips-doubt.md

* chore: update lockfile

* Update packages/integrations/vercel/test/static-assets.test.js

* Update packages/integrations/vercel/test/static-assets.test.js

* Update packages/integrations/vercel/test/static-assets.test.js

* chore: update split test

---------

Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-01 18:06:50 -05:00
DixCouleur
4dd6c7900c
Fix "res.writeHead is not a function" in Express/node middleware (#7708)
* fix: res.writeHead is not a function

* fix: handler params type added

* fix: handler function params error

* Update packages/integrations/node/src/nodeMiddleware.ts

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-01 17:10:29 -05:00
Tony Dang
e1e958a758
Fix: Content Collections - Ignore .json files nested in non-underscored subdirectories within underscored directories (#7909)
* test: add test file so tests fail before fix

* fix: ignore files nested in underscore directories

* chore: add changeset

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-01 16:08:11 -05:00
Nate Moore
70bbec9c61
chore: address feedback from #7754 (#7906) 2023-08-01 13:24:02 -05:00
Houston (Bot)
1d9e34b136
[ci] release (#7877)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-01 23:38:24 +08:00
Sam Hulick
5c5da8d2fb
feat: add logging for when hydrate's JSON parse fails (#7887)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-08-01 16:33:38 +01:00
Bjorn Lu
fb833214e4
Fix prefetch test fail (#7902) 2023-08-01 23:05:36 +08:00
bluwy
1270d4d63e [ci] format 2023-08-01 14:55:54 +00:00
Bjorn Lu
886965d354
Setup cleanup cache workflow (#7900) 2023-08-01 22:53:48 +08:00
Nate Moore
298dbb89f2
Refactor 404 and 500 approach (#7754)
* fix(app): refactor 404 and 500 approach

* chore: refactor logic

* fix: always treat error as page

* test: migrate ssr-prerender-404 to node adapter

* feat: merge original response metadata with error response

* chore: update lockfile

* chore: trigger ci

* chore(lint): fix lint issue

* fix: ensure merged request has proper status

* fix(node): prerender test

* chore: update test label

* fix(node): improve 404 behavior in middleware mode

* fix(vercel): improve 404 behavior

* fix(netlify): improve 404 behavior

* chore: update test labels

* chore: force ci

* chore: fix lint

* fix: avoid infinite loops

* test: fix failing test in Node 18

* chore: remove volta
2023-08-01 09:52:16 -05:00
Bjorn Lu
0b8375fe82
Fix streaming Astro components (#7895) 2023-08-01 21:30:47 +08:00
Bjorn Lu
ebf7ebbf7a
Refactor and improve Astro config loading flow (#7879) 2023-08-01 17:11:26 +08:00
André Alves
9e22038472
Fix incorrect build path logging for 404.astro pages (#7885)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-01 08:53:47 +01:00
ematipico
bd8a01ae1b [ci] format 2023-07-31 16:26:22 +00:00
Emanuele Stoppa
89d015db6c
fix: scan getStaticPaths only in .astro files (#7876) 2023-07-31 17:24:13 +01:00
Emanuele Stoppa
d495235d0f
ci: enable pre releases for Astro 3.0 (#7884) 2023-07-31 17:18:22 +01:00
ematipico
5fd4e5c848 [ci] format 2023-07-31 12:53:06 +00:00
Yan Thomas
1859960d04
Update old link from @astrojs/netlify README (#7862)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-07-31 13:50:53 +01:00
sdp971
04aea14ccc
[docs] removed the broken link and revised the content (#7859) 2023-07-31 08:49:06 -03:00
Houston (Bot)
d2b6dabfb3
[ci] release (#7854)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-28 12:34:00 -04:00
matthewp
8867f3c99d [ci] format 2023-07-28 16:02:32 +00:00
Matthew Phillips
861f10eafd
Fix redirect in SSR (Node and dynamic) (#7856) 2023-07-28 12:00:26 -04:00
Houston (Bot)
98ca04f915
[ci] release (#7851)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-28 09:12:05 -04:00
matthewp
2f95a3e0ca [ci] format 2023-07-28 13:09:24 +00:00
Matthew Phillips
49a4b28202
Scroll position restoration (#7800)
* Scroll position restoration

* Adding a changeset

* Throttle state persistence

* very important change
2023-07-28 09:07:00 -04:00
bluwy
46f9848052 [ci] format 2023-07-28 10:03:02 +00:00
Bjorn Lu
e50f646758
Fix head propagation for MDX components (#7838) 2023-07-28 18:00:53 +08:00
ematipico
365701f491 [ci] format 2023-07-28 08:23:13 +00:00
Emanuele Stoppa
2275c7d56b
fix: dev server should redirect when a page doesn't exist (#7841) 2023-07-28 09:20:00 +01:00
Houston (Bot)
3b422272e6
[ci] release (#7813)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-27 15:33:13 -04:00
matthewp
fa6fc8ba4c [ci] format 2023-07-27 19:11:02 +00:00
Matthew Phillips
59b5562326
Allow the Image component to get transitions (#7836)
* Images and view transitions

* Upgrade compiler

* Adding a changeset
2023-07-27 15:08:45 -04:00
matthewp
9fe1089e3e [ci] format 2023-07-27 18:44:29 +00:00
Matthew Phillips
7dbcbc86b3
Track added links/styles/scripts to prevent duplicates (#7843)
* temporary change

* Track rendered styles and links to prevent duplicates

* Adding a changeset

* Fix names
2023-07-27 14:42:22 -04:00
matthewp
73eb4dfe2f [ci] format 2023-07-27 12:59:49 +00:00
Matthew Phillips
5161cf919c
Add astro:beforeload event (#7823)
* Add astro:beforeload event

* Adding a changeset

* Update .changeset/chilled-elephants-develop.md

Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>

---------

Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-27 08:57:37 -04:00
matthewp
30336bab94 [ci] format 2023-07-27 12:44:15 +00:00
Matthew Phillips
267487e63e
Prevent navigation on hash change (#7824) 2023-07-27 08:42:04 -04:00
Erika
b063a2d8ae
fix(assets): Fix endpoint not being injected when an integration would enable experimental.assets (#7829) 2023-07-27 11:37:27 +02:00
Arnav K
05ee09f9c2
fix: typo alpine -> alpinejs (#7825) 2023-07-27 17:31:23 +08:00
Erika
d5f526b339
test: add test in the Node adapter for astro:assets (#7734) 2023-07-26 23:58:47 +02:00
Erika
31c4031ba7
fix: squoosh not working on Windows in certain situations (#7826) 2023-07-26 21:38:37 +02:00
Sarah Rainsberger
54fb03b444
[docs] Markdoc README problematic aside notation (#7817) 2023-07-26 10:38:45 -03:00
Matthew Phillips
42a21b5da6
Prevent building .html files in hybrid mode (#7805)
* Prevent building .html files in hybrid mode

* Adding a changeset
2023-07-26 07:58:57 -04:00
Houston (Bot)
db8c04002f
[ci] release (#7784)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-25 15:15:41 -04:00
Mark Peck
67db2f5d4e
Update README.md with new image (#7797)
Adds updated screenshot of blog template
2023-07-25 13:52:05 -05:00
Mark Peck
adcc5adbbc
Update README.md (#7796)
Updates blog image in readme
2023-07-25 13:51:57 -05:00
Sarah Rainsberger
3156d9df15
[docs] Markdoc README (#7799) 2023-07-25 14:28:59 -03:00
Sarah Rainsberger
32cedb3dab
[docs] Markdoc README syntax fixes (#7798) 2023-07-25 14:05:03 -03:00
bluwy
0d86457d64 [ci] format 2023-07-25 15:47:03 +00:00
Bjorn Lu
0f677c009d
Refactor Astro rendering to write results directly (#7782) 2023-07-25 23:44:25 +08:00
doodlemarks
ec40c8ccbe [ci] format 2023-07-25 14:54:12 +00:00
Mark Peck
8e14621659
Blog theme styling updates (#7768)
* whole lotta updates and including some new fonts

* update placeholders

* fix mobile first child

* remove experimental stuff

* adding accessible text to header icon links

* preloading font files

* i did dum things

---------

Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2023-07-25 09:51:38 -05:00
matthewp
0c1a26adc8 [ci] format 2023-07-25 12:38:25 +00:00
Matthew Phillips
188eeddd47
Execute scripts on page navigation (view transitions) (#7786)
* Execute scripts on page navigation (view transitions)

* Update .changeset/sharp-seas-smile.md

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-25 08:35:47 -04:00
bholmesdev
25e04a2ecb [ci] format 2023-07-24 23:36:32 +00:00
Alex Sherwin
7461e82c81
Add "allowHTML" option for Markdoc with HTML parsing/processing (#7597)
* 7576 - initial support for HTML inside Markdoc.

This uses htmlparser2 to perform a pure token transform/mutation
on the markdown-it tokens, replacing the original raw HTML string
tokens with a richer set of tokens per HTML node, and in the process
Markdoc tags are interleaved in the resulting token graph at the
appropriate locations

This removes the legacy config of the @astrojs/markdoc integration
entirely (suggested by @bholmesdev) and introduces a new type for
options to be specified in the astro config, initially, with just the new
"enableHTML" option

When "enableHTML" is *not* enabled (the default), the behavior
of the entire @astrojs/markdoc integration should remain functionally
equivalent to before this change

* 7576 - fixed issues with whitespace preservation

also:

* cleaned up " to ' for astro project preferred linting
* made the html rendering test fixture use a dynamic path

* 7576 - detailed nested HTML test coverage

* 7576 -  component + HTML interleaved tests

* 7576 -  fix lint problems from previous changes

* 7576 -  some commentary

* 7576 -  file naming, refactor html under imports, package.json exports definition for html

* 7576

* move out of extensions dir, remove export
* cdata handling changes

* 7576

* inline license from third party code
* cleanup test class copy of HTML output
* remove // third party indicators for imports (clarification: not third party code, just a indicator this group of imports is third party)

* 7576 - fixed test before/after for DRY'ness

* 7576 - no need to React-ify HTML attribute case

* 7576 - rename "enableHTML" option to "allowHTML"

* Added Markdoc allowHTML feature changeset

* 7576 - updated README with allowHTML info

* 7576 - fixed changeset typo

* 7576 - minor edits based on PR feedback for docs

* 7576 - minor edits based on PR feedback for docs
2023-07-24 19:34:06 -04:00
doodlemarks
81c460e30b [ci] format 2023-07-24 21:43:14 +00:00
Mark Peck
13120a0493
Basics theme styling updates (#7760)
* update styling and include asset

* whoopsies, didnt mean to include these

* im rusty dont judge

* another thing I didn't want pushed

* anything for chris

* for natey poo

* just stop
2023-07-24 16:40:18 -05:00
Kevin Whinnery
0a1b33349f
Update esbuild target for Deno (#7687)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-07-24 22:58:05 +08:00
Houston (Bot)
e80896a67c
[ci] release (#7763)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-24 17:09:11 +08:00
Bjorn Lu
3567afac44
Fix rendering TextEncoder encoding error regression (#7777) 2023-07-24 16:22:05 +08:00
Birk Skyum
0c9959704f
Bump vite to 4.4.6 (#7746) 2023-07-24 16:21:17 +08:00
Bjorn Lu
baaf80b27d
Fix prerender getStaticPaths flaky test (#7745) 2023-07-24 15:49:29 +08:00
Erika
da7f1128bf
Fix missing referrerpolicy attribute on script tags (#7766)
* fix(astro-jsx): Add missing `referrerpolicy` attribute for script tags

* chore: changeset
2023-07-23 15:00:41 +02:00
Chris Swithinbank
a3d36a8894
Fix Astro pride emoji in congrats message (#7764) 2023-07-22 00:21:11 +02:00
Erika
1792737dae
Misc improvements for astro:assets (#7759) 2023-07-21 23:59:14 +02:00
Houston (Bot)
16a41528e4
[ci] release (#7737)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-21 16:37:17 -04:00
matthewp
c65da5f1cd [ci] format 2023-07-21 20:29:15 +00:00
Matthew Phillips
274e675328
Prevent FOUC with production links in ViewTransitions (#7756)
* Prevent FOUC with production links in ViewTransitions

* Adding changeset

* Move up so it works with fallback too
2023-07-21 16:26:42 -04:00
matthewp
f79ab0bdb3 [ci] format 2023-07-21 20:13:33 +00:00
Matthew Phillips
c2d6cfd0c2
Prevent animations with prefers-reduced-motion (#7757)
* Prevent animations with prefers-reduced-motion

* Also disable animations in the fallback

* Change select to target elements
2023-07-21 16:10:48 -04:00
Erika
471324b0a3
test: add setup for Vercel / Netlify tests (#7716)
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-21 21:24:36 +02:00
matthewp
e5e5cc8e70 [ci] format 2023-07-21 14:43:17 +00:00
Matthew Phillips
201d32dcfc
Handle back navigation from page without VT (#7750)
* Handle back navigation from page without VT

* Adding a changeset
2023-07-21 10:40:36 -04:00
Sarah Rainsberger
29162c99fb
[docs] @astrojs/sitemap README update (#7748) 2023-07-21 09:59:23 -03:00
Bjorn Lu
bad65877a5
Refactor Astro page rendering (#7730) 2023-07-21 18:14:55 +08:00
Anders Kaseorg
e528526289
Fix parsing image assets from a Markdown line along with other markup (#7742)
Every regex that tries to match a substring with .* or .+ is
guaranteed to be wrong.  In this case, it was giving incorrect matches
straddling multiple quoted attributes:

    <img __ASTRO_IMAGE_="../assets/image.png"> and <a href="link">link</a>
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Fixes #7741.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2023-07-21 07:59:10 +02:00
Sarah Rainsberger
379981efdc
[docs] update to view transitions in config ref (#7738) 2023-07-20 18:04:33 -03:00
natemoo-re
0c16a8da8d [ci] format 2023-07-20 18:42:00 +00:00
Arsh
35a0b6c8a9
fix(vercel): Switch to node 18 when local version is not supported (#7718)
* fix(vercel): switch to node 18 when needed

* fix types, reword

* reorder sentences

* add changeset

* fix(vercel): switch to node 18 when needed

* add referencce to vercel documentation

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-07-20 13:39:46 -05:00
Houston (Bot)
92382ea1d4
[ci] release (#7714)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-20 12:09:38 -04:00
matthewp
b4090f8526 [ci] format 2023-07-20 16:06:34 +00:00
ottomated
3a6e42e190
Determine hoisted scripts via AST analysis (#7707)
* initial hacky

* plural importNames and exportNames

* extract into function

* Add test

* fix issue with another component importing our tracked component

* fix dynamic imports

* changeset

* add mdx to checklist

* mdx exports Content

* remove unused var

* Update packages/astro/test/hoisted-imports.test.js

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

* Update packages/astro/src/core/build/plugins/plugin-analyzer.ts

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

* Update packages/astro/src/core/build/plugins/plugin-analyzer.ts

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

* Update real-drinks-melt.md

* Update .changeset/real-drinks-melt.md

Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>

* Update .changeset/real-drinks-melt.md

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

* Update .changeset/real-drinks-melt.md

* Update .changeset/real-drinks-melt.md

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

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-20 12:03:40 -04:00
ematipico
7a26a52e19 [ci] format 2023-07-20 14:47:18 +00:00
Emanuele Stoppa
c102c4a054
refactor: move dev rendering logic inside vite plugin (#7728) 2023-07-20 15:45:10 +01:00
Bjorn Lu
d8bae784b4
Fix organize-imports-cli with satisfies operator (#7727) 2023-07-20 20:47:36 +08:00
ematipico
47c698b08a [ci] format 2023-07-20 08:07:29 +00:00
Emanuele Stoppa
3043f98723
refactor: unify renderPage and callEndpoint in one single function (#7703)
* refactor: unify `renderPage` and `callEndpoint` in one single function

* chore: lint

* don't return the response

* chore: update error

* rebase
2023-07-20 09:04:53 +01:00
matthewp
30cdc28057 [ci] format 2023-07-20 00:04:07 +00:00
Matthew Phillips
464eb4f825
Import missing TransitionAnimationPair (#7726)
* Import missing TransitionAnimationPair

* Don't use satisfies
2023-07-19 20:01:15 -04:00
natemoo-re
5cc54bbd5a [ci] format 2023-07-19 22:13:44 +00:00
Nate Moore
b806452653
chore: fix ts error (#7723) (#7724) 2023-07-19 17:11:31 -05:00
Nate Moore
77ffcc8f8b
fix(sitemap): ensure nested 404 and 500 pages are excluded (#7722) 2023-07-19 17:05:44 -05:00
natemoo-re
7a3f4efcd9 [ci] format 2023-07-19 22:01:10 +00:00
Nate Moore
e15f1e1cc9
chore: fix ts error (#7723) 2023-07-19 16:59:01 -05:00
matthewp
7a6ca236e8 [ci] format 2023-07-19 19:21:13 +00:00
Matthew Phillips
6a12fcecb0
Initial View Transition Support (#7511)
* Basic support

* Add the fade transition

* Move CSS into a separate file

* Add transition name

* View Transitions changeset

* Replace the boolean transition with 'morph'

* Update to use `transition:animate`

* Use head propagation

* Move CSS into a separate file

* Add builtin animations and namespaced module

* Misquote

* Remove unused code

* Add automatic prefetching to the View Transitions router

* Use a data attribute for back nav animations

* Use [data-astro-transition]

* Add view transitions to examples

* Wait on the HTML response before calling startViewTransition

* Updated stuff

* Update the compiler

* Fix

* Fallback support

* Properly do fallback

* Simplify the selectors

* Put viewTransitions support behind a flag

* Upgrade the compiler

* Remove unused import

* Add tests

* Use an explicit import instead of types

* Fix case where the click comes from within nested content

* Fix linting

* Add a test for the back button

* Prevent glitch in fallback

* Do not combine selectors

* Fallback to MPA nav if there is an issue fetching

* Fallback swap if there are no animations

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

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

* Update packages/astro/components/ViewTransitions.astro

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

* Update packages/astro/components/ViewTransitions.astro

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

* Update the changeset

* PR review changes

* Update more based on review comments.

* Update the updateDOM default

* Pass in transitions options to the compiler

* Update broken tests

* Update .changeset/silly-garlics-live.md

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

* Update .changeset/silly-garlics-live.md

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

* Update .changeset/silly-garlics-live.md

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

* Update .changeset/silly-garlics-live.md

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

* h2 -> h4

* Upgrade to stable compiler

* Remove exp redirects from sitemap

* Remove usage from examples

* Remove example updates

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-07-19 15:18:41 -04:00
natemoo-re
eafe996b60 [ci] format 2023-07-19 14:36:35 +00:00
Nate Moore
d088351f54
Warn when getStaticPaths exists without a prerender statement (#7713)
* wip: warning on getStaticPaths without prerender

* refactor: move getStaticPaths warning to scanner plugin

* chore: do not add to test fixture

* chore: remove legacy getStaticPaths validation

* refactor: update warning message

* chore: typo

* chore: add changeset

* chore: remove unused variables

* refactor: make settings optional

* chore: fix lint

* chore: update message to include reason
2023-07-19 09:33:45 -05:00
matthewp
4eba967d2b [ci] format 2023-07-19 13:34:14 +00:00
Matthew Phillips
ec745d689a
Remove experimental flag for redirects config (#7686)
* Remove experimental flag for redirects config

* Remove experimental from tests

* Remove experimental CLI flag

* Add changeset

* Removing redirect test that is no longer relevant

* Remove experimental label"

* Update .changeset/dry-beers-grow.md

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

* Update .changeset/dry-beers-grow.md

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

* Remove old function

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-19 09:31:07 -04:00
bluwy
659b2b034c [ci] format 2023-07-19 07:55:56 +00:00
Bjorn Lu
d78db48ac4
Fix absolute path handling for config validation in windows (#7704) 2023-07-19 15:53:24 +08:00
Bjorn Lu
019b797bf8
Fix redirects map object-form value validation (#7701) 2023-07-19 15:52:50 +08:00
Houston (Bot)
de65ad25ea
[ci] release (#7699)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-19 09:32:32 +02:00
Nate Moore
72bbfac976
Fix 404 status code in dev server (#7711)
* chore: update tests

* chore: update tests

* fix(#7516): set response status to 404 when rendering 404 page

* chore: add changeset

* chore: update dev container test

* refactor: improve status handling logic

* chore: remove unused import
2023-07-18 16:40:09 -05:00
Nate Moore
d401866f93
Fix 404 handling in dev server (#7693)
* fix(#7301): load 404 page in dev server when returning 404 status code

* chore: add changeset

* fix(404): expose exact pathname/URL when rendering 404

* test: add custom-404-server test
2023-07-18 12:09:18 -05:00
Princesseuh
a8cbd7c71a [ci] format 2023-07-18 16:06:17 +00:00
Erika
4f6b5ae2ba
Fix/markdoc assets (#7706) 2023-07-18 18:03:46 +02:00
Chris Swithinbank
a77741d25e
Add changeset & docs for next @astrojs/netlify release (#7700)
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-18 16:57:19 +01:00
ematipico
b3b9fc52b3 [ci] format 2023-07-18 09:39:12 +00:00
Nate Moore
06c255716a
Fix routing behavior when getStaticPaths params include hyphens (#7694) 2023-07-18 10:36:43 +01:00
Houston (Bot)
d80e5fcf8e
[ci] release (#7681)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-18 16:14:39 +08:00
Bjorn Lu
d9f4126645
Revert netlify edge middleware docs (#7698) 2023-07-18 16:07:11 +08:00
Princesseuh
1c85b39d38 [ci] format 2023-07-18 00:20:47 +00:00
Erika
f14e48098a
nit: use node: prefix everywhere (#7692)
* nit: use `node:` prefix everywhere

* nit: fs/promises too

* test: workaround issue in node builtin detection
2023-07-18 02:17:59 +02:00
Erika
cc0f81c040
fix(assets): Remove Node deps from index of assets (#7691) 2023-07-17 22:32:23 +02:00
natemoo-re
b0d3652c59 [ci] format 2023-07-17 20:32:14 +00:00
Nate Moore
dd931a7806
Sitemap should only include page routes (#7656)
* fix(#7080): sitemap should only add trailing slash to pages

* fix(sitemap): only include pages in sitemap

* chore: add test

* chore: remove unused import

* docs: update readme
2023-07-17 15:29:56 -05:00
Nate Moore
6ad4672ef1
fix(ci): fix action needs-repro action (#7690) 2023-07-17 14:53:51 -05:00
Nate Moore
474ea808e7
fix(ci): handle needs labels properly (#7689) 2023-07-17 14:48:24 -05:00
Nate Moore
b1005af705
Update Action labels (#7688)
* chore: update action labels

* chore: add label actions
2023-07-17 14:14:33 -05:00
ematipico
5e26faa864 [ci] format 2023-07-17 16:25:39 +00:00
Emanuele Stoppa
ed20154a5c
refactor: move page rendering in one single function (#7684) 2023-07-17 17:22:53 +01:00
ematipico
7832c4a850 [ci] format 2023-07-17 14:56:14 +00:00
Emanuele Stoppa
4c93bd8154
feat(@astrojs/netlify): edge middleware support (#7632)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-17 15:53:10 +01:00
Emanuele Stoppa
cc8e9de881
fix: throw an error for incorrect configuration (#7680)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-07-17 14:35:29 +01:00
matthewp
c84e8b8e3e [ci] format 2023-07-17 13:15:32 +00:00
Alexander Niebuhr
6ec040761e
fix(@astrojs/cloudflare): SSR split file renaming misses ts endpoints (#7568)
* fix bug, where ts files where not renamed correctly

* try to make rename logic more robust

* remove log

* update tests

* update changeset

* cleanup

* fix lint

* debug windows tests

* fix windows support

* fix cloudflare directory code

* use EventContext type

* improve for loop

* change changeset

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

* change changeset

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

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-07-17 09:12:41 -04:00
Bjorn Lu
1f0d0b5863
Fix vercel build error when passing includeFiles (#7677) 2023-07-17 20:57:27 +08:00
Bjorn Lu
1a6f833c40
Fix cloudflare runtime env var handling (#7679)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-07-17 20:57:08 +08:00
Bjorn Lu
d69fe3a8d2
Handle flaky tests (#7651) 2023-07-17 20:30:02 +08:00
Nate Moore
16af1709a5
release (#7660) 2023-07-14 16:38:49 -05:00
Houston (Bot)
dc7ab8af65
[ci] release (#7658)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-14 16:16:31 -05:00
natemoo-re
ea910de61f [ci] format 2023-07-14 21:03:24 +00:00
Nate Moore
57a5eff5ce
fix(#7654): exclude @vercel/nft (#7659) 2023-07-14 16:01:06 -05:00
natemoo-re
4f9032be7c [ci] format 2023-07-14 19:32:59 +00:00
Nate Moore
c258492b72
Sitemap should only exclude 404 and 500 pages (#7655)
* fix(#7472): sitemap should only exclude 404 and 500 pages

* chore: refactor logic, add test
2023-07-14 14:30:33 -05:00
Matthew Phillips
795d598aeb
Revert "Clarify SSR limitations of sitemaps of dynamic routes (#7625)" (#7653)
This reverts commit 9352ac65f4.
2023-07-14 11:47:24 -04:00
ematipico
6d6e0a80cd [ci] format 2023-07-14 15:00:51 +00:00
Emanuele Stoppa
1568cb4324
refactor: use SSR manifest in dev (#7587) 2023-07-14 15:58:35 +01:00
matthewp
798442427d [ci] format 2023-07-14 14:58:18 +00:00
paulrudy
9352ac65f4
Clarify SSR limitations of sitemaps of dynamic routes (#7625)
While this README doesn't distinguish between SSR mode and static mode (and SSR mode was recently made available for the sitemaps integration), there is one important difference: Dynamic routes that are server-rendered can't be used to create sitemap entries.

This note makes that clear.
2023-07-14 10:56:03 -04:00
Houston (Bot)
1f2d52bd7b
[ci] release (#7645)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-14 10:44:25 -04:00
Erika
b3b640435b
nit: export props has been unnecessary.. forever (#7646) 2023-07-14 09:57:06 -04:00
Erika
7a6b48a1a4
fix(squoosh): Fix wrong file path in rotation check (#7650) 2023-07-14 15:52:14 +02:00
Sarah Rainsberger
de5fbd3e4b
[docs] fix link in image integration README (#7649) 2023-07-14 08:05:24 -03:00
Bjorn Lu
8ee94ffbd9
Remove weird changeset symbols (#7648) 2023-07-14 17:20:44 +08:00
Bjorn Lu
bde08c4b14
Refactor merge server config (#7639) 2023-07-14 16:13:58 +08:00
matthewp
4ce2ba972a [ci] format 2023-07-13 20:12:07 +00:00
Matthew Phillips
213e10991a
Fixes for redirects config (#7644)
* Update redirects static generation based on recs

Got some great recommendations on how to handle our HTML written
redirect code based on SEO best practices.

See https://github.com/withastro/roadmap/issues/466#issuecomment-1595940678

This implements them all.

* Fix for using the root path / as a redirect

Fixes https://github.com/withastro/astro/issues/7478

* Fix static redirects prefer over dynamic page

Fixes https://github.com/withastro/astro/issues/7581
2023-07-13 16:09:44 -04:00
Erika
af5827d4f7
fix(assets): Fix images not following EXIF rotation (#7637) 2023-07-13 21:38:57 +02:00
Princesseuh
c90de81373 [ci] format 2023-07-13 19:25:34 +00:00
Alvin Bryan
4b82e55cf1
Allow SVGs when using Assets (#7643)
* Allow SVG files when using Assets

* Fixed TypeScript error

* fix: some small nits and add a test

* chore: changeset

---------

Co-authored-by: Princesseuh <princssdev@gmail.com>
2023-07-13 21:22:31 +02:00
Bjorn Lu
bdde6b9f6c
Convert CLI top-level imports as dynamic imports (#7635) 2023-07-13 22:34:59 +08:00
Houston (Bot)
db4095d3f5
[ci] release (#7624)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-13 21:43:11 +08:00
sarah11918
14d4ce9246 [ci] format 2023-07-13 11:19:28 +00:00
Sarah Rainsberger
9b2629d7d4
[docs] update image integration README (#7633)
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-13 08:17:10 -03:00
bluwy
cd48c0764c [ci] format 2023-07-13 08:41:54 +00:00
Bjorn Lu
bbab86db73
Move all CLI commands to their subfolders (#7634) 2023-07-13 16:39:34 +08:00
ematipico
d780508a42 [ci] format 2023-07-13 08:24:04 +00:00
Emanuele Stoppa
f21357b69d
feat(@astrojs/netlify): add build.split support (#7615)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-07-13 09:21:33 +01:00
Bjorn Lu
b30a1bc2b8
Update turbo cache flow (#7631) 2023-07-13 12:51:01 +08:00
Yan Thomas
c38b0c49da
Fix build.excludeMiddleware default type docs (#7630) 2023-07-12 14:48:38 +01:00
Bjorn Lu
0952a815b7
Refactor config loading (#7622) 2023-07-12 19:54:14 +08:00
bluwy
b07d61a895 [ci] format 2023-07-12 07:14:48 +00:00
Josh Goldberg ✨
df49bbe7f1
feat: bumped typescript-eslint to v6 stable 🥳 (#7626) 2023-07-12 15:11:46 +08:00
Emanuele Stoppa
2ddf342626
fix(@astrojs/vercel): improve file detection (#7621) 2023-07-12 08:06:08 +01:00
matthewp
84e573a781 [ci] format 2023-07-11 18:24:09 +00:00
Matthew Phillips
86e19c7cf8
Fixes Response not being cloneable by middleware (#7623) 2023-07-11 14:21:05 -04:00
Houston (Bot)
f0666b92c3
[ci] release (#7594)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-11 22:27:04 +08:00
Chris Swithinbank
831dfd1516
Filter out astro from peerDependencies in astro add (#7620) 2023-07-11 12:42:11 +02:00
bluwy
13b36d962a [ci] format 2023-07-11 09:24:06 +00:00
Bjorn Lu
03c28aa629
Refactor simple CLI commands (#7619) 2023-07-11 17:21:57 +08:00
Emanuele Stoppa
3669e2d276
fix: astro info command fallback for package manager (#7618) 2023-07-10 19:08:18 +01:00
Bjorn Lu
255dead86f
Add CLI startup speed benchmark (#7617) 2023-07-10 23:43:01 +08:00
bluwy
65ecbcb286 [ci] format 2023-07-10 14:30:38 +00:00
Bjorn Lu
1c7fda8169
Document codebase rendering concepts (#7596)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-07-10 22:28:29 +08:00
Yan Thomas
131c92279e
Update prefetch README filename styling (#7613) 2023-07-10 14:37:09 +01:00
Bjorn Lu
904921cbe4
Ignore content .json files prefixed with underscores (#7611) 2023-07-10 20:39:32 +08:00
Ben Holmes
8df6a423c5
Fix: Hyphens breaking Markdoc tags (#7599)
* fix: handle hyphens in tag names

* test: add hyphen in test suite

* chore: changeset
2023-07-07 16:50:06 -04:00
matthewp
6fd9f4a160 [ci] format 2023-07-07 20:04:18 +00:00
Kory Smith
9807e4dc22
Updates prefetch integration to add "only prefetch link on hover/mouseover/focus" option (#6585)
* modifies prefetch to add the option to only prefetch certain pages on hover

* adds new pages to the test website to showcase prefetch-intent functionality

* adds tests to verify prefetch-intent behavior

* adds changelog

* waits until networkidle to check if the prefetching worked instead of waiting on a specific url load

* allows intentSelector to be either a string or array of strings

* Revert "allows intentSelector to be either a string or array of strings"

This reverts commit b0268eb0d5.

* fixes the multiple selector logic and adds tests

* updates docs to include new prefetch-intent integration

* Update packages/integrations/prefetch/README.md

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

* Update packages/integrations/prefetch/README.md

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

* Update packages/integrations/prefetch/README.md

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

* Update .changeset/little-cars-exist.md

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

* Update packages/integrations/prefetch/README.md

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

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-07-07 16:01:23 -04:00
Ben Holmes
c135633bf6
Fix: Markdoc v0.4.0 docs (#7593)
* docs: add docs link to markdoc error

* docs: add named exports guide to README

* chore: changeset

* edit: no like so

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* edit: exposed as named exports

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

---------

Co-authored-by: bholmesdev <bholmesdev@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-07-07 09:22:26 -04:00
zyoshoka
6f1c4ea388
Fix code snippet in markdoc README (#7592) 2023-07-07 07:22:47 -04:00
Tom Adler
3153d04dad
Runtime environment variables docs for node integration (#7378)
* Runtime environment variables docs for node integration

* Update packages/integrations/node/README.md

Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>

* final fixes

---------

Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
2023-07-07 09:45:12 +01:00
Yusuf
6bf20b62ce
docs(cloudflare): fix code snippet in enabling preview (#7591) 2023-07-07 09:28:30 +01:00
Houston (Bot)
f224078a65
[ci] release (#7578)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-06 23:16:08 +08:00
Bjorn Lu
a0a1ca3e58
Refactor passing compressHTML (#7585) 2023-07-06 20:29:57 +08:00
Bjorn Lu
2d9c621c77
Simpify passing endpoint logging option (#7584) 2023-07-06 20:28:18 +08:00
sank.eth
2ca5bdde2b
corrected grammar. minor change (#7580) 2023-07-06 16:29:13 +08:00
Fred K. Schott
756c3ea0de
Update benchmark.yml 2023-07-05 21:37:28 -07:00
Bjorn Lu
30d04db981
Refactor SSRResult and RenderContext (#7575) 2023-07-06 00:25:24 +08:00
ematipico
44e56bb3bc [ci] format 2023-07-05 16:05:32 +00:00
Emanuele Stoppa
6e9c295799
feat: astro info command (#7432)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-05 17:02:51 +01:00
ematipico
c490eb6e52 [ci] format 2023-07-05 15:48:32 +00:00
Emanuele Stoppa
9e5fafa2b2
feat: vercel edge middleware support (#7532)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-05 16:45:58 +01:00
Emanuele Stoppa
cfd5b2b785
refactor: use only manifest to compute information (#7571)
* refactor: use only manifest to compute information

* use entry modules

* revert entry modules
2023-07-05 12:36:19 +01:00
Houston (Bot)
f820bb3f0b
[ci] release (#7559)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-05 14:48:04 +08:00
bluwy
6dc251334f [ci] format 2023-07-05 06:17:56 +00:00
THARAK HEGDE
4aecebae26
Fix MDX README typo (#7567) 2023-07-05 14:15:32 +08:00
Bjorn Lu
5ffdec7580
Fix style crawling logic for CSS HMR (#7565) 2023-07-05 14:13:45 +08:00
Bjorn Lu
c459b81785
Move createBasicEnvironment as test-util (#7560) 2023-07-04 22:56:40 +08:00
Bjorn Lu
917f25cffe
Handle callGetStaticPaths TODO (#7558) 2023-07-04 21:58:41 +08:00
Emanuele Stoppa
c412e4a7bb
chore: fix incorrect default type (#7562) 2023-07-04 14:04:25 +01:00
Johannes Spohr
47b756e3e1
Batch iterator buffering to reduce number of timeout calls (#7544) 2023-07-04 17:32:01 +08:00
Bjorn Lu
7419bb6cf2
Fix CI lint command (#7554) 2023-07-03 14:55:02 +01:00
Bjorn Lu
e7cea6f755
Fix incorrect format from organize-imports-cli (#7553) 2023-07-03 21:11:09 +08:00
Bjorn Lu
6036bdd3ae
Refactor getParamsAndProps code (#7537) 2023-07-03 21:05:47 +08:00
bluwy
cf515254a5 [ci] format 2023-07-03 13:02:42 +00:00
Josh Goldberg ✨
2fea174303
feat: use typescript-eslint@v6's reworked configs (#7425) 2023-07-03 20:59:43 +08:00
Houston (Bot)
fc6826ff76
[ci] release (#7526)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-03 20:53:45 +08:00
Bjorn Lu
0f0c31fba5
Temporary fix for examples check (#7550) 2023-07-03 17:05:53 +08:00
bluwy
94a1529587 [ci] format 2023-07-03 08:12:47 +00:00
Wooseop Kim
e644b34659
fix: make Picture generate valid dev URLs (#7500) 2023-07-03 16:09:40 +08:00
bluwy
3df71fd34f [ci] format 2023-07-03 08:01:57 +00:00
Nate Moore
cdc28326cf
Update style attribute behavior for better object support (#7542) 2023-07-03 15:59:35 +08:00
Ken Powers
19c2d43ea4
Make APIRoute generic like APIContext (#7521) 2023-07-03 15:58:27 +08:00
Hippo
bc9ce779d3
Move code block titles into comments to match docs (#7543)
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-01 16:34:49 +02:00
natemoo-re
0251e4e6cf [ci] format 2023-06-30 22:27:42 +00:00
金成
1170877b51
Fix multiple create-astro registry issues (#7539)
* fix: getVersion Error when registry ends with '/'

* Update .changeset/old-seahorses-fold.md

* Update .changeset/old-seahorses-fold.md

* refactor: cleanup registry logic

* chore: update changeset

* fix(create-astro): update registry logic to rely on `fetch`

* chore: update changeset

* chore: update lockfile

* Update old-seahorses-fold.md

---------

Co-authored-by: jincheng32537 <jincheng32537@hundsun.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@astro.build>
2023-06-30 17:24:36 -05:00
wackbyte
2172dd4f0d
fix: don't serialize undefined as null (#7531)
* fix: don't serialize `undefined` as `null`

* test: include more types in the pass-js test
2023-06-30 16:24:29 -05:00
Bjorn Lu
4dd8849be2
Remove unused getParamsAndProps call (#7535) 2023-06-30 16:18:29 -05:00
Paweł Mrowiec
4256409a94
Fix image metadata generation (#7510)
* Fix problem where image metadata generation throwed error when provided url started with /@astroimage

* Remove unnecessary changes
2023-06-30 09:38:23 -05:00
Nate Moore
9e2426f756
fix(#7471): fallback to npm registry if config command fails (#7527) 2023-06-30 09:25:21 -05:00
Bjorn Lu
fcba0f0199
Refactor telemetry usage flow (#7522) 2023-06-30 17:28:17 +08:00
ematipico
5b1745bf31 [ci] format 2023-06-30 09:12:30 +00:00
Alexander Niebuhr
1a59185ddd
feature(astrojs/cloudflare): add support for splitted SSR bundles (#7464)
* initial commit

* try to fix windows

* output files directly into the correct folder

* allow for rest parameters

* use fixed hook

* improve tests

* apply doc's team suggestions for README

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

* try to fix prerendering

* apply doc's team suggestion for changeset

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

* bump to minor

* readme update

* resolve review comments

* optimize memory allocation

* resolve review comments

* add removed link, to make sure old docs keep same

* resolve comment

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-06-30 10:09:21 +01:00
matthewp
7ae6e89292 [ci] format 2023-06-29 20:21:41 +00:00
Matthew Phillips
154af8f5ea
Split support in the Vercel Serverless adapter (#7514)
* start of vercel split support

* Split Mode with the Vercel Adapter

* Write routes into the config.json

* Add a changeset

* Add docs

* Better changeset
2023-06-29 16:18:28 -04:00
bluwy
5df4853bd1 [ci] format 2023-06-29 13:22:07 +00:00
Bjorn Lu
baaeab0a67
Refactor component and renderers loading flow (#7518) 2023-06-29 21:19:43 +08:00
Houston (Bot)
56f1b1229c
[ci] release (#7496)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-29 17:14:24 +08:00
natemoo-re
40029e1af4 [ci] format 2023-06-28 19:51:38 +00:00
Nate Moore
d3247851f0
Pass compressHTML settings to manifest (#7488)
* fix(#7333): pass compressHTML to manifest

* chore: add compressHTML to astro:ssr-manifest test
2023-06-28 14:49:10 -05:00
Chris Swithinbank
e9a0fb502a
Use head repository name for docgen in smoke test (#7512) 2023-06-28 18:13:51 +02:00
Chris Swithinbank
2df9002a56
Run documentation generation as part of docs smoke test (#7495) 2023-06-28 14:20:32 +02:00
ematipico
34517ce8c0 [ci] format 2023-06-28 12:08:41 +00:00
Emanuele Stoppa
f4fea3b02b
fix: correctly handle prerender pages in split mode (#7509) 2023-06-28 13:06:16 +01:00
Ben Holmes
1a9b644e20
fix: ts-expect-error (#7505) 2023-06-27 16:25:27 -05:00
bholmesdev
647079da14 [ci] format 2023-06-27 19:08:29 +00:00
Ben Holmes
fb7af55114
feat: New Markdoc render API (#7468)
* feat: URL support for markdoc tags

* refactor: move to separate file

* feat: support URL for markdoc nodes

* feat: support `extends` with URL

* chore: changeset

* fix: bad AstroMarkdocConfig type

* fix: experimentalAssetsConfig missing

* fix: correctly merge runtime config

* chore: formatting

* deps: astro internal helpers

* feat: component() util, new astro bundling

* chore: remove now unused code

* todo: missing hint

* fix: import.meta.url type error

* wip: test nested collection calls

* feat: resolve paths from project root

* refactor: move getHeadings() to runtime module

* fix: broken collectHeadings

* test: update fixture configs

* chore: remove suggestions. Out of scope!

* fix: throw outside esbuild

* refactor: shuffle imports around

* Revert "wip: test nested collection calls"

This reverts commit 9354b3cf9222fd65b974b0cddf4e7a95ab3cd2b2.

* chore: revert back to mjs config

* chore: add jsdocs to stringified helpers

* fix: restore updated changeset

---------

Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2023-06-27 15:05:17 -04:00
Chris Swithinbank
8821f05048
Don’t post Discord congrats for auto-formatter commits (#7502) 2023-06-27 10:58:57 -05:00
delucis
47b47e0e54 [ci] format 2023-06-27 15:17:59 +00:00
r-southworth
b51d515d2d
Update astro.ts to clarify configuration settings for base (#7392)
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-06-27 17:15:10 +02:00
Ben Holmes
f6feff7a29
feat: restart server on markdoc config change (#7467)
* deps: vite-plugin-restart

* feat: restart on markdoc config change

* chore: changeset

* chore: roll our own restarter!

* deps: remove vite-plugin-restart

* refactor: use good enough option
2023-06-27 10:46:59 -04:00
Matteo Manfredi
2726098bc8
Update setTimeout() to queueMicrotask() (#7494) 2023-06-27 22:16:41 +08:00
Bjorn Lu
a82c6df25b
Remove unused rendering code (#7497) 2023-06-27 22:16:22 +08:00
Bjorn Lu
a3928016cc
Fix CSS error line offset (#7491) 2023-06-27 21:16:43 +08:00
Bjorn Lu
6dfd7081b7
Fix error stacktrace from Vite SSR runtime (#7273) 2023-06-27 21:16:29 +08:00
Bjorn Lu
83016795e9
Simplify nested hydration flow (#7370) 2023-06-27 21:16:10 +08:00
Houston (Bot)
da56a005d9
[ci] release (#7449)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-27 08:42:46 -04:00
ematipico
275d0d1683 [ci] format 2023-06-27 11:00:40 +00:00
Emanuele Stoppa
6014037441
fix: correct URL for entry points (#7490)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-06-27 11:58:23 +01:00
Bjorn Lu
57e603038f
Handle esbuild 0.18 changes (#7479) 2023-06-27 11:59:22 +08:00
Chris Swithinbank
2eca765f91
Remove invalid code block language tag in sitemap README (#7487) 2023-06-27 00:02:20 +02:00
bluwy
0daaa9efba [ci] format 2023-06-26 09:30:08 +00:00
Rasso Hilber
478cd9d8fa
fix: Installs underneath a path containing leading underscores (#7476) 2023-06-26 17:27:39 +08:00
bluwy
c1564d3c02 [ci] format 2023-06-26 08:53:27 +00:00
Erika
4e02a59e42
fix(errors): Deprecate error codes (#7347)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-06-26 16:51:06 +08:00
bluwy
39a24f111d [ci] format 2023-06-26 03:40:32 +00:00
Reuben Tier
f75b354715
Bump dependency versions (#7477) 2023-06-26 11:38:16 +08:00
Waxer59
409734a9af
Typo fixed in node.mdx (#7465) 2023-06-26 11:34:56 +08:00
Bjorn Lu
8e3cb20b5c
Format markdown files (#7439)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-06-26 11:34:13 +08:00
Willow (GHOST)
6e7f38dd79
Svelte Four (#7454) 2023-06-25 22:33:00 +08:00
Bjorn Lu
869197aafd
Fix markdoc test fail in main (#7459)
* Early out if `importedModule` has no `id`

We can do this as line 97 also has this guard for each `importedModules`

* Simplify `isPropagationStoppingPoint`

* Fix actual bug

* chore: changeset

---------

Co-authored-by: bholmesdev <hey@bholmes.dev>
2023-06-23 17:00:19 -04:00
Chris Swithinbank
dfa70357d3
Update congrats workflow for latest version (#7457) 2023-06-23 11:32:48 +02:00
Bjorn Lu
2b75399520
Remove slash package (#7440) 2023-06-23 16:48:05 +08:00
Nate Moore
8642912120
Cleanup GitHub Actions (#7451)
* chore(ci): cleanup GitHub Actions

* Update .github/workflows/format.yml
2023-06-22 15:42:17 -05:00
matthewp
56d04e4100 [ci] format 2023-06-22 18:39:21 +00:00
Matthew Phillips
f359d77b18
Prevent accidental CSS inclusion in dev (#7381)
* Prevent accidental CSS inclusion in dev

* Use ssrTransformResult.deps instead

* Fix types

* Get dynamic deps too

* Handle virtual module deps

* Fix test on windows
2023-06-22 14:36:35 -04:00
Bjorn Lu
32bde967f4
Fix vercel redirects with trailingSlash always (#7447) 2023-06-22 23:40:08 +08:00
Houston (Bot)
38b104049a
[ci] release (#7434)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-22 10:06:15 -04:00
Chris Swithinbank
03b7d17b99
Fix two errors for use in docs (#7445) 2023-06-22 12:10:59 +02:00
Wooseop Kim
9739adc91f
fix: encode spaces when generating srcset (#7340) 2023-06-22 15:56:41 +08:00
Benjamin MENANT
33cdc8622a
fix(astro:assets): inject /_image endpoint with prerendered=false on serverLikeOutput (#7423) 2023-06-22 15:20:35 +08:00
Ben Holmes
76fcdb84dd
Chore: remove legacy mdx content collections handler (#7353)
* chore: remove legacy mdx mapping

* chore: changeset

* chore: remove dead mdxEntryType

* nit: comments on mdx pkg name

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

* smol smol smol nit: and vs or

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-06-21 19:51:15 -04:00
Ben Holmes
3f9f5c117e
fix: pnpm failure on create-astro (#7435)
* fix: use which-pm-runs instead of preferred-pm

* deps: remove preferred-pm

* chore: move which-pm-runs to regular deps

* chore: changeset
2023-06-21 16:02:20 -04:00
Bjorn Lu
30bb363713
Fix astro:build:setup hook updateConfig utility (#7438)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-06-21 21:56:25 +08:00
Bjorn Lu
f275d058fc
Update safe dependencies (#7430) 2023-06-21 21:09:49 +08:00
ematipico
01b1c21c6b [ci] format 2023-06-21 12:35:19 +00:00
Emanuele Stoppa
459b5bd05f
feat: SSR split mode (#7220)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-06-21 13:32:20 +01:00
ematipico
c8bccb47d3 [ci] format 2023-06-21 12:10:24 +00:00
Emanuele Stoppa
8e2923cc62
feat: expose locals to render api and from requests in dev mode (#7385)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: wrapperup <wrapperup4@gmail.com>
2023-06-21 13:07:16 +01:00
Emanuele Stoppa
61d6e45cef
docs: add snippet for base option (#7384) 2023-06-21 13:06:43 +01:00
KDTS
3943fa390a
Fix minior issue in the documentation related to port customization (#7436) 2023-06-21 10:40:52 +01:00
Emanuele Stoppa
b9b57d901d
ci: don't run workflow for ISSUE_TEMPLATE (#7433) 2023-06-20 20:37:04 +01:00
Ben Holmes
7877a06d82
Fix up pnpm dev (#7424)
* feat: use persistent per turbo recs

* feat: preserve types yay

* fix: *actually* solve problem

* fix: type failures from content types template

* fix: bad JS doc comments

* fix: bad src/content/template path

* chore: changeset

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-20 14:06:36 -04:00
ematipico
3fd10f4597 [ci] format 2023-06-20 16:34:32 +00:00
Emanuele Stoppa
e314a04bfb
fix: correctly emit middleware file name (#7427) 2023-06-20 17:32:30 +01:00
Emanuele Stoppa
008af95a75
chore: update bug report template (#7431)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-06-20 17:29:41 +01:00
Houston (Bot)
1589eaabcd
[ci] release (#7428)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-20 10:32:26 -04:00
Emanuele Stoppa
2b34fc4928
fix: document open option (#7418)
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-06-20 15:24:29 +01:00
Chris Swithinbank
89a4835202
Fix telemetry reporting for integrations that return an array (#7429) 2023-06-20 14:42:49 +02:00
ematipico
82b1964432 [ci] format 2023-06-20 10:26:55 +00:00
Torbjørn Holtmon
94afaa3e50
fix: cloudflare waitUntil not working as inteded with getRuntime (#7419)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-06-20 11:24:32 +01:00
Houston (Bot)
f87680f6df
[ci] release (#7390)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-19 11:36:45 -04:00
Bjorn Lu
bb644834ef
Simplify telemetry Vite version detection (#7414) 2023-06-19 17:18:46 +08:00
Bjorn Lu
8f4a04d46b
Bump pnpm to 8.6.2 (#7413) 2023-06-19 15:29:30 +08:00
Kevin Zuniga Cuellar
354387c68e
remove extra "ago" in hackernews example (#7409) 2023-06-19 11:55:40 +08:00
Nate Moore
d2020c29cf
Fix injected route edge case (#7399)
* fix(#7397): update astro page entryname logic

* chore: add changeset

* fix: update printed log for injected routes

* fix: ensure /index is included

* test: add custom-404-pkg test

* chore: cleanup
2023-06-16 15:58:07 -05:00
Bjorn Lu
556fd694a6
Rename tailwind integration options (#7391) 2023-06-15 23:40:42 +08:00
Alvin Bryan
e407073c9e
Update error message for custom slugs in collection (#7395)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-06-15 12:40:32 -03:00
Arsh
d67ae84610
Node built-in modules support for Deno adapter (#7288)
* feature(deno adapter): allow built-in node modules

* Add changeset

* format
2023-06-15 10:20:35 -04:00
Tom
3f1cb6b1a0
@astrojs/tailwind: simplify, upgrade & fix support for ts config file (#6724)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-06-14 17:55:37 +08:00
Houston (Bot)
06315a1fde
[ci] release (#7368)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-13 16:55:58 -04:00
matthewp
32b0f84a1c [ci] format 2023-06-13 20:37:42 +00:00
beynar
6d8aa4b61f
[Cloudflare integration] Expose cf metadata and Cloudflare caches API (#7386)
* Add cf and cache properties to runtime

* add changeset

* reorder import

* fix types and add tests

* fix package name

* test
2023-06-13 16:34:44 -04:00
Bjorn Lu
3e1fbc2c8f
Use stub image service for tests (#7376) 2023-06-13 22:47:24 +08:00
Ben Holmes
1c7b635956
Fix: Zod errors missing stacktrace (#7380)
* wip: figure out stack issue, weird JSON stringify bug on zod issue

* refactor: return data instead of mutating

* refactor: remove need for reassignment

* fix: e.stack only

* chore: changeset
2023-06-12 17:20:04 -04:00
Matthew Phillips
0986a44ddd
Upgrade lit deps (#7373)
* Upgrade lit deps

* Add changeset

* Downgrade peer dep

* Upgrade lockfile

* add client dep
2023-06-12 15:52:13 -04:00
Bjorn Lu
807f46791d
Increase parallel test time tolerance (#7372) 2023-06-12 21:51:20 +08:00
Bjorn Lu
718cebd526
Update example dependencies versions with a script (#7367) 2023-06-12 20:48:04 +08:00
Chris Swithinbank
0325bf7e0f
Add @message to DuplicateContentEntrySlugError (#7369) 2023-06-12 11:48:53 +02:00
adenpun
42baf62e7c
Fixed AstroUserConfig's redirect type definition (#7366) 2023-06-12 16:34:05 +08:00
Houston (Bot)
4f7091206c
[ci] release (#7354)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-10 13:54:36 -04:00
Ben Holmes
0a8d178c90
Raise error for duplicate content entry slugs (#7352)
* chore: throw error on dup slugs

* chore: move to ErrorData

* fix: remove unknownerror

* chore: changeset
2023-06-10 13:49:17 -04:00
bholmesdev
777e5d7587 [ci] format 2023-06-10 17:45:51 +00:00
Ben Holmes
a30f2f3de4
Fix Markdoc cloudflare errors (#7351)
* fix: move `node:` libs out of utils

* fix: node -> default

* chore: remove kleur from markdoc ex (why was this there??)

* chore: lock

* chore: changeset
2023-06-10 13:43:26 -04:00
Ben Holmes
491c2db424
Fix: better collection entry devalue error (#7341)
* feat: add clear error for devalue parse

* refactor: create error data entry

* deps: up devalue

* chore: changeset
2023-06-09 18:15:11 -04:00
Ben Holmes
f4f9524656
chore: bump pnpm to 8.6.0, lock to 6.1 (#7350) 2023-06-09 16:45:14 -04:00
MoustaphaDev
1ac016225d [ci] format 2023-06-09 20:23:53 +00:00
Happydev
bc7c164bc3
Do not silence runtime MDX errors (#7089)
* test: add fixture

* chore: remove unneeded files in fixture

* test: update test mdx filfe

* test: add test case

* mark component as mdx

* add error builder utility

* throw error when it comes from an MDX component

* chore: update lock file

* Add comment to refactor later

* apply review

* add missing comma
2023-06-09 20:21:32 +00:00
Houston (Bot)
e138f66344
[ci] release (#7318)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-09 08:40:17 +03:00
matthewp
8341c461b5 [ci] format 2023-06-09 04:58:51 +00:00
Caleb Williams
1430ffb473
Fixes an issue where create Astro doesn't respect custom npm registries (#7326)
* Fixes an issue where create Astro doesn't respect custom npm registries

* chore: fix pnpm-lock

* chore: update lockfile

---------

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-09 07:56:29 +03:00
matthewp
5c20476fd3 [ci] format 2023-06-09 04:56:15 +00:00
Matthew Phillips
bbcf69e7b8
Fix redirects in dev mode (#7342)
* Fix redirects in dev mode

* Adding a changeset
2023-06-09 07:54:14 +03:00
Matthew Phillips
3d9a392a09
Remove error message for using Markdown component (#7343) 2023-06-09 07:41:08 +03:00
Ben Holmes
e3271f8c16
Better dynamic route regex error (#7339)
* feat: add helpful invalid route seg error

* chore: add errors-data entry

* refactor: add hint for non-spread errors

* chore: add `undefined` to common cases

* nit: if the param contains slashes

* chore: changeset

* chore: it's trivial my dear watson
2023-06-08 18:12:39 -04:00
Edo-San
52f0480d14
Fix/update spread attribute (#7310)
* fix: add default fallback for spreadAttributes values

* chore: add PR changeset

* chore: fix pnpm lock

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-08 15:58:17 -05:00
Ben Holmes
e6bff651ff
Fix: catch and report config errors from handleConfigError (#7316)
* fix: catch and report config errors from `handleConfigError`

* chore: changeset
2023-06-07 09:59:20 -04:00
Bjorn Lu
9c525d3f11
Refactor some integration tests (#7303) 2023-06-07 18:04:34 +08:00
Bjorn Lu
a4176f98b8
Mark #7314 changeset as major (#7320) 2023-06-07 14:58:55 +08:00
wackbyte
e47e53dc0c
Update to svelte2tsx 0.6.15 and vite-plugin-svelte 2.4.1 (#7314) 2023-06-06 18:07:43 -05:00
Houston (Bot)
8a029d9889
[ci] release (#7312)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-06 17:24:57 -04:00
bholmesdev
8b5c311b34 [ci] format 2023-06-06 18:51:14 +00:00
Ben Holmes
a11b62ee1f
Fix: Markdoc type errors (#7311)
* fix: config, prism, shiki exports

* fix: type error for `render` property

* chore: use `.ts` files in select tests for type checks

* fix: type error on shiki() promise

* chore: changeset
2023-06-06 14:48:54 -04:00
Ben Holmes
8034edd9ec
Fix [Object AsyncGenerator] logging for Markdoc components (#7307)
* Revert "Bug 6672 (#7062)"

This reverts commit cf621340b0.

* chore: remove unused test

* chore: changeset
2023-06-06 13:48:10 -04:00
Ben Holmes
2a4bb23b2f
Fix missing styles and scripts on document: {render:null} (#7309)
* fix: propagate assets when using document `render: null`

* fix: reverse spread order

* refactor: use README rec in test

* chore: changeset

* chore: revert unneeded changes
2023-06-06 13:40:04 -04:00
Sarah Rainsberger
f63d1d0c4d
[docs-errors] Astro.redirects link changed (#7308) 2023-06-06 13:43:57 -03:00
Nate Moore
5ed2a2f666
chore: remove docs example (#7306) 2023-06-06 11:21:19 -05:00
Houston (Bot)
d5a089810f
[ci] release (#7295)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-06 10:32:10 -05:00
natemoo-re
a1144f7fec [ci] format 2023-06-06 15:11:47 +00:00
Alex Sherwin
4929332c32
#7226 - fixes NodeJS adapter for multiple set-cookie headers (and other header issues) (#7227)
* Utilizes the new standard WebAPI Fetch Headers.getSetCookie() function
to safely handle multiple set-cookie headers when converting from a
WebAPI Response to a NodeJS ServerResponse

Modifies the existing nodeMiddleware logic which first set AstroCookies
on ServerResponse.setHeader(...) and then called
ServerResponse.writeHead(status, Response.headers) which means any that
if the WebAPI Response had any set-cookie headers on it, they would
replace anything from AstroCookies.

The new logic delegates appending AstroCookie values onto the WebAPI
Response Headers object, so that a single unified function safely
converts the WebAPI Response Headers into a NodeJS compatible
OutgoingHttpHeaders object utilizing the new standard
Headers.getSetCookie() function provided by the undici WebAPI polyfills.

Plus extensive test coverage.

* #7226 - changeset for NodeJS adapter set-cookie fix

* fixing all double quotes to single quotes

---------

Co-authored-by: Alex Sherwin <alex.sherwin@acadia.inc>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-06 10:09:16 -05:00
Riki
409c60028a
fix:query not considered in directory redirection (#7243)
* fix:query not considered in directory redirection

* feat: req.url may be empty

* test(node): add redirect + query param tests

* refactor(node): cleanup query param logic

* chore: remove log

* chore: add changeset

---------

Co-authored-by: Riki <947968273@qq.com>
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-06 10:09:00 -05:00
André Alves
144813f730
Fix injected scripts not injected to injected routes (#7262)
* Fix injected scripts not injected to injected routes

* chore: changeset

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-06 10:08:38 -05:00
Sarah Rainsberger
67c8f34a99
fix note syntax in Netlify README (#7305) 2023-06-06 09:50:44 -05:00
Bjorn Lu
d72cfa7cad
Fix nested astro-island hydration race condition (#7197) 2023-06-06 17:39:25 +08:00
natemoo-re
64b2b65410 [ci] format 2023-06-05 18:21:15 +00:00
Nate Moore
39403c32fa
Unflag hybrid output (#7260)
* feat(hybrid): unflag hybrid output

* chore: cleanup rebase errors
2023-06-05 13:19:15 -05:00
Bjorn Lu
414eb19d2f
Remove experimental flag for custom client directives (#7237) 2023-06-06 00:04:35 +08:00
Erika
b5213654b1
feat(tsconfigs): Enable allowJs in base preset (#7274) 2023-06-05 17:31:21 +02:00
matthewp
4c33576a6c [ci] format 2023-06-05 15:27:27 +00:00
Emanuele Stoppa
101f032098
feat: remove experimental flag middleware (#7109)
* fix: middleware for API endpoints

* feat: remove experimental flag middleware

* chore: rebase and update

* chore: check if physical file exists

* chore: restore change

* merge

* merge

* fix: remove options, not needed

* remove experimental from types

* chore: don't have the middleware inside the manifest

* Update how redirects work, slightly

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-06-05 11:25:18 -04:00
Princesseuh
435a231a26 [ci] format 2023-06-05 14:42:54 +00:00
Erika
a7e2b37ff7
fix(html): Export HTML components as default export so their type is valid JSX (#7296)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-06-05 16:40:53 +02:00
matthewp
91b6ac31f3 [ci] format 2023-06-05 14:30:32 +00:00
Arsh
e3b8c62969
Stabilize inline stylesheets (#7180)
* changeset

* chore(inline stylesheets config): stabilize

* grammar

* not a major change

* Update inlineStylesheets version in the configuration reference

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

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-06-05 10:28:29 -04:00
matthewp
eb459577f0 [ci] format 2023-06-05 13:05:47 +00:00
Matthew Phillips
57f8d14c02
Redirects (#7067)
* Redirects spike

* Allow redirects in static mode

* Support in Netlify as well

* Adding a changeset

* Rename file

* Fix build problem

* Refactor to be more modular

* Fix location ref

* Late test should only run in SSR

* Support redirects in Netlify SSR configuration (#7167)

* Implement support for dynamic routes in redirects (#7173)

* Implement support for dynamic routes in redirects

* Remove the .only

* No need to special-case redirects in static build

* Implement support for redirects config in the Vercel adapter (#7182)

* Implement support for redirects config in the Vercel adapter

* Remove unused condition

* Move to a internal helper package

* Add support for the object notation in redirects

* Use status 308 for non-GET redirects (#7186)

* Implement redirects in Cloudflare (#7198)

* Implement redirects in Cloudflare

* Fix build

* Update tests b/c of new ordering

* Debug issue

* Use posix.join

* Update packages/underscore-redirects/package.json

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

* Update based on review comments

* Update broken test

---------

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

* Test that redirects can come from middleware (#7213)

* Test that redirects can come from middleware

* Allow non-promise returns for middleware

* Implement priority (#7210)

* Refactor

* Fix netlify test ordering

* Fix ordering again

* Redirects: Allow preventing the output of the static HTML file (#7245)

* Do a simple push for priority

* Adding changesets

* Put the implementation behind a flag.

* Self review

* Update .changeset/chatty-actors-stare.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

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

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

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

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

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

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

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

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Update docs on dynamic restrictions.

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

* Code review changes

* Document netlify static adapter

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

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

* Slight reword

* Update .changeset/twenty-suns-vanish.md

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

* Add a note about public/_redirects file

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

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

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-05 09:03:20 -04:00
Matthew Phillips
dd1a6b6c94
Fixes cookies being set by middleware (#7294)
* Fixes cookies being set by middleware

* Adding a changeset
2023-06-05 08:28:29 -04:00
bluwy
af9ac3360b [ci] format 2023-06-05 08:04:02 +00:00
Jerry_wu
890a2bc989
remove the white space after the doctype according to the property co… (#7242) 2023-06-05 16:02:04 +08:00
Bjorn Lu
ef410fa30b
Simplify Deno test (#7276) 2023-06-05 15:05:16 +08:00
Houston (Bot)
c895981386
[ci] release (#7278)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-02 13:17:55 -05:00
Nate Moore
229affca40
Add 'starlight' as template alias (#7277)
* feat(create-astro): add starlight as template alias

* chore: lint
2023-06-02 12:56:25 -05:00
Houston (Bot)
c64dfdd3d8
[ci] release (#7254)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-02 10:51:28 -04:00
Bjorn Lu
6721b1f699
Run example check in parallel with 5 at most (#7275) 2023-06-02 21:14:44 +08:00
Bjorn Lu
96ae37eb09
Fix Vitest with content collections (#7233) 2023-06-02 21:05:57 +08:00
Ben Holmes
9e7366567e
Content collections: ignored underscore directories in file glob (#7268)
* fix: ignored underscore dirs in glob

* chore: changeset
2023-06-02 07:54:50 -04:00
bluwy
6533041ce0 [ci] format 2023-06-02 08:53:10 +00:00
Benjamin MENANT
6e27f2f6db
fix(astro/core/app/node): support http2 requests (#7215) 2023-06-02 16:51:09 +08:00
Johannes Spohr
fea3069360
Parallel array rendering (#7136) 2023-06-02 16:46:12 +08:00
bluwy
6b8d55b096 [ci] format 2023-06-02 08:10:03 +00:00
André Alves
dff0d0dda2
Fix sitemap filter (#7263) 2023-06-02 16:07:44 +08:00
Nate Moore
408be72d1d
Fix duplicate semver minor blocks (#7269)
* chore(action): fix duplicate blocks

* chore(action): fix block logic
2023-06-01 13:21:55 -05:00
Thiti Yamsung
5156c4f90e
fix: build fail upon have 'process.env' in *.md file. (#7257) 2023-06-01 10:34:02 -04:00
bholmesdev
c86f0c6e3e [ci] format 2023-05-31 23:21:07 +00:00
Ben Holmes
339529fc82
Markdoc asset bleed, second try (#7185)
* Revert "revert: markdoc asset bleed (#7178)"

This reverts commit 57e65d247f.

* fix: missing result param on `renderUniqueStylesheet`

* test: bundled styles (fails!)

* fix: use `type: 'external'` for links

* fix: split Astro components from markdoc config

* test: style bleed (it fails...)

* chore: remove unused util

* fix: revert entry change

* Stop traversing the graph when you encounter a propagated asset

* chore: cleanup unused `entry` prop

* refactor: add isPropagatedAssetsMod check

* chore: remove unused import

* chore: changeset

* Normalize path using vite

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

Co-authored-by: Ben Holmes <hey@bholmes.dev>

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
2023-05-31 19:18:07 -04:00
Nate Moore
c4c086e5e7
Fix semver minor action (#7261)
* Update check-merge.yml

* chore: update action

* chore(action): better check if block exists

* chore(action): update check-merge action
2023-05-31 17:15:14 -05:00
Nate Moore
e0ca0d8c8a
Revert "feat(hybrid): unflag hybrid output (#7255)" (#7259)
This reverts commit bc5d6ed39f.
2023-05-31 12:06:24 -05:00
natemoo-re
4e653a4d29 [ci] format 2023-05-31 16:49:24 +00:00
Nate Moore
bc5d6ed39f
feat(hybrid): unflag hybrid output (#7255) 2023-05-31 11:47:25 -05:00
Ben Holmes
563293c5d6
Markdoc: strip HTML comments from output (#7224)
* feat: strip HTML comments from output

* chore: changeset
2023-05-31 10:09:49 -04:00
Ben Holmes
290e344dee
Fix out-of-date example dependencies (#7248)
* revert changeset patch

* deps: bump astro across examples

* deps: bump @astrojs packages across examples

* deps: bump @astrojs/markdoc
2023-05-30 19:51:09 -04:00
Houston (Bot)
ba865f5d64
[ci] release (#7190)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-30 16:53:55 -04:00
Ben Holmes
f5063d0a01
Content collections - fix .json collection errors (#7246)
* fix: avoid error on collectionType === 'unknown'

* fix: ignore underscores in file globs

* chore: clarify [!_]

* fix: mismatch error not throwing

* fix: bad collectionType var

* test: no error for empty collection

* chore: changeset
2023-05-30 16:27:47 -04:00
bholmesdev
8da07ab754 [ci] format 2023-05-30 20:21:13 +00:00
Ben Holmes
bef3a75dbc
Markdoc - remove $entry variable (#7244)
* refactor: remove entry prop from `getRenderModule()`

* refactor: remove `$entry` from markdoc

* test: update entry-prop -> variables test

* refactor: unify `getEntryConfigByExt`

* chore: clean up shared content / data get logic

* docs: update `$entry` recommendation

* chore: rename entry-prop -> variables

* chore: changeset

* chore: missed a spot
2023-05-30 16:18:20 -04:00
Ben Holmes
c7897f20a9
Markdoc: new README for Markdoc nodes (#7225)
* docs: all-new nodes documentation

* edit: `.astro` ONLY

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

* edit: `.` outside links, line break

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

* edit: such as, not like

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

* edit: more Astro less probs

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

* edit: reviewers React to

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

* edit: tagz

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

* chore: add `default: 'article'` for document

* edit: reword client-side instructions

* edit: prism stylesheet got lost

* fix: heading -> blockquote

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-30 14:51:38 -04:00
MoustaphaDev
4851782197 [ci] format 2023-05-30 14:14:52 +00:00
Happydev
ee2aca80a7
fix: prioritize dynamic prerendered routes over dynamic server routes (#7235)
* test: add unit tests

* fix: prioritize prerendered routes

* chore: fix test

* add comment

* test: try avoiding race condition

* chore: changeset

* try avoiding race conditions attempt #2

* try avoiding race conditions (attempt 3)

* final fix hopefuly

* tet: add more tests

* sort conflicting dynamic routes aplhabetically

* test: fix test
2023-05-30 14:12:16 +00:00
matthewp
e20a3b20b7 [ci] format 2023-05-30 12:08:08 +00:00
wulinsheng123
cf621340b0
Bug 6672 (#7062)
* fix miss a head when the templaterender has a promise

* fix

* add some test

* test files move to md directory

* fix add

* delect file

---------

Co-authored-by: wuls <linsheng.wu@beantechs.com>
2023-05-30 08:05:48 -04:00
Bjorn Lu
29da199e9a
Document MDX optimize static logic (#7221)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-30 15:46:33 +08:00
Bjorn Lu
af3c5a2e25
Use AstroError for Astro.glob errors (#7219)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com>
2023-05-29 20:42:31 +08:00
Bjorn Lu
df1e6f78df
Fix markdoc image tests (#7231) 2023-05-29 16:37:40 +08:00
Erika
f2f18b4405
feat: support images outside the project (#7139) 2023-05-26 22:03:06 +02:00
Bjorn Lu
1c77779dd6
Fix astro-static-slot hydration mismatch error (#7196) 2023-05-26 22:37:33 +08:00
Bjorn Lu
6c7df28ab3
Fix CSS deduping and missing chunks (#7218) 2023-05-26 21:30:42 +08:00
Princesseuh
6b12f93b57 [ci] format 2023-05-26 13:04:57 +00:00
André Alves
bf63f615fc
Add global crypto to @astrojs/webapi (#6981)
* add crypto to be polyfilled

* chore: changeset

* chore: update deps for node types

---------

Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Princesseuh <princssdev@gmail.com>
2023-05-26 15:02:35 +02:00
Bjorn Lu
52af9ad188
Add error message if Astro.glob is called outside (#7204) 2023-05-26 16:59:51 +08:00
Ben Holmes
184870e2e2
deps: bump @babel/core and @babel/types (#7214) 2023-05-25 13:30:03 -04:00
bholmesdev
594a3aaf51 [ci] format 2023-05-25 15:37:55 +00:00
Ben Holmes
16b8364119
Markdoc - improve syntax highlighting support (#7209)
* feat: prism and shiki support, with better exports!

* chore: update tests

* chore: fix lock

* chore: add prism test

* chore: remove `async` from prism

* docs: update syntax highlight readme

* chore: changeset

* edit: remove `await` from prism docs

* chore: update old changest with new shiki instructions

* fix: add trailing newline on ts-expect-error

* refactor: resolve promises internally

* docs: remove `await` from shiki examples
2023-05-25 11:35:07 -04:00
ematipico
223e0131fc [ci] format 2023-05-25 13:30:42 +00:00
Emanuele Stoppa
8b041bf57c
refactor: emit pages as physical entry points (#7193) 2023-05-25 14:28:40 +01:00
Erika
f5a8cffac2
fix(vercel): Fix typo in README 🤦‍♀️ (#7208) 2023-05-25 14:59:25 +02:00
Bjorn Lu
ea16570b1e
Add MDX optimize option (#7151)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-25 19:43:29 +08:00
Bjorn Lu
20a97922aa
Document partytown script block by extensions (#7205) 2023-05-25 19:42:57 +08:00
Emanuele Stoppa
8727b5bd85
fix: formatting comment (#7206) 2023-05-25 10:29:11 +01:00
Alexander Niebuhr
6ca3b5a9e8
Export ChangeFreqEnum type for sitemap integration (#7028) 2023-05-25 17:15:26 +08:00
Akash Rajpurohit
59d8c50b84
fix: 🩹 update partytown options ts type (#7175) 2023-05-25 16:24:59 +08:00
bholmesdev
dc31b8a722 [ci] format 2023-05-24 20:54:43 +00:00
Ben Holmes
1efaef6be0
Markdoc - Shiki (#7187)
* chore: remove unused util

* chore: changeset

* deps: shiki

* wip: first stab at shiki markdoc config

* feat: get shiki working!

* refactor: return HTML string directly from transform

* chore: move shiki to markdoc dev dep

* refactor: use async cache with clear docs on why

* test: transform units with Shiki config options

* refactor: switch to `extends` model

* refactor: nodes/ -> extensions/

* feat: raise friendly error for Promise extensions

* docs: README

* chore: lint

* chore: dead file

* chore: lowercase for fuzzy find please

* fix: bad ctx spread

* chore: clean up cache, add shiki imp error

* chore: add shiki to optional peer deps

* chore: hoist those consts

* docs: more explicit "install shiki now please"

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

* oops bad find and replace

* chore: update changeset

* nit: period haunts me

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-24 16:52:22 -04:00
Emanuele Stoppa
7851f9258f
fix: detect mdx files using full extension (#7192) 2023-05-24 10:20:06 +01:00
Bjorn Lu
27c6e01826
Remove @mdx-js/rollup dependency (#7191) 2023-05-24 17:02:04 +08:00
Barthélémy Ledoux
2bda7fb0bc
fix: add astro-static-slot to the list of inert tags in astro css (#7189) 2023-05-24 15:10:10 +08:00
Houston (Bot)
55a0439e00
[ci] release (#7181)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-23 16:24:16 -04:00
matthewp
bf2320edb6 [ci] format 2023-05-23 19:43:05 +00:00
wulinsheng123
904131aec3
fix a bug when Fragment is as a slot (#6832)
* fix a bug when Fragment is as a slot

* update yaml

* fix ts errpr

* fix astro name of md

---------

Co-authored-by: wuls <linsheng.wu@beantechs.com>
2023-05-23 15:40:21 -04:00
Ben Holmes
57e65d247f
revert: markdoc asset bleed (#7178)
* revert: markdoc asset bleed

* chore: changeset
2023-05-23 12:16:50 -04:00
Houston (Bot)
cbdb0fdbd6
[ci] release (#7169)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-23 11:06:53 -04:00
Bjorn Lu
79ba74832f
Prevent Vite watching on Astro config load (#7171) 2023-05-23 22:40:40 +08:00
Emanuele Stoppa
92d1f017e5
chore(middleware): lift restriction around serializable data (#7174) 2023-05-23 15:10:30 +01:00
ematipico
d73c908396 [ci] format 2023-05-23 13:58:58 +00:00
Emanuele Stoppa
626dd41d0a
refactor: move renderers to their own plugin (#7166) 2023-05-23 14:55:34 +01:00
Bjorn Lu
4ce8bf7c62
Make vite-plugin-content-virtual-mod run getEntrySlug 10 at a time (#7125) 2023-05-23 21:54:59 +08:00
Erika
2ca94269ed
Add types for import.meta.env.ASSETS_PREFIX and import.meta.env.SITE (#7172) 2023-05-23 14:13:10 +02:00
Alex Vukadinov
5b6a0312a8
fix: value of var could be undefined when using define:vars (#7134) 2023-05-23 12:28:44 +08:00
Houston (Bot)
64d2aba583
[ci] release (#7163)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-22 15:16:13 -04:00
matthewp
6533cbea87 [ci] format 2023-05-22 17:52:03 +00:00
Ben Holmes
f558a9e205
[Markdoc] Fix global asset bleed (#6758)
* wip: propagatedAssets flag per-component

* Propagate in TreeNode

* fix: remove unused inject comment

* feat: make asset propagation an integration opt-in

* fix: remove crawlGraph stopper

* wip: logs to understand what's happening

* SSR mdoc files in dev

* feat: add astroPropagatedAssets flag with vite

* chore: remove console logs

* chore: cleanup hasContentFlag

* fix: set handlePropagation default for legacy integrations

* chore: changeset

* temp: silence acorn type error

* chore: revert pnpm-lock changes

* fix: check correct flag

* We need to handle propagation on markdown because of layouts

* Remove use of renderStyleElement

* Fix heading tests

* Fix merge conflict

* typeof function

* Switch the check

* Add comment on injection detection regexp

---------

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-05-22 13:50:01 -04:00
Johannes Spohr
b41963b775
Render 404 page content when a Response with status 404 is returned from a page (#7143) 2023-05-22 12:06:06 -04:00
Houston (Bot)
d880293f79
[ci] release (#7161)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-22 09:48:21 -04:00
Akash Rajpurohit
e17ed0727e
feat: 🎨 export rss feeditem type (#7153) 2023-05-22 21:20:10 +08:00
matthewp
f962348f76 [ci] format 2023-05-22 13:18:18 +00:00
Arsh
ba06362409
fix(hoisted scripts): consider script's dependents (#7144) 2023-05-22 09:15:21 -04:00
MoustaphaDev
49bfeacdec [ci] format 2023-05-22 13:00:23 +00:00
Happydev
8f418d13c5
fix(hybrid-output): no matched route when using getStaticPaths (#7150)
* `isPrenderDefault` ---> `isPrerenderDefault`

* test: add test fixture

* test: add hybrid getStaticPaths tests

* try fix in ci

* bring back edit lost on merge conflict fix

* back static paths guard

* move function to new file to avoid bundling issues

* remove unsued import

* debugging cleanup

* chore: update fixture's package.json

* cleanup test

* small test refactoring

* `status.ts` --> `metadata.ts`

* smol refactor

* chore: changeset

* just return the prerender metadata

* refactor tests

* chore: update lock file
2023-05-22 12:58:03 +00:00
Houston (Bot)
0616ef2551
[ci] release (#7130)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-21 00:00:31 +08:00
bholmesdev
358d1dc92f [ci] format 2023-05-19 18:14:41 +00:00
Ben Holmes
a9e1cd7e58
Fix: Heading ID CI flakiness (#7141)
* feat: use `ctx` object instead of leaky global

* test: heading IDs stale caches

* chore: changeset
2023-05-19 14:12:45 -04:00
Connor Bär
147373722b
fix(prefetch): Fix the inclusion of @types/network-information (#7123) 2023-05-19 23:34:34 +08:00
matthewp
cf066944b5 [ci] format 2023-05-19 14:54:42 +00:00
Johannes Spohr
72f686a689
Fix injectRoute for SSR (#7128)
* Use manifest routes for SSR app manifest instead of page components to enable injected routes with SSR

* Small refactoring

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

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-05-19 10:52:46 -04:00
Bjorn Lu
ed4aff0cb9
Fix e2e flaky tests again (#7129) 2023-05-19 22:46:31 +08:00
ematipico
7341d9a288 [ci] format 2023-05-19 14:31:59 +00:00
Emanuele Stoppa
852d59a8d6
refactor(astro): emit entry.mjs to import pages via dynamic import (#7036) 2023-05-19 15:30:03 +01:00
ematipico
96947fce96 [ci] format 2023-05-19 12:53:45 +00:00
Emanuele Stoppa
319a0a7a0a
refactor: create virtual module for middleware (#7132) 2023-05-19 13:51:47 +01:00
Erika
3257dd2890
Improve content collection error message for empty folders (#7118) 2023-05-19 13:53:46 +02:00
Bjorn Lu
2b9a25beaf
Fix smoke test markdoc CI (#7131) 2023-05-19 19:19:34 +08:00
Bjorn Lu
530fb9ebee
Add route information for getStaticPaths warning (#7126) 2023-05-19 18:13:46 +08:00
Houston (Bot)
31cbf4357e
[ci] release (#7090)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-18 12:31:59 -04:00
Bjorn Lu
dad105a91e
Document inlineStylesheets available astro version (#7117) 2023-05-18 12:14:17 -04:00
Johannes Spohr
e186ecc5e2
Parallelize rendering of sibling components to avoid async waterfalls (#7071)
* Parallelize rendering of sibling components to avoid async waterfalls

* Catch and rethrow errors when eagerly rendering children

* Catch `Response` in rendering stage and throw error

* Add changeset

* Fix test error message

* Improve unit tests

* Start async generators in non-buffered mode, and only start buffering once a component doesn't resolve immediatly

* Add more documentation
2023-05-18 09:54:23 -04:00
Ben Holmes
05695ab202
chore: remove unused content/internal export (#7114)
* chore: remove unused content/internal exp

* chore: add back newline

---------

Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2023-05-18 08:38:27 -04:00
Bjorn Lu
8814a36f72
Fix customClientDirectives config default typo (#7119) 2023-05-18 18:48:59 +08:00
bluwy
28d4d22f7b [ci] format 2023-05-18 09:42:07 +00:00
Reuben Tier
cada10a466
Add errors for unknown experimental keys (#7011) 2023-05-18 17:39:39 +08:00
Ben Holmes
6b4fcde376
Fix: add headings to .mdoc render type (#7111)
* fix: add `headings` to `.mdoc` render type

* chore: changeset
2023-05-17 16:35:48 -04:00
bholmesdev
4264b7c564 [ci] format 2023-05-17 15:38:46 +00:00
Ben Holmes
c6d7ebefdd
Data collections and references (#6850)
* feat: add generated lookup-map

* feat: wire up fast getEntryBySlug() lookup

* fix: consider frontmatter slugs

* chore: changeset

* chore: lint no-shadow

* fix: revert bad rootRelativePath change

* chore: better var name

* refactor: generated `.json` to in-memory map

* chore: removed unneeded await

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

* chore: removed unneeded await

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

* Revert "chore: removed unneeded await"

This reverts commit 1b0a8b00c2.

* fix: bad `GetEntryImport` type

* chore: remove unused variable

* refactor: for -> Promise.all

* refactor: replace duplicate parseSlug

* refactor: add cache layer

* Revert "refactor: add cache layer"

This reverts commit 1c3bfdc6b3.

* feat: json collection POC

* wip: add test json file

* wip: playing with api ideas

* refactor: extract getCollectionName

* feat: add defineDataCollection

* refactor: variable destructure

* wip: basic data entry pipeline

* chore: revert fixture playing

* wip: basic entry array parser

* feat: basic data type gen

* chore: add with-data playground

* feat: add error when `defineDataCollection()` isn't used

* fix: missing error message

* feat: data collections are here!

* wip: play with data query APIs

* feat: reference() util!

* fix: Markdoc `$entry` variable

* play: add reference util with markdoc

* chore: delete console logs

* feat: `src/data/`!

* feat: reference() errors

* fix: handle hoisted schema parse errors

* fix: reload config and invalid on collection changes

* feat: separate maps for content and data entries

* feat: new `reference()` API that fixes type inference

* feat: support `defineCollection()` for data config

* fix: defineCollection `type` inferenenceπinference

* chore: lock

* feat: getCollection() for everything!

* feat: get full entry access from reference()

* chore: changeset

* wip: type error on acorn?

* chore: lint

* chore: add slugger to data ID processing

* chore: astro/zod -> zod

* chore: example version

* chore: remove slugifier from data id

* chore: remove dead getDataCollection

* chore: remove dead defineDataCollection

* fix: bad collection import

* chore: lock

* feat: add data collections to lookup map

* refactor: stop resolving data from reference

* feat: introduce getEntry and new reference()

* fix: update config loader

* fix: reference() type

* feat: test self references (they work 🎉)

* fix: use `slug` for content references

* fix: bad getEntry content type

* chroe: remove console logs

* fix: strict null checks on with-data

* feat: add getEntries for ref arrays

* chore: fix type hints for reference strings

* chore: change to type never for clarity

* play: try getEntries

* Return to "everything goes in `src/content/`

This reverts commit cc637ec6db4fc23afab585df5f240b7f7c0abc8a.

* fix: remove old function

* chore: update to AstroErrors

* chore: remove unused fixture files

* play: names

* deps: js-yaml

* feat: data collection YAML with error handling

* refactor: remove console log

* refactor: code cleanup

* fix: allow mixed content to pass through glob imports

* chore: move lookupMap util to virtual-mod

* refactor: new lookupMap logic, better errors

* chore: change MixedContent title

* refactor: remove unneeded try / catch

* fix: use `ws.send` for type gen errors

* fix: bubble `ws.send` errors from astro sync

* refactor: revert verbose astroContentCollectionEntry

* fix: bad with-data package name

* fix: bad virtual mod flag

* chore: remove with-data playground

* test: data collection authors

* test: translations data collection

* fix: add `.yml` support

* refactor: mix in `.yaml` just for fun

* refactor: i18n -> translations

* chore: content-collection-references fixture

* chore: bad lockfile

* fix: bad ContentLookupMap import

* chore: revert back to astroContentCollectionEntry

* test: collection references

* fix: bad error code override

* chore: remove unused asset

* test: sync errors

* chore: remove stray console log

* chore: lock

* chore: revert with-markdoc changes

* chore: doc error states, remove bad merge code

* chore: remove bad `as any`

* chore: lint

* chore: inline ContentLookupMap comments

* chore: settings -> config

* fix: put back `defineCollection()`

* fix: entry.slug for get content collection

* chore: update get-entry-type tests

* docs: totally shorten "missing a `type`"

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

* docs: truncate share a `schema`

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

* chore: add `test:unit` and `test:unit:match`to base

* chore:  update changeset

* refactor: cleanup runtime types and inline comments

* nit: [0] instead of shift()

* refactor: `getRelativeEntryPath()` util

* chore: capitalized Collections for test:match

* nit: ?? viteId on split

* nit: separate Params obj

* chore: add try / catch on readFile

* nit: `const data`

* chore: clean up data collection exceptions

* nit: `?? ''` for search params

* chore: remove TODO on hoisted error

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-17 11:36:27 -04:00
Chris Swithinbank
fc52681ba2
Fix weird periods in NoMatchingRenderer error (#7110)
* Fix weird periods in `NoMatchingRenderer` error

* Add changeset
2023-05-17 17:30:47 +02:00
Erika
410428672e
Fix imports using ?raw and ?url not working when experimental.assets is enabled (#7108) 2023-05-17 17:07:57 +02:00
matthewp
34202616c2 [ci] format 2023-05-17 14:20:24 +00:00
Matthew Phillips
3d525efc95
Prevent removal of nested slots within islands (#7093)
* Prevent removal of nested slots within islands

* Fix build errors
2023-05-17 10:18:04 -04:00
Timo Zander
e9fc2c2213
add warn message when using unsupported file types in pages/ (#6851)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-05-17 16:02:33 +02:00
Erika
c1669c0011
feat: uncomment polymorphic type (#7069) 2023-05-17 15:38:27 +02:00
matthewp
dd8dd6b31e [ci] format 2023-05-17 13:29:18 +00:00
wulinsheng123
763ff2d1e4
HTML minification (#6706)
* TDD pattern development

* add compact property when the user run pnpm run build

* add minification for pro

* fix yaml file collision

* fix yaml collision

* fix pageage file

* optimize unit test

* fix revert code

* fix comment

* update yaml

* fix default value

* add test for dev

* Update packages/astro/test/astro-minification-html.test.js

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

* Update packages/astro/test/astro-minification-html.test.js

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

* Update packages/astro/test/astro-minification-html.test.js

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

* Update packages/astro/test/astro-minification-html.test.js

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

* Update packages/astro/test/astro-minification-html.test.js

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

* Update the docs to reflect it's opt-in

* Add tests for SSR

* Document how the tests remove the doctype line

* Expand on the changeset

* rename for slice -100

* Updates based on PR comments

* optimize description

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

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

---------

Co-authored-by: wuls <linsheng.wu@beantechs.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-17 09:26:49 -04:00
matthewp
5c3c672d26 [ci] format 2023-05-17 13:26:03 +00:00
Happydev
719002ca5b
feat: hybrid output (#6991)
* update config schema

* adapt default route `prerender` value

* adapt error message for hybrid output

* core hybrid output support

* add JSDocs for hybrid output

* dev server hybrid output support

* defer hybrid output check

* update endpoint request warning

* support `output=hybrid` in integrations

* put constant variable out of for loop

* revert: reapply back ssr plugin in ssr mode

* change `prerender` option default

* apply `prerender` by default in hybrid mode

* simplfy conditional

* update config schema

* add `isHybridOutput` helper

* more readable prerender condition

* set default prerender value if no export is found

* only add `pagesVirtualModuleId` ro rollup input in `output=static`

* don't export vite plugin

* remove unneeded check

* don't prerender when it shouldn't

* extract fallback `prerender` meta

Extract the fallback `prerender` module meta out of the `scan` function.
It shouldn't be its responsibility to handle that

* pass missing argument to function

* test: update cloudflare integration tests

* test: update tests of vercel integration

* test: update tests of node integration

* test: update tests of netlify func integration

* test: update tests of netlify edge integration

* throw when `hybrid` mode is malconfigured

* update node integraiton `output` warning

* test(WIP): skip node prerendering tests for now

* remove non-existant import

* test: bring back prerendering tests

* remove outdated comments

* test: refactor test to support windows paths

* remove outdated comments

* apply sarah review

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

* docs: `experiment.hybridOutput` jsodcs

* test: prevent import from being cached

* refactor: extract hybrid output check to  function

* add `hybrid` to output warning in adapter hooks

* chore: changeset

* add `.js` extension to import

* chore: use spaces instead of tabs for gh formating

* resolve merge conflict

* chore: move test to another file for consitency

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-05-17 09:23:20 -04:00
Neto Ramalho
2b9230ed22
adding meta description tag to basics example (#6854)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-05-17 15:17:35 +02:00
bholmesdev
d4b00b541b [ci] format 2023-05-17 13:16:36 +00:00
Ben Holmes
fb84622af0
[Markdoc] headings and heading IDs (#7095)
* deps: markdown-remark

* wip: heading-ids function

* chore: add `@astrojs/markdoc` to external

* feat: `headings` support

* fix: allow `render` config on headings

* fix: nonexistent `userConfig`

* test: headings, toc, astro component render

* docs: README

* chore: changeset

* refactor: expose Markdoc helpers from runtime

* fix: bad named exports (commonjsssss)

* refactor: defaultNodes -> nodes

* deps: github-slugger

* fix: reset slugger cache on each render

* fix: bad astroNodes import

* docs: explain headingSlugger export

* docs: add back double stringify comment

* chore: bump to minor for internal exports change
2023-05-17 09:13:10 -04:00
Bjorn Lu
c91e837e96
Add edge-light and worker to vercel edge bundling (#7103) 2023-05-17 09:06:18 -04:00
bluwy
b6935e6ac5 [ci] format 2023-05-17 12:54:20 +00:00
Bjorn Lu
73ec6f6c16
Implement custom client directives (#7074)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-17 20:51:27 +08:00
ematipico
3a7f6ae918 [ci] format 2023-05-17 10:50:02 +00:00
Emanuele Stoppa
075eee08f2
fix: middleware for API endpoints (#7106)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-05-17 11:48:02 +01:00
Bjorn Lu
826e028900
Add files field to packages (#7104) 2023-05-17 16:54:00 +08:00
Bjorn Lu
2994bc52d3
Build edge/worker runtime with webworker ssr target (#7101) 2023-05-17 15:44:20 +08:00
Erika
4516d7b22c
refactor(assets): Move generation logic out of internal.ts (#7102) 2023-05-16 16:40:32 +02:00
Bjorn Lu
6cbe5e7472
Update lockfile CI (#7105) 2023-05-16 09:35:06 -04:00
Houston (Bot)
babe7700a2
[ci] update lockfile (#7075)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-05-16 09:32:18 -04:00
bluwy
448ec017a2 [ci] format 2023-05-16 12:03:19 +00:00
Johannes Spohr
2a1fa09b31
Add workerd and worker to cloudflare adapter bundling (#7092) 2023-05-16 20:00:29 +08:00
Bjorn Lu
d7007a1a83
Fix e2e flaky tests (#7084) 2023-05-16 16:36:15 +08:00
Happydev
cd410c5eb7
Fix double prepended forward slash in certain cases (#7091)
* test: add test with no base

* fix: don't always prepend a forward slash

* chore: changeset

* `'/' + base`   ------> `prependForwardSlash(base)`
2023-05-15 08:53:34 -04:00
bluwy
f994ebdb53 [ci] format 2023-05-15 06:37:46 +00:00
Steffan
914c439bcc
Escape closing script tag when using define:vars (#7044) 2023-05-15 14:35:54 +08:00
bluwy
c6b0a6982a [ci] format 2023-05-15 06:16:32 +00:00
Nathaniel Blackburn
06ca3702f8
Inject analytics env (#6876) 2023-05-15 14:13:47 +08:00
bluwy
a1bac1d5b6 [ci] format 2023-05-15 06:12:35 +00:00
Reuben Tier
a37e67b520
RSS: Fix string validation of pubDate (#7066) 2023-05-15 14:10:32 +08:00
Houston (Bot)
d68e736545
[ci] release (#7088)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-15 01:06:45 +08:00
Happydev
c5f1275e9d
Fix create-astro regression (#7086) 2023-05-15 00:57:37 +08:00
Houston (Bot)
8d09a14a7b
[ci] release (#7077)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-12 15:00:17 -04:00
ematipico
607c3a04cc [ci] format 2023-05-12 15:02:23 +00:00
Emanuele Stoppa
8c14bffbd9
fix: don't exit the program if dependencies don't install (#7052) 2023-05-12 16:00:20 +01:00
matthewp
b064ca6539 [ci] format 2023-05-12 14:03:42 +00:00
Matthew Phillips
781f558c40
Correct handle directory finds when using base in the Node adapter (#7076) 2023-05-12 10:01:05 -04:00
Houston (Bot)
0fc026f63c
[ci] release (#7065)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-11 15:14:17 -04:00
Erika
4f1073a6a4
fix(image): Fix astro:assets from interfering with SSR query params ending with image extensions (#7055)
* fix(image): Fix `astro:assets` from interfering with SSR query params ending with image extensions

* test: add test

* nit: nit

* chore: changeset
2023-05-11 14:29:32 -04:00
Houston (Bot)
dad5e2e513
[ci] update lockfile (#7054)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-05-11 14:14:41 -04:00
Caleb Jasik
ebb40f5cb0
@astrojs/image: Add fetchpriority to Picture types (#7059)
* Add `fetchpriority` to `Picture` types

* Add changeset
2023-05-11 14:40:53 +02:00
Craig Jennings
c87d42e766
fix: don't require 'paths' object in tsconfig to alias paths (#7000) 2023-05-11 17:08:16 +08:00
Houston (Bot)
a44e755cc6
[ci] release (#7043)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-09 17:37:15 -04:00
Ben Holmes
3a9f72c7f3
[Markdoc] Validation and debugging improvements (#7045)
* feat: better validation logs

* chore: add warning to restart server on config chnage

* feat: expose Markdoc global from markdoc/config

* docs: update `nodes` reference

* chore: changeset

* docs: simplify headings explainer

* chore: ignore eslint log errors

* fix: make legacyConfig prop optional
2023-05-09 17:20:55 -04:00
Houston (Bot)
18d0632911
[ci] update lockfile (#7018)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-05-09 16:29:35 -04:00
Erika
48395c8152
fix: properly prefix endpoint path with base in SSR (#7047)
* fix: properly prefix endpoint path with base in SSR

* chore: sssss

* chore: changeset
2023-05-09 20:53:06 +02:00
bholmesdev
10e34b6d71 [ci] format 2023-05-09 16:20:37 +00:00
Ben Holmes
630f8c8ef6
[Content collections] Fast getEntryBySlug() lookup (#6916)
* feat: add generated lookup-map

* feat: wire up fast getEntryBySlug() lookup

* fix: consider frontmatter slugs

* chore: changeset

* chore: lint no-shadow

* fix: revert bad rootRelativePath change

* chore: better var name

* refactor: generated `.json` to in-memory map

* chore: removed unneeded await

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

* chore: removed unneeded await

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

* Revert "chore: removed unneeded await"

This reverts commit 1b0a8b00c2.

* fix: bad `GetEntryImport` type

* chore: remove unused variable

* refactor: for -> Promise.all

* refactor: replace duplicate parseSlug

* refactor: add cache layer

* Revert "refactor: add cache layer"

This reverts commit 1c3bfdc6b3.

* refactor: add comment, move to virtual-mod

* chore: add jsdocs

* refactor: fiiiiine no more `??=`

* fix: ignore underscore files in lookup map

* chore: add unknowncollectionerror on bad file contents

---------

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-05-09 12:17:08 -04:00
Reuben Tier
1b90a7a5d5
Fix generation for routes defined using getStaticPaths (#7029)
* Fix static site dynamic routes for sitemap integration

* Add changeset

* Update pnpm-lock

* Remove console.log
2023-05-08 16:12:41 -04:00
2432 changed files with 135543 additions and 55128 deletions

View file

@ -1,8 +0,0 @@
FROM gitpod/workspace-node
# Install latest pnpm
RUN curl -fsSL https://get.pnpm.io/install.sh | SHELL=`which bash` bash -
# Install deno in gitpod
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
RUN /home/gitpod/.deno/bin/deno completions bash > /home/gitpod/.bashrc.d/90-deno && echo 'export DENO_INSTALL="/home/gitpod/.deno"' >> /home/gitpod/.bashrc.d/90-deno && echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> /home/gitpod/.bashrc.d/90-deno

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fixed an issue where the transitions router did not work within framework components.

View file

@ -0,0 +1,5 @@
---
'@astrojs/cloudflare': patch
---
fixes `AdvancedRuntime` & `DirectoryRuntime` types to work woth Cloudflare caches

View file

@ -6,10 +6,6 @@ RUN npm install -g @playwright/test
# Install latest pnpm
RUN npm install -g pnpm
# Install deno
ENV DENO_INSTALL=/usr/local
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& curl -sSL https://dl.google.com/linux/direct/google-chrome-stable_current_$(dpkg --print-architecture).deb -o /tmp/chrome.deb \
&& apt-get -y install /tmp/chrome.deb

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/basics",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/blog",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -1,34 +0,0 @@
{
"name": "Deno",
"build": {
"dockerfile": "../examples.deno.Dockerfile"
},
"workspaceFolder": "/workspaces/astro/examples/deno",
"portsAttributes": {
"3000": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",
"waitFor": "postCreateCommand",
"postAttachCommand": {
"Server": "pnpm start --host"
},
"customizations": {
"codespaces": {
"openFiles": ["src/pages/index.astro"]
},
"vscode": {
"extensions": ["astro-build.astro-vscode", "esbenp.prettier-vscode"]
}
}
}

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/docs",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -1,10 +0,0 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:0-18
# Install latest pnpm
RUN npm install -g pnpm
# Install deno
ENV DENO_INSTALL=/usr/local
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
COPY example-welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/framework-alpine",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/framework-lit",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/framework-multiple",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/framework-preact",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/framework-react",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/framework-solid",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/framework-svelte",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/framework-vue",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/hackernews",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/minimal",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/non-html-pages",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/portfolio",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/ssr",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/with-markdown-plugins",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/with-markdown-shiki",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/with-mdx",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/with-nanostores",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/with-tailwindcss",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/with-vite-plugin-pwa",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -7,13 +7,13 @@
"workspaceFolder": "/workspaces/astro/examples/with-vitest",
"portsAttributes": {
"3000": {
"4321": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [3000],
"forwardPorts": [4321],
"postCreateCommand": "pnpm install && cd /workspaces/astro && pnpm run build",

View file

@ -1,7 +1,7 @@
**/*.d.ts
packages/**/*.min.js
packages/**/dist/**/*
packages/**/fixtures/**/*
packages/webapi/**/*
packages/astro/vendor/vite/**/*
examples/**/*
scripts/**/*

View file

@ -1,25 +1,74 @@
const { builtinModules } = require('module');
module.exports = {
extends: [
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked',
'prettier',
],
parser: '@typescript-eslint/parser',
extends: ['plugin:@typescript-eslint/recommended', 'prettier'],
parserOptions: {
project: ['./packages/*/tsconfig.json', './tsconfig.eslint.json'],
tsconfigRootDir: __dirname,
},
plugins: ['@typescript-eslint', 'prettier', 'no-only-tests'],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-this-alias': 'off',
'no-console': 'warn',
'prefer-const': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
// These off/configured-differently-by-default rules fit well for us
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', ignoreRestSiblings: true },
],
'no-only-tests/no-only-tests': 'error',
'@typescript-eslint/no-shadow': ['error'],
'no-console': 'warn',
// Todo: do we want these?
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/class-literal-property-style': 'off',
'@typescript-eslint/consistent-indexed-object-style': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/dot-notation': 'off',
'@typescript-eslint/no-base-to-string': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/no-redundant-type-constituents': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/prefer-optional-chain': 'off',
'@typescript-eslint/prefer-string-starts-ends-with': 'off',
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/sort-type-constituents': 'off',
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/no-explicit-any': 'off',
// These rules enabled by the preset configs don't work well for us
'@typescript-eslint/await-thenable': 'off',
'prefer-const': 'off',
},
overrides: [
{
// Ensure Node builtins aren't included in Astro's server runtime
files: ['packages/astro/src/runtime/**/*.ts'],
rules: {
'no-restricted-imports': [
'error',
{
paths: [...builtinModules],
patterns: ['node:*'],
},
],
},
},
{
files: ['packages/**/test/*.js', 'packages/**/*.js'],
env: {
@ -41,6 +90,7 @@ module.exports = {
{
files: ['benchmark/**/*.js'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'no-console': 'off',
},
},

View file

@ -10,42 +10,20 @@ body:
Thank you for taking the time to file a bug report! Please fill out this form as completely as possible.
✅ I am using the **latest version of Astro** and all plugins.
✅ I am using a version of Node that supports ESM (`v14.18.0+`, or `v16.12.0+`)
- type: input
id: astro-version
✅ I am using a version of Node that Astro supports (`>=18.14.1`)
- type: textarea
id: astro-info
attributes:
label: What version of `astro` are you using?
placeholder: 0.0.0
validations:
required: true
- type: input
id: ssr-adapter
attributes:
label: Are you using an SSR adapter? If so, which one?
placeholder: None, or Netlify, Vercel, Cloudflare, etc.
validations:
required: true
- type: input
id: package-manager
attributes:
label: What package manager are you using?
placeholder: npm, yarn, pnpm
validations:
required: true
- type: input
id: os
attributes:
label: What operating system are you using?
placeholder: Mac, Windows, Linux
label: Astro Info
description: Run the command `astro info` in your terminal and paste the output here. Please review the data before submitting in case there is any sensitive information you don't want to share.
render: block
validations:
required: true
- type: input
id: browser
attributes:
label: What browser are you using?
label: If this issue only occurs in one browser, which browser is a problem?
placeholder: Chrome, Firefox, Safari
validations:
required: true
- type: textarea
id: bug-description
attributes:
@ -53,6 +31,13 @@ body:
description: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
id: bug-expectation
attributes:
label: What's the expected result?
description: Describe what you expect to happen.
validations:
required: true
- type: input
id: bug-reproduction
attributes:

View file

@ -4,7 +4,7 @@ contact_links:
url: https://github.com/withastro/docs
about: File an issue or make an improvement to the docs website.
- name: 💡 Ideas for New Features, Improvements and RFCs
url: https://github.com/withastro/rfcs/discussions
url: https://github.com/withastro/roadmap/discussions
about: Propose and discuss future improvements to Astro
- name: 👾 Chat
url: https://astro.build/chat

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 2.1 MiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

View file

@ -1,11 +1 @@
<svg width="240" height="40" viewBox="0 0 240 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M31 40L27 29.4L23 40H21L26 26.8L22 16.3L13 40H11L21 13.6L16.5 1.8L2 40H0L15.2 0H17.8L22 11L26.2 0H28.8L32.5 9.7L36.2 0H38.8L43 11L47.2 0H49.8L65 40H63L48.5 1.8L44 13.6L54 40H52L43 16.3L39 26.8L44 40H42L38 29.4L34 40H31ZM32.5 15L28 26.7L32.5 38.6L37 26.8L32.5 15ZM27.5 1.8L23 13.6L27 24.2L31.5 12.3L27.5 1.8ZM37.5 1.8L33.5 12.3L38 24.2L42 13.6L37.5 1.8Z" fill="#FFFFFF"/>
<path d="M97.7259 17.956V29H100.432V13.6H97.5499L92.8639 20.882L88.1779 13.6H85.2959V29H87.9579V18L92.7759 25.216H92.8639L97.7259 17.956Z" fill="#FFFFFF"/>
<path d="M121.687 21.278C121.687 20.1927 121.489 19.166 121.093 18.198C120.697 17.23 120.147 16.3867 119.443 15.668C118.739 14.9493 117.896 14.3847 116.913 13.974C115.931 13.5487 114.845 13.336 113.657 13.336C112.469 13.336 111.384 13.5487 110.401 13.974C109.419 14.3993 108.568 14.9787 107.849 15.712C107.131 16.4307 106.573 17.274 106.177 18.242C105.781 19.21 105.583 20.2367 105.583 21.322C105.583 22.4073 105.781 23.434 106.177 24.402C106.573 25.37 107.123 26.2133 107.827 26.932C108.531 27.6507 109.375 28.2227 110.357 28.648C111.34 29.0587 112.425 29.264 113.613 29.264C114.801 29.264 115.887 29.0513 116.869 28.626C117.852 28.2007 118.703 27.6287 119.421 26.91C120.14 26.1767 120.697 25.326 121.093 24.358C121.489 23.39 121.687 22.3633 121.687 21.278ZM118.849 21.322C118.849 22.07 118.717 22.7813 118.453 23.456C118.204 24.116 117.852 24.6953 117.397 25.194C116.943 25.678 116.393 26.0667 115.747 26.36C115.117 26.6387 114.42 26.778 113.657 26.778C112.895 26.778 112.191 26.6313 111.545 26.338C110.9 26.0447 110.343 25.6487 109.873 25.15C109.419 24.6513 109.059 24.072 108.795 23.412C108.546 22.7373 108.421 22.026 108.421 21.278C108.421 20.53 108.546 19.826 108.795 19.166C109.059 18.4913 109.419 17.912 109.873 17.428C110.328 16.9293 110.871 16.5407 111.501 16.262C112.147 15.9687 112.851 15.822 113.613 15.822C114.376 15.822 115.08 15.9687 115.725 16.262C116.371 16.5553 116.921 16.9513 117.375 17.45C117.845 17.9487 118.204 18.5353 118.453 19.21C118.717 19.87 118.849 20.574 118.849 21.322Z" fill="#FFFFFF"/>
<path d="M137.585 24.248L129.335 13.6H126.827V29H129.489V18.044L137.981 29H140.247V13.6H137.585V24.248Z" fill="#FFFFFF"/>
<path d="M161.5 21.278C161.5 20.1927 161.302 19.166 160.906 18.198C160.51 17.23 159.96 16.3867 159.256 15.668C158.552 14.9493 157.708 14.3847 156.726 13.974C155.743 13.5487 154.658 13.336 153.47 13.336C152.282 13.336 151.196 13.5487 150.214 13.974C149.231 14.3993 148.38 14.9787 147.662 15.712C146.943 16.4307 146.386 17.274 145.99 18.242C145.594 19.21 145.396 20.2367 145.396 21.322C145.396 22.4073 145.594 23.434 145.99 24.402C146.386 25.37 146.936 26.2133 147.64 26.932C148.344 27.6507 149.187 28.2227 150.17 28.648C151.152 29.0587 152.238 29.264 153.426 29.264C154.614 29.264 155.699 29.0513 156.682 28.626C157.664 28.2007 158.515 27.6287 159.234 26.91C159.952 26.1767 160.51 25.326 160.906 24.358C161.302 23.39 161.5 22.3633 161.5 21.278ZM158.662 21.322C158.662 22.07 158.53 22.7813 158.266 23.456C158.016 24.116 157.664 24.6953 157.21 25.194C156.755 25.678 156.205 26.0667 155.56 26.36C154.929 26.6387 154.232 26.778 153.47 26.778C152.707 26.778 152.003 26.6313 151.358 26.338C150.712 26.0447 150.155 25.6487 149.686 25.15C149.231 24.6513 148.872 24.072 148.608 23.412C148.358 22.7373 148.234 22.026 148.234 21.278C148.234 20.53 148.358 19.826 148.608 19.166C148.872 18.4913 149.231 17.912 149.686 17.428C150.14 16.9293 150.683 16.5407 151.314 16.262C151.959 15.9687 152.663 15.822 153.426 15.822C154.188 15.822 154.892 15.9687 155.538 16.262C156.183 16.5553 156.733 16.9513 157.188 17.45C157.657 17.9487 158.016 18.5353 158.266 19.21C158.53 19.87 158.662 20.574 158.662 21.322Z" fill="#FFFFFF"/>
<path d="M180.367 26.866V20.398H173.811V22.752H177.749V25.634C177.28 25.986 176.722 26.272 176.077 26.492C175.446 26.6973 174.764 26.8 174.031 26.8C173.239 26.8 172.52 26.6607 171.875 26.382C171.244 26.1033 170.694 25.722 170.225 25.238C169.77 24.7393 169.418 24.1527 169.169 23.478C168.92 22.8033 168.795 22.07 168.795 21.278C168.795 20.53 168.92 19.826 169.169 19.166C169.433 18.506 169.785 17.9267 170.225 17.428C170.68 16.9293 171.208 16.5407 171.809 16.262C172.425 15.9687 173.085 15.822 173.789 15.822C174.273 15.822 174.713 15.866 175.109 15.954C175.52 16.0273 175.894 16.1373 176.231 16.284C176.568 16.416 176.891 16.5847 177.199 16.79C177.507 16.9953 177.808 17.2227 178.101 17.472L179.817 15.426C179.421 15.0887 179.01 14.7953 178.585 14.546C178.174 14.282 177.734 14.062 177.265 13.886C176.796 13.71 176.282 13.578 175.725 13.49C175.182 13.3873 174.574 13.336 173.899 13.336C172.74 13.336 171.67 13.5487 170.687 13.974C169.719 14.3993 168.883 14.9787 168.179 15.712C167.475 16.4307 166.925 17.274 166.529 18.242C166.148 19.21 165.957 20.2367 165.957 21.322C165.957 22.4513 166.148 23.5 166.529 24.468C166.91 25.436 167.446 26.2793 168.135 26.998C168.839 27.702 169.682 28.2593 170.665 28.67C171.648 29.066 172.74 29.264 173.943 29.264C174.618 29.264 175.263 29.198 175.879 29.066C176.495 28.9487 177.067 28.78 177.595 28.56C178.138 28.34 178.636 28.0833 179.091 27.79C179.56 27.4967 179.986 27.1887 180.367 26.866Z" fill="#FFFFFF"/>
<path d="M198.829 29L194.671 23.17C195.214 23.0233 195.705 22.818 196.145 22.554C196.6 22.2753 196.988 21.9453 197.311 21.564C197.634 21.168 197.883 20.7207 198.059 20.222C198.25 19.7087 198.345 19.1293 198.345 18.484C198.345 17.736 198.213 17.0613 197.949 16.46C197.685 15.844 197.304 15.3307 196.805 14.92C196.321 14.4947 195.72 14.172 195.001 13.952C194.297 13.7173 193.505 13.6 192.625 13.6H185.761V29H188.467V23.632H191.855L195.639 29H198.829ZM195.595 18.638C195.595 19.43 195.309 20.0607 194.737 20.53C194.165 20.9993 193.395 21.234 192.427 21.234H188.467V16.064H192.405C193.417 16.064 194.202 16.284 194.759 16.724C195.316 17.1493 195.595 17.7873 195.595 18.638Z" fill="#FFFFFF"/>
<path d="M211.934 13.49H209.426L202.65 29H205.422L207.006 25.282H214.288L215.85 29H218.71L211.934 13.49ZM213.298 22.884H207.996L210.636 16.724L213.298 22.884Z" fill="#FFFFFF"/>
<path d="M236.31 17.956V29H239.016V13.6H236.134L231.448 20.882L226.762 13.6H223.88V29H226.542V18L231.36 25.216H231.448L236.31 17.956Z" fill="#FFFFFF"/>
</svg>
<svg fill="none" height="40" viewBox="0 0 240 40" width="240" xmlns="http://www.w3.org/2000/svg"><g fill="#fff"><path clip-rule="evenodd" d="m31 40-4-10.6-4 10.6h-2l5-13.2-4-10.5-9 23.7h-2l10-26.4-4.5-11.8-14.5 38.2h-2l15.2-40h2.6l4.2 11 4.2-11h2.6l3.7 9.7 3.7-9.7h2.6l4.2 11 4.2-11h2.6l15.2 40h-2l-14.5-38.2-4.5 11.8 10 26.4h-2l-9-23.7-4 10.5 5 13.2h-2l-4-10.6-4 10.6zm1.5-25-4.5 11.7 4.5 11.9 4.5-11.8zm-5-13.2-4.5 11.8 4 10.6 4.5-11.9zm10 0-4 10.5 4.5 11.9 4-10.6z" fill-rule="evenodd"/><path d="m97.7259 17.956v11.044h2.7061v-15.4h-2.8821l-4.686 7.282-4.686-7.282h-2.882v15.4h2.662v-11l4.818 7.216h.088z"/><path d="m121.687 21.278c0-1.0853-.198-2.112-.594-3.08s-.946-1.8113-1.65-2.53-1.547-1.2833-2.53-1.694c-.982-.4253-2.068-.638-3.256-.638s-2.273.2127-3.256.638c-.982.4253-1.833 1.0047-2.552 1.738-.718.7187-1.276 1.562-1.672 2.53s-.594 1.9947-.594 3.08.198 2.112.594 3.08.946 1.8113 1.65 2.53 1.548 1.2907 2.53 1.716c.983.4107 2.068.616 3.256.616s2.274-.2127 3.256-.638c.983-.4253 1.834-.9973 2.552-1.716.719-.7333 1.276-1.584 1.672-2.552s.594-1.9947.594-3.08zm-2.838.044c0 .748-.132 1.4593-.396 2.134-.249.66-.601 1.2393-1.056 1.738-.454.484-1.004.8727-1.65 1.166-.63.2787-1.327.418-2.09.418-.762 0-1.466-.1467-2.112-.44-.645-.2933-1.202-.6893-1.672-1.188-.454-.4987-.814-1.078-1.078-1.738-.249-.6747-.374-1.386-.374-2.134s.125-1.452.374-2.112c.264-.6747.624-1.254 1.078-1.738.455-.4987.998-.8873 1.628-1.166.646-.2933 1.35-.44 2.112-.44.763 0 1.467.1467 2.112.44.646.2933 1.196.6893 1.65 1.188.47.4987.829 1.0853 1.078 1.76.264.66.396 1.364.396 2.112z"/><path d="m137.585 24.248-8.25-10.648h-2.508v15.4h2.662v-10.956l8.492 10.956h2.266v-15.4h-2.662z"/><path d="m161.5 21.278c0-1.0853-.198-2.112-.594-3.08s-.946-1.8113-1.65-2.53-1.548-1.2833-2.53-1.694c-.983-.4253-2.068-.638-3.256-.638s-2.274.2127-3.256.638c-.983.4253-1.834 1.0047-2.552 1.738-.719.7187-1.276 1.562-1.672 2.53s-.594 1.9947-.594 3.08.198 2.112.594 3.08.946 1.8113 1.65 2.53 1.547 1.2907 2.53 1.716c.982.4107 2.068.616 3.256.616s2.273-.2127 3.256-.638c.982-.4253 1.833-.9973 2.552-1.716.718-.7333 1.276-1.584 1.672-2.552s.594-1.9947.594-3.08zm-2.838.044c0 .748-.132 1.4593-.396 2.134-.25.66-.602 1.2393-1.056 1.738-.455.484-1.005.8727-1.65 1.166-.631.2787-1.328.418-2.09.418-.763 0-1.467-.1467-2.112-.44-.646-.2933-1.203-.6893-1.672-1.188-.455-.4987-.814-1.078-1.078-1.738-.25-.6747-.374-1.386-.374-2.134s.124-1.452.374-2.112c.264-.6747.623-1.254 1.078-1.738.454-.4987.997-.8873 1.628-1.166.645-.2933 1.349-.44 2.112-.44.762 0 1.466.1467 2.112.44.645.2933 1.195.6893 1.65 1.188.469.4987.828 1.0853 1.078 1.76.264.66.396 1.364.396 2.112z"/><path d="m180.367 26.866v-6.468h-6.556v2.354h3.938v2.882c-.469.352-1.027.638-1.672.858-.631.2053-1.313.308-2.046.308-.792 0-1.511-.1393-2.156-.418-.631-.2787-1.181-.66-1.65-1.144-.455-.4987-.807-1.0853-1.056-1.76s-.374-1.408-.374-2.2c0-.748.125-1.452.374-2.112.264-.66.616-1.2393 1.056-1.738.455-.4987.983-.8873 1.584-1.166.616-.2933 1.276-.44 1.98-.44.484 0 .924.044 1.32.132.411.0733.785.1833 1.122.33.337.132.66.3007.968.506s.609.4327.902.682l1.716-2.046c-.396-.3373-.807-.6307-1.232-.88-.411-.264-.851-.484-1.32-.66s-.983-.308-1.54-.396c-.543-.1027-1.151-.154-1.826-.154-1.159 0-2.229.2127-3.212.638-.968.4253-1.804 1.0047-2.508 1.738-.704.7187-1.254 1.562-1.65 2.53-.381.968-.572 1.9947-.572 3.08 0 1.1293.191 2.178.572 3.146s.917 1.8113 1.606 2.53c.704.704 1.547 1.2613 2.53 1.672.983.396 2.075.594 3.278.594.675 0 1.32-.066 1.936-.198.616-.1173 1.188-.286 1.716-.506.543-.22 1.041-.4767 1.496-.77.469-.2933.895-.6013 1.276-.924z"/><path d="m198.829 29-4.158-5.83c.543-.1467 1.034-.352 1.474-.616.455-.2787.843-.6087 1.166-.99.323-.396.572-.8433.748-1.342.191-.5133.286-1.0927.286-1.738 0-.748-.132-1.4227-.396-2.024-.264-.616-.645-1.1293-1.144-1.54-.484-.4253-1.085-.748-1.804-.968-.704-.2347-1.496-.352-2.376-.352h-6.864v15.4h2.706v-5.368h3.388l3.784 5.368zm-3.234-10.362c0 .792-.286 1.4227-.858 1.892s-1.342.704-2.31.704h-3.96v-5.17h3.938c1.012 0 1.797.22 2.354.66.557.4253.836 1.0633.836 1.914z"/><path d="m211.934 13.49h-2.508l-6.776 15.51h2.772l1.584-3.718h7.282l1.562 3.718h2.86zm1.364 9.394h-5.302l2.64-6.16z"/><path d="m236.31 17.956v11.044h2.706v-15.4h-2.882l-4.686 7.282-4.686-7.282h-2.882v15.4h2.662v-11l4.818 7.216h.088z"/></g></svg>

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

@ -1,11 +1 @@
<svg width="240" height="40" viewBox="0 0 240 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M31 40L27 29.4L23 40H21L26 26.8L22 16.3L13 40H11L21 13.6L16.5 1.8L2 40H0L15.2 0H17.8L22 11L26.2 0H28.8L32.5 9.7L36.2 0H38.8L43 11L47.2 0H49.8L65 40H63L48.5 1.8L44 13.6L54 40H52L43 16.3L39 26.8L44 40H42L38 29.4L34 40H31ZM32.5 15L28 26.7L32.5 38.6L37 26.8L32.5 15ZM27.5 1.8L23 13.6L27 24.2L31.5 12.3L27.5 1.8ZM37.5 1.8L33.5 12.3L38 24.2L42 13.6L37.5 1.8Z" fill="#000000"/>
<path d="M97.7259 17.956V29H100.432V13.6H97.5499L92.8639 20.882L88.1779 13.6H85.2959V29H87.9579V18L92.7759 25.216H92.8639L97.7259 17.956Z" fill="#000000"/>
<path d="M121.687 21.278C121.687 20.1927 121.489 19.166 121.093 18.198C120.697 17.23 120.147 16.3867 119.443 15.668C118.739 14.9493 117.896 14.3847 116.913 13.974C115.931 13.5487 114.845 13.336 113.657 13.336C112.469 13.336 111.384 13.5487 110.401 13.974C109.419 14.3993 108.568 14.9787 107.849 15.712C107.131 16.4307 106.573 17.274 106.177 18.242C105.781 19.21 105.583 20.2367 105.583 21.322C105.583 22.4073 105.781 23.434 106.177 24.402C106.573 25.37 107.123 26.2133 107.827 26.932C108.531 27.6507 109.375 28.2227 110.357 28.648C111.34 29.0587 112.425 29.264 113.613 29.264C114.801 29.264 115.887 29.0513 116.869 28.626C117.852 28.2007 118.703 27.6287 119.421 26.91C120.14 26.1767 120.697 25.326 121.093 24.358C121.489 23.39 121.687 22.3633 121.687 21.278ZM118.849 21.322C118.849 22.07 118.717 22.7813 118.453 23.456C118.204 24.116 117.852 24.6953 117.397 25.194C116.943 25.678 116.393 26.0667 115.747 26.36C115.117 26.6387 114.42 26.778 113.657 26.778C112.895 26.778 112.191 26.6313 111.545 26.338C110.9 26.0447 110.343 25.6487 109.873 25.15C109.419 24.6513 109.059 24.072 108.795 23.412C108.546 22.7373 108.421 22.026 108.421 21.278C108.421 20.53 108.546 19.826 108.795 19.166C109.059 18.4913 109.419 17.912 109.873 17.428C110.328 16.9293 110.871 16.5407 111.501 16.262C112.147 15.9687 112.851 15.822 113.613 15.822C114.376 15.822 115.08 15.9687 115.725 16.262C116.371 16.5553 116.921 16.9513 117.375 17.45C117.845 17.9487 118.204 18.5353 118.453 19.21C118.717 19.87 118.849 20.574 118.849 21.322Z" fill="#000000"/>
<path d="M137.585 24.248L129.335 13.6H126.827V29H129.489V18.044L137.981 29H140.247V13.6H137.585V24.248Z" fill="#000000"/>
<path d="M161.5 21.278C161.5 20.1927 161.302 19.166 160.906 18.198C160.51 17.23 159.96 16.3867 159.256 15.668C158.552 14.9493 157.708 14.3847 156.726 13.974C155.743 13.5487 154.658 13.336 153.47 13.336C152.282 13.336 151.196 13.5487 150.214 13.974C149.231 14.3993 148.38 14.9787 147.662 15.712C146.943 16.4307 146.386 17.274 145.99 18.242C145.594 19.21 145.396 20.2367 145.396 21.322C145.396 22.4073 145.594 23.434 145.99 24.402C146.386 25.37 146.936 26.2133 147.64 26.932C148.344 27.6507 149.187 28.2227 150.17 28.648C151.152 29.0587 152.238 29.264 153.426 29.264C154.614 29.264 155.699 29.0513 156.682 28.626C157.664 28.2007 158.515 27.6287 159.234 26.91C159.952 26.1767 160.51 25.326 160.906 24.358C161.302 23.39 161.5 22.3633 161.5 21.278ZM158.662 21.322C158.662 22.07 158.53 22.7813 158.266 23.456C158.016 24.116 157.664 24.6953 157.21 25.194C156.755 25.678 156.205 26.0667 155.56 26.36C154.929 26.6387 154.232 26.778 153.47 26.778C152.707 26.778 152.003 26.6313 151.358 26.338C150.712 26.0447 150.155 25.6487 149.686 25.15C149.231 24.6513 148.872 24.072 148.608 23.412C148.358 22.7373 148.234 22.026 148.234 21.278C148.234 20.53 148.358 19.826 148.608 19.166C148.872 18.4913 149.231 17.912 149.686 17.428C150.14 16.9293 150.683 16.5407 151.314 16.262C151.959 15.9687 152.663 15.822 153.426 15.822C154.188 15.822 154.892 15.9687 155.538 16.262C156.183 16.5553 156.733 16.9513 157.188 17.45C157.657 17.9487 158.016 18.5353 158.266 19.21C158.53 19.87 158.662 20.574 158.662 21.322Z" fill="#000000"/>
<path d="M180.367 26.866V20.398H173.811V22.752H177.749V25.634C177.28 25.986 176.722 26.272 176.077 26.492C175.446 26.6973 174.764 26.8 174.031 26.8C173.239 26.8 172.52 26.6607 171.875 26.382C171.244 26.1033 170.694 25.722 170.225 25.238C169.77 24.7393 169.418 24.1527 169.169 23.478C168.92 22.8033 168.795 22.07 168.795 21.278C168.795 20.53 168.92 19.826 169.169 19.166C169.433 18.506 169.785 17.9267 170.225 17.428C170.68 16.9293 171.208 16.5407 171.809 16.262C172.425 15.9687 173.085 15.822 173.789 15.822C174.273 15.822 174.713 15.866 175.109 15.954C175.52 16.0273 175.894 16.1373 176.231 16.284C176.568 16.416 176.891 16.5847 177.199 16.79C177.507 16.9953 177.808 17.2227 178.101 17.472L179.817 15.426C179.421 15.0887 179.01 14.7953 178.585 14.546C178.174 14.282 177.734 14.062 177.265 13.886C176.796 13.71 176.282 13.578 175.725 13.49C175.182 13.3873 174.574 13.336 173.899 13.336C172.74 13.336 171.67 13.5487 170.687 13.974C169.719 14.3993 168.883 14.9787 168.179 15.712C167.475 16.4307 166.925 17.274 166.529 18.242C166.148 19.21 165.957 20.2367 165.957 21.322C165.957 22.4513 166.148 23.5 166.529 24.468C166.91 25.436 167.446 26.2793 168.135 26.998C168.839 27.702 169.682 28.2593 170.665 28.67C171.648 29.066 172.74 29.264 173.943 29.264C174.618 29.264 175.263 29.198 175.879 29.066C176.495 28.9487 177.067 28.78 177.595 28.56C178.138 28.34 178.636 28.0833 179.091 27.79C179.56 27.4967 179.986 27.1887 180.367 26.866Z" fill="#000000"/>
<path d="M198.829 29L194.671 23.17C195.214 23.0233 195.705 22.818 196.145 22.554C196.6 22.2753 196.988 21.9453 197.311 21.564C197.634 21.168 197.883 20.7207 198.059 20.222C198.25 19.7087 198.345 19.1293 198.345 18.484C198.345 17.736 198.213 17.0613 197.949 16.46C197.685 15.844 197.304 15.3307 196.805 14.92C196.321 14.4947 195.72 14.172 195.001 13.952C194.297 13.7173 193.505 13.6 192.625 13.6H185.761V29H188.467V23.632H191.855L195.639 29H198.829ZM195.595 18.638C195.595 19.43 195.309 20.0607 194.737 20.53C194.165 20.9993 193.395 21.234 192.427 21.234H188.467V16.064H192.405C193.417 16.064 194.202 16.284 194.759 16.724C195.316 17.1493 195.595 17.7873 195.595 18.638Z" fill="#000000"/>
<path d="M211.934 13.49H209.426L202.65 29H205.422L207.006 25.282H214.288L215.85 29H218.71L211.934 13.49ZM213.298 22.884H207.996L210.636 16.724L213.298 22.884Z" fill="#000000"/>
<path d="M236.31 17.956V29H239.016V13.6H236.134L231.448 20.882L226.762 13.6H223.88V29H226.542V18L231.36 25.216H231.448L236.31 17.956Z" fill="#000000"/>
</svg>
<svg fill="none" height="40" viewBox="0 0 240 40" width="240" xmlns="http://www.w3.org/2000/svg"><g fill="#000"><path clip-rule="evenodd" d="m31 40-4-10.6-4 10.6h-2l5-13.2-4-10.5-9 23.7h-2l10-26.4-4.5-11.8-14.5 38.2h-2l15.2-40h2.6l4.2 11 4.2-11h2.6l3.7 9.7 3.7-9.7h2.6l4.2 11 4.2-11h2.6l15.2 40h-2l-14.5-38.2-4.5 11.8 10 26.4h-2l-9-23.7-4 10.5 5 13.2h-2l-4-10.6-4 10.6zm1.5-25-4.5 11.7 4.5 11.9 4.5-11.8zm-5-13.2-4.5 11.8 4 10.6 4.5-11.9zm10 0-4 10.5 4.5 11.9 4-10.6z" fill-rule="evenodd"/><path d="m97.7259 17.956v11.044h2.7061v-15.4h-2.8821l-4.686 7.282-4.686-7.282h-2.882v15.4h2.662v-11l4.818 7.216h.088z"/><path d="m121.687 21.278c0-1.0853-.198-2.112-.594-3.08s-.946-1.8113-1.65-2.53-1.547-1.2833-2.53-1.694c-.982-.4253-2.068-.638-3.256-.638s-2.273.2127-3.256.638c-.982.4253-1.833 1.0047-2.552 1.738-.718.7187-1.276 1.562-1.672 2.53s-.594 1.9947-.594 3.08.198 2.112.594 3.08.946 1.8113 1.65 2.53 1.548 1.2907 2.53 1.716c.983.4107 2.068.616 3.256.616s2.274-.2127 3.256-.638c.983-.4253 1.834-.9973 2.552-1.716.719-.7333 1.276-1.584 1.672-2.552s.594-1.9947.594-3.08zm-2.838.044c0 .748-.132 1.4593-.396 2.134-.249.66-.601 1.2393-1.056 1.738-.454.484-1.004.8727-1.65 1.166-.63.2787-1.327.418-2.09.418-.762 0-1.466-.1467-2.112-.44-.645-.2933-1.202-.6893-1.672-1.188-.454-.4987-.814-1.078-1.078-1.738-.249-.6747-.374-1.386-.374-2.134s.125-1.452.374-2.112c.264-.6747.624-1.254 1.078-1.738.455-.4987.998-.8873 1.628-1.166.646-.2933 1.35-.44 2.112-.44.763 0 1.467.1467 2.112.44.646.2933 1.196.6893 1.65 1.188.47.4987.829 1.0853 1.078 1.76.264.66.396 1.364.396 2.112z"/><path d="m137.585 24.248-8.25-10.648h-2.508v15.4h2.662v-10.956l8.492 10.956h2.266v-15.4h-2.662z"/><path d="m161.5 21.278c0-1.0853-.198-2.112-.594-3.08s-.946-1.8113-1.65-2.53-1.548-1.2833-2.53-1.694c-.983-.4253-2.068-.638-3.256-.638s-2.274.2127-3.256.638c-.983.4253-1.834 1.0047-2.552 1.738-.719.7187-1.276 1.562-1.672 2.53s-.594 1.9947-.594 3.08.198 2.112.594 3.08.946 1.8113 1.65 2.53 1.547 1.2907 2.53 1.716c.982.4107 2.068.616 3.256.616s2.273-.2127 3.256-.638c.982-.4253 1.833-.9973 2.552-1.716.718-.7333 1.276-1.584 1.672-2.552s.594-1.9947.594-3.08zm-2.838.044c0 .748-.132 1.4593-.396 2.134-.25.66-.602 1.2393-1.056 1.738-.455.484-1.005.8727-1.65 1.166-.631.2787-1.328.418-2.09.418-.763 0-1.467-.1467-2.112-.44-.646-.2933-1.203-.6893-1.672-1.188-.455-.4987-.814-1.078-1.078-1.738-.25-.6747-.374-1.386-.374-2.134s.124-1.452.374-2.112c.264-.6747.623-1.254 1.078-1.738.454-.4987.997-.8873 1.628-1.166.645-.2933 1.349-.44 2.112-.44.762 0 1.466.1467 2.112.44.645.2933 1.195.6893 1.65 1.188.469.4987.828 1.0853 1.078 1.76.264.66.396 1.364.396 2.112z"/><path d="m180.367 26.866v-6.468h-6.556v2.354h3.938v2.882c-.469.352-1.027.638-1.672.858-.631.2053-1.313.308-2.046.308-.792 0-1.511-.1393-2.156-.418-.631-.2787-1.181-.66-1.65-1.144-.455-.4987-.807-1.0853-1.056-1.76s-.374-1.408-.374-2.2c0-.748.125-1.452.374-2.112.264-.66.616-1.2393 1.056-1.738.455-.4987.983-.8873 1.584-1.166.616-.2933 1.276-.44 1.98-.44.484 0 .924.044 1.32.132.411.0733.785.1833 1.122.33.337.132.66.3007.968.506s.609.4327.902.682l1.716-2.046c-.396-.3373-.807-.6307-1.232-.88-.411-.264-.851-.484-1.32-.66s-.983-.308-1.54-.396c-.543-.1027-1.151-.154-1.826-.154-1.159 0-2.229.2127-3.212.638-.968.4253-1.804 1.0047-2.508 1.738-.704.7187-1.254 1.562-1.65 2.53-.381.968-.572 1.9947-.572 3.08 0 1.1293.191 2.178.572 3.146s.917 1.8113 1.606 2.53c.704.704 1.547 1.2613 2.53 1.672.983.396 2.075.594 3.278.594.675 0 1.32-.066 1.936-.198.616-.1173 1.188-.286 1.716-.506.543-.22 1.041-.4767 1.496-.77.469-.2933.895-.6013 1.276-.924z"/><path d="m198.829 29-4.158-5.83c.543-.1467 1.034-.352 1.474-.616.455-.2787.843-.6087 1.166-.99.323-.396.572-.8433.748-1.342.191-.5133.286-1.0927.286-1.738 0-.748-.132-1.4227-.396-2.024-.264-.616-.645-1.1293-1.144-1.54-.484-.4253-1.085-.748-1.804-.968-.704-.2347-1.496-.352-2.376-.352h-6.864v15.4h2.706v-5.368h3.388l3.784 5.368zm-3.234-10.362c0 .792-.286 1.4227-.858 1.892s-1.342.704-2.31.704h-3.96v-5.17h3.938c1.012 0 1.797.22 2.354.66.557.4253.836 1.0633.836 1.914z"/><path d="m211.934 13.49h-2.508l-6.776 15.51h2.772l1.584-3.718h7.282l1.562 3.718h2.86zm1.364 9.394h-5.302l2.64-6.16z"/><path d="m236.31 17.956v11.044h2.706v-15.4h-2.882l-4.686 7.282-4.686-7.282h-2.882v15.4h2.662v-11l4.818 7.216h.088z"/></g></svg>

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View file

@ -1 +1 @@
<svg viewBox="0 0 147 40" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><radialGradient id="a" cx="-779.0521" cy="1839.7205" gradientTransform="matrix(0 38.301 44.1228 0 -81154.2578 29839.2441)" gradientUnits="userSpaceOnUse" r="1.0011"><stop offset="0" stop-color="#20c6b7"/><stop offset="1" stop-color="#4d9abf"/></radialGradient><path clip-rule="evenodd" d="m53.37 12.98.12 2.2c1.4-1.7 3.24-2.55 5.53-2.55 3.95 0 5.96 2.27 6.03 6.8v12.57h-4.26v-12.32c0-1.21-.26-2.1-.78-2.68s-1.37-.87-2.55-.87c-1.72 0-3 .78-3.84 2.34v13.53h-4.26v-19.02zm24.38 19.37c-2.7 0-4.89-.85-6.57-2.56-1.68-1.7-2.52-3.98-2.52-6.81v-.53c0-1.9.36-3.59 1.1-5.09.73-1.49 1.76-2.66 3.08-3.49s2.79-1.25 4.42-1.25c2.58 0 4.58.83 5.99 2.48s2.11 3.99 2.11 7.01v1.72h-12.4c.13 1.57.65 2.81 1.57 3.73s2.07 1.37 3.46 1.37c1.95 0 3.54-.79 4.77-2.37l2.3 2.2c-.76 1.14-1.77 2.02-3.04 2.65s-2.69.94-4.27.94zm-.51-16.29c-1.17 0-2.11.41-2.83 1.23s-1.18 1.96-1.38 3.43h8.12v-.32c-.09-1.43-.47-2.51-1.14-3.24-.67-.74-1.59-1.1-2.77-1.1zm16.76-7.7v4.62h3.35v3.16h-3.35v10.62c0 .73.14 1.25.43 1.57s.8.48 1.54.48c.5 0 1-.06 1.49-.18v3.31c-.97.27-1.9.4-2.81.4-3.27 0-4.91-1.81-4.91-5.43v-10.77h-3.12v-3.16h3.12v-4.63zm11.14 23.64h-4.26v-27h4.26zm9.17 0h-4.26v-19.02h4.26zm-4.52-23.96c0-.65.21-1.2.62-1.63.42-.43 1.01-.65 1.78-.65s1.37.22 1.79.65.63.98.63 1.64c0 .64-.21 1.18-.63 1.61s-1.02.64-1.79.64-1.36-.21-1.78-.64c-.41-.44-.62-.98-.62-1.62zm10.66 23.96v-15.86h-2.89v-3.16h2.89v-1.74c0-2.11.58-3.74 1.75-4.89s2.81-1.72 4.91-1.72c.75 0 1.54.11 2.39.32l-.1 3.34c-.54-.1-1.08-.15-1.63-.14-2.04 0-3.05 1.05-3.05 3.15v1.69h3.86v3.16h-3.86v15.85zm17.87-6.12 3.86-12.9h4.54l-7.54 21.9c-1.16 3.2-3.12 4.8-5.89 4.8-.62 0-1.3-.11-2.05-.32v-3.31l.81.05c1.07 0 1.88-.2 2.43-.59.54-.39.97-1.05 1.29-1.98l.61-1.64-6.66-18.93h4.6z" fill="#ffffff" fill-rule="evenodd"/><path d="m27.89 14.14-.01-.01c-.01 0-.02-.01-.02-.01-.02-.02-.03-.06-.03-.09l.77-4.73 3.62 3.63-3.77 1.6c-.01 0-.02.01-.03.01h-.02s-.01-.01-.02-.02c-.14-.16-.31-.29-.49-.38zm5.26-.29 3.88 3.88c.81.81 1.21 1.21 1.35 1.67.02.07.04.14.05.21l-9.26-3.92s-.01 0-.01-.01c-.04-.02-.08-.03-.08-.07s.04-.06.08-.07l.01-.01zm5.12 7c-.2.38-.59.77-1.25 1.43l-4.37 4.37-5.65-1.18-.03-.01c-.05-.01-.1-.02-.1-.06-.04-.47-.28-.9-.66-1.19-.02-.02-.02-.06-.01-.09v-.01l1.06-6.53v-.02c.01-.05.01-.11.06-.11.46-.06.88-.3 1.16-.67.01-.01.01-.02.03-.03.03-.01.07 0 .1.01zm-6.62 6.8-7.19 7.19 1.23-7.56v-.01c0-.01 0-.02.01-.03.01-.02.04-.03.06-.04h.01c.27-.11.51-.29.69-.52.02-.03.05-.06.09-.06h.03zm-8.71 8.71-.81.81-8.95-12.94s-.01-.01-.01-.01c-.01-.02-.03-.04-.03-.06s.01-.03.02-.04l.01-.01c.03-.04.05-.08.07-.12l.02-.03c.01-.02.03-.05.05-.06s.05-.01.07 0l9.92 2.05c.03 0 .05.02.08.03.01.01.02.03.02.04.14.53.52.97 1.03 1.17.03.01.02.05 0 .08-.01.01-.01.03-.01.05-.12.74-1.19 7.27-1.48 9.04zm-1.69 1.69c-.6.59-.95.9-1.35 1.03-.39.12-.81.12-1.21 0-.47-.15-.87-.55-1.67-1.36l-8.99-8.99 2.35-3.64c.01-.02.02-.03.04-.05s.06-.01.09 0c.54.16 1.12.13 1.64-.08.03-.01.05-.02.07 0l.03.03zm-14.09-10.19-2.06-2.06 4.07-1.74c.01 0 .02-.01.03-.01.03 0 .05.03.07.07.04.06.08.12.13.18l.01.02c.01.02 0 .03-.01.05zm-2.98-2.97-2.61-2.61c-.44-.44-.77-.77-.99-1.04l7.94 1.65h.03c.05.01.1.02.1.06 0 .05-.06.07-.11.09l-.02.01zm-4.05-5c.01-.17.04-.33.09-.5.15-.47.55-.87 1.36-1.67l3.34-3.34c1.54 2.23 3.08 4.46 4.63 6.69.03.04.06.08.03.11-.15.16-.29.34-.4.53-.01.02-.03.05-.05.06-.01.01-.03 0-.04 0zm5.68-6.4 4.49-4.49c.42.19 1.96.83 3.33 1.41 1.04.44 1.99.84 2.29.97.03.01.06.02.07.05.01.02 0 .04 0 .06-.14.66.05 1.35.52 1.83.03.03 0 .07-.03.11l-.01.02-4.56 7.06c-.01.02-.02.04-.04.05s-.06.01-.09 0c-.18-.05-.36-.07-.54-.07-.16 0-.34.03-.52.06-.02 0-.04.01-.05 0-.02-.01-.03-.03-.05-.05zm5.4-5.4 5.81-5.81c.81-.81 1.21-1.21 1.67-1.36.39-.12.81-.12 1.21 0 .47.15.87.55 1.67 1.36l1.26 1.26-4.14 6.4c-.01.02-.02.03-.04.05s-.06.01-.09 0c-.66-.2-1.38-.06-1.92.37-.03.03-.07.01-.1 0-.53-.24-4.73-2.01-5.33-2.27zm12.5-3.67 3.82 3.82-.92 5.7v.02c0 .01 0 .03-.01.04-.01.02-.03.02-.05.03-.2.06-.38.15-.55.27-.01.01-.01.01-.02.02s-.02.02-.04.02c-.01 0-.03 0-.04-.01l-5.82-2.47-.01-.01c-.04-.02-.08-.03-.08-.07-.03-.32-.14-.64-.31-.91-.03-.05-.06-.09-.03-.14zm-3.93 8.6 5.45 2.31c.03.01.06.03.08.06.01.02.01.04 0 .06-.02.08-.03.17-.03.26v.15c0 .04-.04.05-.08.07h-.01c-.86.37-12.13 5.17-12.15 5.17s-.03 0-.05-.02c-.03-.03 0-.07.03-.11 0-.01.01-.01.01-.02l4.48-6.94.01-.01c.03-.04.06-.09.1-.09l.05.01c.1.01.19.03.28.03.68 0 1.31-.33 1.69-.9.01-.02.02-.03.03-.04.04-.01.08 0 .11.01zm-6.25 9.19 12.28-5.24s.02 0 .03.02c.07.07.12.11.18.15l.03.02c.02.01.05.03.05.06v.02l-1.05 6.46v.03c-.01.05-.01.11-.06.11-.57.04-1.08.36-1.37.85v.01c-.01.02-.03.05-.05.06s-.05.01-.07 0l-9.79-2.02c-.02-.02-.16-.53-.18-.53z" fill="url(#a)"/></svg>
<svg viewBox="0 0 147 40" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><radialGradient id="a" cx="-779.0521" cy="1839.7205" gradientTransform="matrix(0 38.301 44.1228 0 -81154.2578 29839.2441)" gradientUnits="userSpaceOnUse" r="1.0011"><stop offset="0" stop-color="#20c6b7"/><stop offset="1" stop-color="#4d9abf"/></radialGradient><path clip-rule="evenodd" d="m53.37 12.98.12 2.2c1.4-1.7 3.24-2.55 5.53-2.55 3.95 0 5.96 2.27 6.03 6.8v12.57h-4.26v-12.32c0-1.21-.26-2.1-.78-2.68s-1.37-.87-2.55-.87c-1.72 0-3 .78-3.84 2.34v13.53h-4.26v-19.02zm24.38 19.37c-2.7 0-4.89-.85-6.57-2.56-1.68-1.7-2.52-3.98-2.52-6.81v-.53c0-1.9.36-3.59 1.1-5.09.73-1.49 1.76-2.66 3.08-3.49s2.79-1.25 4.42-1.25c2.58 0 4.58.83 5.99 2.48s2.11 3.99 2.11 7.01v1.72h-12.4c.13 1.57.65 2.81 1.57 3.73s2.07 1.37 3.46 1.37c1.95 0 3.54-.79 4.77-2.37l2.3 2.2c-.76 1.14-1.77 2.02-3.04 2.65s-2.69.94-4.27.94zm-.51-16.29c-1.17 0-2.11.41-2.83 1.23s-1.18 1.96-1.38 3.43h8.12v-.32c-.09-1.43-.47-2.51-1.14-3.24-.67-.74-1.59-1.1-2.77-1.1zm16.76-7.7v4.62h3.35v3.16h-3.35v10.62c0 .73.14 1.25.43 1.57s.8.48 1.54.48c.5 0 1-.06 1.49-.18v3.31c-.97.27-1.9.4-2.81.4-3.27 0-4.91-1.81-4.91-5.43v-10.77h-3.12v-3.16h3.12v-4.63zm11.14 23.64h-4.26v-27h4.26zm9.17 0h-4.26v-19.02h4.26zm-4.52-23.96c0-.65.21-1.2.62-1.63.42-.43 1.01-.65 1.78-.65s1.37.22 1.79.65.63.98.63 1.64c0 .64-.21 1.18-.63 1.61s-1.02.64-1.79.64-1.36-.21-1.78-.64c-.41-.44-.62-.98-.62-1.62zm10.66 23.96v-15.86h-2.89v-3.16h2.89v-1.74c0-2.11.58-3.74 1.75-4.89s2.81-1.72 4.91-1.72c.75 0 1.54.11 2.39.32l-.1 3.34c-.54-.1-1.08-.15-1.63-.14-2.04 0-3.05 1.05-3.05 3.15v1.69h3.86v3.16h-3.86v15.85zm17.87-6.12 3.86-12.9h4.54l-7.54 21.9c-1.16 3.2-3.12 4.8-5.89 4.8-.62 0-1.3-.11-2.05-.32v-3.31l.81.05c1.07 0 1.88-.2 2.43-.59.54-.39.97-1.05 1.29-1.98l.61-1.64-6.66-18.93h4.6z" fill="#fff" fill-rule="evenodd"/><path d="m27.89 14.14-.01-.01c-.01 0-.02-.01-.02-.01-.02-.02-.03-.06-.03-.09l.77-4.73 3.62 3.63-3.77 1.6c-.01 0-.02.01-.03.01h-.02s-.01-.01-.02-.02c-.14-.16-.31-.29-.49-.38zm5.26-.29 3.88 3.88c.81.81 1.21 1.21 1.35 1.67.02.07.04.14.05.21l-9.26-3.92s-.01 0-.01-.01c-.04-.02-.08-.03-.08-.07s.04-.06.08-.07l.01-.01zm5.12 7c-.2.38-.59.77-1.25 1.43l-4.37 4.37-5.65-1.18-.03-.01c-.05-.01-.1-.02-.1-.06-.04-.47-.28-.9-.66-1.19-.02-.02-.02-.06-.01-.09v-.01l1.06-6.53v-.02c.01-.05.01-.11.06-.11.46-.06.88-.3 1.16-.67.01-.01.01-.02.03-.03.03-.01.07 0 .1.01zm-6.62 6.8-7.19 7.19 1.23-7.56v-.01c0-.01 0-.02.01-.03.01-.02.04-.03.06-.04h.01c.27-.11.51-.29.69-.52.02-.03.05-.06.09-.06h.03zm-8.71 8.71-.81.81-8.95-12.94s-.01-.01-.01-.01c-.01-.02-.03-.04-.03-.06s.01-.03.02-.04l.01-.01c.03-.04.05-.08.07-.12l.02-.03c.01-.02.03-.05.05-.06s.05-.01.07 0l9.92 2.05c.03 0 .05.02.08.03.01.01.02.03.02.04.14.53.52.97 1.03 1.17.03.01.02.05 0 .08-.01.01-.01.03-.01.05-.12.74-1.19 7.27-1.48 9.04zm-1.69 1.69c-.6.59-.95.9-1.35 1.03-.39.12-.81.12-1.21 0-.47-.15-.87-.55-1.67-1.36l-8.99-8.99 2.35-3.64c.01-.02.02-.03.04-.05s.06-.01.09 0c.54.16 1.12.13 1.64-.08.03-.01.05-.02.07 0l.03.03zm-14.09-10.19-2.06-2.06 4.07-1.74c.01 0 .02-.01.03-.01.03 0 .05.03.07.07.04.06.08.12.13.18l.01.02c.01.02 0 .03-.01.05zm-2.98-2.97-2.61-2.61c-.44-.44-.77-.77-.99-1.04l7.94 1.65h.03c.05.01.1.02.1.06 0 .05-.06.07-.11.09l-.02.01zm-4.05-5c.01-.17.04-.33.09-.5.15-.47.55-.87 1.36-1.67l3.34-3.34c1.54 2.23 3.08 4.46 4.63 6.69.03.04.06.08.03.11-.15.16-.29.34-.4.53-.01.02-.03.05-.05.06-.01.01-.03 0-.04 0zm5.68-6.4 4.49-4.49c.42.19 1.96.83 3.33 1.41 1.04.44 1.99.84 2.29.97.03.01.06.02.07.05.01.02 0 .04 0 .06-.14.66.05 1.35.52 1.83.03.03 0 .07-.03.11l-.01.02-4.56 7.06c-.01.02-.02.04-.04.05s-.06.01-.09 0c-.18-.05-.36-.07-.54-.07-.16 0-.34.03-.52.06-.02 0-.04.01-.05 0-.02-.01-.03-.03-.05-.05zm5.4-5.4 5.81-5.81c.81-.81 1.21-1.21 1.67-1.36.39-.12.81-.12 1.21 0 .47.15.87.55 1.67 1.36l1.26 1.26-4.14 6.4c-.01.02-.02.03-.04.05s-.06.01-.09 0c-.66-.2-1.38-.06-1.92.37-.03.03-.07.01-.1 0-.53-.24-4.73-2.01-5.33-2.27zm12.5-3.67 3.82 3.82-.92 5.7v.02c0 .01 0 .03-.01.04-.01.02-.03.02-.05.03-.2.06-.38.15-.55.27-.01.01-.01.01-.02.02s-.02.02-.04.02c-.01 0-.03 0-.04-.01l-5.82-2.47-.01-.01c-.04-.02-.08-.03-.08-.07-.03-.32-.14-.64-.31-.91-.03-.05-.06-.09-.03-.14zm-3.93 8.6 5.45 2.31c.03.01.06.03.08.06.01.02.01.04 0 .06-.02.08-.03.17-.03.26v.15c0 .04-.04.05-.08.07h-.01c-.86.37-12.13 5.17-12.15 5.17s-.03 0-.05-.02c-.03-.03 0-.07.03-.11 0-.01.01-.01.01-.02l4.48-6.94.01-.01c.03-.04.06-.09.1-.09l.05.01c.1.01.19.03.28.03.68 0 1.31-.33 1.69-.9.01-.02.02-.03.03-.04.04-.01.08 0 .11.01zm-6.25 9.19 12.28-5.24s.02 0 .03.02c.07.07.12.11.18.15l.03.02c.02.01.05.03.05.06v.02l-1.05 6.46v.03c-.01.05-.01.11-.06.11-.57.04-1.08.36-1.37.85v.01c-.01.02-.03.05-.05.06s-.05.01-.07 0l-9.79-2.02c-.02-.02-.16-.53-.18-.53z" fill="url(#a)"/></svg>

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View file

@ -1 +1 @@
<svg viewBox="0 0 360.27 79.35" xmlns="http://www.w3.org/2000/svg"><g fill="#FFFFFF"><path d="m52.16 4.07c-2.4-3.98-7.57-5.26-11.55-2.86-1.17.71-2.16 1.69-2.86 2.86l-11.86 20.31c18.43 9.2 30.6 27.48 31.98 48.04h-8.32c-1.38-17.62-11.98-33.19-27.86-40.94l-10.97 18.97c8.92 4 15.18 12.26 16.63 21.93h-19.12c-.75-.05-1.32-.71-1.27-1.46.01-.19.07-.37.15-.54l5.3-9.01c-1.79-1.5-3.85-2.66-6.05-3.42l-5.24 9.01c-2.28 3.9-.96 8.91 2.95 11.19.03.02.07.04.1.06 1.24.7 2.64 1.07 4.07 1.08h26.18c.98-12.21-4.49-24.04-14.42-31.2l4.16-7.21c12.54 8.61 19.6 23.22 18.56 38.4h22.18c1.05-23-10.21-44.83-29.57-57.3l8.41-14.41c.39-.65 1.23-.87 1.89-.49.96.52 36.57 62.65 37.23 63.37.37.66.13 1.49-.53 1.86-.21.12-.45.18-.7.17h-8.58c.11 2.29.11 4.58 0 6.86h8.61c4.57.03 8.29-3.65 8.32-8.22 0-.03 0-.06 0-.09 0-1.44-.38-2.86-1.12-4.11z"/><path d="m223.91 50.96-26.59-34.34h-6.63v46.04h6.72v-35.29l27.35 35.28h5.87v-46.04h-6.72zm-66.98-8.54h23.84v-5.98h-23.86v-13.86h26.9v-5.98h-33.75v46.05h34.09v-5.98h-27.24zm-28.03-5.84c-9.28-2.23-11.87-4-11.87-8.29 0-3.86 3.41-6.47 8.49-6.47 4.63.14 9.09 1.75 12.74 4.59l3.6-5.1c-4.62-3.62-10.35-5.53-16.22-5.41-9.12 0-15.48 5.41-15.48 13.1 0 8.29 5.41 11.15 15.24 13.55 8.76 2.02 11.44 3.89 11.44 8.09s-3.6 6.79-9.17 6.79c-5.54-.03-10.88-2.12-14.95-5.87l-4.05 4.85c5.22 4.49 11.89 6.95 18.77 6.94 9.87 0 16.22-5.32 16.22-13.53-.06-6.95-4.17-10.68-14.76-13.24zm223.62-19.97-13.86 21.62-13.76-21.62h-8.04l18.18 27.84v18.22h6.92v-18.43l18.31-27.62zm-116.45 6.24h15.08v39.82h6.92v-39.82h15.08v-6.23h-37.06zm69.08 21.84c6.95-1.93 10.81-6.79 10.81-13.75 0-8.85-6.47-14.41-16.9-14.41h-20.47v46.11h6.85v-16.55h11.62l11.68 16.58h8l-12.61-17.69zm-19.73-4.51v-17.48h12.92c6.74 0 10.59 3.19 10.59 8.72s-4.13 8.76-10.52 8.76z"/></g></svg>
<svg viewBox="0 0 360.27 79.35" xmlns="http://www.w3.org/2000/svg"><g fill="#fff"><path d="m52.16 4.07c-2.4-3.98-7.57-5.26-11.55-2.86-1.17.71-2.16 1.69-2.86 2.86l-11.86 20.31c18.43 9.2 30.6 27.48 31.98 48.04h-8.32c-1.38-17.62-11.98-33.19-27.86-40.94l-10.97 18.97c8.92 4 15.18 12.26 16.63 21.93h-19.12c-.75-.05-1.32-.71-1.27-1.46.01-.19.07-.37.15-.54l5.3-9.01c-1.79-1.5-3.85-2.66-6.05-3.42l-5.24 9.01c-2.28 3.9-.96 8.91 2.95 11.19.03.02.07.04.1.06 1.24.7 2.64 1.07 4.07 1.08h26.18c.98-12.21-4.49-24.04-14.42-31.2l4.16-7.21c12.54 8.61 19.6 23.22 18.56 38.4h22.18c1.05-23-10.21-44.83-29.57-57.3l8.41-14.41c.39-.65 1.23-.87 1.89-.49.96.52 36.57 62.65 37.23 63.37.37.66.13 1.49-.53 1.86-.21.12-.45.18-.7.17h-8.58c.11 2.29.11 4.58 0 6.86h8.61c4.57.03 8.29-3.65 8.32-8.22 0-.03 0-.06 0-.09 0-1.44-.38-2.86-1.12-4.11z"/><path d="m223.91 50.96-26.59-34.34h-6.63v46.04h6.72v-35.29l27.35 35.28h5.87v-46.04h-6.72zm-66.98-8.54h23.84v-5.98h-23.86v-13.86h26.9v-5.98h-33.75v46.05h34.09v-5.98h-27.24zm-28.03-5.84c-9.28-2.23-11.87-4-11.87-8.29 0-3.86 3.41-6.47 8.49-6.47 4.63.14 9.09 1.75 12.74 4.59l3.6-5.1c-4.62-3.62-10.35-5.53-16.22-5.41-9.12 0-15.48 5.41-15.48 13.1 0 8.29 5.41 11.15 15.24 13.55 8.76 2.02 11.44 3.89 11.44 8.09s-3.6 6.79-9.17 6.79c-5.54-.03-10.88-2.12-14.95-5.87l-4.05 4.85c5.22 4.49 11.89 6.95 18.77 6.94 9.87 0 16.22-5.32 16.22-13.53-.06-6.95-4.17-10.68-14.76-13.24zm223.62-19.97-13.86 21.62-13.76-21.62h-8.04l18.18 27.84v18.22h6.92v-18.43l18.31-27.62zm-116.45 6.24h15.08v39.82h6.92v-39.82h15.08v-6.23h-37.06zm69.08 21.84c6.95-1.93 10.81-6.79 10.81-13.75 0-8.85-6.47-14.41-16.9-14.41h-20.47v46.11h6.85v-16.55h11.62l11.68 16.58h8l-12.61-17.69zm-19.73-4.51v-17.48h12.92c6.74 0 10.59 3.19 10.59 8.72s-4.13 8.76-10.52 8.76z"/></g></svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

View file

@ -1 +1 @@
<svg fill="#ffffff" viewBox="0 0 284 65" xmlns="http://www.w3.org/2000/svg"><path d="m37.59.25 36.95 64h-73.9z"/><path d="m129.97 5.25-27.71 48-27.71-48h10.39l17.32 30 17.32-30z"/><path d="m188.88 17.25v9.69c-1-.29-2.06-.49-3.2-.49-5.81 0-10 4-10 10v14.8h-9v-34h9v9.2c0-5.08 5.91-9.2 13.2-9.2z"/><path d="m200.88 34.25c0 6 3.92 10 10 10 4.12 0 7.21-1.87 8.8-4.92l7.68 4.43c-3.18 5.3-9.14 8.49-16.48 8.49-11.05 0-19-7.2-19-18s7.96-18 19-18c7.34 0 13.29 3.19 16.48 8.49l-7.68 4.43c-1.59-3.05-4.68-4.92-8.8-4.92-6.07 0-10 4-10 10z"/><path d="m274.36 5.25h9v46h-9z"/><path d="m268.36 34.24c0-10.79-7.96-17.99-19-17.99-11.04 0-19 7.2-19 18s8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5zm-28.45-3.49c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5z"/><path d="m141.68 16.25c-11.04 0-19 7.2-19 18s8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5 0-10.79-7.96-17.99-19-17.99zm-9.46 14.5c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5z"/></svg>
<svg fill="#fff" viewBox="0 0 284 65" xmlns="http://www.w3.org/2000/svg"><path d="m37.59.25 36.95 64h-73.9z"/><path d="m129.97 5.25-27.71 48-27.71-48h10.39l17.32 30 17.32-30z"/><path d="m188.88 17.25v9.69c-1-.29-2.06-.49-3.2-.49-5.81 0-10 4-10 10v14.8h-9v-34h9v9.2c0-5.08 5.91-9.2 13.2-9.2z"/><path d="m200.88 34.25c0 6 3.92 10 10 10 4.12 0 7.21-1.87 8.8-4.92l7.68 4.43c-3.18 5.3-9.14 8.49-16.48 8.49-11.05 0-19-7.2-19-18s7.96-18 19-18c7.34 0 13.29 3.19 16.48 8.49l-7.68 4.43c-1.59-3.05-4.68-4.92-8.8-4.92-6.07 0-10 4-10 10z"/><path d="m274.36 5.25h9v46h-9z"/><path d="m268.36 34.24c0-10.79-7.96-17.99-19-17.99s-19 7.2-19 18 8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5zm-28.45-3.49c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5z"/><path d="m141.68 16.25c-11.04 0-19 7.2-19 18s8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5 0-10.79-7.96-17.99-19-17.99zm-9.46 14.5c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5z"/></svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -1 +1 @@
<svg viewBox="0 0 284 65" xmlns="http://www.w3.org/2000/svg"><path d="m37.59.25 36.95 64h-73.9z"/><path d="m129.97 5.25-27.71 48-27.71-48h10.39l17.32 30 17.32-30z"/><path d="m188.88 17.25v9.69c-1-.29-2.06-.49-3.2-.49-5.81 0-10 4-10 10v14.8h-9v-34h9v9.2c0-5.08 5.91-9.2 13.2-9.2z"/><path d="m200.88 34.25c0 6 3.92 10 10 10 4.12 0 7.21-1.87 8.8-4.92l7.68 4.43c-3.18 5.3-9.14 8.49-16.48 8.49-11.05 0-19-7.2-19-18s7.96-18 19-18c7.34 0 13.29 3.19 16.48 8.49l-7.68 4.43c-1.59-3.05-4.68-4.92-8.8-4.92-6.07 0-10 4-10 10z"/><path d="m274.36 5.25h9v46h-9z"/><path d="m268.36 34.24c0-10.79-7.96-17.99-19-17.99-11.04 0-19 7.2-19 18s8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5zm-28.45-3.49c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5z"/><path d="m141.68 16.25c-11.04 0-19 7.2-19 18s8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5 0-10.79-7.96-17.99-19-17.99zm-9.46 14.5c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5z"/></svg>
<svg viewBox="0 0 284 65" xmlns="http://www.w3.org/2000/svg"><path d="m37.59.25 36.95 64h-73.9z"/><path d="m129.97 5.25-27.71 48-27.71-48h10.39l17.32 30 17.32-30z"/><path d="m188.88 17.25v9.69c-1-.29-2.06-.49-3.2-.49-5.81 0-10 4-10 10v14.8h-9v-34h9v9.2c0-5.08 5.91-9.2 13.2-9.2z"/><path d="m200.88 34.25c0 6 3.92 10 10 10 4.12 0 7.21-1.87 8.8-4.92l7.68 4.43c-3.18 5.3-9.14 8.49-16.48 8.49-11.05 0-19-7.2-19-18s7.96-18 19-18c7.34 0 13.29 3.19 16.48 8.49l-7.68 4.43c-1.59-3.05-4.68-4.92-8.8-4.92-6.07 0-10 4-10 10z"/><path d="m274.36 5.25h9v46h-9z"/><path d="m268.36 34.24c0-10.79-7.96-17.99-19-17.99s-19 7.2-19 18 8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5zm-28.45-3.49c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5z"/><path d="m141.68 16.25c-11.04 0-19 7.2-19 18s8.96 18 20 18c6.67 0 12.55-2.64 16.19-7.09l-7.65-4.42c-2.02 2.21-5.09 3.5-8.54 3.5-4.79 0-8.86-2.5-10.37-6.5h28.02c.22-1.12.35-2.28.35-3.5 0-10.79-7.96-17.99-19-17.99zm-9.46 14.5c1.25-3.99 4.67-6.5 9.45-6.5 4.79 0 8.21 2.51 9.45 6.5z"/></svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

22
.github/labeler.yml vendored
View file

@ -1,37 +1,37 @@
# See https://github.com/actions/labeler
example:
'pkg: example':
- examples/**/*
'🚨 action':
- .github/workflows/**
core:
'pkg: astro':
- packages/astro/**
create-astro:
'pkg: create-astro':
- packages/create-astro/**
markdown:
'feat: markdown':
- packages/markdown/**
integration:
'pkg: integration':
- packages/integrations/**
framework-lit:
'pkg: lit':
- packages/integrations/lit/**
framework-preact:
'pkg: preact':
- packages/integrations/preact/**
framework-react:
'pkg: react':
- packages/integrations/react/**
framework-solid:
'pkg: solid':
- packages/integrations/solid/**
framework-svelte:
'pkg: svelte':
- packages/integrations/svelte/**
framework-vue:
'pkg: vue':
- packages/integrations/vue/**

View file

@ -1,5 +1,5 @@
import { build } from 'esbuild';
import { existsSync } from 'fs';
import { existsSync } from 'node:fs';
const CLIENT_RUNTIME_PATH = 'packages/astro/src/runtime/client/';
@ -23,7 +23,9 @@ export default async function checkBundleSize({ github, context }) {
...context.repo,
pull_number: PR_NUM,
});
const clientRuntimeFiles = files.filter(({ filename }) => filename.startsWith(CLIENT_RUNTIME_PATH));
const clientRuntimeFiles = files.filter((file) => {
return file.filename.startsWith(CLIENT_RUNTIME_PATH) && file.status !== 'removed'
});
if (clientRuntimeFiles.length === 0) return;
const table = [

View file

@ -43,8 +43,11 @@ jobs:
- name: Get bench command
id: bench-command
env:
# protects from untrusted user input and command injection
COMMENT: ${{ github.event.comment.body }}
run: |
benchcmd=$(echo "${{ github.event.comment.body }}" | grep '!bench' | awk -F ' ' '{print $2}')
benchcmd=$(echo "$COMMENT" | grep '!bench' | awk -F ' ' '{print $2}')
echo "bench=$benchcmd" >> $GITHUB_OUTPUT
shell: bash

View file

@ -1,48 +1,53 @@
name: Check mergeability
on: pull_request # run on pull request events
on: pull_request
permissions:
# grant write permission on the pull-requests endpoint
pull-requests: write
checks: write
statuses: write
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Check if there is already a block on this PR
id: set-blocks
id: blocked
uses: actions/github-script@v6
env:
issue_number: ${{ github.event.number }}
with:
script: |
const url = 'https://api.github.com/repos/' + context.repo.owner + '/' + context.repo.repo + '/pulls/' + context.issue.number + '/reviews';
console.log('reviews URL', url);
const result = await github.request(url);
console.log(result);
const reviews = result.data;
for(const review of reviews) {
if(review.user.id === 41898282 && review.state === 'CHANGES_REQUESTED') {
return 'block';
const { data: reviews } = await github.rest.pulls.listReviews({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: process.env.issue_number,
});
for (const review of reviews) {
if (review.user.login === 'github-actions[bot]' && review.state === 'CHANGES_REQUESTED') {
return 'true'
}
}
return '';
return 'false'
result-encoding: string
- uses: actions/checkout@v3
if: steps.set-blocks.outputs.blocks == ''
if: steps.blocked.outputs.result != 'true'
with:
fetch-depth: 0
- name: Get changed files in the .changeset folder
id: changed-files
uses: tj-actions/changed-files@v35
if: steps.set-blocks.outputs.blocks == ''
if: steps.blocked.outputs.result != 'true'
with:
files: |
.changeset/**/*.md
- name: Check if any changesets contain minor changes
id: find-blockers
if: steps.set-blocks.outputs.blocks == ''
id: minor
if: steps.blocked.outputs.result != 'true'
run: |
echo "Checking for changesets marked as minor"
echo '::set-output name=found::false'
@ -54,38 +59,30 @@ jobs:
done
- name: Add label
if: steps.find-blockers.outputs.found == 'true'
run: |
curl --request POST \
--url https://api.github.com/repos/${{github.repository}}/issues/${{github.event.number}}/labels \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
--header 'content-type: application/json' \
-d '["semver minor"]'
- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
uses: actions/github-script@v6
if: steps.minor.outputs.found == 'true'
env:
issue_number: ${{ github.event.number }}
with:
issue-number: ${{ github.event.number }}
comment-author: 'github-actions[bot]'
script: |
github.rest.issues.addLabels({
issue_number: process.env.issue_number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['semver: minor']
});
- name: Send PR review
if: steps.find-blockers.outputs.found == 'true'
uses: peter-evans/create-or-update-comment@v3
continue-on-error: true
- name: Change PR Status
uses: actions/github-script@v6
if: steps.minor.outputs.found == 'true'
env:
issue_number: ${{ github.event.number }}
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.number }}
body: |
This PR is blocked because it contains a `minor` changeset. A reviewer will merge this at the next release if approved.
edit-mode: replace
- name: Change PR status
if: steps.find-blockers.outputs.found == 'true'
run: |
curl --request POST \
--url https://api.github.com/repos/${{github.repository}}/pulls/${{github.event.number}}/reviews \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
--header 'content-type: application/json' \
-d '{"event":"REQUEST_CHANGES", body: ""}'
script: |
github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: process.env.issue_number,
event: 'REQUEST_CHANGES',
body: 'This PR is blocked because it contains a `minor` changeset. A reviewer will merge this at the next release if approved.'
});

View file

@ -23,6 +23,7 @@ jobs:
check:
name: astro check
runs-on: ubuntu-latest
timeout-minutes: 7
steps:
- name: Check out repository
uses: actions/checkout@v3
@ -33,7 +34,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: "pnpm"
- name: Install dependencies

View file

@ -10,6 +10,7 @@ on:
paths-ignore:
- ".vscode/**"
- "**/*.md"
- ".github/ISSUE_TEMPLATE/**"
# Automatically cancel older in-progress jobs on the same branch
concurrency:
@ -29,53 +30,6 @@ env:
NODE_OPTIONS: --max-old-space-size=6144
jobs:
lint:
name: Lint
timeout-minutes: 3
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: "pnpm"
- name: Install dependencies
run: pnpm install
# Lint autofix cannot run on forks, so just skip those! See https://github.com/wearerequired/lint-action/issues/13
- name: Lint (External)
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.login != github.repository_owner }}
run: pnpm run lint
# Otherwise, run lint autofixer
- name: Lint
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner }}
uses: wearerequired/lint-action@v2.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
eslint: true
eslint_extensions: js,ts,cts,mts,cjs,mjs
prettier: false
auto_fix: false
git_name: fredkbot
git_email: fred+astrobot@astro.build
commit_message: "chore(lint): ${linter} fix"
github_token: ${{ secrets.GITHUB_TOKEN }}
neutral_check_on_warning: true
# Checks that the formatter runs successfully on all files
# In the future, we may have this fail PRs on unformatted code
- name: Format Check
run: pnpm run format --check
# Build primes out Turbo build cache and pnpm cache
build:
name: "Build: ${{ matrix.os }}"
@ -84,7 +38,7 @@ jobs:
strategy:
matrix:
OS: [ubuntu-latest, windows-latest]
NODE_VERSION: [16]
NODE_VERSION: [18]
fail-fast: true
steps:
# Disable crlf so all OS can share the same Turbo cache
@ -107,11 +61,45 @@ jobs:
- name: Install dependencies
run: pnpm install
# Only build in ubuntu as windows can share the build cache
# Only build in ubuntu as windows can share the build cache.
# Also only build in core repo as forks don't have access to the Turbo cache.
- name: Build Packages
if: ${{ matrix.os == 'ubuntu-latest' }}
if: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'withastro' }}
run: pnpm run build
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 5
needs: build
steps:
- name: Disable git crlf
run: git config --global core.autocrlf false
- name: Checkout
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build Packages
run: pnpm run build
- name: Lint
run: pnpm run lint
- name: Format Check
run: pnpm run format --check
test:
name: "Test: ${{ matrix.os }} (node@${{ matrix.NODE_VERSION }})"
runs-on: ${{ matrix.os }}
@ -120,12 +108,12 @@ jobs:
strategy:
matrix:
OS: [ubuntu-latest]
NODE_VERSION: [16, 18]
NODE_VERSION: [18, 20.5.1]
include:
- os: macos-latest
NODE_VERSION: 16
NODE_VERSION: 18
- os: windows-latest
NODE_VERSION: 16
NODE_VERSION: 18.17.1
fail-fast: false
env:
NODE_VERSION: ${{ matrix.NODE_VERSION }}
@ -145,11 +133,6 @@ jobs:
node-version: ${{ matrix.NODE_VERSION }}
cache: "pnpm"
- name: Use Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.26.1
- name: Install dependencies
run: pnpm install
@ -167,7 +150,7 @@ jobs:
strategy:
matrix:
OS: [ubuntu-latest, windows-latest]
NODE_VERSION: [16]
NODE_VERSION: [18.17.1]
fail-fast: false
env:
NODE_VERSION: ${{ matrix.NODE_VERSION }}
@ -204,7 +187,7 @@ jobs:
strategy:
matrix:
OS: [ubuntu-latest, windows-latest]
NODE_VERSION: [16]
NODE_VERSION: [18]
env:
NODE_VERSION: ${{ matrix.NODE_VERSION }}
steps:
@ -242,6 +225,24 @@ jobs:
- name: Remove docs translations except for English and Korean
run: find smoke/docs/src/content/docs ! -name 'en' ! -name 'ko' -type d -mindepth 1 -maxdepth 1 -exec rm -rf {} +
- name: Check if docs changed
id: changes
uses: dorny/paths-filter@v2
with:
filters: |
docs:
- 'packages/integrations/*/README.md'
- 'packages/astro/src/@types/astro.ts'
- 'packages/astro/src/core/errors/errors-data.ts'
- name: Build autogenerated docs pages from current astro branch
if: ${{ steps.changes.outputs.docs == 'true' }}
run: cd smoke/docs && pnpm docgen && pnpm docgen:errors && pnpm docgen:integrations
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SOURCE_REPO: ${{ github.event.pull_request.head.repo.full_name || github.event.repository.full_name }}
SOURCE_BRANCH: ${{ github.head_ref || github.ref_name }}
- name: Test
run: pnpm run test:smoke
env:

44
.github/workflows/cleanup-cache.yml vendored Normal file
View file

@ -0,0 +1,44 @@
name: Cleanup cache
on:
schedule:
- cron: "0 11 * * *"
pull_request:
types:
- closed
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Cleanup caches older than 5 days
if: github.event_name == 'schedule'
uses: MyAlbum/purge-cache@v2
with:
max-age: 432000
# https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
- name: Cleanup on PR close
if: github.event_name == 'pull_request'
run: |
gh extension install actions/gh-actions-cache
REPO=${{ github.repository }}
BRANCH="refs/pull/${{ github.event.pull_request.number }}/merge"
echo "Fetching list of cache key"
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 )
## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting caches..."
for cacheKey in $cacheKeysForPR
do
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
done
echo "Done"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -1,4 +1,4 @@
name: "Format Code"
name: Format
on:
workflow_dispatch:
@ -7,33 +7,9 @@ on:
- main
jobs:
format:
prettier:
if: github.repository_owner == 'withastro'
runs-on: ubuntu-latest
env:
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- name: Check out code using Git
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
# Needs access to push to main
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
- name: Setup PNPM
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Format code
run: pnpm run format:ci
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "[ci] format"
branch: ${{ github.head_ref }}
commit_user_name: fredkbot
commit_user_email: fred+astrobot@astro.build
uses: withastro/automation/.github/workflows/format.yml@main
with:
command: "format:ci"
secrets: inherit

30
.github/workflows/issue-labeled.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Issue Labeled
on:
issues:
types: [labeled]
jobs:
reply-labeled:
if: github.repository == 'withastro/astro'
runs-on: ubuntu-latest
steps:
- name: remove triage
if: contains(github.event.label.description, '(priority)') && contains(github.event.issue.labels.*.name, 'needs triage')
uses: actions-cool/issues-helper@v3
with:
actions: "remove-labels"
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: "needs triage"
- name: needs repro
if: github.event.label.name == 'needs repro'
uses: actions-cool/issues-helper@v3
with:
actions: "create-comment, remove-labels"
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}. Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) using a GitHub repository or [StackBlitz](https://astro.new). Issues marked with `needs repro` will be closed if they have no activity within 3 days.
labels: "needs triage"

18
.github/workflows/issue-needs-repro.yml vendored Normal file
View file

@ -0,0 +1,18 @@
name: Close Issues (needs repro)
on:
schedule:
- cron: "0 0 * * *"
jobs:
close-issues:
if: github.repository == 'withastro/astro'
runs-on: ubuntu-latest
steps:
- name: needs repro
uses: actions-cool/issues-helper@v3
with:
actions: "close-issues"
token: ${{ secrets.GITHUB_TOKEN }}
labels: "needs repro"
inactive-day: 3

23
.github/workflows/issue-opened.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: Label issues
on:
issues:
types:
- reopened
- opened
jobs:
label_issues:
runs-on: ubuntu-latest
if: github.repository == 'withastro/astro'
permissions:
issues: write
steps:
- uses: actions/github-script@v6
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["needs triage"]
})

View file

@ -1,34 +0,0 @@
name: Auto Assign Issues to Project
on:
issues:
types: [opened]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
auto_assign_issues:
runs-on: ubuntu-latest
name: Auto-assign new issues to projects
steps:
- name: Assign Bugs to the Bug Tracker
uses: srggrs/assign-one-project-github-action@1.3.1
if: github.event.action == 'opened' && startsWith(github.event.issue.title, '🐛 BUG:')
with:
project: 'https://github.com/withastro/astro/projects/2'
column_name: 'Needs Triage'
- name: Assign RFCs to the RFC Tracker
uses: srggrs/assign-one-project-github-action@1.3.1
if: github.event.action == 'opened' && startsWith(github.event.issue.title, '💡 RFC:')
with:
project: 'https://github.com/withastro/astro/projects/3'
column_name: 'Discussing'
- name: Assign RFCs to the Docs Tracker
uses: srggrs/assign-one-project-github-action@1.3.1
if: github.event.action == 'opened' && startsWith(github.event.issue.title, '📘 DOC:')
with:
project: 'https://github.com/withastro/astro/projects/5'
column_name: 'TODO'

View file

@ -17,22 +17,12 @@ concurrency:
jobs:
congrats:
name: congratsbot
if: ${{ github.repository_owner == 'withastro' }}
runs-on: ubuntu-latest
steps:
- id: setup
env:
MESSAGE: ${{ github.event.commits[0].message }}
run: |
TRIMMED=$(echo "$MESSAGE" | sed '1!d;q')
echo "::set-output name=COMMIT_MSG::${TRIMMED}"
- name: Send a Discord notification when a PR is merged
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_CONGRATS }}
# DISCORD_AVATAR: ${{ github.event.pull_request.user.avatar_url }}
uses: Ilshidur/action-discord@0.3.2
with:
args: "**Merged!** ${{ github.event.commits[0].author.name }}: [`${{ steps.setup.outputs.COMMIT_MSG }}`](<https://github.com/withastro/astro/commit/${{ github.event.commits[0].id }}>)"
if: ${{ github.repository_owner == 'withastro' && github.event.head_commit.message != '[ci] format' }}
uses: withastro/automation/.github/workflows/congratsbot.yml@main
with:
EMOJIS: '🎉,🎊,🧑‍🚀,🥳,🙌,🚀,👏,<:houston_golden:1068575433647456447>,<:astrocoin:894990669515489301>,<:astro_pride:1130501345326157854>'
secrets:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_CONGRATS }}
check_for_update:
name: Check for Updates
@ -48,7 +38,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: "pnpm"
- name: Install dependencies

View file

@ -1,76 +1,13 @@
name: "Nightly"
name: Nightly
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: "0 12 * * *"
# Run every Monday at 12:00 UTC
- cron: "0 12 * * 1"
workflow_dispatch:
jobs:
stat:
if: github.repository_owner == 'withastro'
runs-on: ubuntu-latest
steps:
- name: Check out code using Git
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Collect stats
run: node scripts/stats/index.js
env:
# Needs access to collect stats from the GitHub API
GITHUB_TOKEN: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "[ci] collect stats"
branch: ${{ github.head_ref }}
# Needs access to push to main
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
lockfile:
if: github.repository_owner == 'withastro'
runs-on: ubuntu-latest
steps:
- name: Check out code using Git
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: "pnpm"
- name: Delete the existing pnpm-lock.yaml file
run: rm pnpm-lock.yaml
- name: Create a fresh pnpm lockfile (no install)
run: pnpm install --lockfile-only
- name: Create Pull Request
id: createpr
uses: peter-evans/create-pull-request@v3
with:
branch: ci/lockfile
# Access token is needed to trigger CI on this PR
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
commit-message: "[ci] update lockfile"
title: "[ci] update lockfile"
body: >
This PR is auto-generated by a nightly GitHub action.
It should automatically be merged if tests pass.
uses: withastro/automation/.github/workflows/lockfile.yml@main
secrets: inherit

View file

@ -5,6 +5,8 @@ on:
branches:
- main
- "1-legacy"
- "2-legacy"
- next
defaults:
run:
@ -20,6 +22,9 @@ jobs:
name: Changelog PR or Release
if: ${{ github.repository_owner == 'withastro' }}
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v3
@ -29,7 +34,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: "pnpm"
- name: Install dependencies

View file

@ -37,7 +37,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: "pnpm"
- name: Install dependencies

View file

@ -19,6 +19,11 @@ jobs:
name: Create a snapshot release of a pull request
if: ${{ github.repository_owner == 'withastro' && github.event.issue.pull_request && startsWith(github.event.comment.body, '!preview') }}
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
issues: write
pull-requests: write
steps:
- name: "Check if user has admin access (only admins can publish snapshot releases)."
uses: "lannonbr/repo-permission-check-action@2.0.0"
@ -58,7 +63,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
@ -81,6 +86,8 @@ jobs:
id: publish
run: |
pnpm run release --tag next--${{ steps.getSnapshotName.outputs.result }} > publish.output.txt 2>&1
echo "Release complete"
cat publish.output.txt
echo ::set-output name=result::`cat publish.output.txt`
env:
# Needs access to publish to npm

51
.github/workflows/test-hosts.yml vendored Normal file
View file

@ -0,0 +1,51 @@
name: Hosted tests
on:
schedule:
- cron: '0 0 * * 0'
env:
ASTRO_TELEMETRY_DISABLED: true
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_TEST_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_TEST_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TEST_TOKEN }}
FORCE_COLOR: true
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build Astro
run: pnpm turbo build --filter astro --filter @astrojs/vercel
- name: Build test project
working-directory: ./packages/integrations/vercel/test/hosted/hosted-astro-project
run:
pnpm run build
- name: Deploy to Vercel
working-directory: ./packages/integrations/vercel/test/hosted/hosted-astro-project
run:
pnpm dlx vercel --prod --prebuilt
- name: Test
run:
pnpm run test:e2e:hosts

1
.gitignore vendored
View file

@ -3,6 +3,7 @@ dist/
*.tsbuildinfo
.DS_Store
.vercel
.netlify
_site/
scripts/smoke/*-main/
scripts/memory/project/src/pages/

View file

@ -1,6 +1,4 @@
---
image:
file: .Dockerfile
# Commands to start on workspace startup
tasks:
- before: |
@ -18,7 +16,7 @@ vscode:
- esbenp.prettier-vscode
- dbaeumer.vscode-eslint
ports:
- port: 3000
- port: 4321
onOpen: open-preview
github:
prebuilds:

View file

@ -3,6 +3,9 @@
# Convert context URL to an array
mapfile -t CONTEXT_URL_ITEMS < <(echo "$GITPOD_WORKSPACE_CONTEXT_URL" | tr '/' '\n')
# Install latest pnpm
curl -fsSL https://get.pnpm.io/install.sh | SHELL=`which bash` bash -
# Check if Gitpod started from a specific example directory in the repository
if [ "${CONTEXT_URL_ITEMS[7]}" = "examples" ]; then
EXAMPLE_PROJECT=${CONTEXT_URL_ITEMS[8]}
@ -17,7 +20,7 @@ fi
# Wait for VSCode to be ready (port 23000)
gp ports await 23000 > /dev/null 2>&1
echo "Loading example project:" $EXAMPLE_PROJECT
echo "Loading example project: $EXAMPLE_PROJECT"
# Go to the requested example project
cd "$GITPOD_REPO_ROOT"/examples/"$EXAMPLE_PROJECT" || exit

2
.nvmrc
View file

@ -1 +1 @@
16.19.0
18.14.1

View file

@ -1,9 +1,6 @@
# Ignoring these files for now due to https://github.com/withastro/compiler/issues/585
examples/basics/src/layouts
examples/with-nanostores/src/layouts
# Ignoring this file for now due to https://github.com/withastro/compiler/issues/485
packages/markdown/component/Markdown.astro
# Benchmark artifacts
benchmark/projects/
benchmark/results/
# Deep Directories
**/dist
@ -12,14 +9,10 @@ packages/markdown/component/Markdown.astro
**/fixtures
**/vendor
**/.vercel
examples/docs/**/*.md
examples/blog/**/*.md
# Directories
.github
.changeset
# Files
README.md
packages/webapi/mod.d.ts
pnpm-lock.yaml

View file

@ -1,23 +0,0 @@
module.exports = {
printWidth: 100,
semi: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'es5',
useTabs: true,
plugins: ['./node_modules/prettier-plugin-astro'],
overrides: [
{
files: ['.*', '*.json', '*.md', '*.toml', '*.yml'],
options: {
useTabs: false,
},
},
{
files: ['**/*.astro'],
options: {
parser: 'astro',
},
},
],
};

View file

@ -10,8 +10,8 @@ We welcome contributions of any size and skill level. As an open source project,
### Prerequisites
```shell
node: "^>=16.12.0"
pnpm: "^8.2.0"
node: "^>=18.14.1"
pnpm: "^8.6.12"
# otherwise, your build will fail
```

View file

@ -8,7 +8,6 @@
<br/><br/>
</p>
## Install
The **recommended** way to install the latest version of Astro is by running the command below:
@ -26,6 +25,7 @@ npm install --save-dev astro
Looking for help? Start with our [Getting Started](https://docs.astro.build/en/getting-started/) guide.
Looking for quick examples? [Open a starter project](https://astro.new/) right in your browser.
## Documentation
Visit our [official documentation](https://docs.astro.build/).
@ -33,6 +33,7 @@ Visit our [official documentation](https://docs.astro.build/).
## Support
Having trouble? Get help in the official [Astro Discord](https://astro.build/chat).
## Contributing
**New contributors welcome!** Check out our [Contributors Guide](CONTRIBUTING.md) for help getting started.
@ -47,23 +48,19 @@ Join us on [Discord](https://astro.build/chat) to meet other maintainers. We'll
| [create-astro](packages/create-astro) | [![create-astro version](https://img.shields.io/npm/v/create-astro.svg?label=%20)](packages/create-astro/CHANGELOG.md) |
| [@astrojs/react](packages/integrations/react) | [![astro version](https://img.shields.io/npm/v/@astrojs/react.svg?label=%20)](packages/integrations/react/CHANGELOG.md) |
| [@astrojs/preact](packages/integrations/preact) | [![astro version](https://img.shields.io/npm/v/@astrojs/preact.svg?label=%20)](packages/integrations/preact/CHANGELOG.md) |
| [@astrojs/solid-js](packages/integrations/solid) | [![astro version](https://img.shields.io/npm/v/@astrojs/solid-js.svg?label=%20)](packages/integrations/solid/CHANGELOG.md) |
| [@astrojs/solid-js](packages/integrations/solid) | [![astro version](https://img.shields.io/npm/v/@astrojs/solid-js.svg?label=%20)](packages/integrations/solid/CHANGELOG.md) |
| [@astrojs/svelte](packages/integrations/svelte) | [![astro version](https://img.shields.io/npm/v/@astrojs/svelte.svg?label=%20)](packages/integrations/svelte/CHANGELOG.md) |
| [@astrojs/vue](packages/integrations/vue) | [![astro version](https://img.shields.io/npm/v/@astrojs/vue.svg?label=%20)](packages/integrations/vue/CHANGELOG.md) |
| [@astrojs/lit](packages/integrations/lit) | [![astro version](https://img.shields.io/npm/v/@astrojs/lit.svg?label=%20)](packages/integrations/lit/CHANGELOG.md) |
| [@astrojs/deno](packages/integrations/deno) | [![astro version](https://img.shields.io/npm/v/@astrojs/deno.svg?label=%20)](packages/integrations/deno/CHANGELOG.md) |
| [@astrojs/netlify](packages/integrations/netlify) | [![astro version](https://img.shields.io/npm/v/@astrojs/netlify.svg?label=%20)](packages/integrations/netlify/CHANGELOG.md) |
| [@astrojs/node](packages/integrations/node) | [![astro version](https://img.shields.io/npm/v/@astrojs/node.svg?label=%20)](packages/integrations/node/CHANGELOG.md) |
| [@astrojs/node](packages/integrations/node) | [![astro version](https://img.shields.io/npm/v/@astrojs/node.svg?label=%20)](packages/integrations/node/CHANGELOG.md) |
| [@astrojs/vercel](packages/integrations/vercel) | [![astro version](https://img.shields.io/npm/v/@astrojs/vercel.svg?label=%20)](packages/integrations/vercel/CHANGELOG.md) |
| [@astrojs/cloudflare](packages/integrations/cloudflare) | [![astro version](https://img.shields.io/npm/v/@astrojs/cloudflare.svg?label=%20)](packages/integrations/cloudflare/CHANGELOG.md) |
| [@astrojs/partytown](packages/integrations/partytown) | [![astro version](https://img.shields.io/npm/v/@astrojs/partytown.svg?label=%20)](packages/integrations/partytown/CHANGELOG.md) |
| [@astrojs/sitemap](packages/integrations/sitemap) | [![astro version](https://img.shields.io/npm/v/@astrojs/sitemap.svg?label=%20)](packages/integrations/sitemap/CHANGELOG.md) |
| [@astrojs/tailwind](packages/integrations/tailwind) | [![astro version](https://img.shields.io/npm/v/@astrojs/tailwind.svg?label=%20)](packages/integrations/tailwind/CHANGELOG.md) |
| [@astrojs/turbolinks](packages/integrations/turbolinks) | [![astro version](https://img.shields.io/npm/v/@astrojs/turbolinks.svg?label=%20)](packages/integrations/turbolinks/CHANGELOG.md) |
| [@astrojs/alpinejs](packages/integrations/alpinejs) | [![astro version](https://img.shields.io/npm/v/@astrojs/alpinejs.svg?label=%20)](packages/integrations/alpinejs/CHANGELOG.md) |
| [@astrojs/image](packages/integrations/image) | [![astro version](https://img.shields.io/npm/v/@astrojs/image.svg?label=%20)](packages/integrations/image/CHANGELOG.md) |
| [@astrojs/mdx](packages/integrations/mdx) | [![astro version](https://img.shields.io/npm/v/@astrojs/mdx.svg?label=%20)](packages/integrations/mdx/CHANGELOG.md) |
| [@astrojs/prefetch](packages/integrations/prefetch) | [![astro version](https://img.shields.io/npm/v/@astrojs/prefetch.svg?label=%20)](packages/integrations/prefetch/CHANGELOG.md) |
| [@astrojs/alpinejs](packages/integrations/alpinejs) | [![astro version](https://img.shields.io/npm/v/@astrojs/alpinejs.svg?label=%20)](packages/integrations/alpinejs/CHANGELOG.md) |
| [@astrojs/mdx](packages/integrations/mdx) | [![astro version](https://img.shields.io/npm/v/@astrojs/mdx.svg?label=%20)](packages/integrations/mdx/CHANGELOG.md) |
| [@astrojs/prefetch](packages/integrations/prefetch) | [![astro version](https://img.shields.io/npm/v/@astrojs/prefetch.svg?label=%20)](packages/integrations/prefetch/CHANGELOG.md) |
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/6178/badge)](https://bestpractices.coreinfrastructure.org/projects/6178)
@ -71,10 +68,9 @@ Several official projects are maintained outside of this repo:
| Project | Repository |
| ------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [@astrojs/compiler](https://github.com/withastro/compiler) | [withastro/compiler](https://github.com/withastro/compiler) |
| [@astrojs/compiler](https://github.com/withastro/compiler) | [withastro/compiler](https://github.com/withastro/compiler) |
| [Astro Language Tools](https://github.com/withastro/language-tools) | [withastro/language-tools](https://github.com/withastro/language-tools) |
## Links
- [License (MIT)](LICENSE)
@ -85,17 +81,16 @@ Several official projects are maintained outside of this repo:
## Sponsors
Astro is generously supported by Netlify, Storyblok, and several other amazing organizations.
Astro is free, open source software made possible by these wonderful sponsors.
[❤️ Sponsor Astro! ❤️](https://github.com/withastro/.github/blob/main/FUNDING.md)
<p align="center">
<a target="_blank" href="https://github.com/sponsors/withastro">
[![Astro's sponsors.](https://astro.build/sponsors.png
"Astro's sponsors.
Platinum sponsors: Netlify, storyblok, Vercel, Ship Shape, Google Chrome
Gold sponsors: divRIOTS, DEEPGRAM, CloudCannon
[![Astro's sponsors.](https://astro.build/sponsors.png "Astro's sponsors.
Platinum sponsors: Vercel, storyblok, Netlify, Ship Shape, Google Chrome
Gold sponsors: divRIOTS, DEEPGRAM, Transloadit, CloudCannon
Sponsors: Monogram, Qoddi, Dimension")](https://github.com/sponsors/withastro)
</a>

View file

@ -1,3 +1,21 @@
import { createRequire } from 'module';
import { createRequire } from 'node:module';
import path from 'node:path';
export const astroBin = createRequire(import.meta.url).resolve('astro');
const astroPkgPath = createRequire(import.meta.url).resolve('astro/package.json');
export const astroBin = path.resolve(astroPkgPath, '../astro.js');
/** @typedef {{ avg: number, stdev: number, max: number }} Stat */
/**
* @param {number[]} numbers
* @returns {Stat}
*/
export function calculateStat(numbers) {
const avg = numbers.reduce((a, b) => a + b, 0) / numbers.length;
const stdev = Math.sqrt(
numbers.map((x) => Math.pow(x - avg, 2)).reduce((a, b) => a + b, 0) / numbers.length
);
const max = Math.max(...numbers);
return { avg, stdev, max };
}

View file

@ -0,0 +1,73 @@
import { fileURLToPath } from 'node:url';
import { execaCommand } from 'execa';
import { markdownTable } from 'markdown-table';
import { astroBin, calculateStat } from './_util.js';
/** Default project to run for this benchmark if not specified */
export const defaultProject = 'render-default';
/**
* @param {URL} projectDir
* @param {URL} outputFile
*/
export async function run(projectDir, outputFile) {
const root = fileURLToPath(projectDir);
console.log('Benchmarking `astro --help`...');
const helpStat = await benchmarkCommand(`node ${astroBin} --help`, root);
console.log('Done');
console.log('Benchmarking `astro info`...');
const infoStat = await benchmarkCommand(`node ${astroBin} info`, root);
console.log('Done');
console.log('Result preview:');
console.log('='.repeat(10));
console.log(`#### CLI Startup\n\n`);
console.log(
printResult({
'astro --help': helpStat,
'astro info': infoStat,
})
);
console.log('='.repeat(10));
}
/**
* @param {string} command
* @param {string} root
* @returns {Promise<import('./_util.js').Stat>}
*/
async function benchmarkCommand(command, root) {
/** @type {number[]} */
const durations = [];
for (let i = 0; i < 10; i++) {
const start = performance.now();
await execaCommand(command, { cwd: root });
durations.push(performance.now() - start);
}
// From the 10 durations, calculate average, standard deviation, and max value
return calculateStat(durations);
}
/**
* @param {Record<string, import('./_util.js').Stat>} result
*/
function printResult(result) {
return markdownTable(
[
['Command', 'Avg (ms)', 'Stdev (ms)', 'Max (ms)'],
...Object.entries(result).map(([command, { avg, stdev, max }]) => [
command,
avg.toFixed(2),
stdev.toFixed(2),
max.toFixed(2),
]),
],
{
align: ['l', 'r', 'r', 'r'],
}
);
}

View file

@ -1,7 +1,7 @@
import fs from 'fs/promises';
import { fileURLToPath } from 'url';
import { execaCommand } from 'execa';
import { markdownTable } from 'markdown-table';
import fs from 'node:fs/promises';
import { fileURLToPath } from 'node:url';
import { astroBin } from './_util.js';
/** @typedef {Record<string, import('../../packages/astro/src/core/config/timer').Stat>} AstroTimerStat */

View file

@ -1,19 +1,17 @@
import fs from 'fs/promises';
import http from 'http';
import path from 'path';
import { fileURLToPath } from 'url';
import { execaCommand } from 'execa';
import { waitUntilBusy } from 'port-authority';
import { markdownTable } from 'markdown-table';
import fs from 'node:fs/promises';
import http from 'node:http';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { waitUntilBusy } from 'port-authority';
import { calculateStat, astroBin } from './_util.js';
import { renderFiles } from '../make-project/render-default.js';
import { astroBin } from './_util.js';
const port = 4322;
export const defaultProject = 'render-default';
/** @typedef {{ avg: number, stdev: number, max: number }} Stat */
/**
* @param {URL} projectDir
* @param {URL} outputFile
@ -68,22 +66,17 @@ async function benchmarkRenderTime() {
result[pathname].push(renderTime);
}
}
/** @type {Record<string, Stat>} */
/** @type {Record<string, import('./_util.js').Stat>} */
const processedResult = {};
for (const [pathname, times] of Object.entries(result)) {
// From the 100 results, calculate average, standard deviation, and max value
const avg = times.reduce((a, b) => a + b, 0) / times.length;
const stdev = Math.sqrt(
times.map((x) => Math.pow(x - avg, 2)).reduce((a, b) => a + b, 0) / times.length
);
const max = Math.max(...times);
processedResult[pathname] = { avg, stdev, max };
processedResult[pathname] = calculateStat(times);
}
return processedResult;
}
/**
* @param {Record<string, Stat>} result
* @param {Record<string, import('./_util.js').Stat>} result
*/
function printResult(result) {
return markdownTable(

View file

@ -1,9 +1,9 @@
import fs from 'fs/promises';
import { fileURLToPath } from 'url';
import autocannon from 'autocannon';
import { execaCommand } from 'execa';
import { waitUntilBusy } from 'port-authority';
import { markdownTable } from 'markdown-table';
import fs from 'node:fs/promises';
import { fileURLToPath } from 'node:url';
import { waitUntilBusy } from 'port-authority';
import pb from 'pretty-bytes';
import { astroBin } from './_util.js';

View file

@ -1,7 +1,7 @@
import fs from 'fs/promises';
import path from 'path';
import { pathToFileURL } from 'url';
import mri from 'mri';
import fs from 'node:fs/promises';
import path from 'node:path';
import { pathToFileURL } from 'node:url';
const args = mri(process.argv.slice(2));
@ -14,6 +14,7 @@ Command
memory Run build memory and speed test
render Run rendering speed test
server-stress Run server stress test
cli-startup Run CLI startup speed test
Options
--project <project-name> Project to use for benchmark, see benchmark/make-project/ for available names
@ -27,6 +28,7 @@ const benchmarks = {
memory: () => import('./bench/memory.js'),
render: () => import('./bench/render.js'),
'server-stress': () => import('./bench/server-stress.js'),
'cli-startup': () => import('./bench/cli-startup.js'),
};
if (commandName && !(commandName in benchmarks)) {

View file

@ -1,4 +1,4 @@
import fs from 'fs/promises';
import fs from 'node:fs/promises';
import { loremIpsum } from './_util.js';
/**

View file

@ -1,4 +1,4 @@
import fs from 'fs/promises';
import fs from 'node:fs/promises';
import { loremIpsumHtml, loremIpsumMd } from './_util.js';
// Map of files to be generated and tested for rendering.

View file

@ -1,4 +1,4 @@
import fs from 'fs/promises';
import fs from 'node:fs/promises';
import { loremIpsum } from './_util.js';
/**
@ -7,11 +7,13 @@ import { loremIpsum } from './_util.js';
export async function run(projectDir) {
await fs.rm(projectDir, { recursive: true, force: true });
await fs.mkdir(new URL('./src/pages', projectDir), { recursive: true });
await fs.mkdir(new URL('./src/components', projectDir), { recursive: true });
await fs.writeFile(
new URL('./src/pages/index.astro', projectDir),
`\
---
import Paragraph from '../components/Paragraph.astro'
const content = "${loremIpsum}"
---
@ -25,13 +27,26 @@ const content = "${loremIpsum}"
<body>
<h1>Astro</h1>
<div>
${Array.from({ length: 60 }).map(() => '<p>{content}</p>')}
${Array.from({ length: 100 })
.map(() => '<p>{content}</p>')
.join('\n')}
</div>
<div>
${Array.from({ length: 50 })
.map((_, i) => '<Paragraph num={' + i + '} str={content} />')
.join('\n')}
</div>
</body>
</html>`,
'utf-8'
);
await fs.writeFile(
new URL('./src/components/Paragraph.astro', projectDir),
`<div>{Astro.props.num} {Astro.props.str}</div>`,
'utf-8'
);
await fs.writeFile(
new URL('./astro.config.js', projectDir),
`\

View file

@ -11,11 +11,11 @@
"@astrojs/node": "workspace:*",
"@benchmark/timer": "workspace:*",
"astro": "workspace:*",
"autocannon": "^7.10.0",
"execa": "^6.1.0",
"autocannon": "^7.12.0",
"execa": "^8.0.1",
"markdown-table": "^3.0.3",
"mri": "^1.2.0",
"port-authority": "^2.0.1",
"pretty-bytes": "^6.0.0"
"pretty-bytes": "^6.1.1"
}
}

View file

@ -23,7 +23,6 @@
"dev": "astro-scripts dev \"src/**/*.ts\""
},
"dependencies": {
"@astrojs/webapi": "workspace:*",
"server-destroy": "^1.0.1"
},
"peerDependencies": {

View file

@ -1,5 +1,5 @@
import type { CreatePreviewServer } from 'astro';
import { createServer } from 'http';
import { createServer } from 'node:http';
import enableDestroy from 'server-destroy';
const preview: CreatePreviewServer = async function ({ serverEntrypoint, host, port }) {

View file

@ -1,11 +1,8 @@
import { polyfill } from '@astrojs/webapi';
import type { SSRManifest } from 'astro';
import { NodeApp } from 'astro/app/node';
import type { IncomingMessage, ServerResponse } from 'http';
import { NodeApp, applyPolyfills } from 'astro/app/node';
import type { IncomingMessage, ServerResponse } from 'node:http';
polyfill(globalThis, {
exclude: 'window document',
});
applyPolyfills();
export function createExports(manifest: SSRManifest) {
const app = new NodeApp(manifest);

View file

@ -2,9 +2,6 @@
"extends": "../../../tsconfig.base.json",
"include": ["src"],
"compilerOptions": {
"allowJs": true,
"module": "ES2020",
"outDir": "./dist",
"target": "ES2020"
"outDir": "./dist"
}
}

View file

@ -2,7 +2,7 @@
The easiest way to check out one of these examples on your machine is by running this command in an empty directory:
```
```sh
npm create astro@latest -- --template [EXAMPLE_NAME]
```
@ -10,12 +10,12 @@ npm create astro@latest -- --template [EXAMPLE_NAME]
Visit [awesome-astro](https://github.com/one-aalam/awesome-astro) for a full list of community examples. You can use `npm create astro@latest` to check out any community examples:
```
```sh
npm create astro@latest -- --template [GITHUB_USER]/[REPO_NAME]
```
Paths to examples nested inside of a repo are also supported:
```
```sh
npm create astro@latest -- --template [GITHUB_USER]/[REPO_NAME]/path/to/example
```

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,6 +1,6 @@
# Astro Starter Kit: Basics
```
```sh
npm create astro@latest -- --template basics
```
@ -10,14 +10,13 @@ npm create astro@latest -- --template basics
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
![basics](https://user-images.githubusercontent.com/4677417/186188965-73453154-fdec-4d6b-9c34-cb35c248ae5b.png)
![just-the-basics](https://github.com/withastro/astro/assets/2244813/a0a5533c-a856-4198-8470-2d67b1d7c554)
## 🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
```
```text
/
├── public/
│ └── favicon.svg
@ -44,7 +43,7 @@ All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:3000` |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |

View file

@ -11,6 +11,6 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.4.1"
"astro": "^3.2.4"
}
}

View file

@ -1,11 +0,0 @@
{
"infiniteLoopProtection": true,
"hardReloadOnChange": false,
"view": "browser",
"template": "node",
"container": {
"port": 3000,
"startScript": "start",
"node": "14"
}
}

View file

@ -1,5 +1,5 @@
---
export interface Props {
interface Props {
title: string;
body: string;
href: string;
@ -23,24 +23,23 @@ const { href, title, body } = Astro.props;
.link-card {
list-style: none;
display: flex;
padding: 0.25rem;
background-color: white;
padding: 1px;
background-color: #23262d;
background-image: none;
background-size: 400%;
border-radius: 0.6rem;
border-radius: 7px;
background-position: 100%;
transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.link-card > a {
width: 100%;
text-decoration: none;
line-height: 1.4;
padding: 1rem 1.3rem;
border-radius: 0.35rem;
color: #111;
background-color: white;
padding: calc(1.5rem - 1px);
border-radius: 8px;
color: white;
background-color: #23262d;
opacity: 0.8;
}
h2 {
@ -51,13 +50,12 @@ const { href, title, body } = Astro.props;
p {
margin-top: 0.5rem;
margin-bottom: 0;
color: #444;
}
.link-card:is(:hover, :focus-within) {
background-position: 0;
background-image: var(--accent-gradient);
}
.link-card:is(:hover, :focus-within) h2 {
color: rgb(var(--accent));
color: rgb(var(--accent-light));
}
</style>

View file

@ -1,15 +1,16 @@
---
export interface Props {
interface Props {
title: string;
}
const { title } = Astro.props;
---
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content="Astro description" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
@ -21,15 +22,30 @@ const { title } = Astro.props;
</html>
<style is:global>
:root {
--accent: 124, 58, 237;
--accent-gradient: linear-gradient(45deg, rgb(var(--accent)), #da62c4 30%, white 60%);
--accent: 136, 58, 234;
--accent-light: 224, 204, 250;
--accent-dark: 49, 10, 101;
--accent-gradient: linear-gradient(
45deg,
rgb(var(--accent)),
rgb(var(--accent-light)) 30%,
white 60%
);
}
html {
font-family: system-ui, sans-serif;
background-color: #F6F6F6;
background: #13151a;
background-size: 224px;
}
code {
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
Bitstream Vera Sans Mono, Courier New, monospace;
font-family:
Menlo,
Monaco,
Lucida Console,
Liberation Mono,
DejaVu Sans Mono,
Bitstream Vera Sans Mono,
Courier New,
monospace;
}
</style>

View file

@ -5,6 +5,34 @@ import Card from '../components/Card.astro';
<Layout title="Welcome to Astro.">
<main>
<svg
class="astro-a"
width="495"
height="623"
viewBox="0 0 495 623"
fill="none"
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M167.19 364.254C83.4786 364.254 0 404.819 0 404.819C0 404.819 141.781 19.4876 142.087 18.7291C146.434 7.33701 153.027 0 162.289 0H332.441C341.703 0 348.574 7.33701 352.643 18.7291C352.92 19.5022 494.716 404.819 494.716 404.819C494.716 404.819 426.67 364.254 327.525 364.254L264.41 169.408C262.047 159.985 255.147 153.581 247.358 153.581C239.569 153.581 232.669 159.985 230.306 169.408L167.19 364.254ZM160.869 530.172C160.877 530.18 160.885 530.187 160.894 530.195L160.867 530.181C160.868 530.178 160.868 530.175 160.869 530.172ZM136.218 411.348C124.476 450.467 132.698 504.458 160.869 530.172C160.997 529.696 161.125 529.242 161.248 528.804C161.502 527.907 161.737 527.073 161.917 526.233C165.446 509.895 178.754 499.52 195.577 500.01C211.969 500.487 220.67 508.765 223.202 527.254C224.141 534.12 224.23 541.131 224.319 548.105C224.328 548.834 224.337 549.563 224.347 550.291C224.563 566.098 228.657 580.707 237.264 593.914C245.413 606.426 256.108 615.943 270.749 622.478C270.593 621.952 270.463 621.508 270.35 621.126C270.045 620.086 269.872 619.499 269.685 618.911C258.909 585.935 266.668 563.266 295.344 543.933C298.254 541.971 301.187 540.041 304.12 538.112C310.591 533.854 317.059 529.599 323.279 525.007C345.88 508.329 360.09 486.327 363.431 457.844C364.805 446.148 363.781 434.657 359.848 423.275C358.176 424.287 356.587 425.295 355.042 426.275C351.744 428.366 348.647 430.33 345.382 431.934C303.466 452.507 259.152 455.053 214.03 448.245C184.802 443.834 156.584 436.019 136.218 411.348Z"
fill="url(#paint0_linear_1805_24383)"></path>
<defs>
<linearGradient
id="paint0_linear_1805_24383"
x1="247.358"
y1="0"
x2="247.358"
y2="622.479"
gradientUnits="userSpaceOnUse"
>
<stop stop-opacity="0.9"></stop>
<stop offset="1" stop-opacity="0.2"></stop>
</linearGradient>
</defs>
</svg>
<h1>Welcome to <span class="text-gradient">Astro</span></h1>
<p class="instructions">
To get started, open the directory <code>src/pages</code> in your project.<br />
@ -38,13 +66,28 @@ import Card from '../components/Card.astro';
<style>
main {
margin: auto;
padding: 1.5rem;
max-width: 60ch;
padding: 1rem;
width: 800px;
max-width: calc(100% - 2rem);
color: white;
font-size: 20px;
line-height: 1.6;
}
.astro-a {
position: absolute;
top: -32px;
left: 50%;
transform: translatex(-50%);
width: 220px;
height: auto;
z-index: -1;
}
h1 {
font-size: 3rem;
font-weight: 800;
margin: 0;
font-size: 4rem;
font-weight: 700;
line-height: 1;
text-align: center;
margin-bottom: 1em;
}
.text-gradient {
background-image: var(--accent-gradient);
@ -54,28 +97,27 @@ import Card from '../components/Card.astro';
background-position: 0%;
}
.instructions {
line-height: 1.6;
margin: 1rem 0;
border: 1px solid rgba(var(--accent), 25%);
background-color: white;
padding: 1rem;
border-radius: 0.4rem;
margin-bottom: 2rem;
border: 1px solid rgba(var(--accent-light), 25%);
background: linear-gradient(rgba(var(--accent-dark), 66%), rgba(var(--accent-dark), 33%));
padding: 1.5rem;
border-radius: 8px;
}
.instructions code {
font-size: 0.875em;
font-size: 0.8em;
font-weight: bold;
background: rgba(var(--accent), 12%);
color: rgb(var(--accent));
background: rgba(var(--accent-light), 12%);
color: rgb(var(--accent-light));
border-radius: 4px;
padding: 0.3em 0.45em;
padding: 0.3em 0.4em;
}
.instructions strong {
color: rgb(var(--accent));
color: rgb(var(--accent-light));
}
.link-card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr));
gap: 1rem;
gap: 2rem;
padding: 0;
}
</style>

View file

@ -0,0 +1 @@
FROM node:18-bullseye

View file

@ -1,6 +1,6 @@
# Astro Starter Kit: Blog
```
```sh
npm create astro@latest -- --template blog
```
@ -10,8 +10,7 @@ npm create astro@latest -- --template blog
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
![blog](https://user-images.githubusercontent.com/4677417/186189140-4ef17aac-c3c9-4918-a8c2-ce86ba1bb394.png)
![blog](https://github.com/withastro/astro/assets/2244813/ff10799f-a816-4703-b967-c78997e8323d)
Features:
@ -26,7 +25,7 @@ Features:
Inside of your Astro project, you'll see the following folders and files:
```
```text
├── public/
├── src/
│   ├── components/
@ -54,7 +53,7 @@ All commands are run from the root of the project, from a terminal:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:3000` |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |

Some files were not shown because too many files have changed in this diff Show more