Commit graph

5709 commits

Author SHA1 Message Date
bholmesdev
647079da14 [ci] format 2023-06-27 19:08:29 +00:00
Ben Holmes
fb7af55114
feat: New Markdoc render API (#7468)
* feat: URL support for markdoc tags

* refactor: move to separate file

* feat: support URL for markdoc nodes

* feat: support `extends` with URL

* chore: changeset

* fix: bad AstroMarkdocConfig type

* fix: experimentalAssetsConfig missing

* fix: correctly merge runtime config

* chore: formatting

* deps: astro internal helpers

* feat: component() util, new astro bundling

* chore: remove now unused code

* todo: missing hint

* fix: import.meta.url type error

* wip: test nested collection calls

* feat: resolve paths from project root

* refactor: move getHeadings() to runtime module

* fix: broken collectHeadings

* test: update fixture configs

* chore: remove suggestions. Out of scope!

* fix: throw outside esbuild

* refactor: shuffle imports around

* Revert "wip: test nested collection calls"

This reverts commit 9354b3cf9222fd65b974b0cddf4e7a95ab3cd2b2.

* chore: revert back to mjs config

* chore: add jsdocs to stringified helpers

* fix: restore updated changeset

---------

Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2023-06-27 15:05:17 -04:00
Chris Swithinbank
8821f05048
Don’t post Discord congrats for auto-formatter commits (#7502) 2023-06-27 10:58:57 -05:00
delucis
47b47e0e54 [ci] format 2023-06-27 15:17:59 +00:00
r-southworth
b51d515d2d
Update astro.ts to clarify configuration settings for base (#7392)
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-06-27 17:15:10 +02:00
Ben Holmes
f6feff7a29
feat: restart server on markdoc config change (#7467)
* deps: vite-plugin-restart

* feat: restart on markdoc config change

* chore: changeset

* chore: roll our own restarter!

* deps: remove vite-plugin-restart

* refactor: use good enough option
2023-06-27 10:46:59 -04:00
Matteo Manfredi
2726098bc8
Update setTimeout() to queueMicrotask() (#7494) 2023-06-27 22:16:41 +08:00
Bjorn Lu
a82c6df25b
Remove unused rendering code (#7497) 2023-06-27 22:16:22 +08:00
Bjorn Lu
a3928016cc
Fix CSS error line offset (#7491) 2023-06-27 21:16:43 +08:00
Bjorn Lu
6dfd7081b7
Fix error stacktrace from Vite SSR runtime (#7273) 2023-06-27 21:16:29 +08:00
Bjorn Lu
83016795e9
Simplify nested hydration flow (#7370) 2023-06-27 21:16:10 +08:00
Houston (Bot)
da56a005d9
[ci] release (#7449)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-27 08:42:46 -04:00
ematipico
275d0d1683 [ci] format 2023-06-27 11:00:40 +00:00
Emanuele Stoppa
6014037441
fix: correct URL for entry points (#7490)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-06-27 11:58:23 +01:00
Bjorn Lu
57e603038f
Handle esbuild 0.18 changes (#7479) 2023-06-27 11:59:22 +08:00
Chris Swithinbank
2eca765f91
Remove invalid code block language tag in sitemap README (#7487) 2023-06-27 00:02:20 +02:00
bluwy
0daaa9efba [ci] format 2023-06-26 09:30:08 +00:00
Rasso Hilber
478cd9d8fa
fix: Installs underneath a path containing leading underscores (#7476) 2023-06-26 17:27:39 +08:00
bluwy
c1564d3c02 [ci] format 2023-06-26 08:53:27 +00:00
Erika
4e02a59e42
fix(errors): Deprecate error codes (#7347)
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-06-26 16:51:06 +08:00
bluwy
39a24f111d [ci] format 2023-06-26 03:40:32 +00:00
Reuben Tier
f75b354715
Bump dependency versions (#7477) 2023-06-26 11:38:16 +08:00
Waxer59
409734a9af
Typo fixed in node.mdx (#7465) 2023-06-26 11:34:56 +08:00
Bjorn Lu
8e3cb20b5c
Format markdown files (#7439)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-06-26 11:34:13 +08:00
Willow (GHOST)
6e7f38dd79
Svelte Four (#7454) 2023-06-25 22:33:00 +08:00
Bjorn Lu
869197aafd
Fix markdoc test fail in main (#7459)
* Early out if `importedModule` has no `id`

We can do this as line 97 also has this guard for each `importedModules`

* Simplify `isPropagationStoppingPoint`

* Fix actual bug

* chore: changeset

---------

Co-authored-by: bholmesdev <hey@bholmes.dev>
2023-06-23 17:00:19 -04:00
Chris Swithinbank
dfa70357d3
Update congrats workflow for latest version (#7457) 2023-06-23 11:32:48 +02:00
Bjorn Lu
2b75399520
Remove slash package (#7440) 2023-06-23 16:48:05 +08:00
Nate Moore
8642912120
Cleanup GitHub Actions (#7451)
* chore(ci): cleanup GitHub Actions

* Update .github/workflows/format.yml
2023-06-22 15:42:17 -05:00
matthewp
56d04e4100 [ci] format 2023-06-22 18:39:21 +00:00
Matthew Phillips
f359d77b18
Prevent accidental CSS inclusion in dev (#7381)
* Prevent accidental CSS inclusion in dev

* Use ssrTransformResult.deps instead

* Fix types

* Get dynamic deps too

* Handle virtual module deps

* Fix test on windows
2023-06-22 14:36:35 -04:00
Bjorn Lu
32bde967f4
Fix vercel redirects with trailingSlash always (#7447) 2023-06-22 23:40:08 +08:00
Houston (Bot)
38b104049a
[ci] release (#7434)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-22 10:06:15 -04:00
Chris Swithinbank
03b7d17b99
Fix two errors for use in docs (#7445) 2023-06-22 12:10:59 +02:00
Wooseop Kim
9739adc91f
fix: encode spaces when generating srcset (#7340) 2023-06-22 15:56:41 +08:00
Benjamin MENANT
33cdc8622a
fix(astro:assets): inject /_image endpoint with prerendered=false on serverLikeOutput (#7423) 2023-06-22 15:20:35 +08:00
Ben Holmes
76fcdb84dd
Chore: remove legacy mdx content collections handler (#7353)
* chore: remove legacy mdx mapping

* chore: changeset

* chore: remove dead mdxEntryType

* nit: comments on mdx pkg name

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* smol smol smol nit: and vs or

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-06-21 19:51:15 -04:00
Ben Holmes
3f9f5c117e
fix: pnpm failure on create-astro (#7435)
* fix: use which-pm-runs instead of preferred-pm

* deps: remove preferred-pm

* chore: move which-pm-runs to regular deps

* chore: changeset
2023-06-21 16:02:20 -04:00
Bjorn Lu
30bb363713
Fix astro:build:setup hook updateConfig utility (#7438)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-06-21 21:56:25 +08:00
Bjorn Lu
f275d058fc
Update safe dependencies (#7430) 2023-06-21 21:09:49 +08:00
ematipico
01b1c21c6b [ci] format 2023-06-21 12:35:19 +00:00
Emanuele Stoppa
459b5bd05f
feat: SSR split mode (#7220)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-06-21 13:32:20 +01:00
ematipico
c8bccb47d3 [ci] format 2023-06-21 12:10:24 +00:00
Emanuele Stoppa
8e2923cc62
feat: expose locals to render api and from requests in dev mode (#7385)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: wrapperup <wrapperup4@gmail.com>
2023-06-21 13:07:16 +01:00
Emanuele Stoppa
61d6e45cef
docs: add snippet for base option (#7384) 2023-06-21 13:06:43 +01:00
KDTS
3943fa390a
Fix minior issue in the documentation related to port customization (#7436) 2023-06-21 10:40:52 +01:00
Emanuele Stoppa
b9b57d901d
ci: don't run workflow for ISSUE_TEMPLATE (#7433) 2023-06-20 20:37:04 +01:00
Ben Holmes
7877a06d82
Fix up pnpm dev (#7424)
* feat: use persistent per turbo recs

* feat: preserve types yay

* fix: *actually* solve problem

* fix: type failures from content types template

* fix: bad JS doc comments

* fix: bad src/content/template path

* chore: changeset

---------

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-20 14:06:36 -04:00
ematipico
3fd10f4597 [ci] format 2023-06-20 16:34:32 +00:00
Emanuele Stoppa
e314a04bfb
fix: correctly emit middleware file name (#7427) 2023-06-20 17:32:30 +01:00