Fork me on GitHub
#reagent
<
2019-01-05
>
heyarne10:01:07

@gadfly361 hi there! i gave removing jQuery from re-pressed a try. there's a pull request, interested to know what you think https://github.com/gadfly361/re-pressed/pull/7

gadfly36112:01:49

@arne-clojurians oh awesome, thanks for the PR, I will take a look tomorrow :)

gadfly36112:01:49

@arne-clojurians I'm not quite sure how heavily re-pressed is used in the wild. Removing jQuery would cause a breaking change .. going from which to keyCode. Do you think we should just drop jQuery in the next re-pressed release and note to people they need to update their code? It seems fine to me .. but I'd love your opinion (and anyone else's). We can't really deprecate since that would prevent from removing jQuery as a dependency which is the point of the switch :man-shrugging:

heyarne08:01:52

from what i can tell there does not need to be any breaking change, because keyCode can still exposed as :which. Of course you could expose it as :keyCode or something like this.

heyarne11:01:14

because .keyCode w/ google closure behaves like .which for the jQuery events

gadfly36106:01:50

@arne-clojurians Thanks for the feedback! I'll go with exposing it as :keyCode

heyarne07:01:51

alright, i updated the pr so that modifier keys are checked accordingly and :keyCode is exposed instead of :which

y.khmelevskii14:01:53

@arne-clojurians thank you for PR of my issue! As for me I like this library, but I don’t want to use jQuery in my application. I think it’s unnecessary dependency for react SPA in 2019 🙂 That’s why I didn’t use re-pressed.

gadfly36119:01:19

@y.khmelevskii Thanks for the feedback! I am inclined to just have a breaking change with no deprecation notice and leave a note describing how to migrate then

henrik19:01:25

How do you write <!doctype html> in Hiccup?