Matthew Phillips
e33fc9bc46
Load configs with Vite when loading with Proload fails ( #4112 )
...
* 4078 breaking test
* Use Vite for loading the config
* Try it
* Fallback to loading with Vite only when needed
* Remove console.error
* Remove extra console.log
* Add a changeset
* Use middlewareMode
2022-08-02 08:08:28 -04:00
bholmesdev
10a8fa5dcd
[ci] format
2022-08-01 21:25:50 +00:00
Ben Holmes
40ef43a59b
[MDX] Add getHeadings
+ generate anchor links ( #4095 )
...
* deps: mdx github-slugger
* feat: add getHeadings via rehype plugin
* chore: stray console.log
* test: getHeadings w/ & w/0 JSX expressions
* docs: add generated exports
* refactor: pass headings using vfile.data
* deps: vfile
* test: heading anchor IDs
* docs: add collect-headings to default rehype plugins
* chore: changeset
* deps: estree-util-value-to-estree
* refactor: inject getHeadings export the right way!
* deps: switch to acorn
* refactor: just use acorn
* docs: `getHeadings` info structuring
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* docs: clarify `url` example
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* fix: move slugger inside plugin call
* refactor: cleanup code reassignment
* chore: lint
* deps: mdast-util-mdx, test utils
* refactor: add jsToTreeNode util
* feat: expose utils for lib authors
* test: rehype plugins w/ and w/o extends
* test: fixture
* refactor: remove utils from package exports
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-08-01 17:23:56 -04:00
FredKSchott
f62f05f181
[ci] format
2022-08-01 16:16:51 +00:00
Fred K. Schott
643443bcd9
remove unused util polyfill dependency ( #4097 )
...
* remove util dependency
* update tests
2022-08-01 09:15:23 -07:00
Sarah Rainsberger
76ec35ff30
[docs content] Image README formatting ( #4082 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-07-30 09:29:03 -03:00
Fred K. Bot
268d44e25b
[ci] release ( #4086 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-30 00:29:04 -04:00
Fred K. Bot
f36a0e87a6
[ci] update lockfile ( #4089 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-07-30 00:20:02 -04:00
tony-sull
2ac5c557cf
[ci] format
2022-07-29 20:56:25 +00:00
Tony Sullivan
a0d1731a7e
Updates the dev server to handle multiple routes matching the same URL ( #4087 )
...
* updates the dev server to handle multiple routes matching the same URL
* Adding an error message when multiple routes match in SSR
* resetting the flag used by the `calledTwiceTest`
* injected routes should be sorted with a higher priority than user-defined routes
* adding routing priority tests for injected routes
* chore: add changeset
* adding a dev test to make sure getStaticPaths is called once
2022-07-29 20:54:51 +00:00
bholmesdev
8e20156638
[ci] format
2022-07-29 15:24:57 +00:00
Ben Holmes
1743fe140e
feat: support layout
in MDX frontmatter ( #4088 )
...
* deps: add gray-matter
* feat: support layout frontmatter property
* test: frontmatter, content prop
* docs: update layout recommendation
* deps: fix lockfile
* chore: changeset
* fix: inherit rollup plugin transform
* fix: avoid parsing frontmatter on custom parsers
* fix: match YAML err handling from md
* docs: absolute url to docs
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore: formatting
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-07-29 11:22:57 -04:00
matthewp
45bec97d28
[ci] format
2022-07-29 14:48:08 +00:00
Matthew Phillips
09c1e586ee
Prevent hydration scripts from being rendered in the wrong order ( #4080 )
...
* Prevent hydration scripts from being rendered in the wrong order
* Remove comment
* Update jsx
* Remove promise for stop
* Try skipping lit tests
* Stringify these chunks too
* Unskip lit
2022-07-29 10:46:09 -04:00
Erika
c15cb36636
Fix shape of Markdown component to work with the language-server ( #4085 )
...
* Fix shape of Markdown component to work with the language-server
* Add changeset
2022-07-28 16:00:11 -04:00
Fred K. Bot
84193e3ea1
[ci] release ( #4081 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-28 15:53:57 -04:00
Matthew Phillips
8efe43ffe1
Fix lit e2e
2022-07-28 14:17:05 -04:00
Princesseuh
c2512230ee
[ci] format
2022-07-28 16:07:57 +00:00
Erika
cc10a5c8e0
Fix misc create-astro issues ( #4075 )
...
* Add prompt to automatically fix cache issue
* Throw an error when an invalid template is used
* Use already existing util
* Add changeset
2022-07-28 12:05:39 -04:00
Fred K. Bot
742eedee39
[ci] update lockfile ( #4067 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-07-28 11:02:33 -04:00
matthewp
22f76b8a7e
[ci] format
2022-07-28 15:00:32 +00:00
Matthew Phillips
6120a71e54
Ensure file and url are always present in MDX for Astro.glob ( #4076 )
2022-07-28 10:58:44 -04:00
Sarah Rainsberger
6fb95dbdd6
[docs content] MDX layouts ( #4077 )
2022-07-28 10:06:23 -03:00
Fred K. Bot
6d103ddceb
[ci] release ( #4056 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-28 08:17:45 -04:00
Alfredo González Martínez
c565465a96
Add properties (url, file) to MarkdownContent type ( #4028 )
...
'url' and 'file' properties were missing in MarkdownContent type,
but they should there according to:
https://docs.astro.build/en/guides/markdown-content/#markdown-layouts
2022-07-28 08:13:27 -04:00
Chell
9697649d31
fix link ( #4070 )
2022-07-28 08:11:37 -04:00
matthewp
3a599f2144
[ci] format
2022-07-27 20:17:38 +00:00
Matthew Phillips
a198028b04
Fixes cloudflare throwing over process ( #4072 )
...
* Fixes cloudflare throwing over process
* Up the timeout for slower CI servers
* Fix linting
* Up the timeout a bit
2022-07-27 16:15:19 -04:00
Matthew Phillips
13b4f8ad88
Add fontsource packages to always be noExternal ( #4073 )
...
* Add fontsource packages to always be noExternal
* Adds a changesetp
2022-07-27 15:48:21 -04:00
matthewp
6fa6369678
[ci] format
2022-07-27 15:52:44 +00:00
Matthew Phillips
54b33d50fd
Add errors to cloudflare/vercel adapters when no output config ( #4068 )
2022-07-27 11:50:48 -04:00
tony-sull
57770bbae2
[ci] format
2022-07-27 15:41:22 +00:00
Tony Sullivan
a397b981f5
Fixes type definitions @astrojs/image
and adds more documentation to the README ( #4045 )
...
* WIP: moving to a static .d.ts types file
* fixing named exports for getImage and getPicture
* removing the exports.astro map for now
* WIP: adding readme docs for component attributes
* Adding docs for getImage and getPicture
* leaning fully on TSC to build .d.ts files
* finally found the solution for proper ESM import types
* adding a note to the README for tsconfig updates
* chore: add changesets
* typo
* docs: removing the "Images in Markdown" example
* removing the need for publishing src to NPM
* fix: make type re-export explicit
* updating image module defs to match InputFormat
* using astro syntax highlighting for README code blocks
* nit: missing backtick in README
* make sure Astro component directives aren't recommended twice
2022-07-27 15:39:05 +00:00
matthewp
55c8aced44
[ci] format
2022-07-26 21:33:54 +00:00
Matthew Phillips
da5e6ca128
Add tests for markdown content escaping ( #4058 )
2022-07-26 17:31:57 -04:00
matthewp
c57242d534
[ci] format
2022-07-26 18:06:03 +00:00
Matthew Phillips
40251118f8
Prevent Svelte HMR warning during the build ( #4057 )
2022-07-26 14:04:26 -04:00
Matthew Phillips
44694d8a90
Fixes binary data request bodies in the Node adapter ( #4055 )
...
* Fixes binary data request bodies in the Node adapter
* Fix type
2022-07-26 10:31:54 -04:00
Fred K. Schott
00768580af
Update CHANGELOG.md
2022-07-26 10:06:25 -04:00
Fred K. Bot
d790eabd98
[ci] release ( #3972 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-26 09:58:38 -04:00
Fred K. Bot
c7e117ce32
[ci] update lockfile ( #4054 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-07-26 09:02:53 -04:00
matthewp
6a89867844
[ci] format
2022-07-26 12:57:00 +00:00
Matthew Phillips
453c026aa7
Move getStaticPaths call to happen during generation ( #4047 )
...
* Move getStaticPaths call to happen during generation
* Adds a changeset
* Update routing-priority.test.js
* revert test change, clarify test purpose
* Keep track of paths that have already been built
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-07-26 08:54:49 -04:00
Fred K. Bot
adf8cde10f
[ci] update lockfile ( #4040 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-07-26 00:50:43 -04:00
Fred K. Schott
f64aa1475b
update md deprecation messages
2022-07-26 00:32:55 -04:00
Fred K. Schott
9ab66c4ba9
add support for injected page-ssr scripts ( #4050 )
2022-07-26 00:26:47 -04:00
tony-sull
2a13e430b1
[ci] format
2022-07-25 21:16:11 +00:00
Tony Sullivan
e60d6d9c1d
Removes fileURLToPath
dependency from @astrojs/image
SSR production endpoint ( #4048 )
...
* removing fileURLToPath dependency from SSR production endpoint
* chore: add changeset
2022-07-25 21:14:03 +00:00
Sarah Rainsberger
ab8f4901a2
[docs content] use "version" not since ( #4043 )
...
* [docs content] use "version" not since
Change to use `@version` to create the `<Since />` component for docs. (not `@since)
Also, quick sentence edit.
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-07-25 14:39:58 -05:00
matthewp
813d392717
[ci] format
2022-07-25 19:17:18 +00:00