Commit graph

3871 commits

Author SHA1 Message Date
Erika
36cb503c8a
Update @astrojs/image README with mention of the new env.d.ts file (#4206) 2022-08-08 17:27:48 -04: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
matthewp
f8c2d828bd [ci] format 2022-08-08 19:38:05 +00:00
Matthew Phillips
6bc2cbe5e9
Add Windows back to smoke tests (#4202) 2022-08-08 15:35:58 -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
natemoo-re
2c710e4edb [ci] format 2022-08-08 17:24:48 +00:00
Maina Wycliffe
f2989ec73b
Add a Github Codespace Config based on gitpod dockerfile (#4185)
* Add a codespace config based on gitpod dockerfile

This will ensure contributors using Github Codespaces also have to
correct environemnt setup, with all packages installed.

* chore: rename Dockerfile

Co-authored-by: Nate Moore <nate@astro.build>
2022-08-08 12:22:32 -05:00
natemoo-re
d3ceb617a1 [ci] format 2022-08-08 17:12:48 +00:00
Randall
84275e0810
Changes required for a Passing grade from OpenSSF Best Practices (#3718)
* Add `SECURITY.md` and `SECURITY_CONTACTS`

Signed by: Randall T. Vasquez <ran.dall@icloud.com>

* Add OpenSFF Best Practices badge

Signed by: Randall T. Vasquez <ran.dall@icloud.com>

Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-08 12:11:00 -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
Nate Moore
821074fcb5
Update ---01-bug-report.yml (#4199) 2022-08-08 12:08:35 -05:00
Sarah Rainsberger
9894b3dcde
remove details tags from integration READMEs (#4198) 2022-08-08 12:07:38 -05:00
Fred K. Bot
2c71a99202
[ci] update lockfile (#4184)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-08-08 09:40:28 -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
oliverpool
ad3d786e1f
tailwind: link to import doc for applyBaseStyles (#4193) 2022-08-08 09:38:28 -05:00
Bjorn Lu
28ab273a3d
Fix client build sourcemap generation (#4195) 2022-08-08 21:55:18 +08:00
delucis
6086562a93 [ci] format 2022-08-07 09:20:21 +00:00
Mark Spratt
341344f331
docs: Modify legacy flag description (#4187)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-07 11:18:33 +02: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
FredKSchott
9c3b8d0630 [ci] format 2022-08-06 04:43:26 +00:00
Kevin Zuniga Cuellar
bcca548d46 add charset utf-8 2022-08-05 21:41:09 -07:00
FredKSchott
4de35f3b70 [ci] format 2022-08-06 04:39:26 +00:00
Erika
24c8e7d853
Add prettier-plugin-astro to the monorepo (#4083)
* Add `prettier-plugin-astro` to the monorepo

* Fix issue that prevent formatting Picture component

* Revert "Fix issue that prevent formatting Picture component"

This reverts commit 5536c5122ca01c64e2be6bdbc88aaaa71a690a58.

* Add back CLI parameter

* Update to latest prettier plugin

* Add more ignored files, unfortunately
2022-08-05 21:36:31 -07:00
Fred K. Schott
3f3a293b6b
update example scripts (#4098) 2022-08-05 21:36:23 -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
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
natemoo-re
1b9b78bc3a [ci] format 2022-08-05 22:18:27 +00: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
Erika
c9b679e56e
Move types to a .d.ts file inside examples projects (#4171)
* Move types to a .d.ts file to avoid making types explicit

* Rename to proper types

* Move to proper place

* Add noEmit to tsconfig.json

* Add back removed code by accident
2022-08-05 17:46:52 -04: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
Nate Moore
c1248e9ed4
Update turbo scripts (#4177)
* chore: update turbo scripts

* fix: typo

Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05 16:18:56 -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
natemoo-re
66cdc7e4d0 [ci] format 2022-08-05 20:15:51 +00:00
Fred K. Schott
778a4d2af1
update test coverage to include more Node and Windows tests (#4144)
* update node test coverage to include v18, more windows tests

* chore(ci): update turbo to account for OS and NODE_VERSION

* chore: disable node@18, add TODO

Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05 15:14:19 -05:00
FredKSchott
ee38b02aa8 [ci] format 2022-08-05 20:02:26 +00:00
Fred K. Schott
2f0b823f28
do not resolve renderer.serverEntrypoint url before loading it (#4143) 2022-08-05 13:00:44 -07:00
bholmesdev
78eeb4075d [ci] format 2022-08-05 19:45:50 +00:00