Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/ADF-1417/Upgrade to Node 18 #2353

Merged
merged 7 commits into from
May 12, 2023

Conversation

jsconan
Copy link
Contributor

@jsconan jsconan commented May 2, 2023

Related to: ADF-1417 and ADF-1418

Requires:

Summary

Update the dependencies in order to support further versions of Node

BREAKING CHANGE:

  • The package now requires Node.js 14.17+
  • Replace Node-Sass with Dart-Sass

Details

To properly support Node 18, the dev dependencies had to be updated and aligned.

Note: The lock file was generated with npm@6 so it would also work seamlessly with Node 14.

How to test

  • make sure to have Node 18 installed (you can use nvm.sh for managing multiple versions)
  • install the package:
    cd taoQtiItem/views
    npm i
    cd ../../tao/views
    cd build
    npm i
    npx grunt taoqtiitemsass
    npx grunt taoqtiitembundle
    npx grunt connect:dev taoqtiitemtest
    

Note After switching to Node 18, you may need to erase the node_module folder, otherwise the error >> Error: Could not locate the bindings file may arise.

@codecov-commenter
Copy link

codecov-commenter commented May 2, 2023

Codecov Report

Merging #2353 (65f255a) into develop (bee583f) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             develop    #2353   +/-   ##
==========================================
  Coverage      16.37%   16.37%           
  Complexity      4207     4207           
==========================================
  Files            389      389           
  Lines          12838    12838           
==========================================
  Hits            2102     2102           
  Misses         10736    10736           

@jsconan jsconan requested review from shaveko and rgomeztao May 4, 2023 07:02
Copy link
Contributor

@shaveko shaveko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thnaks for the demo

jsconan added 4 commits May 11, 2023 17:15
 Conflicts:
	views/css/qti-runner.css
	views/css/qti-runner.css.map
	views/js/loader/taoQtiItem.min.js
	views/js/loader/taoQtiItem.min.js.map
	views/js/loader/taoQtiItemRunner.es5.min.js
	views/js/loader/taoQtiItemRunner.es5.min.js.map
	views/js/loader/taoQtiItemRunner.min.js
	views/js/loader/taoQtiItemRunner.min.js.map
	views/package-lock.json
	views/package.json
	views/scss/qti/_associate.scss
@github-actions
Copy link

Version

🚨 Your pull request contains a BREAKING CHANGE, please be sure to communicate it.

Target Version 30.0.0
Last version 29.25.1

There are 2 BREAKING CHANGES, 0 feature, 1 fix

@jsconan jsconan merged commit f2c3ccb into develop May 12, 2023
@jsconan jsconan deleted the feature/ADF-1417/upgrade-to-node18 branch May 12, 2023 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants