Closed reduckted closed 3 years ago
This module is working for me in Angular 10, so technically it's "supported", but the new build does give this warning: "angular2-hotkeys.js depends on 'mousetrap'. CommonJS or AMD dependencies can cause optimization bailouts."
So the module needs to be upgraded to a ECMAScript compatible setup so that it can be imported and not have Angular 10 complain. I don't think that requires any code changes. Tack @wittlock !
must add import { MousetrapInstance } from 'mousetrap';
to hotkeys.service.d.ts
Package "angular2-hotkeys" has an incompatible peer dependency to "@angular/core" (requires "^5.2.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0" (extended), would install "11.0.5").
ng update from angular 10 to 11 is not possible, due to pinned @angular/core dependency.
Temporary workaround:
--force
option during upgrademousetrap
importAdding support for Angular 11 (+12) would be greatly appreciated! ideally without workarounds ;-)
+1
this repo hasn't been updated during last 15 month. new fork probably is needed. I'm even not sure that guy (repo owner) is alive
Would someone like to take over merge control of this repo?
Glad to see you alive!! 🙃
I think @filipelautert is a good candidate as he made needed updates in his fork and even updated README 👍 If he doesn't reply I can take over that and continue supporting that.
Hey @brtnshrdr if you could delegate it to me and @Coffee-Tea would be great! Thanks filipe
Super stuff guys! Just looking on npm, it seems like this package was at 30,000 weekly downloads back in 2020, when it was probably still "current", and it's down at about 11,000 now. I'd expect that number to climb again as it's brought up to current specs. So, first, thanks from ME, as just one user, and I'm sending thanks by proxy from the other tens of thousands of people too. :)
Just was working with this yesterday to add some ctrl-alt-enter support for form submission, getting down to zero mouse for a speed-critical app. 👍
@filipelautert @Coffee-Tea Could you give me your npm usernames as well? That way you can publish the package yourself under the same name it currently sits at!
But you both have been granted access! Thanks for taking care of this repo. I stopped Angular development about 5 years ago and just don't keep up with it
Hey, @brtnshrdr thanks for replying yesterday and access to this.
npm nickname is coffeetea
@filipelautert any chances to get your changes in PR into this repo? At least to get fixed mousetrap
blocker and Angular 11 compatibility. If no I will try to find some time next weekend to do that
@Coffee-Tea I've added you as a Maintainer on the npm project. You should now be able to publish updates
Hi @nickrichardson-presto - my npm username is @conflito @Coffee-Tea - sure, I'll work to merge my fork to master by this weekend so we can release 2.2.1 and unblock Angular 11 !
@filipelautert Access granted on NPM as well!
Thanks! @Coffee-Tea I just created the merge request, someone needs to review it before It can be merged -> https://github.com/brtnshrdr/angular2-hotkeys/pull/146 . Can you help reviewing it?
Should be fixed right now in https://www.npmjs.com/package/angular2-hotkeys v2.3.1
Adding support for Angular 10 would be greatly appreciated. ❤️