User tests: Successful: Unsuccessful:
The Dart-Sass engine has a "new" API, where instead of renderSync
and a configuration object, it just uses compile()
with the filename instead. As far as I can see, this PR fixes that deprecation warning. Since this only affects our build process, I would consider this to be safe for adoption in 5.2.
Codereview.
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | JavaScript Repository |
Labels |
Added:
PR-5.2-dev
|
I have tested this item ✅ successfully on 37b0dfa
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-01-19 10:03:33 |
Closed_By | ⇒ | rdeutz | |
Labels |
Added:
RTC
|
I have tested this item ✅ successfully on 37b0dfa
I think code review is not really sufficient for testing this PR, so I have done (in addition to the review) following tests:
Run a
php ./build/build.php --remote=HEAD --exclude-gzip --exclude-zstd
on a clean branch one time without and one time with this PR applied and compare the content of the created packagesbuild/tmp/packages/Joomla_5.2.4-dev-Development-Full_Package.zip
.Hint: You can fetch this PR into a local branch "test-pr-44659" for the test with
git fetch upstream pull/44659/head:test-pr-44659
and then checkout that branch with
git co test-pr-44659
Result: There are no differences except of the usual different autoloader IDs and partly different ordering of assets in
joomla.asset.json
files.Run
npm ci
one time without and one time with this PR applied under the same starting conditions (clean branch withcomposer install
having run) and compare the output.Hint: For easy comparison of the output you can run npm and redirect all standard and error output into a test file on Linux or Windows with WSL like this:
npm ci > ./build/npm-ci-with-pr.txt 2>&1
Result: The deprecation messages
Deprecation [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
have disappeared with this PR applied.This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44659.