Repository navigation
v0.55.1
Patch Changes
-
#482
9695bdfThanks @mattiamanzati! - FixmissedPipeableOpportunitydiagnostic to correctly detect nested function call chainsThe diagnostic now properly identifies when nested function calls can be converted to pipeable style. Previously, the chain detection logic incorrectly tracked parent-child relationships, causing false positives. This fix ensures that only valid pipeable chains are reported, such as
toString(double(addOne(5)))which can be refactored toaddOne(5).pipe(double, toString).Example:
// Before: incorrectly flagged or missed identity(Schema.decodeUnknown(MyStruct)({ x: 42, y: 42 })); // After: correctly handles complex nested calls toString(double(addOne(5))); // ✓ Now correctly detected as pipeable