These are chat archives for canjs/canjs

5th
Feb 2018
Jeroen Cornelissen
@jeroencornelissen
Feb 05 2018 09:49
Schermafbeelding 2018-02-05 om 10.47.14.png
Has anyone already update his packages to 4.0?
I’m getting this error, see screenshot.
npm ls can-dom-data-state
Schermafbeelding 2018-02-05 om 10.49.25.png
Kevin Phillips
@phillipskevin
Feb 05 2018 17:38
@jeroencornelissen can-jquery hasn't been updated for 4.0, so it could be that
Jeroen Cornelissen
@jeroencornelissen
Feb 05 2018 19:12
@phillipskevin Yes, can-jquery and can-util use can-dom-data-state@0.2.0.
I also got that error on can-globals.
So we’ll have to wait a little longer to upgrade :smile:
Kevin Phillips
@phillipskevin
Feb 05 2018 19:43
can-util is probably always going to use can-dom-data-state@0.2.0
but if you follow the migration guide, you should not be using any of the modules that import it
Jeroen Cornelissen
@jeroencornelissen
Feb 05 2018 19:50
But can-jquery will be updated, or not?
Kevin Phillips
@phillipskevin
Feb 05 2018 19:51
I think it will be, yes
I think the plan is to remove can-jquery/legacy
since that is not easily updated
Kevin Phillips
@phillipskevin
Feb 05 2018 19:57
@jeroencornelissen is there something specific you're using can-jquery for?
Jeroen Cornelissen
@jeroencornelissen
Feb 05 2018 20:04
Was asking myself the same question, maybe we can replace it with just jquery...
Sometimes we do stuff like $(‘el’).viewModel(), but that’s easy replaceable with canViewModel(element).
What else does can-jquery add? :smile:
Kevin Phillips
@phillipskevin
Feb 05 2018 20:11
not much
you can use $.trigger to dispatch events