# LWC Versioning

LWC open-source (OSS) follows a version number using the major.minor.patch pattern. It adheres to semantic versioning (semver) characteristics.

Note

Deviating from the semver standards, LWC also increments the minor version number when the compiler output has changed.

We release breaking changes to LWC OSS independent of the Salesforce release schedule. A major version increment also corresponds with a new API version as it introduces breaking changes for off-core components. When the LWC dependency is updated, on-core components for internal Salesforce developers use the next version automatically.

# Breaking Changes

The LWC framework prides itself on backwards compatibility, and we strive to avoid breaking your code when shipping a new release. Versioning allows us to ship new features, bug fixes, or performance improvements while also allowing us to deprecate legacy features.

Here are the breaking changes.

# Minor Releases

Minor releases typically include new features, minor fixes, and performance updates.

See LWC releases.

# Component-Level API Versioning

For LWC OSS, the API version on the component is always the latest version that corresponds to the LWC framework version.

From Winter'24, custom components for the Salesforce platform are versioned. Component-level API versioning informs the LWC framework to behave as it did for the Salesforce release corresponding to the API version for that component.

Component-level API versioning is determined by the apiVersion value on the component's *.js-meta.xml file. If an apiVersion value isn't provided, LWC defaults to the latest version. API versioning on a component is scoped to a component definition and its dependence on the version of the LWC framework. Every HTML, CSS, and JS file on a component corresponds to one API version.

To see what's changed in LWC in the latest Salesforce release that apply to all apiVersion values, see the Salesforce release notes.

# Salesforce Lightning Platform Versioning

LWC OSS versioning maps to versioning on the Salesforce platform.

LWC OSS Salesforce Platform Release Name
v8.0.0 API version 63.0 Spring '25
v7.0.0 API version 62.0 Winter '25
v6.0.0 API version 61.0 Summer '24
v5.0.0 API version 60.0* Spring '24
v3.0.0 API version 59.0 Winter '24
v2.50.0 and earlier API version 58.0 Summer '23

* API version 60.0 also includes changes from LWC OSS v4.0.0.