jspm upgrade command #706

Open
guybedford opened this Issue Apr 23, 2015 · 7 comments

Projects

None yet

8 participants

@guybedford
Member

jspm update will always update dependencies within their ranges.

A jspm upgrade could be useful to update across major boundaries, perhaps with some kind of rollback facility.

Thoughts?

@crisptrutski
Contributor

Sounds pretty useful, but some issues spring to mind:

Does it release all the constraints at once? That could actually end in some dependencies getting knock backwards a bit. But releasing them just in time may mean that the command may need to do multiple passes or be run multiple times to converge. Then there's the chestnut of deciding the order to attempt updates in.

None of these are issues if you start with jspm upgrade X only though.

@SandHilt

Or add list command like bower;

@guybedford guybedford added feature and removed discussion labels Aug 8, 2015
@mikeobrien

Yes, please! ๐Ÿ‘

@devmondo

๐Ÿ‘

@erenard
erenard commented Nov 20, 2015

Hey guys, the install command does it.
Exemple :

jspm install aurelia-bootstrapper

=> upgraded to the last version

@mikz
mikz commented Feb 4, 2016

Coming from Rails world, the common workflow to bump major versions is to run bundle outdated and bump one by one, testing what works in the process. It is hard to imagine, doing automatic bump of all the dependencies, would not break everything. So I'd say #471 is more important, than this. Just to see what needs to be upgraded.

@aTable
aTable commented May 24, 2016

NPM has it's own version called "npm-check-updates"

Developers know not to brute force things so we probably should increment and test package upgrades one by one however...that's like watching paint dry. I'd like to spend less time upgrading packages and more writing code so jspm upgrade fits in wonderfully.

There will be times when it backfires for sure but deleting node_modules and reverting the jspm config.js file should be all I can foresee which is quite manageable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment