Commit graph

703 commits

Author SHA1 Message Date
matthewp
a10cbec67e [ci] format 2022-11-07 15:06:51 +00:00
Matthew Phillips
b2b291d291
Handle base in adapters (#5290)
* Handle `base` in adapters

* Use removeBase in the test adapter

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

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

* Update packages/integrations/cloudflare/src/server.advanced.ts

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

* Include the subpath for links

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2022-11-07 10:05:12 -05:00
Fred K. Bot
89f335b539
[ci] release (#5262)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-03 09:38:29 -04:00
Johan Bergström
78145c7de5
[docs] cloudflare directory nits (#5278) 2022-11-02 09:40:54 -03:00
Tony Sullivan
b6afe2c1db
updates @astrojs/prefetch package keywords (#5271) 2022-11-01 19:55:20 +00:00
Matthew Phillips
bb6e880009
Prevent tailwind config errors from crashing dev server (#5270)
* Prevent tailwind config errors from crashing dev server

* Adding a changeset

* Fix wrong type
2022-11-01 10:50:53 -04:00
matthewp
06c5d51b37 [ci] format 2022-11-01 12:44:07 +00:00
Robin Lindner
6ad91bd80d
Improve prefetch conditions (#5244)
* Improve prefetch

* Add changeset
2022-11-01 08:42:30 -04:00
Tony Sullivan
37d664e262
[@astrojs/image] web-streams-polyfill should be included as a prod dependency (#5260)
* fix: web-streams-polyfill should be included as a prod dependency

* chore: missed a lockfile change in the merge
2022-10-31 19:43:38 +00:00
Fred K. Bot
5016166acf
[ci] release (#5239)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-31 10:21:09 -04:00
Sarah Rainsberger
06d016a741
[docs] update image integration README (#5231)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-10-28 16:17:56 -03:00
matthewp
ff4f45b8eb [ci] format 2022-10-28 18:50:00 +00:00
Matthew Phillips
070da6a792
Throw error when trying to use the vercel static adapter in server mode (#5241) 2022-10-28 14:48:20 -04:00
Fred K. Bot
5be3fdec27
[ci] release (#5215)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-28 12:14:55 -04:00
Bjorn Lu
c98c5aa0ae
Improve Solid libraries config handling (#5208) 2022-10-28 23:30:54 +08:00
matthewp
c6b149bc0a [ci] format 2022-10-28 14:21:57 +00:00
Matthew Phillips
69a532ab60
Export Cloudflare runtime types (#5230)
* Export Cloudflare runtime types

* Adding a changeset
2022-10-28 10:20:20 -04:00
Happydev
0b12414315
remove unnecessary ReactDOM.renderToString operation (#5218)
* remove useless `ReactDOM.renderToString` operation

* chore: add changeset
2022-10-27 21:05:18 -05:00
Dan Jutan
3c1af36f5e
reupload video with fixed audio (#5174) 2022-10-27 11:36:44 -04:00
Chris Swithinbank
10cb1405c5
Add missing language to code block (#5210) 2022-10-27 16:51:51 +02:00
Fred K. Bot
50841bb7fd
[ci] release (#5199)
* [ci] release

* Update packages/integrations/cloudflare/CHANGELOG.md

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

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-10-27 09:41:03 -04:00
bluwy
b48320d722 [ci] format 2022-10-27 09:19:16 +00:00
BeanWei
c203a5cc2f
Fix node standalone for windows system (#5207) 2022-10-27 17:17:38 +08:00
Dan Jutan
6e417a9636
Fix broken fragment link (#5200) 2022-10-27 15:58:54 +08:00
Sarah Rainsberger
707cac9fdf
[docs] Cloudflare integration README edits (#5205)
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-10-26 15:23:47 -03:00
Happydev
4a8a346ca9
feat: add support for other markdown file extensions (#5164)
* fix: add `.markdown ` file extension support

adds `.markdown` file extension support for markdown files

* test: add test case

* chore: adds changeset

* test: move test and fixture to relevant locations

* test: update test

* feat: add multiple markdown file extension support

* feat: add module declaration for different markdown file extensions

* refactor: markdown module declarations

for ease of TS refactoring

* fix: add .js extension to module imports

* test: update test

* chore: update changeset

* chore: update changeset

* test: add new test cases

* test: update tests

* fix: correct typo
2022-10-26 10:18:49 -04:00
Daniel
d151d9f3f2
enable access to cloudflare runtime (#5103)
* enable access to cloudflare runtime

* added get runtime api
added context to the runtime in "advanced" mode

* added typings and adjusted some return vars

* added default types

* added usage description to changeset and readme

Co-authored-by: AirBorne04 <unknown>
Co-authored-by: AirBorne04 <>
2022-10-26 09:46:25 -04:00
Fred K. Bot
4efbfdd78d
[ci] release (#5135)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-26 08:43:23 -04:00
Christian Fuss
e86723d931
[MDX] Improved docs for custom components (#5190)
* [MDX] Fixed minor formatting issues in README
- whitespace at line end
- blank lines around lists and code fences
- casing of internal references

* Detailed use of custom component with imported MDX

Incorporated all review comments from Sarah and Ben manually,
because the old branch would not pass the mergeability check.
2022-10-25 16:54:47 -04:00
Isaac McFadyen
a3d8615937
Added information about Pages flags (#5188) 2022-10-25 10:27:39 -04:00
Tony Sullivan
b77200f423
removes default content-visibility styles from image components (#5180) 2022-10-24 18:30:02 +00:00
Ben Holmes
308e565ad3
[MDX] Support recmaPlugins config (#5146)
* feat: support recma plugins

* chore: add `test:match` to MDX

* chore: changeset

* docs: add recmaPlugins to README
2022-10-24 14:27:37 -04:00
Georgey
61f7e16491
Update README.md (#5179)
Hey there, so recently I was playing around the mdx, and wanted my users to navigate to a specific section in my article using the `id` tags. This was not happening when I was making custom components. When I pass the Astro props like above, the id was automatically getting passed for headings.
2022-10-24 14:22:34 -04:00
Juan Martín Seery
abf41da774
fix(vercel): Include all files inside dist/ instead of only entry.mjs (#5175) 2022-10-24 11:24:52 -03:00
Emmanuel Chucks
ed2dfdae5b
fix: updates <Picture /> to pass HTML attributes down to the <img /> element (#5038)
* fix: also pass attrs to underlying img

`class` for direct img styling, `width` & `height` to prevent layout shift, etc need to be passed to the underlying img tag to work.

* remove redundant attr from picture tag

* revert to previous commit

- seemed to break some tests
- can't deal with fixing that right now, maybe later

* only passing attributes to the img

* adding a note to the README

* chore: add changeset

Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-10-20 19:42:36 +00:00
Fred K. Bot
863391f10e
[ci] release (#5117)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-19 15:29:21 -04:00
matthewp
d0c0a3b984 [ci] format 2022-10-19 19:23:39 +00:00
Jelenkee
5a674f976d
Prefetch styles only once (#5125)
* test1

* fixed test

* removed console.log

* changeset

* pnpm-lock

* fixed test again

* fta

* fta2

* fix: wait for fetch

* -fixed test template

* empty

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: My Name <my.name@my-company.com>
2022-10-19 15:20:45 -04:00
Juan Martín Seery
fad25aef2f
fix(vercel): fixed regression #5120 (#5127) 2022-10-19 14:24:26 -04:00
Nate Moore
850cc19fda
chore(vue): automatically add vuetify to ssr.noExternal (#5126)
Co-authored-by: Nate Moore <nate@astro.build>
2022-10-19 12:32:06 -05:00
Fred K. Bot
4c1ffef3e4
[ci] release (#5078)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-18 14:26:00 -04:00
matthewp
8cf692766b [ci] format 2022-10-18 15:49:01 +00:00
Matthew Phillips
5c0c6e1ac6
Mark @astrojs/node to be noExternal (#5114)
* Mark @astrojs/node to be noExternal

* Adding a changeset
2022-10-18 11:47:18 -04:00
Rishi Raj Jain
df4d84610a
Fix port env in standalone mode (#5111) 2022-10-18 15:31:21 +08:00
JuanM04
dd354f83e8 [ci] format 2022-10-14 20:21:16 +00:00
Juan Martín Seery
cd25abae59
feat(vercel): includeFiles and excludeFiles (#5085)
* refactor + include/excludeFiles

* Changeset

* Updated README.md

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

* Missing .js

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-10-14 17:19:35 -03:00
Juan Martín Seery
f8198d2502
feat(vercel): Edge improvements (#5086)
* Added error on "output" == "static"

* Minify output

* Changeset
2022-10-14 17:17:13 -03:00
Erika
ddfbef5acb
Fix astro add adding lines from extended configurations (#5095) 2022-10-14 15:16:41 -03:00
Bjorn Lu
0173c2b2df
Suppress warnings for solidjs dependency crawling (#5089) 2022-10-14 17:51:42 +08:00
Matthew Phillips
5fb7c9383a
Compat with Astro < 1.5 (#5082)
* Compat with Astro < 1.5

* Adding a changeset
2022-10-13 16:10:48 -04:00
Benjamin Geets
984bc7d0de
doc(node): fix import (#5079) 2022-10-13 15:30:31 -04:00
natemoo-re
4866ff882a [ci] format 2022-10-13 19:17:42 +00:00
Nate Moore
d25f54cb93
[Vue] add support for appEntrypoint (#5075)
* feat(vue): add support for appEntrypoint

* chore: add changeset

* test(vue): add tests for app entrypoint

* docs(vue): update README to include app entrypoint

* fix(vue): prefer resolvedVirtualModuleId

Co-authored-by: Nate Moore <nate@astro.build>
2022-10-13 14:15:57 -05:00
Fred K. Bot
81d57f2638
[ci] release (#5046)
* [ci] release

* Update packages/integrations/node/CHANGELOG.md

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

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-10-13 12:29:24 -04:00
Bjorn Lu
3918787cb9
Support relative protocol image URL (#5072)
* Support relative protocol image URL

* Fix test

* Actually fix test
2022-10-13 11:59:38 -04:00
Bjorn Lu
93f72f90bc
Fix image external config in build (#5073) 2022-10-13 11:16:08 -04:00
matthewp
575bf9205e [ci] format 2022-10-12 21:27:56 +00:00
Matthew Phillips
e55af8a232
Node.js standalone mode + support for astro preview (#5056)
* wip

* Deprecate buildConfig and move to config.build

* Implement the standalone server

* Stay backwards compat

* Add changesets

* correctly merge URLs

* Get config earlier

* update node tests

* Return the preview server

* update remaining tests

* swap usage and config ordering

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

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

* Update .changeset/metal-pumas-walk.md

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

* Update .changeset/metal-pumas-walk.md

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

* Update .changeset/stupid-points-refuse.md

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

* Update .changeset/stupid-points-refuse.md

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

* Link to build.server config

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-10-12 17:25:51 -04:00
Erika
0ea6187f95
Added support for updating tsconfig.json when using astro add (#4959)
* Added support for updating tsconfig.json when using astro add

* Refactor

* Remove unneeded change

* Fix build failling due to type difference

* Extend changeset description
2022-10-12 15:11:25 -03:00
Juan Martín Seery
a5e3ecc803
feat: restart dev server when tsconfig and tailwind config changes (#4947)
* First run

* Works with tailwind!

* Added TSConfig to watchlist

* Changeset

* Fix eslint

* Renamed `isConfigReload` --> `isRestart` and `injectWatchTarget` --> `addWatchFile`

* Refactored watchTargets to watchFiles

* Refactor createSettings

* addWatchFile now accepts URL

* Fix getViteConfig

* Expanded description of the change

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-10-12 11:36:33 -04:00
bluwy
5412c0c114 [ci] format 2022-10-12 14:34:35 +00:00
Bjorn Lu
f7fcdfe621
Support solidjs libraries (#5059) 2022-10-12 21:29:26 +08:00
Matthew Phillips
1e27992437
Update the Astro.cookies.set types to receive boolean and numbers (#5047) 2022-10-12 08:31:55 -04:00
Matthew Phillips
0f2a88ba5c
Allow class to be passed into Svelte islands (#5045)
* Allow class to be passed into svelte component

* Adding a changeset
2022-10-10 15:19:18 -04:00
Fred K. Bot
0ab0d8d863
[ci] release (#5019)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-10 11:44:22 -04:00
Juan Martín Seery
c1f991408b
fix(vercel): now works with monorepos (#5033)
* Upgraded nft

* Handle monorepo better

* Changeset

* Fixed common ancestor

* Fixed outdir
2022-10-10 11:37:03 -04:00
Bjorn Lu
2d9d422167
Support strict dependency install for image integration (#5034) 2022-10-10 11:35:48 -04:00
mandar1jn
c5484add6a
Corrected the getImage() paramaters (#5040) 2022-10-10 11:06:55 -04:00
Matthew Phillips
b1964e9e1b
Revert "Revert preact signals support (#4843)" (#5015)
This reverts commit 25a5b9a89a.
2022-10-10 09:01:15 -04:00
matthewp
2314e48f03 [ci] format 2022-10-07 21:10:32 +00:00
Matthew Phillips
062335dbf7
Fix remote images in SSG mode (#5021) 2022-10-07 17:08:15 -04:00
matthewp
145e2c575a [ci] format 2022-10-07 19:56:04 +00:00
Matthew Phillips
6efeaeb39e
Fix suppot for mui (#5016) 2022-10-07 15:54:25 -04:00
Fred K. Bot
4e8625fbfb
[ci] release (#5014)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-07 10:34:13 -04:00
Oskar Baumann
92b27e9c92
[@astrojs/prefetch]: Prevent prefetching current page (#5009)
* Check that removal of url.hash breaks no tests

* test if status-quo is as expected

* Adapt tests to fail

* Adapt the shouldPreload function to skip same path

* Add changeset
2022-10-07 10:13:51 -04:00
matthewp
358ffb541d [ci] format 2022-10-07 13:38:38 +00:00
Robin Lindner
5bbe385b21
Improve test infrastructure for integrations/deno (#5005)
* Improve test infrastructure for integrations/deno

* Add changeset

* Use declared type

* Remove changeset

* Upgrade deno version in -workflow
2022-10-07 09:36:24 -04:00
Fred K. Bot
778b915525
[ci] release (#4976)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-06 13:47:10 -04:00
tony-sull
e71fc8b5fc [ci] format 2022-10-06 15:55:06 +00:00
Oskar Baumann
a2b66c7549
[@astrojs/image]: Fix <Picture /> component with query string (#4997)
* remove query params from file extension

* Revert changes to make change as small as possible

* moving the removeQueryParam check to basename()

* chore: adding a changeset

* adding SSR test coverage for new picture test cases

Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-10-06 15:53:11 +00:00
Dan Jutan
0bd6dddfcf
Docs: add yarn workaround to node integration docs (#4978)
* Add yarn workaround to troubleshooting section

* npm can also cause this error
2022-10-06 10:37:58 -04:00
João Araújo
50a397c4ba
Update @builder.io/partytown dependency (#4989) 2022-10-06 10:33:01 -04:00
matthewp
2459426e6a [ci] format 2022-10-06 14:30:50 +00:00
Daniel
2dc582ac5e
adjusting cloudflare adapter and solid ssr to work together (#4888)
* adjusting cloudflare adapter (respecting user config)
define better solid ssr config

* only inline the framework

this needs to happen for worker build in order to have the correct build mode for the framework, which needs the nodejs no matter if it is for node or the browser.

Co-authored-by: AirBorne04 <daniel@floatingpixels.com>
2022-10-06 10:28:47 -04:00
Matthew Phillips
e5b526c3a5
Document Lit's limitations in SSR (#4999) 2022-10-06 10:18:08 -04:00
Fred K. Bot
bb022f5230
[ci] release (#4957)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-03 11:52:23 -04:00
Bjorn Lu
a59731995b
Suppress eslint warnings (#4953) 2022-10-03 23:37:21 +08:00
Fred K. Bot
16688162b4
[ci] release (#4945)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-01 08:11:59 -04:00
Scott Willsey
a8f1a91e7e
Astro image cache dependency fix scottaw66 (#4944)
* Moves http-cache-semantics from dev dependency to dependency

* Pull request for astro image http-cache-semantics dependency
2022-09-30 22:25:37 -05:00
Chris Swithinbank
f9261ddd00
Fix missing language tag on README code block (#4940) 2022-10-01 00:29:11 +02:00
Nate Moore
cf2bba1e4a
P5: fix MDX memory leak (#4939)
* fix(astro): tag jsx vnodes with renderer so errors are properly handled

* chore: fix missing package in test

Co-authored-by: Nate Moore <nate@astro.build>
2022-09-30 17:13:44 -05:00
Fred K. Bot
2ffdafff45
[ci] release (#4921)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-30 20:15:38 +00:00
tony-sull
7fdd494236 [ci] format 2022-09-30 17:29:32 +00:00
Tony Sullivan
64a1d712ef
[@astrojs/image] fixes a bug in dev when <Image /> is used with no transformation props (#4933)
* fix: return the original file in dev if no image transforms were used

* chore: add changeset
2022-09-30 17:27:56 +00:00
tony-sull
849fefd8b0 [ci] format 2022-09-29 21:22:49 +00:00
Tony Sullivan
9892989619
[@astrojs/image] adding caching support for SSG builds (#4909)
* adds a caching feature for SSG builds

* chore: add changeset

* nit: eslint fix

* chore: add readme docs for caching

* adding basic test coverage for cached images
2022-09-29 21:20:48 +00:00
Fred K. Bot
d08093f7d4
[ci] release (#4903)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-29 11:20:00 -04:00
bluwy
670d4bed45 [ci] format 2022-09-29 03:28:21 +00:00
Bjorn Lu
fd9d323a68
Support Vue JSX (#4897)
Co-authored-by: Dan Jutan <danjutan@gmail.com>
2022-09-29 11:25:45 +08:00
matthewp
55a1b5bb58 [ci] format 2022-09-28 20:57:35 +00:00