Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser support? #7

Open
luwes opened this issue Apr 21, 2019 · 6 comments
Open

Browser support? #7

luwes opened this issue Apr 21, 2019 · 6 comments
Labels

Comments

@luwes
Copy link

luwes commented Apr 21, 2019

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 ?

@elbywan
Copy link
Owner

elbywan commented Apr 22, 2019

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 😉.

@luavixen
Copy link

luavixen commented Aug 3, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@luwes @elbywan @luavixen and others