Ben Holmes
031cceb56d
[Content collections] Support type guards on getCollection()
filter ( #5970 )
...
* fix: respect type guards from collection filter
* chore: changeset
2023-01-26 12:02:15 -05:00
Nate Moore
a08e626d6a
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-26 12:02:15 -05:00
Sarah Rainsberger
140c81908c
[docs] typo fix in MDX README ( #5977 )
2023-01-26 12:02:15 -05:00
Houston (Bot)
5b5f8ec31d
[ci] release ( #5963 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-26 12:02:15 -05:00
Bjorn Lu
40e54544dc
Upgrade semver dependency ( #5972 )
2023-01-26 12:02:15 -05:00
matthewp
9b544b9fac
[ci] format
2023-01-26 12:02:14 -05:00
Matthew Phillips
f3130d63a2
Protect against shimmed process usage in Vercel Edge ( #5969 )
...
* Protect against shimmed process usage in Vercel Edge
* Adding a changeset
2023-01-26 12:02:14 -05:00
Lucas Vargas
21a3774d53
docs(svelte): Update integration README ( #5966 )
2023-01-26 12:02:14 -05:00
Happydev
37563b73f2
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-26 12:02:14 -05:00
natemoo-re
5c59d3d1f5
[ci] format
2023-01-26 12:02:14 -05:00
Reuben Tier
33fd1c9766
Ignore lint warning ( #5949 )
2023-01-26 12:02:14 -05:00
Houston (Bot)
b221969e61
[ci] release ( #5959 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-26 12:02:14 -05:00
Nate Moore
c69c364c9f
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-26 12:02:14 -05:00
bholmesdev
ab7e1b9a5a
[ci] format
2023-01-26 12:02:14 -05:00
Houston (Bot)
5b3f96c48e
[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-26 12:02:14 -05:00
Matthew Phillips
0cee60c0af
Bump lit changesets to minor ( #5954 )
2023-01-26 12:02:14 -05:00
Matthew Phillips
fefdcc0c32
Exit pre mode ( #5947 )
2023-01-26 12:02:14 -05:00
Houston (Bot)
25bfd4a74c
[ci] release (beta) ( #5911 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-26 12:02:14 -05:00
Matthew Phillips
3ef84b4790
Go back to pre-mode ( #5946 )
2023-01-26 12:02:14 -05:00
Matthew Phillips
f4fa0bf1d5
Exit pre-mode for 2.0 release ( #5942 )
2023-01-26 12:02:14 -05:00
Ben Holmes
615f734d4e
[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-26 12:02:14 -05:00
Nate Moore
2ef8d8a8ce
chore: migrate changelogs from 1-legacy ( #5944 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-26 12:02:14 -05:00
natemoo-re
46d8f649d5
[ci] format
2023-01-26 12:02:14 -05:00
Nate Moore
7ddbd94e5f
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-26 12:02:14 -05:00
Bjorn Lu
7bb96bbde0
Handle custom injected entry files during build ( #5499 )
2023-01-26 12:02:14 -05:00
matthewp
d271756e89
[ci] format
2023-01-26 12:02:14 -05:00
Matthew Phillips
803cd0f370
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-26 12:02:14 -05:00
Happydev
2dd458d712
fix(@astrojs/tailwind): manually load postcss config file ( #5908 )
2023-01-26 12:02:14 -05:00
Rishi Raj Jain
f5c1122921
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-26 12:02:14 -05:00
heyhoe
b7f33c6c17
Update magic-string used by @astrojs/image and @astrojs/webapi ( #5930 )
2023-01-26 12:02:14 -05:00
Chloe A
07da4f8e73
Add alt text for images in README ( #5919 )
2023-01-26 12:02:14 -05:00
Chris Swithinbank
566af8982f
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-26 12:02:14 -05:00
Chris Swithinbank
99c5c2a2e3
Improve error message for third-party template 404s ( #5920 )
2023-01-26 12:02:14 -05:00
natemoo-re
f27570d753
[ci] format
2023-01-26 12:02:14 -05:00
Reuben Tier
624595e353
Add headless support to create-astro ( #5898 )
...
* Add headless support to create-astro
* Document new flags for create-astro
2023-01-26 12:02:14 -05:00
Erika
9c048888da
chore(webapi): Remove unused file ( #5916 )
2023-01-26 12:02:14 -05:00
Bjorn Lu
b2ce69704b
Fix CLI node version check ( #5905 )
2023-01-26 12:02:14 -05:00
Matthew Phillips
f135b0d94b
Cloudflare prerender branch
2023-01-23 10:41:45 -05: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