Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:04
    greenkeeper[bot] commented #5392
  • 01:04

    greenkeeper[bot] on core-js-3.5.0

    chore(package): update core-js … (compare)

  • Dec 11 18:34
    greenkeeper[bot] labeled #5444
  • Dec 11 18:34
    greenkeeper[bot] opened #5444
  • Dec 11 18:34

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

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

  • Dec 11 18:30

    cherifGsoul on update-infrastructure-page

    (compare)

  • Dec 11 18:30

    cherifGsoul on master

    Update infrastructure page with… (compare)

  • Dec 11 18:30
    cherifGsoul closed #5441
  • Dec 11 18:30
    cherifGsoul closed #5417
  • Dec 10 17:40
    cherifGsoul review_requested #5443
  • Dec 10 16:47
    cherifGsoul review_requested #5441
  • Dec 10 16:35
    cherifGsoul synchronize #5441
  • Dec 10 16:35

    cherifGsoul on update-infrastructure-page

    Fix typos (compare)

  • Dec 10 10:01
    jkeruzec starred canjs/canjs
  • Dec 09 18:59
    cherifGsoul review_requested #5443
  • Dec 09 18:59
    cherifGsoul opened #5443
  • Dec 09 18:51

    cherifGsoul on document-inserted-removed-can6

    Add inserted/removed events to … (compare)

  • Dec 09 15:38
    greenkeeper[bot] labeled #5442
  • Dec 09 15:38
    greenkeeper[bot] opened #5442
  • Dec 09 15:38

    greenkeeper[bot] on can-view-live-5.0.1

    fix(package): update can-view-l… (compare)

Frank Lemanschik
@frank-dspeed
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 :)

DaveO
@DaveO-Home
@phillipskevin et al. In an attempt to learn about bundlers other than steal with canjs, I put together a small demo @ https://github.com/DaveO-Home/embedded-acceptance-tests. I think it works....
Gregg Roemhildt
@roemhildtg
So I see that react is more performant in this example now? https://output.jsbin.com/wotevub/2 Are you guys seeing the same?
chart.png