Problem/Motivation
Following with latest changes from Drupal core package.json file
Warning: LibSass and Node Sass are deprecated. While they will continue to receive maintenance releases indefinitely, there are no plans to add additional features or compatibility with any new CSS or Sass features. Projects that still use it should move onto Dart Sass.
https://www.npmjs.com/package/node-sass
- The maintainers no longer recommend LibSass for new Sass projects. Use Dart Sass instead.
- The maintainers recommend all existing LibSass users make plans to eventually move onto Dart Sass, and that all Sass libraries make plans to eventually drop support for LibSass.
- The maintainers are no longer planning to add any new features to LibSass, including compatibility with new CSS features.
- LibSass and Node Sass will continue to be maintained indefinitely on a best-effort basis, including fixing major bugs and security issues and maintaining compatibility with the latest Node versions.
Proposed resolution
- Switch from Node Sass to Dart Sass compiler
- Using Gulp with Dart Sass
Change from sass = require("gulp-sass"),
to sass = require("gulp-sass")(require('sass')),
in the gulpfile.js file
Have the following changes in the package.json
file and update the yarn.lock
file
...
...
"sass": "~1",
"gulp": "~4",
"gulp-autoprefixer": "~8",
"gulp-clean-css": "~4",
"gulp-concat": "~2",
"gulp-csscomb": "~3",
"gulp-filter": "~7",
"gulp-html-replace": "~1",
"gulp-postcss": "~8",
"gulp-rename": "~2",
"gulp-sass": "~5",
"gulp-scss-lint": "~1",
"gulp-sourcemaps": "~3",
"gulp-uglify": "~3",
...
...
- Update the minimum node version to 16.0 and more
"engines": { "yarn": ">= 1.6", "node": ">= 16.0" },
Remaining tasks
- ✅ File an issue about this project
- ✅ Addition/Change/Update/Fix to this project
- ✅ Testing to ensure no regression
- ✅ Automated unit/functional testing coverage
- Varbase 9.0.x branch
- Varbase 9.1.x branch
- ✅ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ✅ Accessibility and Readability
- ✅ Code review from 1 Varbase core team member
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Update Release Notes and Update Helper on new feature change/addition
- ✅ Release varbase-9.0.6
Varbase update type
- ✅ No Update
- ➖ Optional Update
- ➖ Forced Update
- ➖ Forced Update if Unchanged
User interface changes
- N/A
API changes
- N/A
Data model changes
- N/A
Release notes snippet
Only the first issue link will be listed in the release notes.
- Issue #3271850: Switched from deprecated Node Sass to Dart Sass compiler using Gulp and changed minimum node version to 16.0 and later in the Varbase distribution
which will represent the following issues:
- Issue #3272487: Switched from deprecated Node Sass to Dart Sass compiler using Gulp and changed minimum node version to 16.0 and later in the Varbase Core module
-
Themes:
Issue #3269723: Switched from deprecated Node Sass to Dart Sass compiler using Gulp in the Varbase Theme (Bootstrap 4 - SASS)
- Issue #3271780: Switched from deprecated Node Sass to Dart Sass compiler using Gulp in the Varbase Theme (Bootstrap 5 - SASS)
- Issue #3272517: Switched from deprecated Node Sass to Dart Sass compiler using Gulp and changed minimum node version to 16.0 and later in the Vartheme Claro admin theme
-
Modules:
Issue #3272496: Switched from deprecated Node Sass to Dart Sass compiler using Gulp and changed minimum node version to 16.0 and later in the Varbase Media module
- Issue #3272488: Updated eslint linting packages and minimum node version to 16.0 and later in the Varbase Editor module
- Issue #3272442: Switched from deprecated Node Sass to Dart Sass compiler using Gulp and changed minimum node version to 16.0 and later in the Varbase Media Hero Slider module
- Issue #3272448: Updated eslint linting packages and minimum node version to 16.0 and later in the Varbase API module
- Issue #3272453: Updated eslint linting packages and minimum node version to 16.0 and later in the Varbase Blog (Corporate Blog) module
- Issue #3272455: Switched from deprecated Node Sass to Dart Sass compiler using Gulp and changed minimum node version to 16.0 and later in the Varbase Bootstrap Paragraphs module
- Issue #3272457: Updated eslint linting packages and minimum node version to 16.0 and later in the Varbase Carousels module
- Issue #3272464: Updated eslint linting packages and minimum node version to 16.0 and later in the Varbase Commerce (Merchandise) module
- Issue #3272490: Switched from deprecated Node Sass to Dart Sass compiler using Gulp and changed minimum node version to 16.0 and later in the Varbase Email module
- Issue #3272492: Switched from deprecated Node Sass to Dart Sass compiler using Gulp and changed minimum node version to 16.0 and later in the Varbase FAQs module
- Issue #3272494: Updated eslint linting packages and minimum node version to 16.0 and later in the Varbase Landing Page (Paragraphs) module
- Issue #3272495 by Abdullah Yassin, Rajab Natshah: Switched from deprecated Node Sass to Dart Sass compiler using Gulp and changed minimum node version to 16.0 and later in the Varbase Layout Builder module
- Issue #3272500: Switched from deprecated Node Sass to Dart Sass compiler using Gulp and changed minimum node version to 16.0 and later in the Varbase Media Header module
- Issue #3272501: Updated eslint linting packages and minimum node version to 16.0 and later in the Varbase Reports module
- Issue #3272502: Updated eslint linting packages and minimum node version to 16.0 and later in the Varbase Search module
- Issue #3272504: Updated eslint linting packages and minimum node version to 16.0 and later in the Varbase SEO module
- Issue #3272506: Updated eslint linting packages and minimum node version to 16.0 and later in the Varbase Social Single Sign-On module
- Issue #3272508: Updated eslint linting packages and minimum node version to 16.0 and later in the Varbase Workflow module
- Issue #3272519: Switched from deprecated Node Sass to Dart Sass compiler using Gulp and changed minimum node version to 16.0 and later in the View Modes Inventory - Bootstrap Ready module
- Issue #3272515: Updated eslint linting packages and minimum node version to 16.0 and later in the Varbase YouTube Import module
- Issue #3272507: Switched from deprecated Node Sass to Dart Sass compiler using Gulp and change minimum node version to 16.0 and later in the Varbase Style Guide module
Comments
Comment #2
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #6
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #7
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #8
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #9
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #10
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #11
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #12
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #13
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #14
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #15
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #16
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #17
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #18
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #19
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #20
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #21
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #22
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #23
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #24
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commentedComment #25
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commented✅ Released varbase-9.0.6
Comment #26
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot for Vardot commented