Commit graph

4834 commits

Author SHA1 Message Date
mdh
e3c8d25664
Fix broken link in comments (#5798) 2023-01-09 15:23:43 +08:00
matthewp
eebcf82ef2 [ci] format 2023-01-07 13:32:04 +00:00
Sebastiaan
f7aa1ec25d
[@astrojs/lit] Fix slotted content into main (#5791)
* Fix  add the missing slot attribute to child nodes

* Add lit slot tests

* Add changeset
2023-01-07 08:29:16 -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
Bjorn Lu
49ab4f231c
Remove proload for config loading (#5778)
* Refactor resolve and load config

* Add changeset

* Update name

* Remove unnecessary node_env handling

* Fix test

* Update comment
2023-01-06 12:49:18 -05:00
Chris Swithinbank
54d87af012
Update .nvmrc to match new CI baseline (#5784) 2023-01-06 12:49:08 -05:00
Erika
2f6745019a
Drop Node 14 in CI for Node 16 and add Node 18 to the matrix (#5768)
* ci(node): Move CI to Node 16 and add Node 18 to the matrix

* fix(netlify): Fix set-cookie not working on Node 18

* fix(netlify): Handle if `set-cookie` is already somehow an array (apparently it can?)

* test(node): Fix `toPromise` to match Astro's

* fix(tests): Use the actual underlying ArrayBuffer instance to create the buffer in toPromise

* chore: changeset
2023-01-06 12:01:54 -05:00
Fred K. Bot
23937fbbc9
[ci] update lockfile (#5775)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-01-06 10:29:58 -05:00
bholmesdev
29acb07f64 [ci] format 2023-01-06 14:28:50 +00:00
Ben Holmes
93e633922c
Add SmartyPants flag (#5769)
* feat: add smartypants flag

* test: smartypants in markdown and mdx

* docs: Smartypants -> SmartyPants

* chore: changeset

* chore: update changeset with 1.0 -> 2.0 in mind

* chore: bump to minor change
2023-01-06 09:26:02 -05:00
matthewp
04bf679a5d [ci] format 2023-01-05 21:22:35 +00:00
Matthew Phillips
259a539d7d
Remove legacy.astroFlavoredMarkdown (#5771)
* Remove legacy.astroFlavoredMarkdown

* update vue mdx test

* Add a changeset
2023-01-05 16:20:40 -05:00
Nate Moore
9ef0c50427
Update compiler (#5656)
* chore: update compiler

* chore: pin compiler

* update compiler

* update changeset

* chore: test prerelease

* chore: update compiler

* chore: update lockfile

* chore: do not pin compiler

* Delete fresh-kids-serve.md

Co-authored-by: Nate Moore <nate@astro.build>
2023-01-05 10:43:57 -06:00
natemoo-re
2b6e41b1dc [ci] format 2023-01-05 16:42:57 +00: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
Erika
f1da0da29f
Fix MDX integration error message not being compatible with docs (#5767)
* fix(errors): Fix MDX Integration missing error message so docs generation work properly

* docs(errors): Add more information regarding authoring error messages
2023-01-05 16:46:30 +01:00
Fred K. Bot
17608762e1
[ci] update lockfile (#5764)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-01-05 09:22:54 -06:00
Bjorn Lu
a3a7fc9298
Refactor tailwind integration setup (#5717)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-05 16:02:35 +08:00
bholmesdev
63ef130e76 [ci] format 2023-01-04 23:38:20 +00:00
Ben Holmes
fa8c131f88
Log pretty error when MDX integration is missing (#5761)
* feat: add MDX integration error handling

* chore: changeset

* docs: applied -> installed

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-04 18:36:21 -05:00
Christopher Christofi
0a6b87236a
fix broken link in tailwind example docs (#5762)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-04 18:39:41 -04:00
Matthew Phillips
d8d885a226
Fix legacy branch name in the release action (#5760) 2023-01-04 16:23:45 -05:00
Nate Moore
2a90217490
chore(ci): skip OG images in smoke test (#5757)
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-04 15:17:18 -06:00
Matthew Phillips
cfa429efb6
Setup changesets to backport to 1.0 legacy branch (#5758)
* Setup changesets to backport to 1.0 legacy branch

* Only make the workflow change

* Both main and legacy branches
2023-01-04 16:16:43 -05:00
sarah11918
1b0f5f377d [ci] format 2023-01-04 20:52:45 +00:00
Sarah Rainsberger
5df4a89a3a
[docs] Document base (#5693) 2023-01-04 16:50:23 -04:00
matthewp
c0d3877d0d [ci] format 2023-01-04 20:38:51 +00:00
Matthew Phillips
116d8835ca
Fix for hoisted scripts in project with spaces in the file path (#5756)
* Fix for hoisted scripts in project with spaces in the file path

* Adding a changeset

* Use viteID instead
2023-01-04 15:36:44 -05:00
natemoo-re
1965ae4628 [ci] format 2023-01-04 19:23:02 +00:00
Nate Moore
55cea0a9d8
Handle getStaticPaths with prerendered pages (#5734)
* fix(#5661): ensure getStaticPaths is correctly handled for prerendered pages

* test: add prerender getStaticPaths cases

* chore: add changeset

* test: add props to test suite

* chore: update lockfile

Co-authored-by: Nate Moore <nate@astro.build>
2023-01-04 13:20:13 -06:00
Fred K. Bot
cc4606d65e
[ci] update lockfile (#5744)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-01-04 10:45:33 -06:00
Princesseuh
7a81041056 [ci] format 2023-01-04 16:36:17 +00:00
Erika
63745f8d5a
Update telemetry to use new errors information (#5547)
* Properly get information from AstroError in telemetry

* Record telemetry for dev errors

* Fix tests

* ci(telemetry): Make sure we don't hit telemetry in tests

* fix(build): Fix types

* test: Remove unnecessary flag

* test(errors): Add test to make sure we don't have stacktraces inside error messages

* refactor(types): Type cast `getErrorDataByCode`'s return type so we don't have to cast to any later
2023-01-04 17:34:11 +01:00
Erika
2a57864195
Add file location to errors in build (#5743)
* feat(errors): Add file location where error happened during build for user-generated errors

* chore: changeset

* fix(errors): Only add information if the error is in a compatible shape

* feat(errors): Add hint to throw Error objects instead of other types for better information

* test(errors): Add test to make sure errors in build have the error location

* chore(lockfile): Update lockfile

* chore: misc text fixes
2023-01-04 13:31:28 +01:00
Chris Swithinbank
000d3e6940
Fix docs links in MDX README (#5741) 2023-01-04 11:46:05 +01:00
Sarah Rainsberger
1b4fd083ee
update frontmatter injection link to match docs changes (#5736)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-01-04 11:44:46 +01:00
Lorenzo Lewis
1c7a6bcc44
Fix whitespace in type comment (#5691)
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-01-04 11:27:17 +01: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
matthewp
0ac87f0836 [ci] format 2023-01-03 22:15:51 +00:00
Ben Holmes
a9c2920264
Markdown and MDX configuration rework (#5684)
* feat: change extendDefaults -> gfm

* deps: remove smartypants from md/remark

* tests: update markdown plugin tests

* fix: borked lockfile

* feat: allow all Markdown options in MDX config, with extend

* deps: remove smartypants from MDX

* chore: remove unused `mode` property

* chore: remark rehype types

* chore: dead code

* fix: order of default config properties

* refactor: move md defaults to remark

* fix: RemarkRehype type

* fix: apply defaults based on MD defaults

* chore: update plugin tests

* chore: add syntaxHighlight test

* refactor: remove drafts from config defaults

* docs: new MDX config options

* chore: add changeset

* edit: test both extends for syntax highlight

* refactor: remove MDX config deep merge

* docs: update README and changeset

* edit: avoid -> disable

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* edit: `drafts` clarification

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* edit: remove "scare quotes"

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* docs: MDX config options redraft

* docs: add migration

* chore: changeset heading levels

* refactor: githubFlavoredMarkdown -> gfm

* chore: remove unused imports

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-03 17:12:47 -05:00
bholmesdev
163a9a9d0e [ci] format 2023-01-03 21:33:40 +00:00
Ben Holmes
e2019be6ff
Change frontmatter injection ordering (#5687)
* feat: make user frontmatter accessible in md

* test: new frontmatter injection

* refactor: move injection utils to remark pkg

* fix: add dist/internal to remark exports

* feat: update frontmater injection in mdx

* tests: new mdx injection

* chore: changeset

* chore: simplify frontmatter destructuring

* fix: remove old _internal references

* refactor: injectedFrontmatter -> remarkPluginFrontmatter

* docs: add content collections change

* chore: changeset heading levels
2023-01-03 16:31:19 -05:00
Bjorn Lu
16c7d0bfd4
Cleanup internal breaking changes (#5724)
* Remove Astro.glob template literal trick

* Remove RenderTemplateResult toString

* Remove astro add volar warning

* Add changeset
2023-01-03 15:38:51 -05:00
Matthew Phillips
4cc8c84caf
Fix astro-embed peerDep issue (#5731)
* Fix astro-embed peerDep issue

* Update lockfile
2023-01-03 15:32:43 -05:00
Matthew Phillips
f0a3288ddb
Fix missing ts flag on main (#5730) 2023-01-03 14:38:17 -05:00
matthewp
857ae26b2e [ci] format 2023-01-03 19:08:59 +00:00
Bjorn Lu
dd56c19411
Remove MDX Fragment hack (#5716)
* Remove MDX Fragment hack

* Update .changeset/lovely-terms-drive.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-01-03 14:06:33 -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
Nate Moore
8fb28648f6
Unflag experimental features (#5728)
* feat: unflag `--experimental-error-overlay`

* feat: unflag `--experimental-prerender`

* chore: add changeset

* Update chilled-geese-worry.md

* test: update test to use `mjs`

* Update .changeset/chilled-geese-worry.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Update chilled-geese-worry.md

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-01-03 14:05:46 -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