These are chat archives for canjs/canjs

16th
Oct 2017
haayman
@haayman
Oct 16 2017 10:31

I try to use canjs 3.11 from npm, but I get dependencie errors. Apparently canjs 3.11 uses 2 different versions of can-stache internally and the both don't match the latest version of can-stache.
How should I handle this?

npm ls can-stache
SmartSewer@1.0.0 /home/haayman/Dropbox/Arjen/Smart.Mapps/SmartSewer
├── can-stache@3.10.1
├─┬ can-stache-converters@3.2.2
│ └─┬ can-stache-bindings@3.9.0
│ └── can-stache@3.8.0
└─┬ file-droplet@0.2.0
└─┬ can@3.11.0
├── can-stache@3.9.0

Kevin Phillips
@phillipskevin
Oct 16 2017 13:49
@haayman we don't recommend using the main can package, since it won't get updates as fast
we normally install each of the dependencies separately
Gregg Roemhildt
@roemhildtg
Oct 16 2017 13:58
I typically just use a few of the can-* packages also. Usually can-define, can-component, and can-stache.
And whenever the main can package gets updated, I'll update my versions to match
Kevin Phillips
@phillipskevin
Oct 16 2017 14:06
:thumbsup:
haayman
@haayman
Oct 16 2017 15:11
so you downgrade the package to a version that's used internally? How about this case, where can-stache-converters has yet another version? Do you somehow figure out which version of can-stache-converters uses can-stache@3.9.0? Sounds really cumbersome. How come they don't all use the latest version, so I can safely upgrade?
Gregg Roemhildt
@roemhildtg
Oct 16 2017 15:14
I just install the version that's listed here (https://github.com/canjs/canjs/blob/master/package.json), for the packages that I'm specifically requiring.
Those are the officially released versions, and are tested with all of the other can-* packages
I think
Kevin Phillips
@phillipskevin
Oct 16 2017 15:19
having multiple versions of can-stache should not be a problem
if that's what you're worried about
Chasen Le Hara
@chasenlehara
Oct 16 2017 17:34
@phillipskevin can-connect shouldn’t depend on steal-stache though, right?
Kevin Phillips
@phillipskevin
Oct 16 2017 17:35
I think it's used for tags
canjs/can-connect#337
steal-stache wouldn't be used directly
Chasen Le Hara
@chasenlehara
Oct 16 2017 17:38
Right, so should it be moved to devDependencies?
haayman
@haayman
Oct 16 2017 17:49
@phillipskevin I did get error messages about conflicting versions though
@phillipskevin ah, I'll look into that tomorrow then. Thanks
Kevin Phillips
@phillipskevin
Oct 16 2017 17:55
maybe it should @chasenlehara I'd have to look into it
I'd like to remove all that stache stuff entirely
like mentioned in that issue
Chasen Le Hara
@chasenlehara
Oct 16 2017 18:28
Yeah, +1 on deprecating/removing that
For now, I’ve filed an issue about steal-stache: canjs/can-connect#363
@pavankmv If you’re implementing getData, you can do whatever you want with the parameters passed into it. https://canjs.com/doc/can-connect/connection.getData.html