Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Validate Aura API ( aura-api ) )
When Lightning Locker is enabled, the framework prevents the use of unsupported API objects or calls. That means your Aura components code is allowed to use:
- Features built into JavaScript (“intrinsic” features)
- Published, supported features built into the Aura Components programming model.
- Published, supported features built into Lightning Locker SecureObject objects
This rule deals with the supported, public framework APIs, for example, those available through the framework global $A.
Why is this rule called “Aura API”? Because the core of the Aura Components programming model is the open source Aura Framework. And this rule verifies permitted uses of that framework, rather than anything specific to Lightning Components.
Rule Details
1Aura.something(); // Use $A instead
2$A.util.fake(); // fake is not available in $A.utilFurther Reading
For details of all of the methods available in the framework, including $A, see the JavaScript API documentation.