Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 18 22:20
    greenkeeper[bot] labeled #5391
  • Oct 18 22:20
    greenkeeper[bot] opened #5391
  • Oct 18 22:20

    greenkeeper[bot] on can-observable-mixin-1.0.3

    fix(package): update can-observ… (compare)

  • Oct 18 19:08
    cherifGsoul labeled #5390
  • Oct 18 19:07
    cherifGsoul opened #5390
  • Oct 18 18:45
    greenkeeper[bot] labeled #5389
  • Oct 18 18:45
    greenkeeper[bot] opened #5389
  • Oct 18 18:45

    greenkeeper[bot] on can-observable-bindings-1.3.0

    fix(package): update can-observ… (compare)

  • Oct 18 18:29

    matthewp on master

    Update dist for release (compare)

  • Oct 18 18:29

    matthewp on v6.1.3

    Update dist for release 6.1.3 (compare)

  • Oct 18 17:59

    matthewp on can-observable-array-1.0.2

    (compare)

  • Oct 18 17:59

    matthewp on master

    fix(package): update can-observ… Merge pull request #5388 from c… (compare)

  • Oct 18 17:59
    matthewp closed #5388
  • Oct 18 16:46
    greenkeeper[bot] labeled #5388
  • Oct 18 16:46
    greenkeeper[bot] opened #5388
  • Oct 18 16:46

    greenkeeper[bot] on can-observable-array-1.0.2

    fix(package): update can-observ… (compare)

  • Oct 18 12:45
    greenkeeper[bot] labeled #5387
  • Oct 18 12:45
    greenkeeper[bot] opened #5387
  • Oct 18 12:45

    greenkeeper[bot] on can-stache-element-1.0.2

    fix(package): update can-stache… (compare)

  • Oct 18 09:49
    chasenlehara edited #5384
Eben
@eben-roux
I found that getting support for the older ember code was basically impossible
Frank Lemanschik
@frank-dspeed
thats why webcomponents will solve a lot
they are better exchange able
and solve many version clashes
with webcomponents and isolated dom window objects
we can do one component can 2
other can 3 and so on
Eben
@eben-roux
I don't know if side-by-side versions are possible... or are they?
Frank Lemanschik
@frank-dspeed
they are i have such stuff running
but you need really to think a lot because the biggest problems are globals
but to make it short yes its today possible to run diffrent steal + canjs versions
and even mix that up
but its more complex then it should be
Eben
@eben-roux
interesting... would that entail two main scripts for steals... each pointing to a different version?
Frank Lemanschik
@frank-dspeed
yes
thats not a problem
steal assigns to window as global
so you simply need 2 diffrent window objects
for example a iframe generates a secund window object
and there are also diffrent other methods to get that
and a iframed window can controll outer window
Eben
@eben-roux
ah, ok
iframe (where is the puke emoticon) :P
I thought iframes are dead... they certainly are hacky though
Frank Lemanschik
@frank-dspeed
no they now become one of the most usefull things ever
but more for isolation and controll flow
not for displaying view able content in them
Eben
@eben-roux
goodness...
Frank Lemanschik
@frank-dspeed
for example i have done the following in production and its stable
i did create a secund html diffrent steal canjs version
that gets imported via html link rel import
and then this window syncs up with the importing document
so your index html requires legay.html
and legacy.html attaches to your index.html view
legacy sorry not legay
lol
Eben
@eben-roux
but isn't canjs more for displaying things anyway...
Frank Lemanschik
@frank-dspeed
it is for that :)
and it does exactly that
but not in its own window
in this POC
Eben
@eben-roux
I'm sure there are ways to have different versions load but it may be more effort than it is worth
Frank Lemanschik
@frank-dspeed
sure that also possible to load that in the same window
but there is no need for that
import and iframe are good methods
this way every thing works as befor
Eben
@eben-roux
iframe is certainly an option
Frank Lemanschik
@frank-dspeed
needs only some extra lines to target the parent outer window or document
thats it
Viktor Busko
@Lighttree

https://gitter.im/canjs/canjs?at=5a3951e3ffa3e3791958aae3

I was thinking about this issue, that I've asked before and got the idea... what if I list can as peerDependency for my components ? I mean I know that my component should work with ...can 3.x and the only thing that might brake my component is some API change which is fairly rare case. But if I do this way I'll avoid this "2 versions of something found" because entity-details-component will use "host" packages. Well at least I expect it to do this :)