Commit graph

4175 commits

Author SHA1 Message Date
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
Brendan O'Leary
80ae62ad99
Fix theme.css location in docs starter project (#4697)
* Fix theme.css location in docs starter project

* Also fix in diff display

Co-authored-by: Brendan O'Leary <boleary@gitlab.com>
2022-09-09 12:19:45 -05: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
Fred K. Bot
d136864bff
[ci] update lockfile (#4693)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-09 09:41:07 -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
Abdelkader Boudih
b5c436cfd8
Fix typo in node integration README (#4690) 2022-09-09 13:02:23 +02: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
Fred K. Bot
ce48931aad
[ci] update lockfile (#4673)
* [ci] update lockfile

* Remove removed packages folder

Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-09-08 12:48:39 -04: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
Nate Moore
4b73d34744
fix: add private to component to prevent accidental publish (#4668)
Co-authored-by: Nate Moore <nate@astro.build>
2022-09-07 17:23:47 -05:00
Dan Jutan
d6adb67ae4
chore: update component template (#4540)
Co-authored-by: Nate Moore <nate@astro.build>
2022-09-07 18:16:54 -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
Nate Moore
98f242cdcd
Throw helpful errors when attempting to serialize cyclic references (#4646)
* fix(#4332): add helpful error on cyclic references

* chore: add changeset

* test(e2e): add cyclic reference test

* test(e2e): add preact integration

* chore: update lockfile

* fix: ensure vite client is loaded for 500 responses

Co-authored-by: Nate Moore <nate@astro.build>
2022-09-07 13:25:26 -05:00
tony-sull
b5a91d40b7 [ci] format 2022-09-07 17:26:36 +00:00
Valentin Bersier
e4348a4eb4
@astrojs/image: add a background option/prop to replace the alpha layer (#4642)
* Added `background` option and prop.
This optional color specifies which background to use when removing the
alpha channel if the output format doesn't support transparency.

* Modified existing tests

* Fixed wrong dimensions in tests

* Fixing a few instances of jpeg vs jpg

* Added color checking

* working on the tests

* tests are now passing

* Adding tests

* Added tests for background color

* no need to test with subpath

* Added fixture

* Renamed test fixture for background-color

* skipping test until fixed

* Typo

* Working on tests

* tests are passing

* Updated readme and added changeset

* Updated lockfile

* Updated lockfile

* Updated lockfile

Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-09-07 17:22:11 +00:00
Tony Sullivan
93c3aee01c
fixes an eslint error (#4659) 2022-09-07 16:33:57 +00:00
Fred K. Bot
6ca0c5839f
[ci] update lockfile (#4655)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-07 11:23:53 -05:00
tony-sull
c080438b89 [ci] format 2022-09-07 13:57:52 +00:00
Tony Sullivan
db70afdcd5
[@astrojs/image] Fixes a regression in remote image filenames (#4649)
* fixes a bug in filename creation for remote images without a file extension

* chore: add changeset
2022-09-07 13:56:07 +00:00
Matthew Phillips
6d845c353d
Upgrade minimum compiler version (#4656)
* Upgrade minimum compiler version

* Add changeset

* Update lockfile
2022-09-07 08:29:54 -04:00
Tibor Schiemann
d693e365ca
Integrations: Fix NPM instructions to use npx astro add again (#4653)
* Fix install instructions to use `npx astro` again

* Replace joyful hiccups with regular issues :)
2022-09-07 12:08:58 +02:00
Fred K. Bot
481e0d1d8a
[ci] release (#4620)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-06 15:40:15 -04:00
matthewp
d1d1e0ec12 [ci] format 2022-09-06 19:05:35 +00:00
Matthew Phillips
307b7b97ce
When removing duplicate CSS, also remove from metadata (#4643)
* When removing duplicate CSS, also remove from metadata

* Adding a changeset
2022-09-06 15:03:02 -04:00
Chris Swithinbank
eb1862b4e6
Improve third-party Astro package support (#4623) 2022-09-06 19:04:56 +02:00
Jutanium
965a493a39 [ci] format 2022-09-06 15:58:28 +00:00
Dan Jutan
186a06eb02
Update portfolio, removing Sass and Preact (#4556)
* remove sass and preact from portfolio example

* add back public folder

* remove lockfile

* Update examples/portfolio/src/layouts/project.astro

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

* run prettier

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

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

* remove wrapper class

* remove button component; fix padding

* improve mobile layout

* lockfile

* Revert "lockfile"

This reverts commit e32518f444.

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

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

* Update examples/portfolio/src/components/Nav.astro

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

* update astro

* lockfile (again)

Co-authored-by: Ben Holmes <hey@bholmes.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-09-06 11:56:09 -04:00
matthewp
91a9cb0764 [ci] format 2022-09-06 15:12:47 +00:00
Matthew Phillips
f08ca005e2
Add vueperslides to noExternal in vue integration (#4639) 2022-09-06 11:11:01 -04:00
Dan Jutan
a32bbe7289
remove subpath and env-vars examples (#4606) 2022-09-06 10:33:08 -04:00
tony-sull
29f044267f [ci] format 2022-09-06 14:32:19 +00:00