Erika
dc2496f702
chore: Fix image and MDX integrations version's number to get out of 1.0 ( #5892 )
...
* chore: Fix image integration version's number to get out of 1.0
* chore: Same thing for MDX integration
2023-01-18 09:43:04 -05:00
Happydev
006405d33c
Refactor Props
of Image
and Picture
component to support type checking ( #5788 )
...
* correct props type
* refactor Picture and Image typings
* add missing `alt` property
* add changeset
* apply suggestions
* correct `astro/types` import
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
* apply suggestions
* convert to type import
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-01-18 02:41:50 +00:00
Erika
1bd42c6b2a
Fix image integration not working on Node 18+ ( #5871 )
...
* fix(image): Remove unnecessary polyfill now that we dropped Node 14
* fix(squoosh): Remove fetch of local wasm binary since undici doesn't support that
* chore: changeset
2023-01-17 15:48:06 +01:00
Fred K. Bot
02b797fd3c
[ci] release (beta) ( #5792 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-12 11:40:35 -05:00
Nate Moore
c4b0cb8bf2
chore: update changelogs, add changeset for _astro
directory ( #5842 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-12 09:59:18 -06:00
natemoo-re
cb5dbcc51f
[ci] format
2023-01-09 16:03:47 +00:00
Nate Moore
f8f4d49aba
Output assets to _astro
directory ( #5772 )
...
* WIP: emit assets to _astro
* chore: better _astro handling
* refactor: emit server assets to `chunks/`
* chore: update /asset tests
* test: add explicit build output tests
* fix: update image to emit to configured asset path
* chore: update changeset
* chore: update image tests
* chore: update image tests
* test: update css test
* test: update bundling test
* test: update tests
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* chore: add clarifying comment
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-01-09 10:01:33 -06:00
Matthew Phillips
7572f74022
Add Astro as a peerDependency ( #5806 )
...
* Add Astro as a peerDependency
* Add changeset
* Update .changeset/thin-seahorses-worry.md
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-01-09 10:58:38 -05:00
Fred K. Bot
ec5a39c299
[ci] release (beta) ( #5742 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-06 13:00:12 -05:00
wulinsheng123
9963c6e4d5
feat: change path into assets ( #5584 )
...
* feat: change path
* feat: fix bug #5502
* fix: astro fix to patch
* feat: change to major
* chore: update changelog
* fix: change entryFileNames into assets folder
* fix: fix error message in test
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-01-05 10:41:10 -06:00
Fred K. Bot
2ba3bd9c16
[ci] release (beta) ( #5732 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-03 17:23:30 -05:00
Bjorn Lu
5eba34fcc6
Remove deprecated APIs ( #5707 )
...
* Remove deprecated Astro globals
* Remove deprecated hook param
* Fix test
* Add changeset
* Add TODO
2023-01-03 14:06:07 -05:00
Bjorn Lu
f6cf92b483
Upgrade to Vite 4 ( #5685 )
...
* Upgrade Vite 4
* Simplify Svelte preprocess setup
* Upgrade rollup
* Fix tests
* Fix wrong changeset target
* Fix error tests
* Set NODE_ENV default
2023-01-03 13:24:49 -05:00
Anders Kaseorg
53e0c98dae
Fix spelling mistakes found by codespell and mwic ( #5627 )
2022-12-19 12:00:00 +01:00
Fred K. Bot
d8e00a4871
[ci] release ( #5507 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-06 11:20:35 +01:00
truesri
65d27666e1
Fix bug: pass alt from getPicture to getImage ( #5521 )
2022-12-06 17:17:08 +08:00
Fred K. Bot
8450a09f14
[ci] release ( #5485 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-30 11:10:06 -05:00
wulinsheng123
299ae9bb6a
fix bug: added a warning if the image was GIF ( #5474 )
...
Co-authored-by: wuls <linsheng.wu@beantechs.com>
2022-11-28 14:27:39 -05:00
Chris Swithinbank
fcada72bd5
Integration READMEs code block sweep 🧹 ( #5455 )
2022-11-22 15:56:55 +01:00
Fred K. Bot
bbb329e65e
[ci] release ( #5419 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-17 10:52:42 -05:00
matthewp
c18c618a09
[ci] format
2022-11-16 21:58:37 +00:00
wulinsheng123
e2fb0c4ff2
Log error if failed to fetch remote image ( #5393 )
...
* I cant catch an error in the loadRemoteImage function when the fetch function occurs error
* I cant catch an error in the loadRemoteImage function when the fetch function occurs error
* fix ssg file
Co-authored-by: wuls <linsheng.wu@beantechs.com>
Co-authored-by: Okiki Ojo <okikio.dev@gmail.com>
2022-11-16 16:55:48 -05:00
Ted Diño
afb751dbd1
[docs] fix typo in image integration README ( #5416 )
2022-11-16 12:07:11 -04:00
Fred K. Bot
49c1a5d439
[ci] release ( #5399 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-16 10:07:56 -05:00
Matthew Phillips
40226dd14d
Use Vite to load non JS astro configs ( #5377 )
...
* Use Vite to load non JS astro configs
* Adding a changeset
* Allow config to not exist
* Use a file url
* Use proload as a fallback
* add missing peerdep
* fix lint mistakes
* Refactor the vite-load
* First check if the file exists
* Pass through fs
* Update packages/astro/src/core/config/vite-load.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Also load astro.config.cjs
* Do search before trying to load
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-11-15 10:02:23 -05:00
Matthew Phillips
ee750087ce
Fix usage of the Image component with the Vercel adapter ( #5361 )
...
* Revert "Revert "Allow image-pool to be used as its own Worker (#5317 )" (#5360 )"
This reverts commit 20e60c6e08
.
* Remove special image-pool.js moving around
* Merge in assetIncludes
* changeset
* Copy to chunk folder in SSR too
* Update tidy-shoes-yawn.md
2022-11-14 13:42:35 -05:00
Donald
df8092b007
Fix typo in image integration documentatation ( #5388 )
2022-11-13 23:00:14 -04: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
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
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
dc00ca4648
Share picture fallback image with source ( #5324 )
2022-11-09 08:31:09 -05: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
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
7f3b0398e0
Fix image test fail ( #5321 )
2022-11-08 08:31:05 -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
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
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
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
Tony Sullivan
b77200f423
removes default content-visibility styles from image components ( #5180 )
2022-10-24 18:30:02 +00: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
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
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
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