Las notas de la versión se generan a partir del changelog, en inglés.
Notas de la versión 0.5 de Yoltra
#0.5.0 (2026-08-15)
#@yoltra/core
Funcionalidades
- Teaches the path types the difference between a value with an addressable interior and one without.\n\nA
MaporSetkeeps its contents outside its own enumerable keys, so walking one withkeyofyielded the names of its methods:byId.getandbyId.sizewere offered as subscribable paths, and a slice holding a plain number autocompletedtoFixed. None of them could ever fire, because the diff reports such a value at its own path and never descends into it. The newRootValuetype states that rule once, andPathandDottedboth defer to it.\n\nDottednow resolves to the empty path for a slice that IS one value, so{ reducer, property: "" }type-checks where it can actually fire instead of falling through to the untyped overload. The conditional distributes, so a nullable object slice gets both""and its keys, which is correct: it changes at its root when it becomesnull, and at a leaf otherwise.PathValue<T, "">now resolves toT, matching what both path readers have always returned for an empty path; it used to saynever.\n\nNo path that resolved before stops resolving. Pinned by membership assertions in the type tests, which name each path individually so a single one appearing or vanishing is a build failure.
#@yoltra/react
Funcionalidades
- Picks up the corrected
DottedandPathValuefrom@yoltra/core, souseAtomicProp({ reducer, property: "" })on a slice that holds a single value returns that value's type rather thanunknown, it used to miss the typed overload and fall through to theproperty: stringone.\n\nInference through an object slice is unchanged, and is now pinned: type-level tests assert the resolved type of every path form (nested leaf, array index, whole array, whole Map, and the accessor form) throughcreateYoltra, the way an application actually gets its hooks.