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
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. 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
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
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
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
Bjorn Lu
c98c5aa0ae
Improve Solid libraries config handling ( #5208 )
2022-10-28 23:30:54 +08: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
Happydev
0b12414315
remove unnecessary ReactDOM.renderToString
operation ( #5218 )
...
* remove useless `ReactDOM.renderToString` operation
* chore: add changeset
2022-10-27 21:05:18 -05: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
Sarah Rainsberger
707cac9fdf
[docs] Cloudflare integration README edits ( #5205 )
...
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-10-26 15:23:47 -03:00
Happydev
4a8a346ca9
feat: add support for other markdown file extensions ( #5164 )
...
* fix: add `.markdown ` file extension support
adds `.markdown` file extension support for markdown files
* test: add test case
* chore: adds changeset
* test: move test and fixture to relevant locations
* test: update test
* feat: add multiple markdown file extension support
* feat: add module declaration for different markdown file extensions
* refactor: markdown module declarations
for ease of TS refactoring
* fix: add .js extension to module imports
* test: update test
* chore: update changeset
* chore: update changeset
* test: add new test cases
* test: update tests
* fix: correct typo
2022-10-26 10:18:49 -04:00
Daniel
d151d9f3f2
enable access to cloudflare runtime ( #5103 )
...
* enable access to cloudflare runtime
* added get runtime api
added context to the runtime in "advanced" mode
* added typings and adjusted some return vars
* added default types
* added usage description to changeset and readme
Co-authored-by: AirBorne04 <unknown>
Co-authored-by: AirBorne04 <>
2022-10-26 09:46:25 -04: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
Christian Fuss
e86723d931
[MDX] Improved docs for custom components ( #5190 )
...
* [MDX] Fixed minor formatting issues in README
- whitespace at line end
- blank lines around lists and code fences
- casing of internal references
* Detailed use of custom component with imported MDX
Incorporated all review comments from Sarah and Ben manually,
because the old branch would not pass the mergeability check.
2022-10-25 16:54:47 -04:00
Isaac McFadyen
a3d8615937
Added information about Pages flags ( #5188 )
2022-10-25 10:27:39 -04:00
Tony Sullivan
b77200f423
removes default content-visibility styles from image components ( #5180 )
2022-10-24 18:30:02 +00:00
Ben Holmes
308e565ad3
[MDX] Support recmaPlugins
config ( #5146 )
...
* feat: support recma plugins
* chore: add `test:match` to MDX
* chore: changeset
* docs: add recmaPlugins to README
2022-10-24 14:27:37 -04:00
Georgey
61f7e16491
Update README.md ( #5179 )
...
Hey there, so recently I was playing around the mdx, and wanted my users to navigate to a specific section in my article using the `id` tags. This was not happening when I was making custom components. When I pass the Astro props like above, the id was automatically getting passed for headings.
2022-10-24 14:22:34 -04:00
Juan Martín Seery
abf41da774
fix(vercel): Include all files inside dist/
instead of only entry.mjs
( #5175 )
2022-10-24 11:24:52 -03: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
863391f10e
[ci] release ( #5117 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-19 15:29:21 -04:00
matthewp
d0c0a3b984
[ci] format
2022-10-19 19:23:39 +00:00
Jelenkee
5a674f976d
Prefetch styles only once ( #5125 )
...
* test1
* fixed test
* removed console.log
* changeset
* pnpm-lock
* fixed test again
* fta
* fta2
* fix: wait for fetch
* -fixed test template
* empty
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: My Name <my.name@my-company.com>
2022-10-19 15:20:45 -04:00
Juan Martín Seery
fad25aef2f
fix(vercel): fixed regression #5120 ( #5127 )
2022-10-19 14:24:26 -04:00
Nate Moore
850cc19fda
chore(vue): automatically add vuetify
to ssr.noExternal
( #5126 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-10-19 12:32:06 -05:00
Fred K. Bot
4c1ffef3e4
[ci] release ( #5078 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-18 14:26:00 -04:00
matthewp
8cf692766b
[ci] format
2022-10-18 15:49:01 +00:00
Matthew Phillips
5c0c6e1ac6
Mark @astrojs/node to be noExternal ( #5114 )
...
* Mark @astrojs/node to be noExternal
* Adding a changeset
2022-10-18 11:47:18 -04:00
Rishi Raj Jain
df4d84610a
Fix port env in standalone mode ( #5111 )
2022-10-18 15:31:21 +08:00
JuanM04
dd354f83e8
[ci] format
2022-10-14 20:21:16 +00:00
Juan Martín Seery
cd25abae59
feat(vercel): includeFiles
and excludeFiles
( #5085 )
...
* refactor + include/excludeFiles
* Changeset
* Updated README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Missing .js
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-10-14 17:19:35 -03:00
Juan Martín Seery
f8198d2502
feat(vercel): Edge improvements ( #5086 )
...
* Added error on "output" == "static"
* Minify output
* Changeset
2022-10-14 17:17:13 -03:00
Erika
ddfbef5acb
Fix astro add
adding lines from extended configurations ( #5095 )
2022-10-14 15:16:41 -03:00
Bjorn Lu
0173c2b2df
Suppress warnings for solidjs dependency crawling ( #5089 )
2022-10-14 17:51:42 +08:00
Matthew Phillips
5fb7c9383a
Compat with Astro < 1.5 ( #5082 )
...
* Compat with Astro < 1.5
* Adding a changeset
2022-10-13 16:10:48 -04:00
Benjamin Geets
984bc7d0de
doc(node): fix import ( #5079 )
2022-10-13 15:30:31 -04:00
natemoo-re
4866ff882a
[ci] format
2022-10-13 19:17:42 +00:00
Nate Moore
d25f54cb93
[Vue] add support for appEntrypoint
( #5075 )
...
* feat(vue): add support for appEntrypoint
* chore: add changeset
* test(vue): add tests for app entrypoint
* docs(vue): update README to include app entrypoint
* fix(vue): prefer resolvedVirtualModuleId
Co-authored-by: Nate Moore <nate@astro.build>
2022-10-13 14:15:57 -05: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
Erika
0ea6187f95
Added support for updating tsconfig.json when using astro add ( #4959 )
...
* Added support for updating tsconfig.json when using astro add
* Refactor
* Remove unneeded change
* Fix build failling due to type difference
* Extend changeset description
2022-10-12 15:11:25 -03:00
Juan Martín Seery
a5e3ecc803
feat: restart dev server when tsconfig and tailwind config changes ( #4947 )
...
* First run
* Works with tailwind!
* Added TSConfig to watchlist
* Changeset
* Fix eslint
* Renamed `isConfigReload` --> `isRestart` and `injectWatchTarget` --> `addWatchFile`
* Refactored watchTargets to watchFiles
* Refactor createSettings
* addWatchFile now accepts URL
* Fix getViteConfig
* Expanded description of the change
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-10-12 11:36:33 -04:00
bluwy
5412c0c114
[ci] format
2022-10-12 14:34:35 +00:00
Bjorn Lu
f7fcdfe621
Support solidjs libraries ( #5059 )
2022-10-12 21:29:26 +08:00
Matthew Phillips
1e27992437
Update the Astro.cookies.set types to receive boolean and numbers ( #5047 )
2022-10-12 08:31:55 -04:00
Matthew Phillips
0f2a88ba5c
Allow class
to be passed into Svelte islands ( #5045 )
...
* Allow class to be passed into svelte component
* Adding a changeset
2022-10-10 15:19:18 -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
Juan Martín Seery
c1f991408b
fix(vercel): now works with monorepos ( #5033 )
...
* Upgraded nft
* Handle monorepo better
* Changeset
* Fixed common ancestor
* Fixed outdir
2022-10-10 11:37:03 -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
Matthew Phillips
b1964e9e1b
Revert "Revert preact signals support ( #4843 )" ( #5015 )
...
This reverts commit 25a5b9a89a
.
2022-10-10 09:01:15 -04:00
matthewp
2314e48f03
[ci] format
2022-10-07 21:10:32 +00:00
Matthew Phillips
062335dbf7
Fix remote images in SSG mode ( #5021 )
2022-10-07 17:08:15 -04:00
matthewp
145e2c575a
[ci] format
2022-10-07 19:56:04 +00:00
Matthew Phillips
6efeaeb39e
Fix suppot for mui ( #5016 )
2022-10-07 15:54:25 -04:00
Fred K. Bot
4e8625fbfb
[ci] release ( #5014 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-07 10:34:13 -04:00
Oskar Baumann
92b27e9c92
[@astrojs/prefetch]: Prevent prefetching current page ( #5009 )
...
* Check that removal of url.hash breaks no tests
* test if status-quo is as expected
* Adapt tests to fail
* Adapt the shouldPreload function to skip same path
* Add changeset
2022-10-07 10:13:51 -04:00
matthewp
358ffb541d
[ci] format
2022-10-07 13:38:38 +00:00
Robin Lindner
5bbe385b21
Improve test infrastructure for integrations/deno ( #5005 )
...
* Improve test infrastructure for integrations/deno
* Add changeset
* Use declared type
* Remove changeset
* Upgrade deno version in -workflow
2022-10-07 09:36:24 -04:00
Fred K. Bot
778b915525
[ci] release ( #4976 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-06 13:47:10 -04:00
tony-sull
e71fc8b5fc
[ci] format
2022-10-06 15:55:06 +00:00
Oskar Baumann
a2b66c7549
[@astrojs/image]: Fix <Picture /> component with query string ( #4997 )
...
* remove query params from file extension
* Revert changes to make change as small as possible
* moving the removeQueryParam check to basename()
* chore: adding a changeset
* adding SSR test coverage for new picture test cases
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-10-06 15:53:11 +00:00
Dan Jutan
0bd6dddfcf
Docs: add yarn workaround to node integration docs ( #4978 )
...
* Add yarn workaround to troubleshooting section
* npm can also cause this error
2022-10-06 10:37:58 -04:00
João Araújo
50a397c4ba
Update @builder.io/partytown dependency ( #4989 )
2022-10-06 10:33:01 -04:00
matthewp
2459426e6a
[ci] format
2022-10-06 14:30:50 +00:00
Daniel
2dc582ac5e
adjusting cloudflare adapter and solid ssr to work together ( #4888 )
...
* adjusting cloudflare adapter (respecting user config)
define better solid ssr config
* only inline the framework
this needs to happen for worker build in order to have the correct build mode for the framework, which needs the nodejs no matter if it is for node or the browser.
Co-authored-by: AirBorne04 <daniel@floatingpixels.com>
2022-10-06 10:28:47 -04:00
Matthew Phillips
e5b526c3a5
Document Lit's limitations in SSR ( #4999 )
2022-10-06 10:18:08 -04:00
Fred K. Bot
bb022f5230
[ci] release ( #4957 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-03 11:52:23 -04:00
Bjorn Lu
a59731995b
Suppress eslint warnings ( #4953 )
2022-10-03 23:37:21 +08:00
Fred K. Bot
16688162b4
[ci] release ( #4945 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-01 08:11:59 -04:00
Scott Willsey
a8f1a91e7e
Astro image cache dependency fix scottaw66 ( #4944 )
...
* Moves http-cache-semantics from dev dependency to dependency
* Pull request for astro image http-cache-semantics dependency
2022-09-30 22:25:37 -05:00
Chris Swithinbank
f9261ddd00
Fix missing language tag on README code block ( #4940 )
2022-10-01 00:29:11 +02:00
Nate Moore
cf2bba1e4a
P5: fix MDX memory leak ( #4939 )
...
* fix(astro): tag jsx vnodes with renderer so errors are properly handled
* chore: fix missing package in test
Co-authored-by: Nate Moore <nate@astro.build>
2022-09-30 17:13:44 -05:00
Fred K. Bot
2ffdafff45
[ci] release ( #4921 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-30 20:15:38 +00:00
tony-sull
7fdd494236
[ci] format
2022-09-30 17:29:32 +00:00
Tony Sullivan
64a1d712ef
[@astrojs/image] fixes a bug in dev when <Image /> is used with no transformation props ( #4933 )
...
* fix: return the original file in dev if no image transforms were used
* chore: add changeset
2022-09-30 17:27:56 +00:00
tony-sull
849fefd8b0
[ci] format
2022-09-29 21:22:49 +00:00
Tony Sullivan
9892989619
[@astrojs/image] adding caching support for SSG builds ( #4909 )
...
* adds a caching feature for SSG builds
* chore: add changeset
* nit: eslint fix
* chore: add readme docs for caching
* adding basic test coverage for cached images
2022-09-29 21:20:48 +00:00
Fred K. Bot
d08093f7d4
[ci] release ( #4903 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-29 11:20:00 -04:00
bluwy
670d4bed45
[ci] format
2022-09-29 03:28:21 +00:00
Bjorn Lu
fd9d323a68
Support Vue JSX ( #4897 )
...
Co-authored-by: Dan Jutan <danjutan@gmail.com>
2022-09-29 11:25:45 +08:00
matthewp
55a1b5bb58
[ci] format
2022-09-28 20:57:35 +00:00
Matthew Phillips
d3091f89e9
Astro.cookies implementation ( #4876 )
...
* Astro.cookies implementation
* Remove unused var
* Fix build
* Add a changesetp
* Remove spoken-word expires
2022-09-28 16:55:27 -04:00
Tony Sullivan
ec55745ae5
Fix: let Squoosh default image quality internally ( #4906 )
...
* removes our quality defaults, allowing Squoosh format-specific defaults to be used
* chore: add changeset
2022-09-28 20:55:09 +00:00
stijlmassi
9103ac57fb
Update README.md ( #4898 )
...
* Update README.md
In the astro.config.mjs: defineConfig() was missing.
* Update packages/integrations/tailwind/README.md
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2022-09-28 13:36:49 -03:00
Bjorn Lu
812658ad2a
Remove shamefully-hoist ( #4842 )
2022-09-28 23:13:33 +08:00
tweenietomatoes
649e9080cb
fixed typing ( #4893 )
2022-09-27 14:57:11 -03:00
Fred K. Bot
077134ae2c
[ci] release ( #4846 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-27 12:12:44 -04:00
Deanmv
883ce82a11
docs: Fix links to Tailwind examples ( #4883 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-09-27 09:52:47 -03:00
Bjorn Lu
fb91d04a5c
Set SSR target webworker for Vercel edge ( #4884 )
2022-09-27 08:40:10 -04:00
bholmesdev
1dc651d74e
[ci] format
2022-09-26 22:25:48 +00:00
Ben Holmes
58a2dca228
Fix: correctly transform import.meta.env.*
in MDX ( #4858 )
...
* fix: serialize route pattern for Netlify edge
Co-authored-by: Jackie Macharia <jackiewmacharia>
* fix: escape import.meta.env in MDX compiler output
* test: env vars in mdx
* chore: changeset
* deps: estree-util-visit, @types/estree
* feat: inject import.meta.env w/ recma
* feat: pull importMetaEnv from vite + astro configs
* test: `import.meta.env` in JSX
* fix: lockfile
* chore: update changeset
* fix: remove stray stashed commit
2022-09-26 18:23:47 -04:00
Jake Strawn
5fc73ba02c
docs: Standardize common integration READMEs ( #4874 )
2022-09-26 16:14:34 +02:00
Jake Strawn
b0f6216367
docs: Update references to support channel in Discord. ( #4872 )
2022-09-26 21:02:05 +08:00
Gerard de Brieder
944d24e9ee
Update Picture.astro so it no longer passes height and width attributes ( #4797 )
...
* Update Picture.astro
the image variable of getPicture contains a width and height property, which we usually require. In this case, the image is wrapped in a picture tag and the img tag itself should not have a width and height property as this will break the responsiveness of the image provided by the picture tag.
* added changeset
* fixing SSG picture tests that were expecting img dimensions
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-09-22 21:01:38 +00:00
tony-sull
426f3bb40f
[ci] format
2022-09-22 19:50:47 +00:00
Tony Sullivan
fad3867adb
Adding an optional image service based on Squoosh ( #4738 )
...
* WIP: adding a service built on @squoosh/lib
* WIP: investigating memory leaks in Squoosh
* WIP: vendoring Squoosh to work with our build
* chore: a bit of cleanup and a small perf gain
* removing a few unused deps
* fix: removing temp .only() in sharp test
* hooking up the last build steps to copy over .wasm files
* removing the duplicated lib/*.wasm files
* defaulting to Sharp for the initial @next release
* make sure pnpm always runs the postbuild script
* removing a few node dependencies
* refactor: move the copy .wasm build step out of the SSR bundle
* linter fixes
* fixing lock file
* chore: add TEMP changeset
* fix built wasm location for SSG builds
* Revert "defaulting to Sharp for the initial @next release"
This reverts commit 1a8d4f7f60
.
* removing sharp dependency
* Revert "fix built wasm location for SSG builds"
This reverts commit 446b80bb53
.
* chore: update lockfile
* fixing up image tests for the wasm loader
* updating the README for squoosh
* parallel wasm builds
* refactor: a bit of house keeping
* perf: allow a thread for each output encoding format
* fix: dev broke with the shift to wasm workers
* adds a new `astro:build:generated` hook for SSG builds
* fix: typo + calling cleanup methods in wasm codecs
* adding @astrojs/webapi for the TransformStream polyfill
* Revert "adding @astrojs/webapi for the TransformStream polyfill"
This reverts commit 39e5b845a5
.
* perf: using sharp for most of the CI tests
* chore: update lockfile
* removing hard-coded squoosh imports
* fix: adding sharp to rollup externals
* test: using dev for the squoosh tests
* fix: updating the build output dir for wasm filles in SSG builds
* updating the changeset with migration details
* Revert "adds a new `astro:build:generated` hook for SSG builds"
This reverts commit 59b5fec7be
.
* nit: adding comments for the wasm file copy
* chore: fix eslint warning
2022-09-22 19:48:14 +00:00
Ben Holmes
e5f71142eb
docs: add MDXLayoutProps to README ( #4700 )
...
* docs: add MDXLayoutProps to README
* chore: changeset
* nit: remove "if you understand this diff"
* nit: AdD tYpE sAfEtY
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/integrations/mdx/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-09-22 14:35:37 -04:00
Matthew Phillips
25a5b9a89a
Revert preact signals support ( #4843 )
...
* Revert "Update preact example to match @astrojs/preact ranges (#4840 )"
This reverts commit d650a1161a
.
* Revert "[ci] format"
This reverts commit e3c78c5b16
.
* Revert "Support shared signals in Preact islands (#4763 )"
This reverts commit 5e46be5468
.
2022-09-22 10:32:42 -04:00
Michael Rienstra
b0efb83252
docs: integrations: yarn & pnpm ( #4836 )
2022-09-22 08:16:02 -03:00
matthewp
e3c78c5b16
[ci] format
2022-09-21 19:23:58 +00:00
Matthew Phillips
5e46be5468
Support shared signals in Preact islands ( #4763 )
...
* Support signals in Preact islands
* Add a changeset
* Only add signals if we need them
* Refactor signal logic into its own module
* Keep track of the signals used
2022-09-21 15:21:21 -04:00
Fred K. Bot
5684a016bb
[ci] release ( #4823 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-20 16:55:48 -04:00
tony-sull
b2c9059ed8
[ci] format
2022-09-20 20:28:39 +00:00
Oussama Bennaci
ea37de86e4
[@astrojs/image] flatten background only if alpha channel isn't supported ( #4800 )
...
* Use sharp flatten only when format doesnt support alpha
* Allow rgba for background prop
* Add changeset
* Adjust doc
* Fix tests
2022-09-20 20:25:45 +00:00
Fred K. Bot
a76b0aa27c
[ci] release ( #4822 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-20 16:05:13 -04:00
matthewp
0f4f514fd9
[ci] format
2022-09-20 19:34:51 +00:00
Matthew Phillips
9bfbd63f05
Fixes processing of images in Netlify functions ( #4820 )
2022-09-20 15:33:01 -04:00
Fred K. Bot
a08b178cdb
[ci] release ( #4811 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-20 15:15:54 -04:00
matthewp
666d98e3ec
[ci] format
2022-09-20 16:39:24 +00:00
Daniel
ce0b92ba73
update cloudflare esbuild config (fixing solid ssr) ( #4815 )
...
* fixing esbuild platform setting, to enable solid build
* added changeset
* changed change to major
Co-authored-by: AirBorne04 <daniel@floatingpixels.com>
2022-09-20 12:36:58 -04:00
matthewp
91568bb055
[ci] format
2022-09-20 13:40:04 +00:00
Matthew Phillips
8d059faaed
Prevent errors in React components from crashing the dev server ( #4816 )
...
* Prevent errors in React components from crashing the dev server
* Add a changeset
* Fix test when running in the build
2022-09-20 09:38:17 -04:00
Aditya Jain
620f1d9e1e
fixed broken emoji for in "Getting started" section of integration docs ( #4795 )
...
* fixed broken emoji for "nest frameworks together"
* Add missing whitespace
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2022-09-19 12:58:06 -03:00
Fred K. Bot
b2da8a124a
[ci] release ( #4761 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-15 14:05:25 -04:00
Chris Swithinbank
0398efa39f
Tailwind v2 docs ( #4758 )
...
* Add migration notes to Tailwind changelog
* Include `tailwindcss` in manual install steps
* add changeset
2022-09-14 22:43:10 +02:00
Fred K. Bot
27aa9851d8
[ci] release ( #4750 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-14 16:06:23 -04:00
matthewp
04daafbbdf
[ci] format
2022-09-14 19:44:27 +00:00
Matthew Phillips
c271ed35ee
Only pass through children prop if there are children ( #4756 )
2022-09-14 15:42:38 -04:00
aFuzzyBear
098c76717a
[ci] format
2022-09-14 19:19:56 +00:00
Peter Singh
664ebf449e
Update peer dep with Tailwindcss ( #4543 )
...
* Update peer dep
* Create leaders-of-the-free-world.md
Update: `@astrojs/tailwindcss` project with `tailwindcss` as a `peer-dependency`
* Removed tailwindcss as 'dependency'
* Update `pnpm-lock` with changes to deps
* Update .changeset/leaders-of-the-free-world.md
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2022-09-14 20:17:04 +01: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
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
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
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
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
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
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
Happydev
4753d21949
docs: correct typo in @astrojs/node
integration ( #4688 )
2022-09-08 23:01:27 -04: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
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
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-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
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
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
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
Mohammed Elhaouari
63cd9d89e8
Fix AlpineJS homepage link ( #4622 )
...
* Update AlpineJS homepage
* Add changeset
2022-09-04 15:53:54 +02: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
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
Chris Swithinbank
eb4eebde9e
Fix image integration README ( #4599 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-09-02 17:05:04 +02: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
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
matthewp
fa48d01109
[ci] format
2022-08-31 20:14:25 +00:00
Zicklag
294122b4e4
Deno custom 404 pages ( #4562 )
...
* Add Failing Test For Deno Custom 404 Pages
* Make Deno SSR Serve Custom 404 Pages
2022-08-31 16:11:46 -04:00
tony-sull
6f1fbd8be0
[ci] format
2022-08-30 21:12:45 +00:00
Tony Sullivan
00c605ce35
Image integration refactor and cleanup ( #4482 )
...
* WIP: simplifying the use of `fs` vs. the vite plugin
* removing a few node deps (etag and node:path)
* adding ts defs for sharp
* using the same mime package as astro's core App
* fixing file URL support in windows
* using file URLs when loading local image metadata
* fixing a bug in the etag helper
* Windows compat
* splitting out dev & build tests
* why do these suites fail in parallel?
* one last windows compat case
* Adding tests for treating /public images the same as remote URLs
* a couple fixes for Astro's `base` config
* adding base path tests for SSR
* fixing a bad merge, lost the kleur dependency
* adding a test suite for images + MDX
* chore: add changeset
* simplifying the with-mdx tests
* bugfix: don't duplicate the period when using existing file extensions
* let Vite cache the image loader service
* adding some docs for using /public images
* fixing changeset
* Update packages/integrations/image/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/image/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* nit: minor README syntax tweaks
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-30 21:09:44 +00:00
Tony Sullivan
7429664566
Adds the "withastro" keyword to adapter packages ( #4558 )
...
* adds the "withastro" keyword to adapter packages
* chore: add changeset
2022-08-30 20:19:19 +00:00
bholmesdev
385a8f052f
[ci] format
2022-08-30 17:41:06 +00:00
Ben Holmes
8f8dff4d33
[MDX] Extend Markdown plugin config, with customization options ( #4504 )
...
* test: new combined remark / rehype suite
* fix: use with-plugins fixture
* chore: remove old mdx plugin tests
* docs: add JS docs
* docs: update README with thorough example
* chore: changeset
* fix: add "extends" error message
* fix: ignore string-based plugins in md
* feat: add warning log for string plugins
* docs: highlight `extendPlugins`
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* nit: highlight "extendPlugins"
* fix: md plugins type check
* chore: "defaults" -> "astroDefaults"
* nit: info log when inheriting markdown plugins
* refactor: one big log on new behavior
* dan: dan nit
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-30 13:38:35 -04:00
Fred K. Bot
e905784bf1
[ci] release ( #4520 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-30 12:45:04 -04:00
Kyle F Butts
8504cd79b7
Add custom components to mdx integration guide ( #4530 )
...
* Add custom components to mdx integration guide
* Update packages/integrations/mdx/README.md
Co-authored-by: Ben Holmes <hey@bholmes.dev>
* Update packages/integrations/mdx/README.md
Co-authored-by: Ben Holmes <hey@bholmes.dev>
* Update packages/integrations/mdx/README.md
Co-authored-by: Ben Holmes <hey@bholmes.dev>
* Update packages/integrations/mdx/README.md
Co-authored-by: Ben Holmes <hey@bholmes.dev>
* Incorporate Sarah and Ben's Feedback
* Fix what would be an ugly background lol
* Sarah taking liberty of removing double text
* Add changeset
Co-authored-by: Ben Holmes <hey@bholmes.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-30 11:55:52 -04:00
matthewp
65cc3f64f6
[ci] format
2022-08-30 15:47:42 +00:00
Matthew Phillips
2f05f5d307
Include trailingSlash in astro:build:done hook ( #4553 )
2022-08-30 11:45:16 -04:00
Sarah Rainsberger
00ea2267e2
[docs] remove confusing note added in wrong place ( #4551 )
2022-08-30 08:23:24 -04:00
Bjorn Lu
9adb7cca33
Vite ignore unknown import ( #4527 )
2022-08-30 15:25:34 +08:00
Matthew Phillips
1222ab9540
Configures Lit to work with its decorators ( #4503 )
...
* Configures Lit to work with its decorators
* Remove comment
2022-08-29 14:06:36 -04:00
Erika
b8a80bc42d
Fix image integration's types not referring to the base types for Vite client types ( #4534 )
2022-08-29 12:06:41 -03:00
Bjorn Lu
fc32e2d94c
Fix @astrojs/node
typo ( #4525 )
2022-08-29 17:02:44 +08:00
Tim Rinkel
9389517f63
Update README.md ( #4517 )
2022-08-29 16:42:27 +08:00
Juan Martín Seery
a2e8e76c30
chore: updated shiki ( #4519 )
...
* Upgraded shiki
* Use setColorReplacements
* no-shadow
* Changeset
2022-08-28 08:23:37 -03:00
Fred K. Bot
d85133393a
[ci] release ( #4502 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-26 13:03:04 -07:00
Fred K. Schott
8d6978b8d0
Update README.md
2022-08-26 11:50:30 -07:00
Mohammed Elhaouari
17e2178568
Add renderer
keyword to alpinejs integration ( #4501 )
...
* Add renderer keyword to alpinejs
* Add changeset
2022-08-26 11:50:11 -07:00
Fred K. Bot
ff03313848
[ci] release ( #4495 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-26 13:01:30 -04:00
Abdullah Mzaien
824a2adddd
chore: update to solid 1.5 ( #4496 )
2022-08-26 11:11:57 -04:00
Mark Spratt
7efbda97af
Edit Alpinejs content generation for Docs ( #4466 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-26 10:14:40 -03:00
Bjorn Lu
ba697da4c2
Note private env var handling with cloudflare builds ( #4490 )
2022-08-26 09:03:22 -04:00
Tc001
ca24a60b13
Earlier import snippet for @astrojs/image
( #4484 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-25 19:39:22 -03:00
Fred K. Bot
7960fb80a1
[ci] release (next) ( #4480 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-25 17:27:35 -04:00
Ben Holmes
d4cd7a59fd
Update Markdown type signature to match behavior ( #4423 )
...
* feat: "file" and "url" top-level layout props
* test: markdown file and url
* test: mdx file and url
* feat: update MarkdownInstance + JSDoc improvements
* chore: changeset
2022-08-25 17:08:43 -04:00
matthewp
d48de5a06f
[ci] format
2022-08-25 18:53:12 +00:00
Sanjaiyan Parthipan
3b5f34d606
Adding time-slicing with startTransition
to prevent hydration from blocking the main thread for too long for those users who immediately scroll. ( #4313 )
...
* Adding timeslicing for hydrating :)
* update
2022-08-25 14:50:45 -04:00
Adam
62d98e4af3
Update Filter Section ( #4455 )
...
Add brief explanation and example of filtering multiple pages.
2022-08-24 16:14:50 -04:00
Fred K. Bot
5427e89491
[ci] release ( #4431 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-23 15:27:10 -04:00
matthewp
77f9afa44a
[ci] format
2022-08-23 17:28:38 +00:00
Ben Holmes
adb2079796
Fix MDX style imports when layout is not applied ( #4443 )
...
* fix: add "astro.needsHeadRendering" to MDX
* test: style imports in pages without layout
* chore: changeset
2022-08-23 13:25:35 -04:00
Ben Holmes
a2414bf59e
Improve MDX glob perf - move Layout to async import ( #4428 )
...
* fix: move layout to async import
* chore: changeset
* docs: clarify async import
2022-08-22 18:18:30 -04:00
Fred K. Bot
c8d0fa4c4e
[ci] release ( #4425 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-22 16:53:44 -04:00
matthewp
a20e811795
[ci] format
2022-08-22 19:49:45 +00:00
Fred K. Bot
457e559cd5
[ci] release ( #4363 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-22 15:46:46 -04:00
Tony Sullivan
579e2daf8d
[@astrojs/image] Handle query params in remote image URLs during SSG builds ( #4338 )
...
* fix: SSG builds should remove query params when building local image files
* chore: add changeset
* handling an edge case related to stripping extensions from a filename
2022-08-22 19:45:34 +00:00
tony-sull
2c40fba0c8
[ci] format
2022-08-22 19:15:35 +00:00
Tony Sullivan
c4af8723bd
[@astrojs/image] adds a logger to the the image integration ( #4342 )
...
* WIP: adding a console logger that respect vite.logLevel
* adds an optional prefix for messages
* remove temporary debug log
* typo fix
* cleaning up log syntax
* fixing logger whitespace
* adding README docs
* test: disable integration logging in tests
* chore: add changeset
2022-08-22 19:13:19 +00:00
Nu11Terminator
4ac2718883
fix: vercel static export path ( #4370 )
...
This enables the use of `{ output: static, adapter: vercelStaticAdapter}`
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-22 14:50:15 -04:00
Fred K. Schott
7310e8a178
add an alpine integration and update example ( #4406 )
2022-08-22 14:25:57 -04:00
sergix
dd52b2192d
Include note about Tailwind per-component errors using '@apply' ( #4353 )
...
* add: @apply exceptions for component frameworks
Some frameworks, specifically Vue, will not recognize global @layer directives in a global stylesheet because of how Vue's build system works. Instead, prefer to add a plugin to your Tailwind config. #2660 , #3073
* Update README.md
* Update README.md
2022-08-22 14:18:17 -04:00
EBits00
8f20b18875
Updated Express code to serve assets ( #4402 )
...
Assets where not served so the style was not applied, fixed this by adding the line app.use(express.static('dist/client/'))
2022-08-22 12:33:54 -04:00
Maik Jablonski
8264f85f1d
Running Astro as SSG on Vercel without adapter ( #4299 )
...
Fixes the 404 handling.
2022-08-22 11:47:14 -04:00
Ben Holmes
7820096e1b
fix: correctly add react-dom
alias to Vercel edge ( #4421 )
...
* fix: correctly add react-dom alias to vercel edge
* chore: changeset
2022-08-22 11:46:02 -04:00
Fred K. Bot
1de82f0f78
[ci] release ( #4333 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-16 10:14:44 -04:00
Patrick Smith
45fdbc4650
Don’t use Buffer.byteLength() as Deno can’t use it ( #4324 )
...
* Don’t use Buffer.byteLength() as Deno can’t use it
* Add changeset
* Add tests for Markdown & MDX with Deno
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-08-16 10:08:40 -04:00
Chris Swithinbank
e2b3f8a3f4
integrations: update recommended method for running astro add ( #4340 )
2022-08-16 10:31:14 +02:00
bholmesdev
2edcb30c3d
[ci] format
2022-08-15 14:45:15 +00:00
Ben Holmes
f1a52c18af
[MDX] Switch from Shiki Twoslash -> Astro Markdown highlighter ( #4292 )
...
* freat: twoslash -> Astro shiki parser
* test: update shiki style check
* feat: always apply rehypeRaw
* deps: move remark-shiki-twoslash to dev
* test: add shiki-twoslash test
* docs: update readme with twoslash example
* chore: changeset
* nit: remove "describe('disabled')"
2022-08-15 10:43:12 -04:00
MoustaphaDev
3889a7fa75
docs: fixed typo in the tailwind integration docs ( #4308 )
...
## Changes
Corrected "aother" with "another" in (the tailwind integration docs)[https://docs.astro.build/en/guides/integrations-guide/tailwind/ ].
## Testing
No tests because this pr is just fixing a typo in the docs
## Docs
Well this PR fixes a typo in the docs
<!-- https://github.com/withastro/docs -->
2022-08-15 09:20:39 -05:00
Stinggyray
6227eaf9a2
Update README.md ( #4326 )
...
Removed a duplicate line.
2022-08-15 09:20:22 -05:00
Yash
63758ae35f
docs: specify lang for a codeblock ( #4314 )
...
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2022-08-15 15:34:45 +08:00
mundry
2bb4e3b812
add missing word in image integration-guide ( #4303 )
...
Co-authored-by: mundry <mundry@users.noreply.github.com>
2022-08-13 13:41:15 -03:00
Fred K. Bot
b1bd52e9ea
[ci] release ( #4290 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-12 17:40:47 -05:00
bholmesdev
695e9b34da
[ci] format
2022-08-12 22:19:32 +00:00
Ben Holmes
f7afdb889f
[MDX] Fix remaining inconsistencies with Markdown ( #4268 )
...
* feat: add "file" and "url" to layout props
* feat: add rawContent and compiledContent errs
* fix: add "file" and "url" to frontmatter
* fix: add separate MDX instance type
* types: add MarkdownLayoutProps and MDXLayoutProps
* refactor: simplify MDXLayoutProps
* test: pass file and url to layout
* test: glob components with .default and Content
* feat: add <Content /> to MDX
* feat: declare MDX type module
* fix: [MD] move file and url to layout props only
* chore: changeset
* chore: bump MDX to "minor" with more details
* refactor: remove "file" + "url" top-level props (save for minor)
* revert: MDInstance type def updates (save for minor)
* fix: MDXInstance "default" + "content" types
* fix: bad test layout
* chore: remove getHeaders fro *.mdx
2022-08-12 18:17:26 -04:00
natemoo-re
437bf73f26
[ci] format
2022-08-12 22:03:24 +00:00
Nate Moore
24d2f7a6e6
Fix namespaced component usage in MDX ( #4272 )
...
* fix(#4209 ): handle namespaced JSX and MDX
* chore: add changeset
* chore: update lockfile
* fix: throw error when componentExport is unresolved
* chore: bump compiler
* chore: bump compiler
* chore: revert example changes
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-12 17:01:05 -05:00
Fred K. Bot
bb3d7d4f39
[ci] release ( #4249 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-11 16:50:59 -07:00
Bjorn Lu
5b1facfe29
Clarify preact/compat integration docs ( #4267 )
...
* Clarify preact/compat integration
* Create long-lobsters-ring.md
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-08-11 16:34:07 -07:00
FredKSchott
a70d05bd44
[ci] format
2022-08-11 23:29:45 +00:00
Matthew Phillips
d3d09a2c9f
Add 404 routing logic to Netlify redirects file ( #4274 )
...
* Add 404 routing logic to Netlify redirects file
* changeset
2022-08-11 16:26:32 -07:00
FredKSchott
be6470688f
[ci] format
2022-08-11 23:26:19 +00:00
Fred K. Schott
42fd6936cd
fix astro image bad imports ( #4279 )
2022-08-11 16:24:17 -07:00
Ben Holmes
4116128082
[MDX] Pass injected frontmatter to layouts ( #4255 )
...
* fix: move layout generation to remark plugin
* test: frontmatter injection in layout
* chore: changeset
* fix: remove content fallback
2022-08-11 12:36:34 -05:00
Caleb Jasik
5afb5ef7af
Fix spelling mistake in @astrojs/image docs ( #4256 )
...
`intergration` -> `integration`
2022-08-11 11:07:11 -05:00
natemoo-re
9f6d8eb625
[ci] format
2022-08-11 16:06:04 +00:00
Maik Jablonski
ceb0eef944
Use passive listeners in prefetch ( #4207 )
...
* Use passive listeners in prefetch
Without passive=true, Lighthouse complains about not using passive listeners to improve scrolling performance.
* Create cold-shoes-drum.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-11 11:04:10 -05:00
Jakob Helgesson
869d009359
Mdx/plugin unshift ( #4248 )
...
* Add builtin rehype plugin to beginning
* Add Changeset
* Do the same to rehypeRaw for consistency
2022-08-10 17:10:06 -04:00
Fred K. Bot
1ee08baf91
[ci] release ( #4228 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-10 16:54:12 -04:00
Ben Holmes
9d5ab55086
[MDX] Astro.props.content -> frontmatter ( #4237 )
...
* docs: MDX Astro.props.content -> frontmatter
* chore: changeset
2022-08-10 15:43:35 -04:00
natemoo-re
d186c406b9
[ci] format
2022-08-10 19:13:28 +00:00
Obinna Ekwuno
bfbd32588f
[Docs]: Update Cloudflare README ( #4232 )
...
* update cloudflare readme
* Create modern-papayas-rhyme.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-10 14:11:19 -05:00
Matthew Phillips
0af5aa7a3b
Fix solid recursion bug ( #4215 )
...
* Fix solid recursion bug
* Fix types
* Remove debug code
* Remove logging from e2e test
2022-08-10 15:10:31 -04:00
StefanGussner
58941e93c3
Update code samples to match release version ( #4241 )
...
As I learned from a support Thread on Discord, the tagName convention was dropped during the beta period. Instead you need to export the class and use it in astro file.
I updated the code samples on this page accordingly.
2022-08-10 14:08:12 -05:00
Bjorn Lu
f8e3853394
Fix preact compat support for libraries ( #4213 )
...
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-08-10 22:22:10 +08:00
Fred K. Bot
74528a1973
[ci] release ( #4224 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-09 17:31:06 -07:00
Alexandre Desroches
92aa6a75ea
Updated @astrojs/image README.md missing formats prop as subtitle ( #4221 )
...
* Update README.md
Added missing subtitle for `formats` prop of the <Picture> component
* Create fast-drinks-visit.md
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-08-09 16:29:07 -07:00
Nate Moore
9f067dca27
Astro 1.0.0 ( #4214 )
...
* chore: remove changesets patch
* chore: add changesets
* chore: version packages
* chore: normalize formatting
* chore: update lockfile
* chore: fix codeblocks
* Update packages/astro/CHANGELOG.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/CHANGELOG.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/CHANGELOG.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore: fixup code samples
* chore: move v0.25 message out of note
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-09 11:10:25 -05:00
Sarah Rainsberger
63d43e1754
remove errant remaining details tags ( #4212 )
2022-08-09 09:09:16 -05:00
Fred K. Bot
4d29163d11
[ci] release ( #4197 )
...
* [ci] release
* Update CHANGELOG.md
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-08 18:10:55 -05:00
natemoo-re
7eb54fcb4f
[ci] format
2022-08-08 22:35:40 +00:00
Ben Holmes
4c2ca5352d
[MDX] Remove frontmatterOptions
( #4204 )
...
* feat: remove frontmatterOptions config
* test: remove custom frontmatter suite
* deps: remove remark-mdx-frontmatter
* docs: remove `frontmatterOptions` config
* chore: changeset
2022-08-08 17:33:35 -05:00
Erika
36cb503c8a
Update @astrojs/image README with mention of the new env.d.ts file ( #4206 )
2022-08-08 17:27:48 -04:00
Ben Holmes
6c9736cbc9
[MDX] Add frontmatter injection to README ( #4205 )
...
* docs: remove `remark-mdx-frontmatter` from README
* docs: remove remark-mdx-frontmatter link
* docs: MDX frontmatter injection
* chore: changeset
2022-08-08 17:16:06 -04:00
natemoo-re
d3ceb617a1
[ci] format
2022-08-08 17:12:48 +00:00
Richard Cooke
f4c571bdb0
feat: add support to @astrojs/cloudflare
directory deploy mode ( #3806 )
...
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-08 12:10:48 -05:00
Sarah Rainsberger
9894b3dcde
remove details tags from integration READMEs ( #4198 )
2022-08-08 12:07:38 -05:00
oliverpool
ad3d786e1f
tailwind: link to import doc for applyBaseStyles ( #4193 )
2022-08-08 09:38:28 -05:00
Fred K. Bot
4e4061f485
[ci] release ( #4159 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-05 21:48:35 -07:00
FredKSchott
4de35f3b70
[ci] format
2022-08-06 04:39:26 +00:00
Ben Holmes
77cede720b
[MDX] Prevent overriding collect-headings
plugin ( #4181 )
...
* fix: make rehypeCollectHeadings a required plugin
* docs: update README on rehypePlugins
* test: remove collect-headings override test
* docs: remove extends from rehype docs
* chore: changeset
2022-08-05 20:51:38 -07:00
Corbin Crutchley
97cf0cd893
fix: export all of @astrojs/image dist ( #4146 )
...
* fix: export all of @astrojs/image dist
* chore: add changeset
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-05 19:00:35 -05:00
natemoo-re
367cdd9ed8
[ci] format
2022-08-05 23:58:09 +00:00
Corbin Crutchley
c039ea93a1
Fix external astro image usage ( #4147 )
...
* fix: enable @astrojs/image to be used inside of non-vite contexts
* chore: add changeset
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-05 18:56:12 -05:00
Ben Holmes
2675b8633c
Frontmatter injection for MD and MDX ( #4176 )
...
* feat: inject vfile data as exports
* feat: add vfile to renderMarkdown output
* feat: add safe astroExports parser to utils
* refactor: expose vite-plugin-utils on astro package
* feat: handle astroExports in mdx
* deps: vfile
* chore: lockfile
* test: astroExports in mdx
* refactor: merge plugin exports into forntmatter
* refactor: astroExports -> astro.frontmatter
* refactor: md astroExports -> astro.frontmatter
* feat: astro.frontmatter vite-plugin-markdown
* chore: remove unused import
* fix: inline safelyGetAstroData in MDX integration
* chore: check that frontmatter export is valid export name
* chore: error log naming
* test: mdx remark frontmatter injection
* fix: inconsistent shiki mod resolution
* fix: add new frontmatter and heading props
* test: remark vdata
* fix: spread astro.data.frontmatter
* test deps: mdast-util-to-string, reading-time
* fix: astro-md test package name
* test: md frontmatter injection
* fix: layouts
* deps: remove vite-plugin-utils export
* fix: package lock
* chore: remove dup import
* chore: changeset
* chore: add comment on safelyGetAstroData source
* deps: move mdast-util-to-string + reading-time to test fixture
* chore: move remark plugins to test fixture
* fix: override plugin frontmatter with user frontmatter
* test: md injected frontmatter overrides
* test: frontmatter injection overrides mdx
2022-08-05 18:55:38 -05:00
Jack Merrill
4678a3f358
feat(image): Add GIF -> WEBP support ( #4139 ) ( #4140 )
...
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-05 17:32:45 -05:00
matthewp
5be35fd69b
[ci] format
2022-08-05 21:15:28 +00:00
Matthew Phillips
8eb3a8c6d9
Add test for mdx + React usage ( #4174 )
...
* Add test for mdx + React usage
* Add a changeset
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-05 17:13:30 -04:00
tony-sull
14d27c1d6f
[ci] format
2022-08-05 20:38:06 +00:00
Tony Sullivan
5811208182
Fixes local image resolution in SSR builds on Windows ( #4173 )
...
* fixing SSR local file resolution path on windows
* chore: add changeset
* nit: fixing typo in image README file
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-05 20:36:30 +00:00
Nate Moore
e569f0a5c7
Handle edge case in jsx-runtime ( #4158 )
...
* fix(#4135 ): handle edge case in jsx-runtime
* test: add mdx test case
* chore: fix utils reference
* test: fix mdx escape test
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05 10:35:47 -05:00
Fred K. Schott
c7efcf57e0
fix missing newline bug in mdx ( #4145 )
2022-08-04 23:12:07 -07:00
Fred K. Bot
7300f094fd
[ci] release ( #4133 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-03 23:14:04 -07:00
Fred K. Schott
65f2d3b4b1
fix windows package export ( #4141 )
...
* fix windows package export
* Create neat-badgers-bow.md
2022-08-03 23:11:37 -07:00
bholmesdev
66319cb49f
[ci] format
2022-08-03 21:56:30 +00:00
Ben Holmes
2968ba2b6f
[MDX] Add headings
and frontmatter
to layout props ( #4134 )
...
* feat: expose headings on layout props
* test: frontmatter AND content
* test: headings in layouts
* chore: changeset
2022-08-03 17:54:55 -04:00
Fred K. Bot
acd0b6da3c
[ci] update lockfile ( #4100 )
...
* [ci] update lockfile
* fix: remove @ts-expect-error
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-03 11:16:07 -05:00
Zade Viggers
a28b441763
Remove renderer tag to fix a docs issue ( #4127 )
...
[This page](https://docs.astro.build/en/guides/integrations-guide/ ) is autogenerated based on the packages in this repo and said packages' tags. Removing the renderer tag here should stop it from appearing in the UI Framework category.
2022-08-03 10:36:38 -05:00
Fred K. Bot
077d78fddc
[ci] release ( #4116 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-02 14:50:21 -07:00
Erika
ac6ffdb310
Audit dependencies ( #4096 )
...
* Remove some unused dependencies
* Update lockfile
* Add util
* Remove util
2022-08-02 16:08:21 -04:00
Erika
64432bcb87
Refactor @astrojs/prism, fix Prism component import not working ( #4114 )
...
* Upgrade @astrojs/prism to a real package, fix component import not working
* Remove `@astrojs/prism` as a dependency of `astro`
* Update lock file
* Refactor to multiple files
* Oops, can't have astro imports run inside node
* Follow Nate's suggestion on being minors instead of patchs
* Update lockfile
2022-08-02 15:53:18 -04:00
Nate Moore
b60cc0538b
Add generic plugin for page-ssr
injection ( #4049 )
...
* feat: add generic page-ssr plugin
* refactor: remove page-specific logic from astro/markdown/mdx plugins
* refactor: revert changes to vite-plugin-scripts
* fix: handle injected `page` scripts in build
* fix: prepend injected `page` scripts with `/@id/` in dev
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-02 14:07:17 -05:00
Isaac McFadyen
004995eecd
Update README.md ( #4119 )
2022-08-02 10:26:25 -05:00
Nate Moore
abfaf6bb0e
chore: skip cloudflare test for now ( #4117 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-02 10:26:00 -05:00
matthewp
7d1f86d4b7
[ci] format
2022-08-02 12:10:35 +00:00
Matthew Phillips
e33fc9bc46
Load configs with Vite when loading with Proload fails ( #4112 )
...
* 4078 breaking test
* Use Vite for loading the config
* Try it
* Fallback to loading with Vite only when needed
* Remove console.error
* Remove extra console.log
* Add a changeset
* Use middlewareMode
2022-08-02 08:08:28 -04:00
bholmesdev
10a8fa5dcd
[ci] format
2022-08-01 21:25:50 +00:00