mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
630f8c8ef6
* feat: add generated lookup-map * feat: wire up fast getEntryBySlug() lookup * fix: consider frontmatter slugs * chore: changeset * chore: lint no-shadow * fix: revert bad rootRelativePath change * chore: better var name * refactor: generated `.json` to in-memory map * chore: removed unneeded await Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * chore: removed unneeded await Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> * Revert "chore: removed unneeded await" This reverts commit1b0a8b00c2
. * fix: bad `GetEntryImport` type * chore: remove unused variable * refactor: for -> Promise.all * refactor: replace duplicate parseSlug * refactor: add cache layer * Revert "refactor: add cache layer" This reverts commit1c3bfdc6b3
. * refactor: add comment, move to virtual-mod * chore: add jsdocs * refactor: fiiiiine no more `??=` * fix: ignore underscore files in lookup map * chore: add unknowncollectionerror on bad file contents --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
5 lines
157 B
Markdown
5 lines
157 B
Markdown
---
|
|
'astro': patch
|
|
---
|
|
|
|
Add fast lookups for content collection entries when using `getEntryBySlug()`. This generates a lookup map to ensure O(1) retrieval.
|