I have a managed package with an LWC component. I need to enhance this LWC in a patch to allow it to receive some additional data during its initialization, which is done using an @wire.
The data itself comes from JSON-based configuration data held in a custom metadata type instance. I need to add an extra parameter to be sent back in the wire response to allow the LWC to change its behaviour based on that parameter. Effectively, I need to add the following to my data object that is returned to the LWC in the wire:
public class LWCResponse {
...
@AuraEnabled
public String linkNavigation { get; set; }
}
What I'm not sure about is whether this is something that can be added to a managed package as part of a patch release since it isn't possible to add new "components" to a managed package in a patch.
The problem is in identifying exactly what a "component" is. The documentation doesn't mention an @AuraEnabled method or property as a component, but I want to be sure before we shoot ourselves in the foot by taking this approach.
Anyone got a definitive answer as to whether an @AuraEnabled property can be added in a patch?