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
Nate Moore
7127b1bb35
Fix astro add
with third-party integrations ( #4270 )
...
* fix: nicer third-party integration names
* chore: add changeset
* fix: better handling for package names
* update changelog
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-11 16:31:28 -07:00
Erika
0022f46b57
Fix build output for endpoints route ( #4273 )
...
* Fix build output for endpoints route
* Add changeset
2022-08-11 16:28:06 -07: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
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
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
Nate Moore
1f0dd31d92
fix( #4246 ): fix Prism indentation and class ( #4251 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-11 10:59:48 -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
Bjorn Lu
a9baa45af3
Simulate Vite resolve id to url ( #4239 )
...
* Simulate Vite resolve id to url
* Add changeset
2022-08-10 16:53:52 -04:00
Matthew Phillips
714a8399e2
Return 404 status code for 404.astro in SSR ( #4247 )
...
* Return 404 status code for 404.astro in SSR
* Adding a changeset
2022-08-10 16:22:31 -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
Matthew Phillips
561a34d912
Include astro components for HMR invalidation ( #4240 )
...
* Include astro components for HMR invalidation
* Changeset
* remove extra vite server passing
2022-08-10 15:26:58 -04: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
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
Bjorn Lu
c38e7f1890
Remove dev server during build ( #4234 )
2022-08-10 22:06:02 +08:00
Mayank
e918b3883e
feat: Support -y
in astro add
( #4225 )
2022-08-09 21:29:51 -07: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
Fred K. Schott
3a7f2385ea
Revert "[ci] release ( #4223 )"
...
This reverts commit d4ad409875
.
2022-08-09 17:28:02 -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
Masataka Yakura
fe3b423982
Markdown component: fix package name in readme.md ( #4208 )
...
* Markdown component: fix package name in readme.md
readme says it's `@astrojs/markdown`, but package name is actually `@astrojs/markdown-component`.
* Create dry-deers-vanish.md
* Update dry-deers-vanish.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-08-09 16:28:48 -07:00
Fred K. Bot
d4ad409875
[ci] release ( #4223 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-09 19:25:15 -04:00
Ben Holmes
b5ef1c2113
[MD] Add rawContent
and compiledContent
to MD layout props ( #4222 )
...
* fix: add subs for astro.source and astro.html
* fix: define "source" property
* test: raw and compiled content from layout
* chore: changeset
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2022-08-09 19:18:34 -04: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
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
Nate Moore
ec376369a8
fix: ensure jsx does not reference server entrypoint ( #4203 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-08 16:26:36 -05: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
Matthew Phillips
25d36d9558
Refactor runtime ( #4201 )
...
* Refactor runtime
* Add back in generator change
* Adding a changeset
* Fix build
2022-08-08 15:35:01 -04:00
Nate Moore
f207c417e0
Add Astro.generator ( #4012 )
...
* feat: add generator property and component
* chore: remove `Generator` component
* chore: update generator description
* chore: include generator in examples
* chore: update lockfile
* chore: format
* fix: do not reference core from server runtime
* chore: remove component test
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-08 12:34:05 -05: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
Maik Jablonski
5e71a8720e
fix: astro preview does not serve custom 404 (4113) ( #4189 )
...
* fix: astro preview does not serve custom 404 (4113)
* fix: use exists instead of stat
* Create thick-ducks-sparkle.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-08 09:40:07 -05:00
Bjorn Lu
28ab273a3d
Fix client build sourcemap generation ( #4195 )
2022-08-08 21:55:18 +08:00
Fred K. Bot
3a7e0221b3
[ci] release ( #4186 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-06 09:06:57 -07:00
Erika
77c018e515
Fix relaxed and default TypeScript settings not working ( #4183 )
...
* Fix relaxed and default TypeScript settings not working
* Create itchy-hats-exist.md
2022-08-06 07:04:39 -07: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
Erika
d344f9e3ec
Add a TypeScript step to create-astro
( #4179 )
...
* Add a TypeScript step to create-astro
* Add changeset
* fred pass
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-08-05 21:06:18 -07: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
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
Nate Moore
9afa4611cb
Support Fragment in MDX files ( #4136 )
...
* fix: Fragment for MDX files
* Update core.ts
* fix: better type guard for `render`
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05 17:16:34 -05:00
Nate Moore
c56a9227c7
Fix [Object object] in MDX output ( #4180 )
...
* fix: use stringifyChunk in `renderToString` fn
* chore: add changeset
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05 17:12:18 -05:00
Matthew Phillips
69db0298d0
Update compiler version ( #4175 )
...
* Update compiler version
* Adds a changesetp
* Update lockfile
* Skip old non-html5 doctype test
* update compiler to 0.23.1
2022-08-05 17:41:35 -04: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 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
Ben Holmes
471c6f784e
[markdown] Harder, better, faster, stronger vite-plugin-markdown
( #4137 )
...
* refactor: vite-plugin-md -> vite-plugin-md-legacy
* wip: add vite-plugin-md
* feat: always apply jsx renderer
* fix: markHTMLString on VNode result
* feat: apply new vite-plugin-markdown!
* fix: add meta export to md
* fix: remove needless $$metadata export
* fix: toggle to legacy plugin on flag
* fix: pass fileId to renderMarkdown
* test: raw and compiled content on plain md
* fix: escape vite env refs
* refactor: astro-md -> legacy-astro-flavored-md, astro-md-mode -> astro-markdown
* fix: import.meta.env refs with tests
* fix: add pkg.json to clientAddress
* fix: prefer JSX integration over Astro runtime
* Revert "fix: prefer JSX integration over Astro runtime"
This reverts commit 3e5fa49344be9c857393da9af095faab152e92e1.
* fix: remove .mdx check on importSource
* chore: changeset
* chore: remove TODO
* fix: add back getHeadings
* fix: add pkg.json to astro-head fixture
* fix: default to Astro renderer for MDX and MD
* feat: add "headings" and "frontmatter" to md layouts
* refactor: remove legacy flag conditionals from legacy plugin
* fix: add back MDX warning when legacy is off
* test: getHeadings() glob
* fix: add error on "astro.headings" access
* feat: update docs example astro.headings => headings
* refactor: readFile as string w/ utf-8
* chore: remove astro metadata TODO
* refactor: stringify HTML once
* fix: add pkg.json to glob-pages-css
2022-08-05 15:43:50 -04:00
Nate Moore
36223f663e
Add getViteConfig
helper ( #4154 )
...
* feat: add astro/compat entrypoint for vitest
* chore: add with-vitest example
* chore: add vitest as optional peer dependency
* chore: update lockfile
* refactor: remove astro/compat, use astro/config
* feat: allow arbitrary modes for `create-vite`
* feat: pass vite mode and command when using `getViteConfig`
* chore: remove vitest from peer deps
* chore: add changeset
* chore: update lockfile
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05 14:41:01 -05:00