- Release Pipeline
- External Documentation update.
We’re happy to announce that SLDS Validator 2.0.8 is generally available. It stays true to our vision of providing a robust SLDS validation tool that scans your Aura and Lightning design code. Validator 2.0.8 also introduces SLDS2 rules (beta) to scan your code and offer recommendations. SLDS2 is the latest version of the Lightning Design System. Make Salesforce your own with an AI-ready design system that includes configurable UI components and an advanced theming engine.
Note: The SLDS2 rules included in SLDS Validator are a pilot or beta service that is subject to the Beta Services Terms at Agreements - Salesforce.com or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the Product Terms Directory. Use of this pilot or beta service is at the Customer's sole discretion.
These are the new features in this version 2.0.8 release.
-
[NEW] We introduced new SLDS2 rules (beta) to scan your components and to produce recommendations by using our SLDS2 global semantic styling hooks. The SLDS2 rules (beta) are turned off by default. To run the new SLDS2 rules (beta), in VS Code Settings, turn on SLDS: Enable SLDS2 Validation. After they’re turned on, SLDS2 rules:
- Detect and provide mapping recommendations for deprecated --lwc custom properties, deprecated --sds custom properties, and deprecated Aura design tokens
- Detect usage of hard-coded values in CSS and provide recommendations that use an updated global color style hook matching logic
- Detect styling hooks and SLDS classes that are no longer supported in SLDS2
-
[NEW] Previously, with Validator 1.0, you scanned individual files. Now with Validator 2.0, you can scan a full directory of files. Validator automatically parses the related component files and generates a report of recommendations.
To run Validator against a directory of files, open VS Code and its Command Palette. Then search for and select SLDS: Generate SARIF Report. In your codebase, select a component directory. Validator then scans your code and produces an slds-report.sarif report.
Note To view the report, you need the SARIF Viewer VS Code extension.
-
[New] We introduced three code annotations that you can use to ignore Validator recommendations:
- sldsValidatorAllow
- sldsValidatorIgnore
- sldsValidatorIgnoreNextLine
IMPORTANT: This is the last release for version 1. From now on, use version 2, which is generally available as of September 2024. Starting in September 2024, we no longer publish release notes for version 1.
- Update README
Updates/enhancements:
- Update LSP to Summer ’24 (SLDS 2.24.4): https://github.com/forcedotcom/salesforcedx-slds-lsp/releases/tag/v0.0.15
Updates/enhancements:
Updates/enhancements:
Updates/enhancements:
- Enable suppression of SLDS warnings in HTML files for mobile via Quick Fix actions. Any HTML content that is between
<!-- sldsValidatorIgnore -->
and<!-- sldsValidatorAllow -->
will now be exempt from SLDS validation. Furthermore<!-- sldsValidatorIgnoreNextLine -->
will exempt the next immediate line from SLDS validation. By adding a<!-- sldsValidatorIgnore -->
at the top of an HTML file with no<!-- sldsValidatorAllow -->
anywhere else in that file, you can exempt the entire content of the file from SLDS validation. - New preference flag for SLDS Validator extension. Now using
Salesforce-vscode-slds > Basic : Mobile Validation
flag you can globally enable or disable SLDS validation for mobile. - Update LSP: https://github.com/forcedotcom/salesforcedx-slds-lsp/releases/tag/v0.0.12
Bug fixes:
Bug fixes:
Updates/enhancements:
- Upgrade vscode client and add webpack configuration.
- Update Non Windows environment to use node v12
- Upgrade LSP from 0.0.7 to 0.0.8 (
- Update LSP: https://github.com/forcedotcom/salesforcedx-slds-lsp/releases/tag/v0.0.8
Performance:
Updates/enhancements:
Bug fixes:
- Fixes issues with storagePath if it doesn't exist.
- Turns off Utility class related validations.
- Update LSP to 0.0.7
Updates/enhancements:
- Add File Scope to SLDS Validator
- Update LSP: https://github.com/forcedotcom/salesforcedx-slds-lsp/releases/tag/v0.0.6
Updates/enhancements:
- New icon for extension
- Update Java Detection logic
- Respect Telemetry disabled via the CLI settings
- Update LSP: https://github.com/forcedotcom/salesforcedx-slds-lsp/releases/tag/v0.0.4
Security updates:
- Bump lodash from 4.17.15 to 4.17.19
Bug fixes:
- Replace large numeric value with java's max int value
Release info: https://github.com/forcedotcom/salesforcedx-vscode-slds/releases/tag/v1.2.0
- New LSP version
- Minor repair to telemetry modal
- Initial release