mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
This PR was merged into the 1.12-dev branch. Discussion ---------- | Q | A | |-----------------|--------------------------------------------------------------| | Branch? | master | | Bug fix? | yes | | New feature? | no | | BC breaks? | no | | Deprecations? | no | | Related tickets | | | License | MIT | Follow up to https://github.com/Sylius/SyliusDemo/pull/243 <!-- - Bug fixes must be submitted against the 1.10 or 1.11 branch(the lowest possible) - Features and deprecations must be submitted against the master branch - Make sure that the correct base branch is set To be sure you are not breaking any Backward Compatibilities, check the documentation: https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html --> Commits -------a91a2fe748[Maintenance] Execute yarn build production like to avoid deps mismatche7b962ad2b[UPGRADE] Add note about required deps bump26e44eed96[Maintenance] Update uglification libs versions
1.5 KiB
1.5 KiB
UPGRADE FROM v1.11.X TO v1.12.0
Main update
- Service
sylius.twig.extension.taxeshas been deprecated. Use methodsgetTaxExcludedTotalandgetTaxIncludedTotalfromSylius\Component\Core\Model\Orderinstead.
Asset management changes
We updated gulp-sass plugin as well as the sass implementation we use to be compatible with most installation (node-sass is deprecated and incompatible with many systems). Therefore you need to update your code to follow this change.
-
Change the gulp-sass version you are using to
^5.1.0(package.json file)- "gulp-sass": "^4.0.1", + "gulp-sass": "^5.1.0", -
Add sass to your package.json:
+ "sass": "^1.48.0", -
Follow this guide to upgrade your code when using gulp-sass this is an example:
- import sass from 'gulp-sass'; + import gulpSass from 'gulp-sass'; + import realSass from 'sass'; + const sass = gulpSass(realSass); -
Library chart.js lib has been upgraded from 2.9.3 to 3.7.1. Adjust your package.json as follows:
- "chart.js": "^2.9.3", + "chart.js": "^3.7.1",- "rollup": "^0.60.2", + "rollup": "^0.66.2",- "rollup-plugin-uglify": "^4.0.0", + "rollup-plugin-uglify": "^6.0.2",Please visit 3.x Migration Guide for more information.