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.
Aura Component Versioning for Managed Packages
Versions are assigned declaratively in the Developer Console. When you’re working on a component, click Bundle Version Settings in the right panel to define the version. You can only version a component if you’ve installed a package, and the valid versions for the component are the available versions of that package. Versions are in the format <major>.<minor>. So if you assign a component version 1.4, its behavior depends on the first major release and fourth minor release of the associated package.

- Apex controllers
- JavaScript controllers
- JavaScript helpers
- JavaScript renderers
- Bundle markup
- Applications (.app)
- Components (.cmp)
- Interfaces (.intf)
- Events (.evt)
- Styles (.css)
- Documentation (.doc)
- Design (.design)
- SVG (.svg)
| Resource | Return Type | Expression |
|---|---|---|
| Apex | Version | System.requestVersion() |
| JavaScript | String | cmp.getVersion() |
| Aura component markup | String | {!Version} |
1<aura:component>
2 <aura:if isTrue="{!Version > 1.0}">
3 <c:newVersionFunctionality/>
4 </aura:if>
5 <c:oldVersionFunctionality/>
6 ...
7</aura:component>