---
schema_version: "1"
id: bf548284211bfaffbcb1c8351e6f779f7f8ffec0f7fad7909558c9e1a0e904fb
title: LWC API Version 66.0
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/release-notes/260-0-0/rn_lwc_versioning.md
canonical_url: https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_versioning.htm&release=260&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 1f8b540363ab702711f1c13671eeaf1d363f038a1e88c49b7286de43cc8d7f45
description: Update the API version for your components to use new features and improvements. Versioning your Lightning web components ensures that your existing components aren’t affected when Salesforce ships new features, bug fixes, and performance improvements that change existing behavior. Versioning also helps Salesforce deprecate legacy features.
products:
  - Cross Cloud Packages Solutions
release: "260"
---
# LWC API Version 66.0

Update the API version for your components to use new features and improvements. Versioning your Lightning web components ensures that your existing components aren’t affected when Salesforce ships new features, bug fixes, and performance improvements that change existing behavior. Versioning also helps Salesforce deprecate legacy features.

**Where:** This change applies to custom Lightning web components in Lightning Experience, Experience Builder sites, and all versions of the Salesforce mobile app.

**How:** You can change a component’s API version in its .js-meta.xml file.

```markup
<?xml version="1.0" encoding="UTF-8"?>
      <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
      <apiVersion>66.0</apiVersion>
      </LightningComponentBundle>
```

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-salesforce_release_notes-260-0-0-production-enus/ba62a63b-6cd1-440e-8d24-e867afab0363/images/icon_important.png)

Important We recommend that you upgrade your component API version one version at a time. For example, from 58.0, upgrade from 58.0 to 59.0, fix any errors or warnings you encounter, and then repeat until you get to the latest API version.

When a component’s LWC API version is set to 59.0 or later, it uses that value for its LWC framework version. Components that specify LWC API version 58.0 and earlier continue to work based on LWC framework behavior in Summer ’23 (API 58.0). When you set a component to use an earlier API version, you don’t get new features, bug fixes, and enhancements that are available only with later LWC API versions.

- **[Use Complex Template Expressions in Your Lightning Web Components (Beta)](https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_cte.htm&release=260&type=5)**  
    Add sophisticated presentation logic to your Lightning web component template files, and remove extra code from your component implementation. A component that renders a user interface can now use complex JavaScript expressions directly in its HTML template file. Use complex template expressions anywhere you use basic properties.