When calling $state.transitionTo() in order to reload the analysis page after setting the project, the following error is thrown: Transition Rejection($id: 0 type: 2, message: The transition has been superseded by a different transition, detail: Transition#2( 'analysis'{} -> 'analysis'{} ))
[x] Wrap the $state.transitionTo() call in $timeout() so the transition only starts after current processes finish (more info)
This issue tracks the work of upgrading each dependency to its latest stable version.
Phase 1 - Upgrade most
package.json
dependenciesimport('del')
instead ofgulp-load-plugins
(more info)browserslist
configuration instead ofbrowsers
optionbrowserslist
configuration topackage.json
and removebrowsers
key/value from options when callingoptionalDependencies
file.clone()
to create source map filesgulp-filter
to exclude.map
files before piping togulp-rev-replace
util.log()
withfancyLog()
util.colors
withchalk
util.noop()
withthrough2.obj()
state.percentage
was removedstate.percent
instead ofstate.percentage
Phase 2 - Upgrade
babel
,eslint
, androllup
packagesUpgrade to Babel 7 (more info)
.babelrc
file withbabel.config.json
fileplugins
inbabel.config.json
parser
and setparserOptions
in.eslintrc
filepresets
inbabel.config.json
fileUpgrade
eslint
packagesplugins
to includeangular
in.eslintrc
fileUpgrade
rollup
bundle()
function in./tasks/scripts.js
file to use newer syntax./tasks/scripts.js
filebabelHelpers: 'bundled'
in options when callingbabel()
Phase 3 - Upgrade non-angular
./app/package.json
dependenciesready()
functionjs2xmlparser()
withjs2xmlparser.parse()
openport.find()
withportfinder.getPort()
Phase 4 - Upgrade angular
./app/package.json
dependencies$http
's custom callback functionssuccess()
anderror()
then()
/catch()
promise methods (more info)$interval.cancel()
now throws an error if called with a promise that was not generated by$interval()
.runController.js
:Β Remove$interval.cancel()
call and just setvm.getStatus
toundefined
insteadtoast
styles are no longer automatically appliedtoastClass
to includetoast
inindex.config.js
<uib-accordion-group ... />
element is now only available via theuib-accordion-group
directive<uib-accordion-group ... />
elements with<div uib-accordion-group ... />
(more info)panel-default
class, since it is no longer automatically applied when using the directive$state.transitionTo()
in order to reload the analysis page after setting the project, the following error is thrown:Transition Rejection($id: 0 type: 2, message: The transition has been superseded by a different transition, detail: Transition#2( 'analysis'{} -> 'analysis'{} ))
$state.transitionTo()
call in$timeout()
so the transition only starts after current processes finish (more info)