0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/packages
Ben Holmes 630f8c8ef6
[Content collections] Fast getEntryBySlug() lookup (#6916)
* 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 commit 1b0a8b00c2.

* 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 commit 1c3bfdc6b3.

* 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>
2023-05-09 12:17:08 -04:00
..
astro [Content collections] Fast getEntryBySlug() lookup (#6916) 2023-05-09 12:17:08 -04:00
astro-prism [ci] release (#6476) 2023-03-13 16:05:43 -04:00
astro-rss [ci] release (#6954) 2023-05-02 15:13:10 -04:00
create-astro Fix changeset publish (#6923) 2023-04-27 22:55:48 +08:00
integrations Fix generation for routes defined using getStaticPaths (#7029) 2023-05-08 16:12:41 -04:00
markdown [ci] release (#6977) 2023-05-04 12:49:17 -04:00
telemetry [ci] release (#6924) 2023-05-01 10:58:03 -04:00
webapi [ci] release (#6924) 2023-05-01 10:58:03 -04:00