summaryrefslogtreecommitdiff
path: root/.changeset/neat-eagles-trade.md
diff options
context:
space:
mode:
authorGravatar Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com> 2023-01-24 08:38:06 -0800
committerGravatar GitHub <noreply@github.com> 2023-01-24 11:38:06 -0500
commit73ca0ef38352896f7c8fdaae23f881d02e60a180 (patch)
tree0e0efa55fc1e49b7e5ad2ca100ff93803344cc3e /.changeset/neat-eagles-trade.md
parent58dfdc5a364e4ba46538466af8666e70af21987f (diff)
downloadastro-73ca0ef38352896f7c8fdaae23f881d02e60a180.tar.gz
astro-73ca0ef38352896f7c8fdaae23f881d02e60a180.tar.zst
astro-73ca0ef38352896f7c8fdaae23f881d02e60a180.zip
* [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>
Diffstat (limited to '.changeset/neat-eagles-trade.md')
-rw-r--r--.changeset/neat-eagles-trade.md24
1 files changed, 0 insertions, 24 deletions
diff --git a/.changeset/neat-eagles-trade.md b/.changeset/neat-eagles-trade.md
deleted file mode 100644
index b92353e8e..000000000
--- a/.changeset/neat-eagles-trade.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-'astro': major
----
-
-Move getEntry to getEntryBySlug
-
-This change moves `getEntry` to `getEntryBySlug` and accepts a slug rather than an id.
-
-In order to improve support in `[id].astro` routes, particularly in SSR where you do not know what the id of a collection is. Using `getEntryBySlug` instead allows you to map the `[id]` param in your route to the entry. You can use it like this:
-
-```astro
----
-import { getEntryBySlug } from 'astro:content';
-
-const entry = await getEntryBySlug('docs', Astro.params.id);
-
-if(!entry) {
- return new Response(null, {
- status: 404
- });
-}
----
-<!-- You have an entry! Use it! -->
-```