hyperactiv icon indicating copy to clipboard operation
hyperactiv copied to clipboard

Browser support?

Open luwes opened this issue 5 years ago • 6 comments

Nice work on this amazing lib!

Have you done any tests with older browsers? (IE11) The library uses proxies, is this polyfill-able with https://github.com/GoogleChrome/proxy-polyfill ?

luwes avatar Apr 21 '19 15:04 luwes

Hey @luwes,

Nice work on this amazing lib!

Thanks 😄!

Have you done any tests with older browsers? (IE11)

Not really, I only tested modern browsers (firefox/chrome/edge/safari) and the library is not even transpiled (goal was to keep it under 1kB).

The library uses proxies, is this polyfill-able with https://github.com/GoogleChrome/proxy-polyfill ?

So I tried adding babel, proxy-polyfill is actually working but I had some issues with the fact that hyperactiv uses WeakMap and the IE11 implementation (or the core-js polyfill) seems buggy somehow. The keyed object is not garbage collected, but removed from the map anyway.

I'm sorry but I don't have time to investigate more (and IE11 support is not really a goal for this lib), I created an es5-bundle branch if you want to have a try 😉.

elbywan avatar Apr 22 '19 06:04 elbywan

My project requires supporting Internet Explorer 9 (2011) and just ES5 in general (2009), but I really liked the super simple reactivity powered by this amazing little library! I was so inspired that I took the time to make a similar project called Luar that implements many of Hyperactiv's features in a way that works on old browsers (without Proxies, Maps, Sets, etc). It doesn't have all the super-advanced options of observe() and computed() but it gets the job done. It's still very much based off some of the theory of Hyperactiv, though. Thanks again for your work!

luavixen avatar Aug 03 '20 06:08 luavixen