astro-loader-bluesky-posts@1.2.4
Patch Changes
-
Implement the Astro 6 migration change where schema types are inferred instead of generated, while preserving accurate loader-based entry data inference and avoiding Zod 4 internal type leakage in published declarations (
c0089f2) -
Astro v6.0 upgrades to Zod 4. Based on the Zod 4 changelog and the need to keep compatibility with older Astro versions, update schemas by: (
c0089f2)- Replace
passthrough()usage withcatchall(z.unknown())to keep allowing extra fields without requiring Zod 4-onlyz.looseObject(); - Replace
z.any()label entries withz.unknown()to avoid leakinganyinto inferred entry data; - Replace object intersection with
extend()for the extended post schema; - Intentionally keep deprecated string format methods such as
z.string().url()andz.string().datetime()for compatibility with older Astro/Zod versions.
- Replace
-
Add config-specific loader overloads so
fetchThreadandfetchOnlyAuthorRepliesinfer the matching entry data shape (c0089f2) -
Use the public
@atproto/apiAppBskyFeedDefsexports and type guards instead of internaldist/client/typesimports (c0089f2) -
Relax the thread schema for raw nested replies and optional Bluesky author fields that the API can omit (
c0089f2) -
Cache by the full parsed loader config instead of only
urisso rendering and thread option changes trigger a reload (c0089f2) -
Preserve stack traces in loader error logs so failures remain debuggable (
c0089f2)