Akash Rajpurohit
59d8c50b84
fix: 🩹 update partytown options ts type ( #7175 )
2023-05-25 16:24:59 +08:00
bholmesdev
dc31b8a722
[ci] format
2023-05-24 20:54:43 +00:00
Ben Holmes
1efaef6be0
Markdoc - Shiki ( #7187 )
...
* chore: remove unused util
* chore: changeset
* deps: shiki
* wip: first stab at shiki markdoc config
* feat: get shiki working!
* refactor: return HTML string directly from transform
* chore: move shiki to markdoc dev dep
* refactor: use async cache with clear docs on why
* test: transform units with Shiki config options
* refactor: switch to `extends` model
* refactor: nodes/ -> extensions/
* feat: raise friendly error for Promise extensions
* docs: README
* chore: lint
* chore: dead file
* chore: lowercase for fuzzy find please
* fix: bad ctx spread
* chore: clean up cache, add shiki imp error
* chore: add shiki to optional peer deps
* chore: hoist those consts
* docs: more explicit "install shiki now please"
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* oops bad find and replace
* chore: update changeset
* nit: period haunts me
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-24 16:52:22 -04:00
Emanuele Stoppa
7851f9258f
fix: detect mdx
files using full extension ( #7192 )
2023-05-24 10:20:06 +01:00
Bjorn Lu
27c6e01826
Remove @mdx-js/rollup
dependency ( #7191 )
2023-05-24 17:02:04 +08:00
Barthélémy Ledoux
2bda7fb0bc
fix: add astro-static-slot to the list of inert tags in astro css ( #7189 )
2023-05-24 15:10:10 +08:00
Houston (Bot)
55a0439e00
[ci] release ( #7181 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-23 16:24:16 -04:00
matthewp
bf2320edb6
[ci] format
2023-05-23 19:43:05 +00:00
wulinsheng123
904131aec3
fix a bug when Fragment is as a slot ( #6832 )
...
* fix a bug when Fragment is as a slot
* update yaml
* fix ts errpr
* fix astro name of md
---------
Co-authored-by: wuls <linsheng.wu@beantechs.com>
2023-05-23 15:40:21 -04:00
Ben Holmes
57e65d247f
revert: markdoc asset bleed ( #7178 )
...
* revert: markdoc asset bleed
* chore: changeset
2023-05-23 12:16:50 -04:00
Houston (Bot)
cbdb0fdbd6
[ci] release ( #7169 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-23 11:06:53 -04:00
Bjorn Lu
79ba74832f
Prevent Vite watching on Astro config load ( #7171 )
2023-05-23 22:40:40 +08:00
Emanuele Stoppa
92d1f017e5
chore(middleware): lift restriction around serializable data ( #7174 )
2023-05-23 15:10:30 +01:00
ematipico
d73c908396
[ci] format
2023-05-23 13:58:58 +00:00
Emanuele Stoppa
626dd41d0a
refactor: move renderers to their own plugin ( #7166 )
2023-05-23 14:55:34 +01:00
Bjorn Lu
4ce8bf7c62
Make vite-plugin-content-virtual-mod run getEntrySlug
10 at a time ( #7125 )
2023-05-23 21:54:59 +08:00
Erika
2ca94269ed
Add types for import.meta.env.ASSETS_PREFIX
and import.meta.env.SITE
( #7172 )
2023-05-23 14:13:10 +02:00
Alex Vukadinov
5b6a0312a8
fix: value of var could be undefined when using define:vars
( #7134 )
2023-05-23 12:28:44 +08:00
Houston (Bot)
64d2aba583
[ci] release ( #7163 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-22 15:16:13 -04:00
matthewp
6533cbea87
[ci] format
2023-05-22 17:52:03 +00:00
Ben Holmes
f558a9e205
[Markdoc] Fix global asset bleed ( #6758 )
...
* wip: propagatedAssets flag per-component
* Propagate in TreeNode
* fix: remove unused inject comment
* feat: make asset propagation an integration opt-in
* fix: remove crawlGraph stopper
* wip: logs to understand what's happening
* SSR mdoc files in dev
* feat: add astroPropagatedAssets flag with vite
* chore: remove console logs
* chore: cleanup hasContentFlag
* fix: set handlePropagation default for legacy integrations
* chore: changeset
* temp: silence acorn type error
* chore: revert pnpm-lock changes
* fix: check correct flag
* We need to handle propagation on markdown because of layouts
* Remove use of renderStyleElement
* Fix heading tests
* Fix merge conflict
* typeof function
* Switch the check
* Add comment on injection detection regexp
---------
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-05-22 13:50:01 -04:00
Johannes Spohr
b41963b775
Render 404 page content when a Response
with status 404 is returned from a page ( #7143 )
2023-05-22 12:06:06 -04:00
Houston (Bot)
d880293f79
[ci] release ( #7161 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-22 09:48:21 -04:00
Akash Rajpurohit
e17ed0727e
feat: 🎨 export rss feeditem type ( #7153 )
2023-05-22 21:20:10 +08:00
matthewp
f962348f76
[ci] format
2023-05-22 13:18:18 +00:00
Arsh
ba06362409
fix(hoisted scripts): consider script's dependents ( #7144 )
2023-05-22 09:15:21 -04:00
MoustaphaDev
49bfeacdec
[ci] format
2023-05-22 13:00:23 +00:00
Happydev
8f418d13c5
fix(hybrid-output): no matched route when using getStaticPaths
( #7150 )
...
* `isPrenderDefault` ---> `isPrerenderDefault`
* test: add test fixture
* test: add hybrid getStaticPaths tests
* try fix in ci
* bring back edit lost on merge conflict fix
* back static paths guard
* move function to new file to avoid bundling issues
* remove unsued import
* debugging cleanup
* chore: update fixture's package.json
* cleanup test
* small test refactoring
* `status.ts` --> `metadata.ts`
* smol refactor
* chore: changeset
* just return the prerender metadata
* refactor tests
* chore: update lock file
2023-05-22 12:58:03 +00:00
Houston (Bot)
0616ef2551
[ci] release ( #7130 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-21 00:00:31 +08:00
bholmesdev
358d1dc92f
[ci] format
2023-05-19 18:14:41 +00:00
Ben Holmes
a9e1cd7e58
Fix: Heading ID CI flakiness ( #7141 )
...
* feat: use `ctx` object instead of leaky global
* test: heading IDs stale caches
* chore: changeset
2023-05-19 14:12:45 -04:00
Connor Bär
147373722b
fix(prefetch): Fix the inclusion of @types/network-information
( #7123 )
2023-05-19 23:34:34 +08:00
matthewp
cf066944b5
[ci] format
2023-05-19 14:54:42 +00:00
Johannes Spohr
72f686a689
Fix injectRoute for SSR ( #7128 )
...
* Use manifest routes for SSR app manifest instead of page components to enable injected routes with SSR
* Small refactoring
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-05-19 10:52:46 -04:00
Bjorn Lu
ed4aff0cb9
Fix e2e flaky tests again ( #7129 )
2023-05-19 22:46:31 +08:00
ematipico
7341d9a288
[ci] format
2023-05-19 14:31:59 +00:00
Emanuele Stoppa
852d59a8d6
refactor(astro): emit entry.mjs
to import pages via dynamic import ( #7036 )
2023-05-19 15:30:03 +01:00
ematipico
96947fce96
[ci] format
2023-05-19 12:53:45 +00:00
Emanuele Stoppa
319a0a7a0a
refactor: create virtual module for middleware ( #7132 )
2023-05-19 13:51:47 +01:00
Erika
3257dd2890
Improve content collection error message for empty folders ( #7118 )
2023-05-19 13:53:46 +02:00
Bjorn Lu
2b9a25beaf
Fix smoke test markdoc CI ( #7131 )
2023-05-19 19:19:34 +08:00
Bjorn Lu
530fb9ebee
Add route information for getStaticPaths warning ( #7126 )
2023-05-19 18:13:46 +08:00
Houston (Bot)
31cbf4357e
[ci] release ( #7090 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-18 12:31:59 -04:00
Bjorn Lu
dad105a91e
Document inlineStylesheets available astro version ( #7117 )
2023-05-18 12:14:17 -04:00
Johannes Spohr
e186ecc5e2
Parallelize rendering of sibling components to avoid async waterfalls ( #7071 )
...
* Parallelize rendering of sibling components to avoid async waterfalls
* Catch and rethrow errors when eagerly rendering children
* Catch `Response` in rendering stage and throw error
* Add changeset
* Fix test error message
* Improve unit tests
* Start async generators in non-buffered mode, and only start buffering once a component doesn't resolve immediatly
* Add more documentation
2023-05-18 09:54:23 -04:00
Ben Holmes
05695ab202
chore: remove unused content/internal
export ( #7114 )
...
* chore: remove unused content/internal exp
* chore: add back newline
---------
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2023-05-18 08:38:27 -04:00
Bjorn Lu
8814a36f72
Fix customClientDirectives config default typo ( #7119 )
2023-05-18 18:48:59 +08:00
bluwy
28d4d22f7b
[ci] format
2023-05-18 09:42:07 +00:00
Reuben Tier
cada10a466
Add errors for unknown experimental keys ( #7011 )
2023-05-18 17:39:39 +08:00
Ben Holmes
6b4fcde376
Fix: add headings
to .mdoc
render type ( #7111 )
...
* fix: add `headings` to `.mdoc` render type
* chore: changeset
2023-05-17 16:35:48 -04:00