Commit graph

4994 commits

Author SHA1 Message Date
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
Alan
494c2b8353
Parallelize @astrojs/image transforms (#4626) 2022-09-06 14:29:20 +00:00
Sarah Rainsberger
5231ec05d2
[docs] update adapter READMESs to include astro add (#4595)
* update adapter READMES to include astro add

* missing space

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

Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-09-06 08:53:47 -04:00
Halí V
6506e84ccf
fix: add unique key to elements in map (#4607) 2022-09-06 08:49:51 -04:00
Dan Jutan
e6c80843f8
use unused self-documenting variable (#4605) 2022-09-06 08:41:36 -04:00
Fred K. Bot
9bcf3c6542
[ci] update lockfile (#4608)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-06 08:41:16 -04:00
Allan Chain
0068afb876
fix: ensure SSR module is loaded before testing is CSS (#4621) 2022-09-06 08:25:26 -04:00
Mohammed Elhaouari
63cd9d89e8
Fix AlpineJS homepage link (#4622)
* Update AlpineJS homepage

* Add changeset
2022-09-04 15:53:54 +02:00
Bjorn Lu
29a5fdc153
Correctly escape paths in file names (#4584) 2022-09-04 16:43:47 +08:00
Yan Thomas
893a02a1bb
Add deploy guides links to integrations READMEs (#4612) 2022-09-03 17:23:44 -03:00
Vinício Augusto
4d02f7775c
Typo in alpinejs integration README.md (#4611) 2022-09-03 21:46:51 +02:00
Daren Chandisingh
1bee84920a
examples: Blog template changes (#4577)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-09-03 16:58:00 +02:00
Fred K. Bot
7114aee208
[ci] release (#4604)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-02 16:50:59 -04:00
matthewp
e76c2afd1f [ci] format 2022-09-02 20:47:04 +00:00
Matthew Phillips
36dee7169b
Provide a better error message when no jsx renderer configured (#4603)
* Provide a better error message when no jsx renderer configured

* Add a changeset
2022-09-02 16:45:17 -04:00
Fred K. Bot
592de3d703
[ci] release (#4589)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-02 16:13:04 -04:00
Fred K. Bot
fdf10d40be
[ci] update lockfile (#4597)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-02 15:36:18 -04:00
Chris Swithinbank
b48c18e605
Docs process tweaks: update PR template & CODEOWNERS (#4591)
Co-authored-by: Dan Jutan <danjutan@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-09-02 18:39:42 +02:00
Chris Swithinbank
eb4eebde9e
Fix image integration README (#4599)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-09-02 17:05:04 +02:00
matthewp
c220f53b21 [ci] format 2022-09-02 01:29:14 +00:00
Matthew Phillips
8476f2a293
Fix client:only when used with JSX (#4592) 2022-09-01 21:27:26 -04:00
Fred K. Schott
f018e365cf
Small polish to the "missing adapter" error message (#4585)
* improve output server error message

* chore: changeset

Co-authored-by: bholmesdev <hey@bholmes.dev>
2022-09-01 21:34:20 +00:00
tony-sull
c62257f0b0 [ci] format 2022-09-01 21:26:15 +00:00
Jan Müller
72c760e9b8
feat(image): throw if alt text is missing (#4511)
* feat(image): throw if no `alt` is provided

* chore: add changeset

* docs(image): update README

* updated alt text stuff throughout

* fixing with-mdx test suite

* warn for missing alt text, will throw an error in a future release

* final README tweaks

Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-09-01 21:24:07 +00:00
tony-sull
df402ddc93 [ci] format 2022-09-01 20:34:20 +00:00
Tony Sullivan
56f83be92a
Fix: [@astrojs/image] handle filenames with spaces (#4593)
* fix: decode file URLs to handle filenames with spaces

* chore: add changeset
2022-09-01 20:31:53 +00:00
Fred K. Bot
9d86113114
[ci] update lockfile (#4570)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-01 12:35:46 -04:00
Bjorn Lu
16814dc718
Move ast-types as dev dependency (#4586) 2022-09-01 12:33:29 -04:00
Ben Holmes
db38f61b2b
[MDX] Fix: GFM and Smartypants missing by default (#4588)
* fix: apply Astro defaults on empty md config

* chore: changeset
2022-09-01 12:11:13 -04:00
tony-sull
ef0ed38339 [ci] format 2022-09-01 15:01:07 +00:00
Tony Sullivan
aeae89d6ae
refactor: Cleaning up all uses of hard-coded hashes in image tests (#4579) 2022-09-01 14:58:57 +00:00
Fred K. Bot
005d53145f
[ci] release (#4555)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-31 18:03:27 -04:00