Commit graph

2352 commits

Author SHA1 Message Date
Matthew Phillips
f1efd88dde
Compatiblity between hoisted scripts and tailwind integration (#4755)
* Compatiblity between hoisted scripts and tailwind integration

* Adds a changeset
2022-09-14 13:51:38 -04:00
Bjorn Lu
1bedb9427e
Support Vite 3.1 (#4752)
* Support Vite 3.1

* Update ~3.1.0

* Revert Vite bump
2022-09-14 12:01:50 -04:00
Bjorn Lu
c5e134d035
Fix console.error filtering (#4748) 2022-09-14 22:08:34 +08:00
Bjorn Lu
13ca686ea1
Handle builds with outDir outside of cwd (#4736) 2022-09-14 21:24:35 +08:00
matthewp
a36d51d433 [ci] format 2022-09-14 11:59:49 +00:00
Matthew Phillips
cf8a7e933d
Properly handle multipart file uploads in the dev server (#4742)
* Properly allow file uploads in the dev server

* Smaller image

* movethe test over
2022-09-14 07:58:00 -04:00
Fred K. Bot
150cd8a582
[ci] release (#4729)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-13 15:15:05 -04:00
Nate Moore
8cfb3fb535
Migrate examples to type: module (#4662)
* chore: move examples to type module

* chore: prefer astro.config.mjs to astro.config.js

* chore: reference CJS config file

Co-authored-by: Nate Moore <nate@astro.build>
2022-09-13 14:02:57 -05:00
Ben Holmes
4bc70f3545
Fix route validation for Netlify Edge (#4722)
* fix: serialize route pattern for Netlify edge

Co-authored-by: Jackie Macharia <jackiewmacharia>

* chore: changeset
2022-09-12 19:33:44 -04:00
matthewp
8903edee88 [ci] format 2022-09-12 20:37:25 +00:00
Matthew Phillips
6efafa4b0e
Use import order to sort CSS in prod (#4724)
* Use import order to sort CSS in prod

* Adding a changeset

* Pass through the parent id

* Update remaining test
2022-09-12 16:35:39 -04:00
Fred K. Bot
56e225b41a
[ci] release (#4707)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-12 15:08:39 -04:00
Ben Holmes
6e1d62fe22
[RSS] Fix failure when globbing index route (#4701)
* fix: [rss] throw on undefined urls only

* test: "" url, passing glob outside pages/

* chore: changeset
2022-09-12 15:05:57 -04:00
matthewp
d614be4900 [ci] format 2022-09-12 18:43:54 +00:00
Juan Martín Seery
16113c3ae2
[vercel] Use Edge Functions instead of Edge Middlewares (#4713)
* Don't use middleware

* changeset

* breaking change
2022-09-12 14:40:48 -04:00
Matthew Phillips
0dba3b6f3f
Make error handling more resilient in the dev server (#4723)
* Make error handling more resilient in the dev server

* Better approach

* Add a changeset
2022-09-12 14:40:31 -04:00
Erika
5b6173fd03
Add an error message for improperly configured renderers (#4705)
* Add error messages for wrongly configured renderers

* Add changeset
2022-09-12 11:55:06 -03:00
Ikko Ashimine
ee03967f92
Fix typo in render/head.ts (#4720) 2022-09-12 16:29:13 +08:00
Ben Holmes
b0ee81d0a7
Fix: Vue script setup with other renderers applied (#4706)
* fix: add __ssrInlineRender to Vue check

* chore: remove console log

* test: vue builds with other renderer present

* chore: changeset
2022-09-09 19:09:59 -04:00
Fred K. Bot
100b8d0583
[ci] release (#4702)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-09 17:18:03 -04:00
Ben Holmes
d28f7013c2
Fix [astro add] fetch failure (#4703)
* fix: apply fetch polyfill earlier

* chore: changeset
2022-09-09 16:56:07 -04:00
tony-sull
f226b677b8 [ci] format 2022-09-09 20:16:27 +00:00
Oussama Bennaci
1e5d8ba9af
[@astrojs/image] support additional resize options (#4438)
* working draft

* more sharp params

* add changeset

* fix typing

* wip

* add missing docblocks

* update lock file

* remove enlargement and reduction resize options

* add tests

* Add docs

* support crop options in pictures

* cleanup

* define crop types in docs

* cleanup

* remove kernel option

Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-09-09 20:13:59 +00:00
Fred K. Bot
2737cabd10
[ci] release (#4698)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-09 14:58:03 -04:00
matthewp
07736f74c0 [ci] format 2022-09-09 18:54:10 +00:00
Matthew Phillips
b85d05a841
Fix client:only CSS missing from child packages (#4699) 2022-09-09 14:51:58 -04:00
Ben Holmes
d1e6959147
[astro add] Move config update to final step (#4682)
* feat: move astro.config update to end

* chore: changeset
2022-09-09 14:06:39 -04:00
Lloyd Atkinson
eb4f6faee6
docs: add section on .mdx file support in VS Code (#4694)
* docs: add section on .mdx file support in VS Code

* Update packages/integrations/mdx/README.md

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

Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-09-09 13:13:09 -04:00
matthewp
64f11c4cee [ci] format 2022-09-09 16:00:38 +00:00
Alan
255636cc7b
Add support for custom non-html route encoding (#4549)
* Add custom encoding support for non-html routes

* Add changeset

* Add tests for png and json routes
2022-09-09 11:58:24 -04:00
Ben Holmes
c706d845eb
No 👏 more 👏 server 👏 restarts 👏 on 👏 config 👏 changes (#4578)
* feat: restart config on add, remove, update

* fix: reload for root project configs only

* fix: throw when userConfigPath can't resolve

* chore: changeset

* wip: remove normalizePath before writeFile

* refactor: invalidateWithCache -> isConfigReload

* wip: mustExist?

* debug: config loaded successfully

* debug: more logs

* debug: MORE logging

* fix: normalize resolved config path

* debug: yet MORE logging

* chore: bump proload

* fix: use file path, not URL.pathname

* Revert "wip: mustExist?"

This reverts commit 8ca8662132532dcdc9fd120868e615ddc60f498e.

* chore: remove console log

* feat: cleanup restart message, better invalid config handling

* chore: update lockfile

* chore: fix types

* fix: throw helpful error when config does not exist

* docs: remove "restart dev server" from integrations

* docs: make sure to restart -> try restarting

Co-authored-by: Nate Moore <nate@astro.build>
2022-09-09 11:58:16 -04:00
Fred K. Bot
b6dd8b595c
[ci] release (#4680)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-09 10:56:48 -04:00
matthewp
e5fd0a4946 [ci] format 2022-09-09 14:56:07 +00:00
Ben Holmes
f27ca6ab3e
Fix: Windows client-side script reloads on dev server (#4645)
* fix: append forward slash to script paths for "C:/" prob

* chore: remove dead regex

* chore: changeset

* test: add client script test back to windows!

* test: add inline script test for sanity

* The actual fix

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-09-09 10:53:34 -04:00
matthewp
e81292c4ab [ci] format 2022-09-09 13:04:29 +00:00
Matthew Phillips
63e49c3b64
Prevent locking up when encountering invalid CSS (#4675)
* Prevent locking up when encountering invalid CSS

* Add a changeset

* Move the unit test to the test folder

* ponyfill aggregateerror

* Use the exported type

* keep original errors

* fix
2022-09-09 09:02:06 -04:00
Happydev
4753d21949
docs: correct typo in @astrojs/node integration (#4688) 2022-09-08 23:01:27 -04:00
natemoo-re
65d753488e [ci] format 2022-09-08 22:05:06 +00:00
Dan Jutan
fcb9a05c31
Remove devDependency flag from astro add (#4666)
* remove dev dependency flag

* remove redundant space if no flags
2022-09-08 17:03:09 -05:00
Nate Moore
919df13b91
Improve cyclic reference detection, now ignores non-cyclic shared references (#4684)
* fix: improve cyclic reference detection, now ignores references that are not parent/child

* fix: only track cyclic parents

Co-authored-by: Nate Moore <nate@astro.build>
2022-09-08 17:02:29 -05:00
Erika
cc242d3af2
Fix TypeScript compilation errors (#4683)
* Fix TypeScript compilation errors

* Update lockfile

* Add changeset
2022-09-08 16:31:54 -03:00
Tony Sullivan
4c05c65a3d
[@astrojs/image] Build all optimized images to dist/assets (#4678)
* fix: build all optimized images to dist/assets

* chore: add changeset
2022-09-08 18:41:17 +00:00
matthewp
ef7ba4507a [ci] format 2022-09-08 16:32:36 +00:00
Matthew Phillips
5986517b4f
Make React integration work with Deno (#4679)
* Remove removed packages folder

* fix

* Add a changeset
2022-09-08 12:30:49 -04:00
Benjamin Holmes
9290b24143
Fix component frameworks on Vercel Edge (#4667)
* fix: use while instead of "for await" in react integration

* fix: cast HTML to string to fix other integrations

* docs: add comment on encode(String(html))

* chore: changeset

Co-authored-by: bholmesdev <hey@bholmes.dev>
2022-09-07 19:41:37 -04:00
Fred K. Bot
f165353e7a
[ci] release (#4657)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-07 21:29:44 +00:00
Elian ☕️
808cfcdb1c
Docs Typo fixes (#4664) 2022-09-07 17:05:13 -03:00
John Daly
d31e72c3ba
fix: exportName metadata for JSXMemberExpressions that use named imports (#4403)
* fix: exportName metadata for JSXMemberExpressions that use named imports

* Adding changeset

* Adding E2E test

* Adding tests for MDX
2022-09-07 13:51:09 -05:00
natemoo-re
c01194b9d8 [ci] format 2022-09-07 18:50:48 +00:00
Marvin Hagemeister
999250d651
Automatically set up Preact DevTools in dev mode (#4515) 2022-09-07 13:49:07 -05:00