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
Ben Holmes
7d72aeeae8
Migrate blog and docs starters to content collections ( #5858 )
...
* docs: update README for `content/`
* chore: update env
* feat: update blog to use content collections
* chore: remove with-content starter
* fix: single quotes -> double
* feat: update docs starter to content collections
* refactor: config -> consts
* chore: import type
* edit: Astro will -> Use
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore: remove unused null check
* nit: spacing
* nit: `as Props` 1
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* nit: `as Props` 2
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* chore: consistent CONSTS usage
* chore: `type` imports at top
* chore: consistent quote usage on YAML
* chore: remove `as Props` from docs
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-18 08:43:58 -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
Matthew Phillips
28556a89fe
Make image and mdx changesets be minor instead of major ( #5883 )
2023-01-17 10:49:25 -05:00
Bjorn Lu
2000f5fb1e
Update blog example env name ( #5877 )
2023-01-17 23:12:26 +08: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
Chris Swithinbank
ca22a81799
Implement redesign of portfolio example ( #5765 )
...
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-13 08:59:00 +01:00
natemoo-re
bbb14d7326
[ci] format
2023-01-12 21:28:30 +00:00
Nate Moore
309dfb0e9a
Fix announcements CI actions when 2000+ characters ( #5844 )
...
* fix(ci): handle announcements >= 2000 characters
* chore: support multiple branches
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-12 15:26:38 -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
Chris Swithinbank
1d43a3a6aa
Add .astro/
to .gitignore
in example projects ( #5841 )
...
* Delete committed types in with-content example
* Add `.astro/` to `.gitignore` in example projects
2023-01-12 11:26:13 -05:00
Nate Moore
5ed1bf4675
chore: update changeset for _astro
directory ( #5843 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-12 10:06:59 -06: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