adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
747 stars 753 forks source link

[SITES-22335] js parse error fix 2 #2828

Closed YahorC closed 3 months ago

YahorC commented 3 months ago

The ?. operator was included in ES2020, which is supported by Node 14 (released in April 2020). But we are currently using ES2015 (see content.xml)

Q                       A
Fixed Issues? SITES-22335
Patch: Bug Fix?
Minor: New Feature?
Major: Breaking Change?
Tests Added + Pass? Yes
Documentation Provided Yes (code comments and or markdown)
Any Dependency Changes?
License Apache License, Version 2.0
sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 87.21%. Comparing base (681d1bf) to head (21b0844).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2828 +/- ## ========================================= Coverage 87.21% 87.21% Complexity 2690 2690 ========================================= Files 235 235 Lines 7173 7173 Branches 1096 1096 ========================================= Hits 6256 6256 Misses 363 363 Partials 554 554 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.