In the Context of Salesforce, Release notes are the official documents published by Salesforce that provide details about the changes, new features, improvements, and bug fixes in each software release. Salesforce Summer’23 Release Notes is the latest release published by Salesforce. Salesforce has posted release notes for every aspect of Salesforce with hundreds of innovations. It helps to save time, automate faster, and personalize the interaction with customers.
Latest LWC Features Added in Salesforce Summer’23 Release
In this article, we will discuss the new features added to LWC in the Salesforce Summer’23 release notes. This will especially help LWC developers.
Lightning Components
- New LWC Developer Guide: Salesforce has moved the LWC developer guide to a more advanced publishing platform with improved search and navigation. This guide is available in English version only and will be posted in Japanese localization soon. After the Summer’23 Japanese developer guide is published, the LWC developer guide in the Component Library will be retired.
- Reduced Limit for Number of Actions in a Boxcar Request: Salesforce has reduced the limit of the number of in a Boxcar request. If the actions in Boxcar requests exceed 250 actions, the Lightning Component Framework returns a 413 HTTP response status code.
- Lightning Web Security(LWS) for LWC: LWS is now available for both LWC and Aura Components. Initially, Lightning Locker was the default security architecture for Lightning Components. Now, LWS is replacing Lightning Locker for Lightning Web Components since spring’22.
- Third-Party Integrations with Light DOM: Salesforce has introduced Light DOM other than Shadow DOM. The Light DOM allows third-party services to traverse the DOM, enabling custom browser query APIs, such as querySelector and querySelectorAll, without traversing shadow roots. You can query an element in the child component from their parent.
- RefreshView API: The new
lightning/refresh
& RefreshView API provides a typical way to refresh a component in LWC without refreshing the page. - Scoped Slots in Light DOM: Now, scoped slots are supported in Light DOM for LWC components. You can use scoped slots to access child component data and then render it in slotted content inside of a parent component. Styles on the parent also apply to the content of scoped slot because slotted contents belong to the parent component. You can also set dynamic values to slot attributes in LWC.
Apex
- Access Labels in Apex Dynamically: You can use the
System.Label.get(namespace, label, language)
method to get a custom label, language is specified optionally. Access to protected labels in a different namespace is not permitted. - Iterable Interface with Set Type: Now, you can iterate over sets directly. Both sets and lists are iterable which increases the reusability of code. This is a versioned change in API version 58.0 and later versions.
- Improved Logging with Assert Class Methods: Instead of generating a SecurityException, database methods for user-mode DML operations will generate the correct DMLException. For example, a DMLException will be generated when you do not populate the required Name field while creating an Account record. This behavior is versioned in API version 58.0 and later versions.
- Level of Parent-to-Child Relationship in SOQL Queries: SOQL is now supporting queries up to five levels of parent-child records. This is limited to SOQL queries through the REST and SOAP query calls on standards and custom objects.
- Async SOQL Is Being Retired: You can’t use Async SOQL because it is being retired. For querying big objects, you can use batch apex or Bulk API instead.
General Enhancement
- Auto Multi-Factor Authentication(MFA): Salesforce users are using multi-factor authentication since February 2022, either via direct logins(with username & password) or single sign-on(SSO) logins. To help the users, Salesforce is auto-enabling the MFA for direct logins from Spring’23. For getting extra security against cyberattacks, implement the MFA yourself instead of waiting for Salesforce to do it.
- Improved Color Contrast: Now, non-text UI elements(buttons and checkboxes), and some text UI elements(links) have enhanced color contrast. This makes the content easier to see and use for people with low vision. This affects the Salesforce Lightning Design System, Lightning Base Components, and some subsets of the record home page.
- Undo Field Changes with a Click: An undo button appears and the background color changes(until saved), when you type text into an input field on an LWC record page. If you click the undo button, any unsaved changes will be removed. Previously, the undo button appeared after clicking outside the field.
- Set Password or Expiration on a Public Link to a Salesforce File: When you create a public link to share a file in Lightning Experience, you can specify an expiration date and make it password-protected. As a default, link expiration is enabled and set to 90 days, and password protection is turned off. Activating password protection displays an auto-generated password.
Please contact us at manish@bay20.com or call us at +91-8800519180 for any support related to Salesforce. You can also visit the Salesforce development page to check the services we offer.