Commit graph

2761 commits

Author SHA1 Message Date
Bjorn Lu
3ae2a961b7
Respect Vite user config for third-party packages (#5345) 2022-11-11 14:22:43 +08:00
Fred K. Bot
7ec016fec3
[ci] release (#5359)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-10 16:09:24 -08:00
Matthew Phillips
20e60c6e08
Revert "Allow image-pool to be used as its own Worker (#5317)" (#5360)
* Revert "Allow image-pool to be used as its own Worker (#5317)"

This reverts commit d701ae074a.

* Adding a changeset

* Remove diff

* Remove unused code
2022-11-10 16:07:22 -08:00
Michael Rienstra
ae41f25e10
Consistent MD frontmatter typing (#5294)
* consistent MD frontmatter typing

* changeset
2022-11-10 14:54:34 -08:00
matthewp
edfbb0c9dd [ci] format 2022-11-10 22:14:23 +00:00
Matthew Phillips
b3d936ac24
Updated CSS naming algorithm (#5353)
* Updated CSS naming algorithm

* Adding a changeset

* Fix windows
2022-11-10 14:12:42 -08:00
Fred K. Bot
f8115180f3
[ci] release (#5329)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-10 13:01:45 -08:00
matthewp
c0cb65b18d [ci] format 2022-11-10 05:36:02 +00:00
Matthew Phillips
2d3c035bf9
Fixes failing mdx test (#5344) 2022-11-09 21:34:23 -08:00
matthewp
d82b392030 [ci] format 2022-11-10 04:18:49 +00:00
Matthew Phillips
1e6bbb2924
Change 404 to 301 for omitting base for items in public (#5342) 2022-11-09 20:16:44 -08:00
matthewp
b5269bee4d [ci] format 2022-11-09 19:28:54 +00:00
Matthew Phillips
7e19e8b30d
Prevent mdx server hangs on JSX checking (#5330)
* Prevent mdx server hangs on JSX checking

* Adding a changeset

* Try a different approach to skips
2022-11-09 13:26:54 -06:00
Nate Moore
03a8f89d5f
Upgrade compiler (#5339)
* chore: upgrade @astrojs/compiler

* fix: update test to match new compiler behavior

* test: verify that all styles are bundled

Co-authored-by: Nate Moore <nate@astro.build>
2022-11-09 12:55:52 -06:00
Princesseuh
bab0e8bf53 [ci] format 2022-11-09 15:56:16 +00:00
Erika
a780f2595d
Migrate error messages to new format (and misc error improvements) (#5316)
* Migrate messages to errors data file

* Move errors to new 'error database' for easier improvements

* Fix tests

* Add changeset

* Remove unnecessary console.log

* Apply suggestions from code review

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

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

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

* Misc punctuations fixes and additions to README

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-11-09 11:53:42 -04:00
Matthew Phillips
faa01cec73
Fix the image tests (#5338)
* Fix the image tests

* fix more base tests
2022-11-09 11:22:53 -04:00
Bjorn Lu
230d71f4b7
Move rehype-pretty-code as devDep (#5337) 2022-11-09 22:23:05 +08:00
matthewp
92374c0f75 [ci] format 2022-11-09 13:35:06 +00:00
Bjorn Lu
dca762cf73
Preserve code element node meta for rehype syntax highlighters (#5335) 2022-11-09 08:32:13 -05:00
Bjorn Lu
dc00ca4648
Share picture fallback image with source (#5324) 2022-11-09 08:31:09 -05:00
Matthew Phillips
bcd0f8f8c4
404 when not using subpath for items in public in dev (#5328)
* 404 when not using subpath for items in public

* Adding a changeset
2022-11-09 08:30:02 -05:00
matthewp
48bde7018e [ci] format 2022-11-08 22:31:47 +00:00
Matthew Phillips
688f8e4bc1
Allow dynamic segments in injected routes (#5331)
* Allow dynamic segments in injected routes

* Little better

* Fallback for resolveId too
2022-11-08 17:30:09 -05:00
Princesseuh
dcdeca56ac [ci] format 2022-11-08 18:39:22 +00:00
Erika
0dcdc6fb1e
Update language-server and prettier plugin to latest versions (#5327)
* Update language-server and prettier plugin to latest versions

* Update lockfile
2022-11-08 14:37:19 -04:00
Fred K. Bot
e8ff4571f2
[ci] release (#5325)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-08 13:00:53 -05:00
matthewp
eed81fa213 [ci] format 2022-11-08 17:17:13 +00:00
Matthew Phillips
88c1bbe3a7
Ensure astro-island scripts render when using Astro.slots.render (#5326)
* Ensure astro-island scripts render when using Astro.slots.render

* Adding a changeset
2022-11-08 12:15:32 -05:00
Nate Moore
b211eadeff
create-astro bug fixes (#5319)
* fix(create-astro): upgrade cli-kit

* fix(create-astro): avoid setRawMode error

* chore(lint): disable create-astro linting

Co-authored-by: Nate Moore <nate@astro.build>
2022-11-08 10:33:36 -06:00
matthewp
982e446e8d [ci] format 2022-11-08 16:16:50 +00:00
Matthew Phillips
d701ae074a
Allow image-pool to be used as its own Worker (#5317)
* Allow image-pool to be used as its own Worker

* Adding a changeset

* fix image tests

* update picture tests

* Pass the current URL
2022-11-08 11:14:51 -05:00
Bjorn Lu
a79a37cad5
Support environment variables in Cloudflare and Netlify Edge functions (#5301)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-11-08 21:54:49 +08:00
Bjorn Lu
7f3b0398e0
Fix image test fail (#5321) 2022-11-08 08:31:05 -05:00
Fred K. Bot
56c37a6287
[ci] release (#5296)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-07 15:25:20 -05:00
matthewp
4280bb8cf8 [ci] format 2022-11-07 20:16:23 +00:00
Matthew Phillips
f6add3924d
When creating a new dev container, restart it if previously started (#5314)
* When creating a new dev container, restart it if previously started

* Adding a changeset
2022-11-07 15:14:34 -05:00
Andy
77e20d54c7
Fix typo in create-astro messages (#5312) 2022-11-07 10:07:21 -05:00
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
Montel
97e2b6ad7a
Adds astro cli dynamic imports (#5292)
* change add, build, preview, devServer and telemtryHandler imports to dynamic

* update changelog for astro cli imports change
2022-11-04 09:37:37 -04:00
matthewp
4cf87eb29f [ci] format 2022-11-04 13:11:59 +00:00
wulinsheng123
247eb7411f
fix: fix bug #5267 (#5298)
* fix: fix bug #5267

* fix: add changeset

* fix: on frozen lockfile

Co-authored-by: wuls <linsheng.wu@beantechs.com>
2022-11-04 09:09:55 -04:00
matthewp
f20ff17aa3 [ci] format 2022-11-03 20:40:52 +00:00
Matthew Phillips
4af4d8fa00
Prevent overcaching of astro components for HMR (#5293)
* Prevent overcaching of astro components for HMR

* Get tests working in windows

* Use the right drive

* Adding a changeset
2022-11-03 16:38:22 -04:00
bluwy
e7dc8b956d [ci] format 2022-11-03 15:33:10 +00:00
wulinsheng123
e3cddb433d
chore: fix tests in node 18 (#5266) 2022-11-03 23:31:26 +08: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
matthewp
50e5e576bc [ci] format 2022-11-03 12:07:39 +00:00
Leonard Hertel
126cd8e83f
fix(astro): add class:list to HTMLAttributes (#5284) 2022-11-03 08:05:22 -04:00
Matthew Phillips
c7b9b14a1e
Surface configuration errors to the client (#5273)
* Surface configuration errors to the client

* Actually start the container on restart

* Add beforeRestart to clear the console

* Some minor changes, restarted() returns an Error maybe

* Refactor testing code

* Adding a changeset
2022-11-03 08:04:33 -04:00
Aleksa
a558cf317a
fix homepage url for integrations (#5281)
* fix homepage url for integrations

* Create curvy-countries-kiss.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-11-02 15:04:11 -05:00
bluwy
29ac34aea2 [ci] format 2022-11-02 12:45:32 +00:00
Vlad Cuciureanu
0d27c4a2b6
Fix memleak when project path contains '.md' (#5264) 2022-11-02 20:43:36 +08:00
Johan Bergström
78145c7de5
[docs] cloudflare directory nits (#5278) 2022-11-02 09:40:54 -03:00
bluwy
a685acf6de [ci] format 2022-11-02 06:58:46 +00:00
Bjorn Lu
1cc0670524
Refactor CSS preprocessing handling (#5236) 2022-11-02 14:57:03 +08: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
63a3282f81 [ci] format 2022-11-01 12:59:39 +00:00
Matthew Phillips
c77a6cbe34
Graceful error recovery in the dev server (#5198)
* Graceful error recovery in the dev server

Move dev-container to dev

Update for the lockfile

Invalidate modules in an error state

Test invalidation of broken modules

Remove unused error state

Normalize for windows

try a larger timeout

Fixes build

just for testing

more testing

Keep it posix

fully posix

* Fix up Windows path for testing

* some debugging

* use posix join

* finally fixed

* Remove leftover debugging

* Reset the timeout

* Adding a changeset
2022-11-01 08:57:23 -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. Schott
1b79ac7018
Add a thank you to the original author of the original webapi package (#5246) 2022-10-31 13:24:12 -04:00
bluwy
e25fed2f49 [ci] format 2022-10-31 17:00:36 +00:00
Bjorn Lu
74759cf787
Allow 200 response for endpoints in build (#5258) 2022-11-01 00:58:54 +08: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
Matthew Phillips
7d678c9ed0
Upgrade compiler to latest (#5243)
* Upgrade compiler to latest

* Adding a changeset

* Update tests for IIFE wrapping

* Update .changeset/chilly-zoos-exist.md

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

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-10-28 16:13:31 -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
natemoo-re
daa062cc3d [ci] format 2022-10-28 19:07:40 +00:00
Nate Moore
d9be7e36b8
fix(create-astro): improve error messages when create-astro fails (#5240)
Co-authored-by: Nate Moore <nate@astro.build>
2022-10-28 14:05:46 -05: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
natemoo-re
e35bc26186 [ci] format 2022-10-28 17:26:22 +00:00
Nate Moore
641b6d7d58
feat(create-astro): add --fancy flag (#5226)
Co-authored-by: Nate Moore <nate@astro.build>
2022-10-28 12:24:14 -05:00
Sebastiaan
b6a478f376
Fix/node custom elements (#5235)
* adapter-node fix CustomElementRegistry

* Add changeset

* Add fallback CustomElementRegistry
2022-10-28 12:34:30 -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
Happydev
26ff429058
fix not omitted extension in url metadata for newly added markdown files in development (#5238)
* test: add tests

* test: add test case

* test: update test

* fix: add new extensions to regex used to removed

* chore: add changeset

* test: update test
2022-10-28 11:58:34 -04:00
Bjorn Lu
c98c5aa0ae
Improve Solid libraries config handling (#5208) 2022-10-28 23:30:54 +08:00
Bjorn Lu
7f8987085c
Support rendering @motionone/solid components (#5233) 2022-10-28 10:42:37 -04: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
Bjorn Lu
a609a8937f
Upgrade Vite to 3.2 (#5212) 2022-10-28 22:03:07 +08: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
Princesseuh
25a6360a60 [ci] format 2022-10-27 18:47:50 +00:00
Erika
7fc5d55952
Fix errors that are not instanceof Error crashing the dev server (#5216)
* Fix errors that are not instanceof Error crashing the dev server

* Update lockfile

* Fix import paths
2022-10-27 15:44:48 -03:00
Erika
8c83359e38
Fix types.d.ts not being included in the npm package (#5217) 2022-10-27 15:43:20 -03:00
Princesseuh
018cc7d51f [ci] format 2022-10-27 17:40:25 +00:00
Erika
d64d5b9b52
Refactor error handling (#5206)
* Refactor error handling

* Fix import path in test

* Revert "Fix import path in test"

This reverts commit 5ca34f3c09.

* Fix import path in test

* Fix AggregateErrors actually not being.. an aggregration of errors

* Fix missing info in Vite enhanced error

* Conserve original error name if we have one

* Workaround compiler issue

* GitHub action please

* Update E2E test

* Wrap ssrFixStacktrace in try/catch

* Refactor Vite/Node methods out of the general index.ts

* Fix missing import

* Add changeset
2022-10-27 14:37:53 -03: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
Bjorn Lu
3d99fdd1e7
Improve Astro libraries config handling (#5203) 2022-10-27 14:54:41 +08:00
Michael Rienstra
22ca6a6056
docs: extendDefaultPlugins cross-linking (minor) (#5204) 2022-10-26 21:32:49 +02:00
Jutanium
fc5cb2a51d [ci] format 2022-10-26 18:37:12 +00:00
Dan Jutan
81310b1dde
Error message: clarify "adapter does not have previewEntrypoint" (#5182)
* clarify preview error message

* Update packages/astro/src/core/preview/index.ts

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

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-10-26 14:35:34 -04:00