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
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
Fred K. Bot
982e21c164
[ci] update lockfile ( #5815 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-01-11 10:40:11 -06: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
Ben Holmes
840412128b
chore: z.object changeset ( #5826 )
...
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2023-01-11 07:21:37 -05: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