Nate Moore
e779c62424
fix( #5922 ): improve top-level return error ( #6036 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-30 11:37:13 -06:00
Houston (Bot)
fbb34e1ef6
[ci] update lockfile ( #5988 )
...
* [ci] update lockfile
* fix type issues
---------
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-30 12:03:32 -05:00
matthewp
bec45b3be5
[ci] format
2023-01-30 16:57:13 +00:00
Matthew Phillips
071e1dee7e
Simplified head injection ( #6034 )
...
* Simplified head injection
* Make renderHead also yield an instruction
* Add changeset
* Add mdx test
2023-01-30 11:55:10 -05:00
bholmesdev
3f687ee8d1
[ci] format
2023-01-30 16:24:38 +00:00
Ben Holmes
b4432cd6b6
[Content collections] Load MDX hoisted scripts in dev ( #6035 )
...
* chore: script, rename delayed -> propagated
* fix: consistent propagatedAssets flag
* feat: inject those scripts in dev!
* test: scripts included in dev and build
* chore: add TODO for prod build fix
* chore: changeset
2023-01-30 11:22:17 -05:00
Happydev
98a4a914bc
Remove outdated MDX import types ( #6024 )
2023-01-30 16:48:40 +08:00
Bryce Russell
b6bed15a00
Fix local image example ( #6019 )
...
- `aspectRatio` prop requires a `width` or `height` prop
Co-authored-by: BryceRussell <19967622+BryceRussell@users.noreply.github.com>
2023-01-29 10:00:48 +01:00
Caleb Jasik
9c298aa5ae
@astrojs/image
: Allow passing undefined
to transform options (#6008 )
...
* Allow passing `undefined` to transform options
This fixes #6001 , allowing undefined passed as a variable in addition to not passing the property at all
* Create strange-olives-rest.md
* Improve error message for missing `widths` prop
* Add changeset
2023-01-27 18:05:00 +01:00
Tony Sullivan
b994f6f35e
Makes the AstroCookies
type importable directly from "astro" ( #6006 )
...
* re-exports the AstroCookie type from the main 'astro' types
* chore: add changeset
2023-01-27 11:00:24 -06:00
matthewp
cac11c98be
[ci] format
2023-01-27 15:22:30 +00:00
Juan Miguel Guerrero
1c230f1037
feat(@astrojs/netlify): Add on-demand builders Netlify functions ( #5874 )
...
* Add on-demand builders option
* chore: add changeset
* docs: add documentation in configuration section
* Update packages/integrations/netlify/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/netlify/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/netlify/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/twenty-pans-agree.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-27 10:20:34 -05:00
bluwy
2565bc453e
[ci] format
2023-01-27 15:16:11 +00:00
Roy Eden
254eb21c83
fix: autoprefixer on dev mode for tailwind plugin ( #6002 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-27 23:14:19 +08:00
Anders Kaseorg
12c68343c0
fix: Don’t require getCollection()
filter to be a type guard ( #5998 )
...
Commit dabce6b8c6
(#5970 ) broke the use
of a plain boolean filter. Add an overload similar to TypeScript’s
Array#filter overload:
https://github.com/microsoft/TypeScript/blob/v4.9.4/lib/lib.es5.d.ts#L1442-L1453
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2023-01-26 21:03:09 -05:00
matthewp
5e3d538812
[ci] format
2023-01-26 20:36:29 +00:00
Chris Banford
5c64324c0a
Add a check for existing .git directory (and skip if one is found). ( #5953 )
...
* Add a check for existing .git directory (and skip if one is found).
* Changeset attempt :-)
* Update .changeset/try-button-rumor.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-26 15:34:49 -05:00
Nate Moore
a88363ce79
fix error in changelog formatting ( #5997 )
...
* fix changelog
* Update CHANGELOG.md
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-26 14:27:56 -06:00
银河渡舟
322e059d0d
fix: undefined remarkPluginFrontmatter after calling render method ( #5927 )
...
* Update vite-plugin-content-assets.ts
* Add changeset for #5927
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Co-authored-by: Anders Kaseorg <andersk@mit.edu>
2023-01-26 13:47:09 -06:00
Subha Chanda
1c7eef308e
Updated according to new configuration ( #5478 )
...
* Updated according to new configuration
Astro imports the `defineConfig` function from `astro/config`. The `integrations` key needs to be passed into the `defineConfig` function, but it is not shown in the README. Updated the README according to the CLI example.
* update alpine
* update image
* update lit
* update mdx
* update preact
* update prefetch
* update react
* update sitemap
* update solid
* update svelte
* update tailwind
* update turbolinks
* update vue
* chore: add changeset
* update image
* update svelte readme
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-26 13:03:00 -06:00
Houston (Bot)
607f0ac31a
[ci] release ( #5984 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-26 13:53:32 -05:00
HiDeoo
7abb1e9056
Fix MDX heading IDs generation when using a frontmatter reference ( #5978 )
...
* Fix MDX heading IDs generation when using a frontmatter reference
* Hoist safelyGetAstroData() call and add statement null check
2023-01-26 12:52:50 -05:00
matthewp
e16958f35f
[ci] format
2023-01-26 17:45:39 +00:00
Matthew Phillips
9855db676e
Support for prerendering in the Cloudflare integration ( #5993 )
...
* Cloudflare prerender branch
* Add prerendered routes to Cloudflare routes.json
* Adding changeset
* Prevent process proxy from running during prerender phase
2023-01-26 12:43:39 -05:00
HiDeoo
60b32d5856
Fix Astro.url.protocol
when using the @astrojs/node SSR adapter with HTTPS ( #5992 )
2023-01-26 12:39:57 -05:00
Angus
088f5194c5
Re-enable streaming on Cloudflare Pages ( #5914 )
...
* Support streaming on Cloudflare Pages
* Create tidy-ties-repeat.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-26 07:44:09 -06:00
natemoo-re
98d35de877
[ci] format
2023-01-25 23:22:56 +00:00
wulinsheng123
aedf23f858
fix: component is not able to use a custom theme anymore ( #5952 )
...
* Astro <Code> component is not able to use a custom theme anymore
* Astro <Code> component is not able to use a custom theme anymore
* Astro <Code> component is not able to use a custom theme anymore
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-25 17:21:15 -06:00
Yaroslav Lapin
883e0cc299
change @astrojs/solid to @astrojs/solid-js ( #5971 )
...
* change @astrojs/solid to @astrojs/solid-js
@astrojs/solid package doesn't exist
* Create serious-turtles-explode.md
* Update .changeset/serious-turtles-explode.md
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-01-25 17:21:03 -06:00
HiDeoo
9d4bfc76e8
Support passing children
as props to a React component ( #5886 )
2023-01-25 16:31:57 -06:00
Ben Holmes
dabce6b8c6
[Content collections] Support type guards on getCollection()
filter ( #5970 )
...
* fix: respect type guards from collection filter
* chore: changeset
2023-01-25 16:21:27 -06:00
Nate Moore
b53e0717b7
Handle unmatched 404 when using prerender in dev mode ( #5983 )
...
* fix(#5975 ): unmatched static paths should 404 during dev
* chore: add changeset
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-25 13:57:32 -06:00
Sarah Rainsberger
03e374f6bc
[docs] typo fix in MDX README ( #5977 )
2023-01-25 10:46:58 -04:00
Houston (Bot)
4842d6acb0
[ci] release ( #5963 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-25 10:19:27 +08:00
Bjorn Lu
02549b8ced
Upgrade semver dependency ( #5972 )
2023-01-25 10:13:47 +08:00
matthewp
0c28eb5f82
[ci] format
2023-01-25 02:12:57 +00:00
Matthew Phillips
f4c71e5eb9
Protect against shimmed process usage in Vercel Edge ( #5969 )
...
* Protect against shimmed process usage in Vercel Edge
* Adding a changeset
2023-01-24 21:11:09 -05:00
Lucas Vargas
4d1e4f6d96
docs(svelte): Update integration README ( #5966 )
2023-01-24 21:50:06 +01:00
Happydev
46b6e14265
Fix Content Collections not loading config file when there are spaces in the folder tree ( #5962 )
...
* fix
* add test
* use `fileURLToPath` instead
* chore: changeset
* remove useless config file
* revert back to using `decodeURIComponent`
* test: better test
* re-revert back to using `fileURLToPath`
2023-01-24 20:00:17 +00:00
natemoo-re
e7f9696cea
[ci] format
2023-01-24 17:57:25 +00:00
Reuben Tier
f1737f14dc
Ignore lint warning ( #5949 )
2023-01-24 11:55:36 -06:00
Houston (Bot)
398a516f03
[ci] release ( #5959 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-24 11:12:02 -06:00
Nate Moore
d0d7f61182
fix(create-astro): typescript prompt handling ( #5958 )
...
* fix(create-astro): typescript prompt handling
* fallback
* fix(create-astro): additional case
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-24 11:01:26 -06:00
bholmesdev
fb6604d0aa
[ci] format
2023-01-24 16:40:14 +00:00
Houston (Bot)
73ca0ef383
[ci] release ( #5948 )
...
* [ci] release
* Update changelogs (#5955 )
* [ci] release
* Wrap astro 2.0 beta logs in `<details>`
* Add link to docs upgrade guide
* First pass cleaning up 2.0 release notes
* mdx changes from Sarah
* combine 5584 and 5842 in deno, image, netlify
* markdown/remark incl (5684 & 5769) to match mdx
* Tweak markdown/remark formatting
* Format astro-prism
* Format astro-rss
* Format create-astro
* Format cloudflare
* Format lit
* Format partytown
* Format node
* Format preact
* Format react
* Format solid
* Format svelte
* Format tailwind
* Format vercel
* Format vue
* Format telemetry
* Format webapi
* Format scripts
* Reinstate h3s for headings
Co-authored-by: Ben Holmes <hey@bholmes.dev>
* Reformat mdx
* astro & markdown/remark: Combine #5679 & #5684 changelogs
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Ben Holmes <hey@bholmes.dev>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-01-24 11:38:06 -05:00
Houston (Bot)
a75177f843
[ci] release (beta) ( #5911 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-23 16:11:39 -05:00
Ben Holmes
304823811e
[Content Collections] Add slug
frontmatter field ( #5941 )
...
* feat: respect `slug` frontmatter prop
* chore: replace `slug` check with proper types
* fix: regen types on `slug` change
* chore: add TODO on slug gen
* tests: update to use `slug` frontmatter prop
* chore: add error message on `slug` inside object schema
* lint
* chore: add note on frontmatter parse
* refactor: move content errors to new heading
* chore: ContentSchemaContainsSlugError
* chore: changeset
* docs: be 10% less gentle
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* fix: avoid parsing slug on unlink
* docs: clarify old API is for beta users
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-23 15:04:56 -05:00
Nate Moore
f62ec162c2
chore: migrate changelogs from 1-legacy ( #5944 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-23 13:45:59 -06:00
natemoo-re
12a10fe7c5
[ci] format
2023-01-23 18:05:25 +00:00
Nate Moore
7325df4121
Remove duplicate CSS in dev ( #5917 )
...
* fix(#5817 ): remove duplicate CSS in dev
* chore: add changeset
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-23 12:03:19 -06:00
Bjorn Lu
4987d6f44c
Handle custom injected entry files during build ( #5499 )
2023-01-23 23:00:05 +08:00
matthewp
0d0974722f
[ci] format
2023-01-23 14:49:20 +00:00
Matthew Phillips
f5adbd6b55
Support prerender in Netlify redirects ( #5904 )
...
* Support prerender in Netlify redirects
* Updated sorting algorithm
* Update packages/integrations/netlify/src/shared.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-01-23 09:47:33 -05:00
Happydev
9e57268f13
fix(@astrojs/tailwind): manually load postcss config file ( #5908 )
2023-01-23 22:46:19 +08:00
Rishi Raj Jain
77ae7a597a
fix: trailingSlash with base breaking partytown file path ( #5936 )
...
* fix: trailingSlash with base breaking partytown file path
* Update index.ts
* Update index.ts
* Update index.ts
* fix lint
* Update index.ts
2023-01-23 09:43:06 -05:00
heyhoe
46ecd5de34
Update magic-string used by @astrojs/image and @astrojs/webapi ( #5930 )
2023-01-22 17:11:19 +08:00
Chris Swithinbank
f32bf07c19
Improve Svelte README ( #5923 )
...
* First stylistic pass
* Rework for x/o instead of and
* fix typo
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Add changeset
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-21 10:55:19 +01:00
Chris Swithinbank
f27bb3d79f
Improve error message for third-party template 404s ( #5920 )
2023-01-21 00:04:39 +01:00
natemoo-re
ad13467a84
[ci] format
2023-01-20 14:54:53 +00:00
Reuben Tier
d8919b1a21
Add headless support to create-astro ( #5898 )
...
* Add headless support to create-astro
* Document new flags for create-astro
2023-01-20 08:53:12 -06:00
Erika
fffcd3ca86
chore(webapi): Remove unused file ( #5916 )
2023-01-20 15:52:48 +01:00
Bjorn Lu
a8d3e79246
Fix CLI node version check ( #5905 )
2023-01-20 15:37:42 +08:00
Caleb Jasik
5fd9208d44
Update compiler to 1.0.1 ( #5909 )
...
* Update compiler to 1.0.1
* Add changeset
2023-01-19 13:51:45 -05:00
Hoston (Bot)
9ddb7a2f2e
[ci] release (beta) ( #5906 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-19 11:40:44 -05:00
bholmesdev
1d37ab4f9f
[ci] format
2023-01-19 16:27:24 +00:00
Ben Holmes
81dce94f2a
[RSS] Get ready for content collections ( #5851 )
...
* chore: strictNullChecks for zod
* feat: expose `rssSchema` helper
* refactor: align types with schema types
* feat: break glob handler to globToRssItems util
* refactor: RSS options validation to Zod
* refactor: avoid intermediate type
* fix: allow numbers and dates in pubDate
* test: update glob and error tests
* feat: add rss to with-content starter
* fix: move globToRssItems back to internal behavior
* chore: JSON.stringify
* Revert "fix: move globToRssItems back to internal behavior"
This reverts commit 85305075e6444907455541b24bccbccd5016951a.
* test: missing url
* docs: `import.meta.env.SITE` -> `context.site`
* docs: update README to content collections example
* fix: url -> link
* docs: add `rssSchema` to README
* chore: consistent formatting
* docs: add `pagesGlobToRssItems()` reference
* chore: globToRssItems -> pagesGlobToRssItems
* chore: changeset
* fix: bad docs line highlighting
* fix: add collections export to example
* nit: remove "our"
* fix: are -> all
* fix: more README edits
* deps: kleur
* chore: add back import.meta.glob handling as deprecated
* docs: bump down to `minor`, update headline to be less content collections-y
* typo: suggest adding
* chore: support URL object on `site`
* docs: add await to pagesGlob ex
* docs: tighten `rssSchema` explainer
* docs: tighten pagesGlobToRssItems section
* docs: add content to README
* docs: replace examples with docs link
* docs: re-we
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-19 11:24:55 -05:00
Hoston (Bot)
97267e3881
[ci] release (beta) ( #5856 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-19 11:00:03 -05:00
matthewp
e36f310c2c
[ci] format
2023-01-19 13:36:12 +00:00
Matthew Phillips
be901dc98c
Rename getEntry to getEntryBySlug ( #5893 )
...
* Rename getEntry to getEntryBySchema
* Improve entrySlug types and return undefined
* Add changeset
* Update packages/astro/src/content/template/types.d.ts
Co-authored-by: Ben Holmes <hey@bholmes.dev>
* Update the types to accept both raw string and known value
* Add comment on the implementation not currently being O(1)
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-01-19 08:34:27 -05:00
matthewp
4f649014e9
[ci] format
2023-01-19 13:15:53 +00:00
Bjorn Lu
a342a486c2
Refactor Svelte preprocess integration handling ( #5901 )
...
* Let user setup vitePreprocess
* Abstract function
* Add changeset
* Update svelte syntax
* Make fallback
* Fix docs
* Update changeset
* Fix types
2023-01-19 08:13:40 -05:00
Junya Kono
899214298c
fix(astro/core): Do not automatically add trailing slash ( #5608 )
...
* fix: Do not automatically add trailing slash
* Update .changeset/twelve-cooks-tickle.md
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* fix: change semver
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-01-19 08:12:37 -05:00
Erika
35b26f377f
Fix image integration crash on Netlify Functions due to import.meta.url
( #5888 )
...
* fix(image): Fix immediate crash on Netlify functions due to `import.meta.url`
* chore: changeset
2023-01-19 14:04:15 +01:00
Happydev
ce5c5dbd46
feat: add theme toggle button to error overlay ( #5884 )
...
* feat: add theme toggle button for error overlay
* add changeset
* simplify toggling logic
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* redesign toggle
* code figma design
* style: remove code indent
* add `aria-hidden` to svgs
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
* apply Yan a11y suggestions
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-01-18 22:35:41 +00:00
Nate Moore
64b8082e77
chore: update compiler ( #5896 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-18 16:12:00 -06:00
bholmesdev
e64351eb5c
[ci] format
2023-01-18 22:06:58 +00:00
Ben Holmes
05caf445d4
Cleanup deprecated Markdown APIs from 0.X ( #5891 )
...
* chore: remove deprecated `getHeaders()`
* chore: remove `rawContent()` and `compiledContent()`
* chore: remove raw and compiled content from MDX type
* chore: remove 0.X error for `astro` property
* chore: changeset
* lint: no empty interface
* chore: update changeset
2023-01-18 17:04:37 -05:00
natemoo-re
599a05bfb5
[ci] format
2023-01-18 18:59:33 +00:00
Nate Moore
16dc36a870
Remove legacy compiler error handling ( #5855 )
...
* refactor: remove legacy compiler handling
* docs: add hint to unknown compiler error
* feat: add link detection to error overlay
* chore: update compiler
* chore: update compiler issue link
* Update packages/astro/src/core/errors/overlay.ts
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-01-18 12:57:31 -06:00
natemoo-re
39c1daa641
[ci] format
2023-01-18 18:56:34 +00:00
Nate Moore
8f1ae06e58
fix( #5723 ): build prerendered pages with Netlify edge functions ( #5885 )
...
* fix(#5723 ): build prerendered pages with Netlify edge functions
* chore: add changeset
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-18 12:54:49 -06:00
Erika
dc2496f702
chore: Fix image and MDX integrations version's number to get out of 1.0 ( #5892 )
...
* chore: Fix image integration version's number to get out of 1.0
* chore: Same thing for MDX integration
2023-01-18 09:43:04 -05:00
Happydev
006405d33c
Refactor Props
of Image
and Picture
component to support type checking ( #5788 )
...
* correct props type
* refactor Picture and Image typings
* add missing `alt` property
* add changeset
* apply suggestions
* correct `astro/types` import
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
* apply suggestions
* convert to type import
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-01-18 02:41:50 +00:00
Bjorn Lu
1ca81c16b8
Remove unused exports ( #5862 )
2023-01-17 23:12:08 +08:00
Erika
1bd42c6b2a
Fix image integration not working on Node 18+ ( #5871 )
...
* fix(image): Remove unnecessary polyfill now that we dropped Node 14
* fix(squoosh): Remove fetch of local wasm binary since undici doesn't support that
* chore: changeset
2023-01-17 15:48:06 +01:00
Bjorn Lu
998f412c57
Revert "Add missing noPropertyAccessFromIndexSignature
to strictest tsconfig profile ( #5864 )" ( #5876 )
...
This reverts commit 63d5d89038
.
2023-01-17 11:17:59 +08:00
Clément Nerma
63d5d89038
Add missing noPropertyAccessFromIndexSignature
to strictest tsconfig profile ( #5864 )
2023-01-17 10:36:15 +08:00
Bjorn Lu
b66d7195c1
Enable skipLibCheck by default ( #5872 )
2023-01-17 09:43:07 +08:00
Bjorn Lu
8c100a6fe6
Handle server restart from Vite plugins ( #5849 )
2023-01-14 16:51:01 +08:00
Bjorn Lu
e818cc0466
Fix importing client-side components with alias ( #5845 )
2023-01-14 16:50:46 +08:00
Rishi Raj Jain
3a00ecb3eb
Support envPrefix in Astro config ( #5852 )
...
* Support envPrefix in Astro config
* Update packages/astro/src/core/config/schema.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update packages/astro/src/core/build/static-build.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update packages/astro/src/core/build/static-build.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update packages/astro/src/core/config/schema.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update packages/astro/src/core/create-vite.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update .changeset/twenty-llamas-type.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-13 14:57:53 -06:00
Fred K. Bot
02b797fd3c
[ci] release (beta) ( #5792 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-12 11:40:35 -05:00
Sam Chen
cf2de5422c
fix: pass flags to dev ( #5840 )
...
* fix: pass flags to dev
* add changeset
* Update .changeset/eleven-bulldogs-provide.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-12 10:06:44 -06:00
Nate Moore
c4b0cb8bf2
chore: update changelogs, add changeset for _astro
directory ( #5842 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-12 09:59:18 -06:00
natemoo-re
ab3b43e50e
[ci] format
2023-01-12 15:46:47 +00:00
Nate Moore
63a6ceb38d
fix(core): handle encoded characters when matching routes ( #5836 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-12 09:44:18 -06:00
Bjorn Lu
ae8a012a7b
Handle compiler breaking change ( #5803 )
2023-01-12 22:46:56 +08:00
Giuseppe La Torre
12f65a4d55
fix shiki css class replace logic in md and mdx integrations ( #5837 )
2023-01-12 20:15:51 +08:00
matthewp
c53b1fca07
[ci] format
2023-01-11 18:52:51 +00:00
Bjorn Lu
ec09bb6642
Simplify HMR handling ( #5811 )
...
* Simplify HMR handling
* Try skip test to reveal other test result
* Support virtual files
* Fix head injection
* Revert CI changes
* Bring back normalizeFilename
* Refactor
* Add changeset
2023-01-11 13:51:05 -05:00
Ben Holmes
52209ca2ad
[Content collections] Remove experimental flag ( #5825 )
...
* refactor: remove experimental.cc from core
* chore: remove experimental flag from tests
* fix: mock contentDir in remark tests
* fix: check vfile.path in rel-image-error plugin
* fix: move .astro/ excludes to all test/fixtures
* fix: include test/**/fixtures in ignore
* chore: changeset
2023-01-11 12:51:31 -05:00
Ben Holmes
665a2c2225
[Content collections] Improve content config handling ( #5824 )
...
* fix: always generate types on init
* fix: skip type generation when no content dir found
* fix: avoid stripping `.ts` for existsSync check
* chore: changeset
* fix: run type gen when content/ dir added in dev
2023-01-11 12:46:53 -05:00
Chris Swithinbank
1f49cddf9e
Run sync as part of astro check
( #5823 )
...
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-01-11 17:57:41 +01:00
Nate Moore
01f3f463bf
Fix order-of-execution bug when generating pages ( #5822 )
...
* fix: bundle all pages into a single chunk
* chore: add changeset
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-11 08:51:50 -06:00
Giuseppe La Torre
23dc9ea96a
Fix Code.astro
shiki css class replace logic ( #5829 )
2023-01-11 21:54:09 +08:00
HiDeoo
2303f95142
Add support for serving well-known URIs with the @astrojs/node SSR adapter ( #5832 )
2023-01-11 17:52:51 +08:00
bholmesdev
4b16e9ec99
[ci] format
2023-01-10 23:03:59 +00:00
Ben Holmes
c2180746b4
[Content collections] Move generated types to .astro
directory ( #5786 )
...
* feat: change cacheDir to `.astro`
* feat: write reference in env.d.ts if none exists
* chore: update with-content types
* test: env.d.ts transform
* nit: setUp -> add
* refactor: content.d.ts -> types.d.ts
* chore: update confirmation log
* chore: changeset
* feat: inject env.d.ts if none exists
* feat: set up env.d.ts on `astro sync`
* chore: duplicate envTsPathRelative
* docs: update changeset
* fix: make srcDir if none exists
* fix: types.generated -> .astro in gitignore
* feat: add env.d.ts to test gitignore
* chore: remove env.d.ts from content-collections
* test: move sync tests to `astro sync`, add file write test
* refactor: simplify test gitignore to base
* fix: add / to `.astro` bc that scares me
2023-01-10 18:01:52 -05:00
Dovlat Yakshibayev
813073addd
Bumps partytown version to fix deprecation warning ( #5820 )
...
* bumps partytown version, adds changeset
* changes changeset from minor to patch
* changes changeset from minor to patch
2023-01-10 16:05:28 -06:00
Yan Thomas
d72f929cad
Remove old migration guide link from error docs ( #5808 )
2023-01-10 16:03:54 -03:00
bluwy
cebba86593
[ci] format
2023-01-10 17:01:27 +00:00
wulinsheng123
9869f2f6d8
can jump 404 when that page does not exist ( #5701 )
2023-01-11 00:59:20 +08:00
Le Minh Tri
21a55b3276
test(create-astro): correct wrong argument ( #5812 )
2023-01-11 00:57:16 +08:00
Erika
c55fbcb8ed
Remove more unnecessary polyfills from webapi for Node 16 ( #5814 )
...
* feat(webapi): Remove unnecessary polyfills now that we dropped support for Node 14
* feat(webapi): Removed more unnecessary polyfills for Node 16
* chore: changeset
2023-01-10 15:29:06 +01:00
Ben Holmes
5d960fc40e
[Content Collections] Allow Zod unions, objects, and transforms as schemas ( #5770 )
...
* feat: require `schema: z.object({...})`
* fix: update zod object type check
* fix: update types template
* chore: update with-content config
* chore: update test fixture configs
* test: zod union type
* refactor: enumerate valid schema types
2023-01-10 08:46:43 -05:00
Bjorn Lu
4a1cabfe6b
Cleanup dependencies ( #5773 )
2023-01-10 15:58:55 +08:00
matthewp
10137cd9cc
[ci] format
2023-01-09 22:01:33 +00:00
Erika
1f92d64ea3
Drop Node 14 support ( #5782 )
...
* chore: Update engines field
* fix(deps): Remove node-fetch
* feat(polyfills): Remove node-fetch for undici
* feat(webapi): Remove node-fetch from the webapis polyfills for undici
* feat(core): Remove node-fetch for undici in Astro core
* feat(telemetry): Remove node-fetch for undici
* feat(node): Remove node-fetch for undici in node integration
* feat(vercel): Remove node-fetch for undici in Vercel integration
* chore: update lockfile
* chore: update lockfile
* chore: changeset
* fix(set): Fix set directives not streaming correctly on Node 16
* Try another approach
* Debugging
* Debug fetch
* Use global fetch if there is one
* changeset for lit
* Remove web-streams-polyfill
* Remove web-streams-polyfill license note
* Update .changeset/stupid-wolves-explain.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-09 16:59:20 -05:00
matthewp
9bb08bfe8c
[ci] format
2023-01-09 17:16:20 +00:00
Bjorn Lu
302e0ef8f5
Default preview host to localhost ( #5753 )
...
* Initial refactor
* Extract as vite plugin
* Cleanup vite plugin
* Reduce option passing
* Use localhost as preview default host
* Simplify base handling
* Fix host handling
* Add changeset
* Remove unused imports
* Remove unused sirv dep
* Try pin playwright to 1.28.1
* Update playwright
* Try this
* Speed up CI
* Try fix page off
* Refactor networkidle
* Ensure open connections are destroyed when the preview server is closed
* Revert debug code
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
2023-01-09 12:14:07 -05:00
Chris Swithinbank
f35411487b
[markdown-remark] Remove unused dependencies ( #5804 )
...
* [markdown-remark] Remove unused dependency
Follow up to #5785 . Missed one dependency that is no longer used and can be removed.
* [markdown-remark] Remove unused dependency
* Lockfile fix
* Update lockfile [again]
2023-01-09 17:06:29 +01:00
natemoo-re
cb5dbcc51f
[ci] format
2023-01-09 16:03:47 +00:00
Nate Moore
f8f4d49aba
Output assets to _astro
directory ( #5772 )
...
* WIP: emit assets to _astro
* chore: better _astro handling
* refactor: emit server assets to `chunks/`
* chore: update /asset tests
* test: add explicit build output tests
* fix: update image to emit to configured asset path
* chore: update changeset
* chore: update image tests
* chore: update image tests
* test: update css test
* test: update bundling test
* test: update tests
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* chore: add clarifying comment
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-01-09 10:01:33 -06:00
Matthew Phillips
7572f74022
Add Astro as a peerDependency ( #5806 )
...
* Add Astro as a peerDependency
* Add changeset
* Update .changeset/thin-seahorses-worry.md
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-01-09 10:58:38 -05:00
delucis
62ae11408e
[ci] format
2023-01-09 09:25:26 +00:00
Chris Swithinbank
16107b6a10
Remove Astro-flavored Markdown from @astrojs/markdown-remark
( #5785 )
2023-01-09 10:23:21 +01:00
Chris Swithinbank
54076a41eb
Add @version
metadata to config reference types ( #5793 )
2023-01-09 09:40:20 +01:00
bluwy
a673239548
[ci] format
2023-01-09 07:27:31 +00:00
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
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
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
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
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
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
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
Fred K. Bot
5007bc7881
[ci] update lockfile ( #5686 )
...
* [ci] update lockfile
* Fix build errors from new TypeScript version
* Updated lockfile
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-01-03 12:18:32 -05:00
Fred K. Bot
3a0f7c4855
[ci] release ( #5718 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-03 10:44:51 -05:00
bholmesdev
a06692800e
[ci] format
2023-01-03 14:47:50 +00:00
Ben Holmes
3aa3e00a63
[Content Collections] Fix import.meta.env.DEV
always set to true
( #5700 )
...
* fix: reset NODE_ENV on content config read
* fix: move nodeEnv setter above createServer
* chore: changeset
2023-01-03 09:45:38 -05:00
Ben Holmes
bf210f7841
[content collections] Handle file name spaces and capitalization ( #5666 )
...
* feat: slugify slug to handle capitals and spaces
* docs: add not on Slugger issues
* deps: bump to github-slugger 2.0
* refactor: new Slugger() -> slug util
* fix: stop using URL.pathname
* fix: `file://` prefix on isContentFlagImport
* test: spaces in fixture file name
* chore: add `test:unit:match`
* refactor: handle collection errors from getEntryInfo
* test: unit getEntryInfo
* chore: changeset
* chore: markdown-remark out of date
* fix: correctly strip index on windows
* fix: move to utils, fix slug regex
* refactor: intermediate var
* lint: `path` variable shadowing
* chore: add not on allowFilesOutsideCollection
2023-01-03 09:45:16 -05:00
matthewp
19be918c59
[ci] format
2023-01-03 14:00:46 +00:00
Muzafar Umarov
fe316be86f
fix(astro/core): Do not add base to hoisted script body ( #5720 )
...
* fix(astro/core): Do not add base to hoisted script body
* fix(astro/core): Add base path to hoisted .js files only
* fix(astro/core): undo style changes
2023-01-03 08:59:05 -05:00
Bjorn Lu
c2844a79c8
Fix docs smoke error ( #5706 )
...
Co-authored-by: bholmesdev <hey@bholmes.dev>
2023-01-02 21:31:51 +08:00
Ben Holmes
f4441e2726
chore: remove types.gen from tests ( #5695 )
2022-12-29 15:45:32 -05:00
Sarah Rainsberger
fc28b7cdc0
[docs] reflects updates to cloudflare: streams, env variables ( #5694 )
2022-12-29 13:30:34 -04:00
Fred K. Bot
640de3c26f
[ci] release ( #5645 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-27 11:52:24 -05:00
bluwy
830680bbf8
[ci] format
2022-12-27 16:14:00 +00:00
Bjorn Lu
f8f5768294
Fix code generation quotes handling ( #5678 )
2022-12-28 00:12:03 +08:00
SegaraRai
376f67011d
fix(types): add server.headers
typing ( #5635 )
...
* fix(types): add `server.headers` typing
* fix: correct `@version` of `server.headers`
* Update changeset
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2022-12-27 11:07:49 -05:00
bholmesdev
bfdfeb9c12
[ci] format
2022-12-27 16:05:57 +00:00
Ben Holmes
d72da52907
[Content] Add astro sync
type gen command ( #5647 )
...
* feat: add `astro sync` command
* chore: move fixture types.generated to gitignore
* test: types generate with astro:content
* chore: changeset
* docs: Astro error for CLI errors
2022-12-27 11:03:58 -05:00
Leontopodium pusillum
68c20be66b
fix: filter out draft item from glob result ( #5612 )
...
* fix: filter out draft item from glob result
* test: rss should ignore draft
* build: add changeset
* build: major version
* feat: add `drafts` option
* Add README docs
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-12-27 10:50:11 -05:00
Ben Holmes
9674cf56c5
[Content Collections] Stray console.log snuck in! ( #5668 )
...
* fix: stray console.log
* chore: changeset
2022-12-22 17:17:53 -05:00
bholmesdev
d5c088911d
[ci] format
2022-12-22 21:15:41 +00:00
Ben Holmes
a5ba4af799
[MDX] Remove verbose migration logs ( #5667 )
...
* chore: remove markdown extends warnings
* chore: changeset
2022-12-22 16:13:46 -05:00
bholmesdev
813576b39a
[ci] format
2022-12-22 15:40:34 +00:00
Ben Holmes
853081d1c8
[Content] Throw on relative image usage ( #5648 )
...
* chore: add rel image error plugin
* deps: mdast, mdast types
* chore: add rel image throw to mdx
* refactor: doc rel image path plugin
* fix: respect experimental flag in md remark
* chore: changeset
* deps: remove mdast package
* fix: resolve contentDir from config
* fix: apply MDX plugin after user plugins
* fix: stub out contentDir
2022-12-22 10:38:03 -05:00
Bjorn Lu
0b50987584
Use acorn to postprocess Astro globs ( #5652 )
2022-12-21 11:05:18 +08:00
delucis
7a575d78c2
[ci] format
2022-12-20 22:10:25 +00:00
Chris Swithinbank
2c65b433bf
MD/MDX collect headings refactor ( #5654 )
2022-12-20 23:08:15 +01:00
Andrea De Masi
a467139e16
fix traced warnings from unexpected token ( #5638 )
...
* fix traced warnings from unexpected token
* Fixed styling
2022-12-19 15:07:00 -03:00
Fred K. Bot
783a2a8e1b
[ci] release ( #5642 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-19 09:26:29 -06:00
Nate Moore
d5aff85db4
fix: patch static build regression ( #5644 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-12-19 09:23:57 -06:00
Sam Chen
62580ed078
Fix "maximum call stack size exceeded" error ( #5641 )
2022-12-19 21:50:23 +08:00
Bjorn Lu
1ac1ed86e9
Fix client only import with importsNotUsedAsValues error ( #5639 )
2022-12-19 21:44:15 +08:00
Anders Kaseorg
53e0c98dae
Fix spelling mistakes found by codespell and mwic ( #5627 )
2022-12-19 12:00:00 +01:00
Anders Kaseorg
4d4883e816
webapi: Rename misspelled inheritence to inheritance ( #5634 )
2022-12-19 11:26:48 +08:00
Chris Swithinbank
7f7450e673
Add JSDoc comments for error overlay to match other experimental features ( #5633 )
2022-12-19 11:13:16 +08:00
Chris Swithinbank
8e67d75793
Fix links in content used by docs ( #5631 )
...
* Use canonical URLs with trailing slash
* Always use full URL for JSDoc links
2022-12-18 13:00:30 +01:00
Nate Moore
6fff9ee309
Docs: Fix prerender
error message ( #5626 )
...
* fix: update prerender message
* fix: update prerender description
* fix: remove escapes
* Update packages/astro/src/core/errors/errors-data.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-12-17 22:31:53 -06:00
Fred K. Bot
2552816d5f
[ci] release ( #5618 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-16 20:12:04 -05:00
Ben Holmes
33dcaa05bb
[Fix] Incorrect error message for MDX peer dependency ( #5617 )
...
* fix: out-of-date MDX error message
* chore: changeset
2022-12-16 19:14:59 -05:00
Fred K. Bot
fc46ca53d1
[ci] release ( #5607 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-16 15:54:19 -05:00
Nate Moore
61302ab7a0
fix(create-astro): skip Houston on windows until prompts are fixed ( #5616 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-12-16 15:48:03 -05:00
matthewp
04feb4b882
[ci] format
2022-12-16 19:22:01 +00:00
Ben Holmes
5ec0f6ed55
Content Collections ( #5291 )
...
* feat: port content plugin as-is
* feat: add `fetchContent` to `.astro`
* refactor: move more logic to content-internals
* refactor: move internals -> content dir
* feat: nested dir support
* feat: add with-content playground
* edit: update README
* fix: serialize route pattern for Netlify edge
Co-authored-by: Jackie Macharia <jackiewmacharia>
* wip: add ?astro-asset-ssr flag
* wip: exclude astro-ssr-asset styles from build
* revert: SSR asset flag babel changes
* feat: only load CSS when mdx is rendered!
* fix(vercel): Include all files inside `dist/` instead of only `entry.mjs` (#5175 )
* chore: only-allow pnpm (#5131 )
* [MDX] Support `recmaPlugins` config (#5146 )
* feat: support recma plugins
* chore: add `test:match` to MDX
* chore: changeset
* docs: add recmaPlugins to README
* removes default content-visibility styles from image components (#5180 )
* wip: check renderContent works
* nit: injectDelayedAssetPlugin doesn't need enforce
* feat: render content with generated entries
* feat: renderContent style injection POC
* wip: scrappy renderContent binding
* deps: parse-imports
* feat: only bind renderContent when imported
* feat: new-and-improved render-content
* fix: update example to use render-content
* refactor: extract normalizeFilename helper
* feat: move renderContent to `.astro`
* feat: add `getStaticPaths` demo 👀
* chore: remove console log
* refactor: internals -> internal
* fix: style bleed on dynamic routes
* chore: remove console log
* refactor: move rendercontentmap inside same file
* fix: style bleed in dev!
* feat: clean up example
* refactor: curry generateContent
* nit: add datetime demo
* refactor: rename and move content plugins
* feat: granular content updates in development
* chore: console.log
* refactor: move write logic, fix edge cases
* fix: use z.any() when ~schema is missing
* refactor: clean up logging
* fix: add delayed asset flag to render map
* fix: use new server loader
* chore: import type
* fix: split delayed assets to separate chunks
* chore: bad merge changesets
* feat: rework content map to Vite globs
* fix: formatted errors
* fix: get `renderContent` working with new APIs
* refactor: rename to getCollection, getEntry, renderEntry
* feat: streamline type alias!
* fix: check schema import is an import
* refactor: change ~schema -> index with defineCollection
* feat: auto apply env.d.ts reference
* feat: expose `headings` on `renderEntry`
* refactor: expose zod from astro/zod
* feat: add Collection util type
* refactor: generated types in src/content/
* edit: remove env.d.ts change from with-content
* feat: collectionToPaths utility
* refactor: migrate `examples/blog`
* refactor: simplify [...slug]
* fix: invalid date
* fix: renderEntry
* feat: migrate examples/docs to content!
* refactor: union -> enum
* fix: remove duplicate header
* chore: changeset
* Revert "fix: serialize route pattern for Netlify edge"
This reverts commit ac46a0d323
.
* fix: lint
* fix: include zod in package files
* chore: push type gen for astro check
* feat: move to single defineCollections file
* feat: move examples to new collections model
* chore: type check valid collection names
* fix: ignore collections path in err logs
* refactor: content/index -> content/config
* refactor: defineCollections -> defineCollection
* fix: update docs to defineCollection
* chore: update with-content to new `astro:content` setup
* fix: renderEntry styles
* fix: bad Collection type
* fix: blog types generated
* feat: expose injectedFrontmatter on renderEntry
* chore: `import type`
* chore: add MDX to changeset
* fix: template package file
* fix: unneeded log on content config change
* chore: add `injectedFrontmatter` to generated types
* fix: escape import.meta.env in `body`
* fix: escape import.meta.env in frontmatter
* chore: unused import
* fix: use URL for config pathname
* feat: allow zod async transforms
* deps: devalue
* feat: custom slugs + better type checking
* fix: update types on config added or removed
* chore: add error msg for MDX preview release
* refactor: restore old normalizeFilename
* fix: add loadContentConfig error classes back
* Add initial tests for renderEntry
* add fixture tests
* Use head propagation APIs in renderEntry
* chore: new type gen
* fix: sort content keys before writing
* fix: avoid writing '.' collection with warning
* chore: docs types generated
* fix: generated types only once in build
* fix: use relative path to config for git
* chore: update generated types
* fix: glob pattern on valid exts
* feat: warn on possible collection typos
* chore: better error on bad lazy import
* fix: clear gray-matter cache for rawData
* fix: wait for config file while generating
* test: get collection and get entry basic
* test: multiple collections and entries
* test: add publishedDate test on entry
* tests: getStaticPaths integration
* test: ssr endpoint integration
* chore: consistent test names
* refactor: simplify generates... test
* chore: tests lockfile
* feat: add `experimental` flag
* chore: revert blog and docs examples
* chore: add experimental flag to with-content
* refactor: reuse contentFileExts
* refactor: make contentCollectionCss required
* chore: remove parse-imports dependency
* chore: remove unresolved idea redundancy
* chore: update changeset to minor v
* chore: clean up with-content pass 1
* refactor: de-monolith vite-plugin-content
* chore: remove maximum jank warning (it's acceptable jank)
* refactor: extract types-generator to separate file
* refactor: onEvent -> handleEvent
* edit: change content log to "types generated"
* fix: more experimental checks in prod build
* refactor: 2 jsToTreeNode calls -> 1
* feat: change with-content example to blog example
* fix: Content component type
* Fix use of renderEntry within a slot
* fix: warn for non-underscore _ files, refine logs
* chore: Content type in tests
* fix: types no updating with config changes
* fix: remove `result: SSRResult` type
* chore: entry var shadowing
* fix: bad experimental flag call
* wip: skip render entry tests
* fix: path resolution for .relative on windows
* chore: remove dead code
* wip: log entryPath into
* fix: use URL for entry
* refactor: getEntryInfo normalization
* refactor: move debounce to queueEvent only
* fix: resolve loader on config error
* fix: pathToFileURL -> new URL
* fix: dangerous pathname comparison
* refactor: move rawEvent -> event mapping to queueEvent
* fix: bad type
* wip: remove mkdir call
* wip: log content paths
* fix: more bad paths
* wip: more logs
* fix: correct glob path
* fix: normalize virtual mod path
* fix: content server file paths
* chore: remove render entry test skip
* wip: skip renderEntry tests (windows issues?)
* chore: remove console log
* feat: renderEntry -> render
* chore: add `--experimental-content-collections`
* refactor: only skip renderEntry tests on windows
* refactor: index.ts barrel export
* fix: cli type error
* fix: proper test skip on windows
* refactor: remove collectionToPaths :(
* refactor: use AstroError for frontmatter error
* nit: its schema, .*
* fix: bad isWindows import
* fix: await mod -> mod = await
Co-authored-by: Juan Martín Seery <me@juanm04.com>
Co-authored-by: 花果山大圣 <316783812@qq.com>
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2022-12-16 14:19:53 -05:00
natemoo-re
6f5746746a
[ci] format
2022-12-16 19:16:43 +00:00
Nate Moore
d85ec7484c
Sanitize dynamic tags ( #5615 )
...
* fix: sanitize tags
* fix: better element sanitization
* chore: remove unused import
Co-authored-by: Nate Moore <nate@astro.build>
2022-12-16 13:14:42 -06:00
natemoo-re
d1abb63a64
[ci] format
2022-12-16 16:41:03 +00:00
Nate Moore
d2960984c5
Experimental Prerender API ( #5297 )
...
* wip: hybrid output
* wip: hybrid output mvp
* refactor: move hybrid => server
* wip: hybrid support for `output: 'server'`
* feat(hybrid): overwrite static files
* fix: update static build
* feat(hybrid): skip page generation if no static entrypoints
* feat: migrate from hybrid output => prerender flag
* fix: appease typescript
* fix: appease typescript
* fix: appease typescript
* fix: appease typescript
* fix: improve static cleanup
* attempt: avoid preprocess scanning
* hack: force generated .js files to be treated as ESM
* better handling for astro metadata
* fix: update scanner plugin
* fix: page name bug
* fix: keep ssr false when generating pages
* fix: force output to be treated as ESM
* fix: client output should respect buildConfig
* fix: ensure outDir is always created
* fix: do not replace files with noop
* fix(netlify): add support for `experimental_prerender` pages
* feat: switch to `experimental_prerender`
* chore: update es-module-lexer code in test
* feat: improved code-splitting, cleanup
* feat: move prerender behind flag
* test: prerender
* test: update prerender test
* chore: update lockfile
* fix: only match `.html` files when resolving assets
* chore: update changeset
* chore: remove ESM hack
* chore: allow `--experimental-prerender` flag, move `--experimental-error-overlay` into subobject
* chore: update changeset
* test(vite-plugin-scanner): add proper unit tests for vite-plugin-scanner
* chore: remove leftover code
* chore: add comment on cleanup task
* refactor: move manual chunks logic to vite-plugin-prerender
* fix: do not support let declarations
* test: add var test
* refactor: prefer existing util
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/core/errors/errors-data.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-12-16 10:38:37 -06:00
董雨航
2c2c65297a
upgrade giget for support proxy config ( #5579 )
2022-12-14 13:08:44 -06:00
matthewp
e9c8e6a2c0
[ci] format
2022-12-14 15:29:18 +00:00
Erika
31ec847972
Add a new error overlay ( #5495 )
...
* Add new overlay
* Fix CSS errors missing the proper stacktrace
* Fix names not working in some cases
* Add changeset
* Fix Playwright not detecting the overlay
* Update E2E test
* Fix tests
* Small refactor, fix syntax highlight on light mode, fix code element showing even with no code
* Simplier injection
* Add Markdown support to CLI reporting
* Fix not being able to navigate with the keyboard to the open in editor link
* aria-hide some svgs (#5508 )
we should also make the "open in editor" button a button, not a link, if we are using JS for interactions
* Implement close method so Vite can close the overlay when needed
* Fix filepaths not being absolute when coming from node_modules for errors
* Fix multi line errors with indentation not showing correctly
* Fix entire page being scrolled to the error line in certain cases
* Update docs links
* Put the new error overlay behind a flag
* add flag for e2e tests
Co-authored-by: Caleb Jasik <calebjasik@jasik.xyz>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-12-14 10:27:15 -05:00
Alex Draper
6b156dd3b4
Allow setting domain when deleting cookies ( #5341 )
...
* Allow setting domain when deleting cookies
* Add delete cookie with domain tests
* Fix syntax for AstroCookieDeleteOptions type
* Add changeset
* Update to a minor change rather than a patch
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-12-14 10:27:04 -05:00
Ryosuke Iwanaga
dced4a8a26
Add server.headers
option ( #5564 )
...
With this new `server.headers` option, the users can specify
custom headers for `astro dev` and `astro preview` servers.
This is useful when they want to build a website requiring
specific response headers such as `Cross-Origin-Opener-Policy`.
2022-12-14 10:26:42 -05:00
Fred K. Bot
8913c51e1a
[ci] release ( #5605 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-14 10:23:50 -05:00
matthewp
fa96a01fc6
[ci] format
2022-12-14 13:42:13 +00:00
Frode Flaten
c4155daeab
fix missing type-attribute for xsl stylesheets ( #5600 )
2022-12-14 08:39:48 -05:00
Fred K. Bot
d7da0996b6
[ci] release ( #5597 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-13 10:29:40 -05:00
matthewp
7de9259d81
[ci] format
2022-12-13 13:47:16 +00:00
Matt Stein
c76e1c8102
Fix missing RSS item customData
( #5591 )
...
* Add failing test.
* Fix it.
* Add changeset.
2022-12-13 08:45:35 -05:00
Tom Everson
9f0fea0ad7
Add Vercel middleware docs to Vercel integration README ( #5576 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-12-13 11:35:21 +01:00
molychn
dae6866ddc
fix link 404 in Vue integration README ( #5585 )
2022-12-12 22:55:09 +01:00
Fred K. Bot
1e6badbfea
[ci] release ( #5589 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-12 15:07:51 -05:00
Juan Martín Seery
4d9ef23b67
fix(vercel): support node-fetch and Node 18 fetch ( #5587 )
2022-12-12 16:45:57 -03:00
Fred K. Bot
a219c41319
[ci] release ( #5561 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-12 10:22:39 -05:00
Chris Swithinbank
f4ff69a3cd
Fix link in MDX integration README ( #5586 )
2022-12-12 14:14:24 +01:00
Martin J
2bd23e454f
Updated magic-string to 0.27.0 ( #5577 )
2022-12-10 23:10:52 +08:00
Lino Le Van
5b323b9aaf
Update deno integration dependencies ( #5573 )
...
* Update deno integration dependencies
* Update dependency in docs
2022-12-10 09:26:51 -05:00
matthewp
64b24f0663
[ci] format
2022-12-10 11:47:45 +00:00
Matthew Phillips
b2f0210c40
Include base in 'page' stage injected scripts ( #5572 )
...
* Include base in 'page' stage injected scripts
* Add changeset
2022-12-10 06:45:59 -05:00
Matthew Phillips
50ecb3005d
Add primevue as an external Vue package ( #5571 )
2022-12-09 11:46:21 -05:00
Sarah Rainsberger
3f811eb682
[docs] MDX README update ( #5570 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-12-09 12:45:47 -04:00
natemoo-re
5877dcb7e9
[ci] format
2022-12-08 20:56:38 +00:00
Nate Moore
281ea9fc34
Node: better serverEntrypoint error ( #5560 )
...
* fix(node): better entrypoint error
* fix(node): surface start errors during preview
Co-authored-by: Nate Moore <nate@astro.build>
2022-12-08 14:54:19 -06:00
Nate Moore
02bb0a1ccd
Update compiler ( #5554 )
...
* chore: update compiler
* chore: add changeset
Co-authored-by: Nate Moore <nate@astro.build>
2022-12-08 14:08:13 -06:00
Alvin Bryan
0fd4aaa906
docs: How to access base config in the app ( #5482 )
2022-12-08 12:20:00 -05:00
Fred K. Bot
50cb99003a
[ci] release ( #5544 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-08 09:12:10 -05:00
matthewp
be26e36e11
[ci] format
2022-12-08 13:14:30 +00:00
wulinsheng123
2c836b9d12
fix: Error reporting fails on undefined error index ( #5539 )
...
* fix: Error reporting fails on undefined error index
* fix: add changeset
* Update .changeset/slow-cherries-bake.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-12-08 08:12:22 -05:00
Anders Kaseorg
fe0da0185a
astro-rss: Generate feed with proper XML escaping ( #5550 )
...
* test(astro-rss): Compare XML using chai-xml
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
* fix(astro-rss): Generate feed with proper XML escaping
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-12-08 08:10:36 -05:00
Matthew Phillips
1aeabe4170
Fix Astro.params not having values when using base in SSR ( #5553 )
...
* Fix Astro.params not having values when using base in SSR
* Adding a changeseet
2022-12-08 08:08:27 -05:00
Jeffrey Yasskin
4f7f20616e
Allow all redirection status codes in redirect() ( #5446 )
...
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages for the list.
2022-12-07 23:52:12 +08:00
Ben Smith
081e0a9d20
feat(astro-rss): generate post content in feed ( #5366 )
2022-12-06 18:19:55 -05:00
matthewp
a72a131e22
[ci] format
2022-12-06 22:14:29 +00:00
Matthew Phillips
795f00f73c
Use accumulated sort order when order production CSS ( #5549 )
...
* Use accumulated sort order when order production CSS
* Adding a changeset
* Fix lockfile issue
2022-12-06 17:12:25 -05:00
matthewp
1cfbd5923f
[ci] format
2022-12-06 21:28:24 +00:00
Matthew Phillips
05915fec01
Head propagation ( #5511 )
...
* Head propagation
* Adding a changeset
* Fix broken build
* Self review stuff
* Use compiler prerelease exact version
* new compiler version
* Update packages/astro/src/vite-plugin-head-propagation/index.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Use getAstroMetadata
* add .js
* make relative lookup work on win
* Use compiler@0.30.0
* PR review comments
* Make renderHead an alias for a better named function
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2022-12-06 16:26:15 -05:00
matthewp
b137657699
[ci] format
2022-12-06 20:42:02 +00:00
Ido S
8f3f67c96a
Removed premature optimization ( #5548 )
2022-12-06 15:39:23 -05:00
Bjorn Lu
9082a850ee
Exclude astro from Vite optimization ( #5545 )
2022-12-06 11:53:15 -05:00
Bjorn Lu
fabd9124bd
Update esbuild dependency ( #5534 )
2022-12-06 22:11:59 +08:00
Bjorn Lu
e97fa9c01e
Fix tests with node 18 ( #5528 )
2022-12-06 22:11:43 +08:00
Bjorn Lu
0a62ecd894
Add Astro full compile unit test ( #5531 )
2022-12-06 22:11:23 +08:00
Fred K. Bot
d8e00a4871
[ci] release ( #5507 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-06 11:20:35 +01:00
truesri
65d27666e1
Fix bug: pass alt from getPicture to getImage ( #5521 )
2022-12-06 17:17:08 +08:00
Bjorn Lu
58188e0536
Refactor and remove esbuild dependency ( #5533 )
2022-12-06 17:00:36 +08:00
Chris Swithinbank
efc4363e0b
Support rendering <Fragment>
in MDX <Content />
component ( #5522 )
2022-12-05 21:56:43 +01:00
bluwy
c1a944d55a
[ci] format
2022-12-05 13:36:39 +00:00
Bjorn Lu
f536a34e53
Refactor Astro plugin and compile flow ( #5506 )
2022-12-05 21:34:49 +08:00
Juan Martín Seery
a1885ea2f5
fix(vercel): Update request-transforms.ts ( #5514 )
...
* fix(vercel): Update set-cookie header hanlder
* Update from SvelteKit adapter
* Updated changeset
2022-12-02 20:38:40 -03:00
Erika
3c44033e4e
Show warning about hydrating Astro components in build ( #5501 )
...
* Also show the warning in build when trying to hydrate an Astro component
* Add changeset
2022-12-01 12:41:37 -04:00
Fred K. Bot
8450a09f14
[ci] release ( #5485 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-30 11:10:06 -05:00
matthewp
25a76eac9c
[ci] format
2022-11-30 16:03:47 +00:00
Bjorn Lu
1a3923da78
Optimize JSX import source detection ( #5498 )
...
* Optimize JSX import source detection
* Skip type import check
2022-11-30 11:01:37 -05:00
Bjorn Lu
ca01a71eb0
Refactor internal plugins code ( #5497 )
...
* Share normalizeFilename
* Simplify types
* Remove unused imports variable
* Update README
* Add changeset
2022-11-30 11:00:13 -05:00
Bjorn Lu
57888e0690
Fix linked Astro library style HMR ( #5460 )
...
* Fix linked Astro library style HMR
* Update comment
* Try fix windows
2022-11-30 10:58:09 -05:00
wulinsheng123
299ae9bb6a
fix bug: added a warning if the image was GIF ( #5474 )
...
Co-authored-by: wuls <linsheng.wu@beantechs.com>
2022-11-28 14:27:39 -05:00
matthewp
f90a36873c
[ci] format
2022-11-28 16:08:25 +00:00
Pimm "de Chinchilla" Hogeling
731e99df87
Narrow the type of Params ( #5442 ) ( #5484 )
...
A PR merged back in April changed the type of Params, allowing numbers to be provided in addition to strings. See https://github.com/withastro/astro/pull/3087 . However, as said PR changed the type of Params instead of GetStaticPathsItem, it also affects Astro.params. This commit moves the change to GetStaticPathsItem, reverting the type of Astro.params.
2022-11-28 11:06:37 -05:00
Bjorn Lu
5e693c2143
Prevent inlining SCSS partials in dev ( #5477 )
2022-11-28 22:29:05 +08:00
翠 / green
c137752797
Fix astro preview not working on Windows ( #5480 )
2022-11-28 15:45:28 +08:00
Fred K. Bot
5fa1285239
[ci] release ( #5432 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-24 22:54:52 +08:00
李瑞丰
d79e9d73a3
doc: fix deno preview command ( #5464 )
2022-11-24 09:52:22 +01:00
matthewp
6a1e4ca02c
[ci] format
2022-11-22 15:15:03 +00:00
Thomas Jaggi
2a1c085b19
[MDX] Support remark-rehype options from Astro Markdown config ( #5427 )
...
* [MDX] Support remark-rehype options from Astro Markdown config
* [MDX] Add remarkRehype to MdxOptions, extend with default markdown config
* [MDX] Add remarkRehype to README
* [MDX] Fix remarkRehype inheritance, add tests
* [MDX] Update remarkRehype docs in README
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* [MDX] Fix remarkRehype docs
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-11-22 10:12:25 -05:00
Chris Swithinbank
fcada72bd5
Integration READMEs code block sweep 🧹 ( #5455 )
2022-11-22 15:56:55 +01:00
Bjorn Lu
8f203bfda3
Update tailwindcss @apply
suggestion ( #5406 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-11-22 01:42:45 +08:00
Erika
6c68f1ab2f
Add JSDoc comments to errors for doc generation ( #5355 )
...
* Start adding JSDocs to errors for doc generation
* Progress
* Add titles
* Update with feedback
* Update tests
* Update packages/astro/src/core/errors/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/src/core/errors/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Misc tweaks
* Remove unnecessary character
* Fix errors in build not having proper information
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-11-21 13:34:22 -04:00
matthewp
7a405c5d47
[ci] format
2022-11-21 17:33:04 +00:00
Sam Chen
cef33dd841
Remove temp tailwind config file in finally ( #5450 )
2022-11-21 12:30:59 -05:00
bluwy
d6ece859ed
[ci] format
2022-11-21 13:33:45 +00:00
Daniel
743000cc70
Use Cloudflare Pages to serve static assets and support _headers
, _redirects
and _routes.json
( #5347 )
...
Co-authored-by: AirBorne04 <unknown>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-11-21 21:31:21 +08:00
Chris Swithinbank
ef2ffc7ae9
Fix docs link in MDX integration README ( #5448 )
2022-11-21 12:15:05 +01:00
Bjorn Lu
4b188132ef
Correctly transform third-party JSX files ( #5437 )
2022-11-18 11:36:09 -05:00
matthewp
a334f1212e
[ci] format
2022-11-18 15:47:04 +00:00
Matthew Phillips
f5ed630bca
Use Vite's resolve to resolve paths for client:only ( #5434 )
...
* Use Vite's resolve to resolve paths for client:only
* Adding a changeset
* Add it to the markdown legacy plugin too
* Remove fully resolving
* Fully resolve in the analyzer
* don't do this twice
* remove dead code
2022-11-18 10:44:55 -05:00
Brenley Dueck
4266869f4f
fix: partytown base path ( #5425 )
...
* fix: partytown base path
* add changeset
2022-11-17 14:46:20 -05:00
Gabriel Pereira Woitechen
936c1e411d
Add missing fetchpriority
attribute to ImgHTMLAttributes
( #5433 )
2022-11-17 14:20:09 -04:00
Fred K. Bot
bbb329e65e
[ci] release ( #5419 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-17 10:52:42 -05:00
matthewp
eea824bee9
[ci] format
2022-11-17 15:51:50 +00:00
Scttpr
12236dbc06
feat: provide HOST env variable at runtime ( #5421 )
...
* feat: provide HOST env variable at runtime
* doc: add change to documentation
* Update documentation according to suggestions
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* fix: empty string is considered as undefined
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-11-17 10:48:20 -05:00
Bjorn Lu
ff35b4759b
Fix JSX tagging for anonymous higher-order components default export ( #5426 )
...
* Tag JSX for call expression default export
* Refactor type checks
* Add changeset
2022-11-17 10:46:24 -05:00
matthewp
539ee179f7
[ci] format
2022-11-17 15:35:15 +00:00
Matthew Phillips
1ab505855f
Fix regression with loading .ts in .mjs config ( #5431 )
...
* Fix regression with loading .ts in .mjs config
* Account for directories
2022-11-17 10:32:59 -05:00
Bjorn Lu
b22ba1c03a
Fix preview --host in Node.js 18 ( #5430 )
2022-11-17 22:53:51 +08:00
matthewp
c18c618a09
[ci] format
2022-11-16 21:58:37 +00:00
wulinsheng123
e2fb0c4ff2
Log error if failed to fetch remote image ( #5393 )
...
* I cant catch an error in the loadRemoteImage function when the fetch function occurs error
* I cant catch an error in the loadRemoteImage function when the fetch function occurs error
* fix ssg file
Co-authored-by: wuls <linsheng.wu@beantechs.com>
Co-authored-by: Okiki Ojo <okikio.dev@gmail.com>
2022-11-16 16:55:48 -05:00
Jean-Baptiste Alleaume
aa16b6cebc
Add response iterator to node adapter ( #5418 )
...
* add response iterator to node adapter
* changeset
* add node-fetch types
* fix @types/node-fetch as a dev dep
2022-11-16 16:55:15 -05:00
matthewp
d017701ae6
[ci] format
2022-11-16 17:24:18 +00:00
Matthew Phillips
a9f7ff9667
Prevent dev from crashing when there are errors in template ( #5417 )
...
* Prevent dev from crashing when there are errors in template
* Adding a changeset
2022-11-16 12:22:35 -05:00
Ted Diño
afb751dbd1
[docs] fix typo in image integration README ( #5416 )
2022-11-16 12:07:11 -04:00
Fred K. Bot
49c1a5d439
[ci] release ( #5399 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-16 10:07:56 -05:00
matthewp
991d629832
[ci] format
2022-11-16 13:59:51 +00:00
Matthew Phillips
9f80a4046f
Allow Code component to run in Vercel ( #5409 )
...
* Allow Code component to run in Vercel
* Adding a changeset
* Pass theme through to `codeToHtml`
* Use script to generate languages
* another bundling approach
* fix lint warnings
2022-11-16 08:57:53 -05:00
matthewp
6c0f966ef8
[ci] format
2022-11-16 13:36:29 +00:00
Matthew Phillips
a278c7ae6f
Restart dev server on package.json changes ( #5412 )
...
* Restart dev server on package.json changes
* Adding a changeset
* update vitefu
* lockfile updated
2022-11-16 08:34:19 -05:00
matthewp
81c375d24b
[ci] format
2022-11-15 20:28:35 +00:00
impcyber
3c5cb69488
Fix: https://github.com/withastro/astro/issues/5400 ( #5410 )
...
* Fix: Astro generates empty .-index.bundle.js
https://github.com/withastro/astro/issues/5400
* Create loud-penguins-tickle.md
2022-11-15 15:26:37 -05:00
matthewp
a93aa4ef3f
[ci] format
2022-11-15 15:04:33 +00:00
Matthew Phillips
40226dd14d
Use Vite to load non JS astro configs ( #5377 )
...
* Use Vite to load non JS astro configs
* Adding a changeset
* Allow config to not exist
* Use a file url
* Use proload as a fallback
* add missing peerdep
* fix lint mistakes
* Refactor the vite-load
* First check if the file exists
* Pass through fs
* Update packages/astro/src/core/config/vite-load.ts
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Also load astro.config.cjs
* Do search before trying to load
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-11-15 10:02:23 -05:00
bluwy
095de72a17
[ci] format
2022-11-15 07:29:00 +00:00
李瑞丰
505abfd643
fix(create-astro): fix error when don't have template input ( #5404 )
2022-11-15 15:27:16 +08:00
迷渡
247c4077eb
[deno] fix package name ( #5402 )
2022-11-15 14:05:50 +08:00
matthewp
6ff1399e98
[ci] format
2022-11-14 18:44:37 +00:00
Matthew Phillips
ee750087ce
Fix usage of the Image component with the Vercel adapter ( #5361 )
...
* Revert "Revert "Allow image-pool to be used as its own Worker (#5317 )" (#5360 )"
This reverts commit 20e60c6e08
.
* Remove special image-pool.js moving around
* Merge in assetIncludes
* changeset
* Copy to chunk folder in SSR too
* Update tidy-shoes-yawn.md
2022-11-14 13:42:35 -05:00
Fred K. Bot
993b58d567
[ci] release ( #5365 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-14 13:31:31 -05:00
Nate Moore
e385076efe
Upgrade compiler ( #5369 )
...
* chore: upgrade compiler
* chore: upgrade compiler
* chore: add changeset
* chore: upgrade compiler
* chore: generate lockfile
* Update tricky-dodos-cheer.md
* chore: upgrade compiler
Co-authored-by: Nate Moore <nate@astro.build>
2022-11-14 11:01:03 -06:00
Donald
df8092b007
Fix typo in image integration documentatation ( #5388 )
2022-11-13 23:00:14 -04:00
Fred K. Bot
07827083ae
[ci] update lockfile ( #5382 )
...
* [ci] update lockfile
* fix lint
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-11-12 07:34:33 -08:00
Erika
f9104354b8
Fix getStaticPaths
regressions with nested arrays ( #5375 )
...
* Fix getStaticPaths regression
* Add changeset
* Add test
2022-11-11 17:50:40 -04:00
matthewp
591153f457
[ci] format
2022-11-11 19:36:40 +00:00
Matthew Phillips
bee8c14afd
Use base rather than site to create subpath for links/scripts ( #5371 )
...
* Use base rather than site to create subpath for links/scripts
* Adding a changeset
* Warn when the site has a pathname but not using base
* fix asset test
* fix asset inlining behavior
2022-11-11 11:34:34 -08:00
matthewp
8aea2dea61
[ci] format
2022-11-11 16:30:25 +00:00
Matthew Phillips
9eee0f0166
Properly support trailingSlash: never with a base ( #5358 )
...
* Properly support trailingSlash: never with a base
* adding a changeset
* Pass through the base
* only mess with pathname when trailingSlash === 'never'
* maybe fixes stuff
* Update based on review notes
2022-11-11 08:28:29 -08:00
matthewp
4d425b46fc
[ci] format
2022-11-11 16:04:21 +00:00
Bjorn Lu
f3181b5adf
Fix .html.astro file routing in dev ( #5346 )
...
* Fix .html.astro file routing in dev
* Fix error
* Add comment
2022-11-11 08:01:53 -08:00
Danny Guo
06432c71d8
Fix a typo in the @astrojs/node documentation ( #5364 )
2022-11-11 14:23:44 +08:00
Bjorn Lu
3ae2a961b7
Respect Vite user config for third-party packages ( #5345 )
2022-11-11 14:22:43 +08:00
Fred K. Bot
7ec016fec3
[ci] release ( #5359 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-10 16:09:24 -08:00
Matthew Phillips
20e60c6e08
Revert "Allow image-pool to be used as its own Worker ( #5317 )" ( #5360 )
...
* Revert "Allow image-pool to be used as its own Worker (#5317 )"
This reverts commit d701ae074a
.
* Adding a changeset
* Remove diff
* Remove unused code
2022-11-10 16:07:22 -08:00
Michael Rienstra
ae41f25e10
Consistent MD frontmatter typing ( #5294 )
...
* consistent MD frontmatter typing
* changeset
2022-11-10 14:54:34 -08:00
matthewp
edfbb0c9dd
[ci] format
2022-11-10 22:14:23 +00:00
Matthew Phillips
b3d936ac24
Updated CSS naming algorithm ( #5353 )
...
* Updated CSS naming algorithm
* Adding a changeset
* Fix windows
2022-11-10 14:12:42 -08:00
Fred K. Bot
f8115180f3
[ci] release ( #5329 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-10 13:01:45 -08:00
matthewp
c0cb65b18d
[ci] format
2022-11-10 05:36:02 +00:00
Matthew Phillips
2d3c035bf9
Fixes failing mdx test ( #5344 )
2022-11-09 21:34:23 -08:00
matthewp
d82b392030
[ci] format
2022-11-10 04:18:49 +00:00
Matthew Phillips
1e6bbb2924
Change 404 to 301 for omitting base for items in public ( #5342 )
2022-11-09 20:16:44 -08:00
matthewp
b5269bee4d
[ci] format
2022-11-09 19:28:54 +00:00
Matthew Phillips
7e19e8b30d
Prevent mdx server hangs on JSX checking ( #5330 )
...
* Prevent mdx server hangs on JSX checking
* Adding a changeset
* Try a different approach to skips
2022-11-09 13:26:54 -06:00
Nate Moore
03a8f89d5f
Upgrade compiler ( #5339 )
...
* chore: upgrade @astrojs/compiler
* fix: update test to match new compiler behavior
* test: verify that all styles are bundled
Co-authored-by: Nate Moore <nate@astro.build>
2022-11-09 12:55:52 -06:00
Princesseuh
bab0e8bf53
[ci] format
2022-11-09 15:56:16 +00:00
Erika
a780f2595d
Migrate error messages to new format (and misc error improvements) ( #5316 )
...
* Migrate messages to errors data file
* Move errors to new 'error database' for easier improvements
* Fix tests
* Add changeset
* Remove unnecessary console.log
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/src/core/errors/errors-data.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Misc punctuations fixes and additions to README
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-11-09 11:53:42 -04:00
Matthew Phillips
faa01cec73
Fix the image tests ( #5338 )
...
* Fix the image tests
* fix more base tests
2022-11-09 11:22:53 -04:00
Bjorn Lu
230d71f4b7
Move rehype-pretty-code as devDep ( #5337 )
2022-11-09 22:23:05 +08:00
matthewp
92374c0f75
[ci] format
2022-11-09 13:35:06 +00:00
Bjorn Lu
dca762cf73
Preserve code element node meta for rehype syntax highlighters ( #5335 )
2022-11-09 08:32:13 -05:00
Bjorn Lu
dc00ca4648
Share picture fallback image with source ( #5324 )
2022-11-09 08:31:09 -05:00
Matthew Phillips
bcd0f8f8c4
404 when not using subpath for items in public in dev ( #5328 )
...
* 404 when not using subpath for items in public
* Adding a changeset
2022-11-09 08:30:02 -05:00
matthewp
48bde7018e
[ci] format
2022-11-08 22:31:47 +00:00
Matthew Phillips
688f8e4bc1
Allow dynamic segments in injected routes ( #5331 )
...
* Allow dynamic segments in injected routes
* Little better
* Fallback for resolveId too
2022-11-08 17:30:09 -05:00
Princesseuh
dcdeca56ac
[ci] format
2022-11-08 18:39:22 +00:00
Erika
0dcdc6fb1e
Update language-server and prettier plugin to latest versions ( #5327 )
...
* Update language-server and prettier plugin to latest versions
* Update lockfile
2022-11-08 14:37:19 -04:00
Fred K. Bot
e8ff4571f2
[ci] release ( #5325 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-08 13:00:53 -05:00
matthewp
eed81fa213
[ci] format
2022-11-08 17:17:13 +00:00
Matthew Phillips
88c1bbe3a7
Ensure astro-island scripts render when using Astro.slots.render ( #5326 )
...
* Ensure astro-island scripts render when using Astro.slots.render
* Adding a changeset
2022-11-08 12:15:32 -05:00
Nate Moore
b211eadeff
create-astro
bug fixes (#5319 )
...
* fix(create-astro): upgrade cli-kit
* fix(create-astro): avoid setRawMode error
* chore(lint): disable create-astro linting
Co-authored-by: Nate Moore <nate@astro.build>
2022-11-08 10:33:36 -06:00
matthewp
982e446e8d
[ci] format
2022-11-08 16:16:50 +00:00
Matthew Phillips
d701ae074a
Allow image-pool to be used as its own Worker ( #5317 )
...
* Allow image-pool to be used as its own Worker
* Adding a changeset
* fix image tests
* update picture tests
* Pass the current URL
2022-11-08 11:14:51 -05:00
Bjorn Lu
a79a37cad5
Support environment variables in Cloudflare and Netlify Edge functions ( #5301 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-11-08 21:54:49 +08:00
Bjorn Lu
7f3b0398e0
Fix image test fail ( #5321 )
2022-11-08 08:31:05 -05:00
Fred K. Bot
56c37a6287
[ci] release ( #5296 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-07 15:25:20 -05:00
matthewp
4280bb8cf8
[ci] format
2022-11-07 20:16:23 +00:00
Matthew Phillips
f6add3924d
When creating a new dev container, restart it if previously started ( #5314 )
...
* When creating a new dev container, restart it if previously started
* Adding a changeset
2022-11-07 15:14:34 -05:00
Andy
77e20d54c7
Fix typo in create-astro messages ( #5312 )
2022-11-07 10:07:21 -05:00
matthewp
a10cbec67e
[ci] format
2022-11-07 15:06:51 +00:00
Matthew Phillips
b2b291d291
Handle base
in adapters ( #5290 )
...
* Handle `base` in adapters
* Use removeBase in the test adapter
* Update packages/integrations/node/src/preview.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Update packages/integrations/cloudflare/src/server.advanced.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Include the subpath for links
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2022-11-07 10:05:12 -05:00
Montel
97e2b6ad7a
Adds astro cli dynamic imports ( #5292 )
...
* change add, build, preview, devServer and telemtryHandler imports to dynamic
* update changelog for astro cli imports change
2022-11-04 09:37:37 -04:00
matthewp
4cf87eb29f
[ci] format
2022-11-04 13:11:59 +00:00
wulinsheng123
247eb7411f
fix: fix bug #5267 ( #5298 )
...
* fix: fix bug #5267
* fix: add changeset
* fix: on frozen lockfile
Co-authored-by: wuls <linsheng.wu@beantechs.com>
2022-11-04 09:09:55 -04:00
matthewp
f20ff17aa3
[ci] format
2022-11-03 20:40:52 +00:00
Matthew Phillips
4af4d8fa00
Prevent overcaching of astro components for HMR ( #5293 )
...
* Prevent overcaching of astro components for HMR
* Get tests working in windows
* Use the right drive
* Adding a changeset
2022-11-03 16:38:22 -04:00
bluwy
e7dc8b956d
[ci] format
2022-11-03 15:33:10 +00:00
wulinsheng123
e3cddb433d
chore: fix tests in node 18 ( #5266 )
2022-11-03 23:31:26 +08:00
Fred K. Bot
89f335b539
[ci] release ( #5262 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-03 09:38:29 -04:00
matthewp
50e5e576bc
[ci] format
2022-11-03 12:07:39 +00:00
Leonard Hertel
126cd8e83f
fix(astro): add class:list
to HTMLAttributes
( #5284 )
2022-11-03 08:05:22 -04:00
Matthew Phillips
c7b9b14a1e
Surface configuration errors to the client ( #5273 )
...
* Surface configuration errors to the client
* Actually start the container on restart
* Add beforeRestart to clear the console
* Some minor changes, restarted() returns an Error maybe
* Refactor testing code
* Adding a changeset
2022-11-03 08:04:33 -04:00
Aleksa
a558cf317a
fix homepage url for integrations ( #5281 )
...
* fix homepage url for integrations
* Create curvy-countries-kiss.md
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-11-02 15:04:11 -05:00
bluwy
29ac34aea2
[ci] format
2022-11-02 12:45:32 +00:00
Vlad Cuciureanu
0d27c4a2b6
Fix memleak when project path contains '.md' ( #5264 )
2022-11-02 20:43:36 +08:00
Johan Bergström
78145c7de5
[docs] cloudflare directory
nits ( #5278 )
2022-11-02 09:40:54 -03:00
bluwy
a685acf6de
[ci] format
2022-11-02 06:58:46 +00:00
Bjorn Lu
1cc0670524
Refactor CSS preprocessing handling ( #5236 )
2022-11-02 14:57:03 +08:00
Tony Sullivan
b6afe2c1db
updates @astrojs/prefetch package keywords ( #5271 )
2022-11-01 19:55:20 +00:00
Matthew Phillips
bb6e880009
Prevent tailwind config errors from crashing dev server ( #5270 )
...
* Prevent tailwind config errors from crashing dev server
* Adding a changeset
* Fix wrong type
2022-11-01 10:50:53 -04:00
matthewp
63a3282f81
[ci] format
2022-11-01 12:59:39 +00:00
Matthew Phillips
c77a6cbe34
Graceful error recovery in the dev server ( #5198 )
...
* Graceful error recovery in the dev server
Move dev-container to dev
Update for the lockfile
Invalidate modules in an error state
Test invalidation of broken modules
Remove unused error state
Normalize for windows
try a larger timeout
Fixes build
just for testing
more testing
Keep it posix
fully posix
* Fix up Windows path for testing
* some debugging
* use posix join
* finally fixed
* Remove leftover debugging
* Reset the timeout
* Adding a changeset
2022-11-01 08:57:23 -04:00
matthewp
06c5d51b37
[ci] format
2022-11-01 12:44:07 +00:00
Robin Lindner
6ad91bd80d
Improve prefetch conditions ( #5244 )
...
* Improve prefetch
* Add changeset
2022-11-01 08:42:30 -04:00
Tony Sullivan
37d664e262
[@astrojs/image] web-streams-polyfill should be included as a prod dependency ( #5260 )
...
* fix: web-streams-polyfill should be included as a prod dependency
* chore: missed a lockfile change in the merge
2022-10-31 19:43:38 +00:00
Fred K. Schott
1b79ac7018
Add a thank you to the original author of the original webapi package ( #5246 )
2022-10-31 13:24:12 -04:00
bluwy
e25fed2f49
[ci] format
2022-10-31 17:00:36 +00:00
Bjorn Lu
74759cf787
Allow 200 response for endpoints in build ( #5258 )
2022-11-01 00:58:54 +08:00
Fred K. Bot
5016166acf
[ci] release ( #5239 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-31 10:21:09 -04:00
Matthew Phillips
7d678c9ed0
Upgrade compiler to latest ( #5243 )
...
* Upgrade compiler to latest
* Adding a changeset
* Update tests for IIFE wrapping
* Update .changeset/chilly-zoos-exist.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-10-28 16:13:31 -04:00
Sarah Rainsberger
06d016a741
[docs] update image integration README ( #5231 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-10-28 16:17:56 -03:00
natemoo-re
daa062cc3d
[ci] format
2022-10-28 19:07:40 +00:00
Nate Moore
d9be7e36b8
fix(create-astro): improve error messages when create-astro fails ( #5240 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-10-28 14:05:46 -05:00
matthewp
ff4f45b8eb
[ci] format
2022-10-28 18:50:00 +00:00
Matthew Phillips
070da6a792
Throw error when trying to use the vercel static adapter in server mode ( #5241 )
2022-10-28 14:48:20 -04:00
natemoo-re
e35bc26186
[ci] format
2022-10-28 17:26:22 +00:00
Nate Moore
641b6d7d58
feat(create-astro): add --fancy flag ( #5226 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-10-28 12:24:14 -05:00
Sebastiaan
b6a478f376
Fix/node custom elements ( #5235 )
...
* adapter-node fix CustomElementRegistry
* Add changeset
* Add fallback CustomElementRegistry
2022-10-28 12:34:30 -04:00
Fred K. Bot
5be3fdec27
[ci] release ( #5215 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-28 12:14:55 -04:00
Happydev
26ff429058
fix not omitted extension in url
metadata for newly added markdown files in development ( #5238 )
...
* test: add tests
* test: add test case
* test: update test
* fix: add new extensions to regex used to removed
* chore: add changeset
* test: update test
2022-10-28 11:58:34 -04:00
Bjorn Lu
c98c5aa0ae
Improve Solid libraries config handling ( #5208 )
2022-10-28 23:30:54 +08:00
Bjorn Lu
7f8987085c
Support rendering @motionone/solid
components ( #5233 )
2022-10-28 10:42:37 -04:00
matthewp
c6b149bc0a
[ci] format
2022-10-28 14:21:57 +00:00
Matthew Phillips
69a532ab60
Export Cloudflare runtime types ( #5230 )
...
* Export Cloudflare runtime types
* Adding a changeset
2022-10-28 10:20:20 -04:00
Bjorn Lu
a609a8937f
Upgrade Vite to 3.2 ( #5212 )
2022-10-28 22:03:07 +08:00
Happydev
0b12414315
remove unnecessary ReactDOM.renderToString
operation ( #5218 )
...
* remove useless `ReactDOM.renderToString` operation
* chore: add changeset
2022-10-27 21:05:18 -05:00
Princesseuh
25a6360a60
[ci] format
2022-10-27 18:47:50 +00:00
Erika
7fc5d55952
Fix errors that are not instanceof Error crashing the dev server ( #5216 )
...
* Fix errors that are not instanceof Error crashing the dev server
* Update lockfile
* Fix import paths
2022-10-27 15:44:48 -03:00
Erika
8c83359e38
Fix types.d.ts not being included in the npm package ( #5217 )
2022-10-27 15:43:20 -03:00
Princesseuh
018cc7d51f
[ci] format
2022-10-27 17:40:25 +00:00
Erika
d64d5b9b52
Refactor error handling ( #5206 )
...
* Refactor error handling
* Fix import path in test
* Revert "Fix import path in test"
This reverts commit 5ca34f3c09
.
* Fix import path in test
* Fix AggregateErrors actually not being.. an aggregration of errors
* Fix missing info in Vite enhanced error
* Conserve original error name if we have one
* Workaround compiler issue
* GitHub action please
* Update E2E test
* Wrap ssrFixStacktrace in try/catch
* Refactor Vite/Node methods out of the general index.ts
* Fix missing import
* Add changeset
2022-10-27 14:37:53 -03:00
Dan Jutan
3c1af36f5e
reupload video with fixed audio ( #5174 )
2022-10-27 11:36:44 -04:00
Chris Swithinbank
10cb1405c5
Add missing language to code block ( #5210 )
2022-10-27 16:51:51 +02:00
Fred K. Bot
50841bb7fd
[ci] release ( #5199 )
...
* [ci] release
* Update packages/integrations/cloudflare/CHANGELOG.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-10-27 09:41:03 -04:00
bluwy
b48320d722
[ci] format
2022-10-27 09:19:16 +00:00
BeanWei
c203a5cc2f
Fix node standalone for windows system ( #5207 )
2022-10-27 17:17:38 +08:00
Dan Jutan
6e417a9636
Fix broken fragment link ( #5200 )
2022-10-27 15:58:54 +08:00
Bjorn Lu
3d99fdd1e7
Improve Astro libraries config handling ( #5203 )
2022-10-27 14:54:41 +08:00
Michael Rienstra
22ca6a6056
docs: extendDefaultPlugins
cross-linking (minor) ( #5204 )
2022-10-26 21:32:49 +02:00
Jutanium
fc5cb2a51d
[ci] format
2022-10-26 18:37:12 +00:00
Dan Jutan
81310b1dde
Error message: clarify "adapter does not have previewEntrypoint" ( #5182 )
...
* clarify preview error message
* Update packages/astro/src/core/preview/index.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-10-26 14:35:34 -04:00
Sarah Rainsberger
707cac9fdf
[docs] Cloudflare integration README edits ( #5205 )
...
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-10-26 15:23:47 -03:00
natemoo-re
814327f409
[ci] format
2022-10-26 15:16:54 +00:00
Nate Moore
0bf0758fb8
Add astro/types
for common prop patterns ( #5147 )
...
* wip: add type-utils
* feat: update type-utils
* feat: RequireDefaultSlot => WithChildren
* chore: add changeset
* chore: move types to ./types
* chore: update changeset
* Update dirty-cycles-lick.md
Co-authored-by: Nate Moore <nate@astro.build>
2022-10-26 10:14:08 -05:00
Nate Moore
0408376281
[Create Astro] Improved prompts, template handling, Houston ( #5088 )
...
* feat(create-astro): add houston, improve prompts
* refactor(create-astro): move to giget
* chore: add changeset
* chore: update lockfile
* test(create-astro): update tests to match new output
* chore: prefer named functions
* fix: update template prompt
* fix: update typescript message
* chore: add explicit --skip-houston flag
* test(create-astro): skip flaky typescript test
Co-authored-by: Nate Moore <nate@astro.build>
2022-10-26 10:13:56 -05:00
Nate Moore
ddf2f8390e
Add support for --base
CLI argument ( #4917 )
...
* feat(cli): add support for `--base` CLI argument
* chore: update CLI --help
* Update wise-swans-live.md
* Update wise-swans-live.md
Co-authored-by: Nate Moore <nate@astro.build>
2022-10-26 10:13:43 -05:00
matthewp
bde715700c
[ci] format
2022-10-26 14:20:41 +00:00
Happydev
4a8a346ca9
feat: add support for other markdown file extensions ( #5164 )
...
* fix: add `.markdown ` file extension support
adds `.markdown` file extension support for markdown files
* test: add test case
* chore: adds changeset
* test: move test and fixture to relevant locations
* test: update test
* feat: add multiple markdown file extension support
* feat: add module declaration for different markdown file extensions
* refactor: markdown module declarations
for ease of TS refactoring
* fix: add .js extension to module imports
* test: update test
* chore: update changeset
* chore: update changeset
* test: add new test cases
* test: update tests
* fix: correct typo
2022-10-26 10:18:49 -04:00
Daniel
d151d9f3f2
enable access to cloudflare runtime ( #5103 )
...
* enable access to cloudflare runtime
* added get runtime api
added context to the runtime in "advanced" mode
* added typings and adjusted some return vars
* added default types
* added usage description to changeset and readme
Co-authored-by: AirBorne04 <unknown>
Co-authored-by: AirBorne04 <>
2022-10-26 09:46:25 -04:00
Fred K. Bot
4efbfdd78d
[ci] release ( #5135 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-26 08:43:23 -04:00
Christian Fuss
e86723d931
[MDX] Improved docs for custom components ( #5190 )
...
* [MDX] Fixed minor formatting issues in README
- whitespace at line end
- blank lines around lists and code fences
- casing of internal references
* Detailed use of custom component with imported MDX
Incorporated all review comments from Sarah and Ben manually,
because the old branch would not pass the mergeability check.
2022-10-25 16:54:47 -04:00
tony-sull
2d0b20d741
[ci] format
2022-10-25 20:00:05 +00:00
Tony Sullivan
8728ee0b94
Updates astro add
to ignore optional peer dependencies ( #5192 )
...
* checking peerDependenciesMeta before including peer deps
* chore: add changeset
2022-10-25 19:57:56 +00:00
Isaac McFadyen
a3d8615937
Added information about Pages flags ( #5188 )
2022-10-25 10:27:39 -04:00
Tony Sullivan
b77200f423
removes default content-visibility styles from image components ( #5180 )
2022-10-24 18:30:02 +00:00
Ben Holmes
308e565ad3
[MDX] Support recmaPlugins
config ( #5146 )
...
* feat: support recma plugins
* chore: add `test:match` to MDX
* chore: changeset
* docs: add recmaPlugins to README
2022-10-24 14:27:37 -04:00
Georgey
61f7e16491
Update README.md ( #5179 )
...
Hey there, so recently I was playing around the mdx, and wanted my users to navigate to a specific section in my article using the `id` tags. This was not happening when I was making custom components. When I pass the Astro props like above, the id was automatically getting passed for headings.
2022-10-24 14:22:34 -04:00
Juan Martín Seery
abf41da774
fix(vercel): Include all files inside dist/
instead of only entry.mjs
( #5175 )
2022-10-24 11:24:52 -03:00
bluwy
7e3a5e5c85
[ci] format
2022-10-21 06:10:37 +00:00