[GitHub] [incubator-annotator] tilgovi commented on issue #113: Can't use after installing via npm (without webpack or similar)

2021-07-19 Thread GitBox
tilgovi commented on issue #113: URL: https://github.com/apache/incubator-annotator/issues/113#issuecomment-883097394 Looks like that problem has been reported here: https://github.com/autarc/optimal-select/issues/70 We could drop the "describe" support for Element -> CSS selector c

[GitHub] [incubator-annotator] tilgovi commented on issue #113: Can't use after installing via npm (without webpack or similar)

2021-07-19 Thread GitBox
tilgovi commented on issue #113: URL: https://github.com/apache/incubator-annotator/issues/113#issuecomment-883091895 We are generating ES6 imports/exports. We don't actually ship CommonJS at all right now. But npm package imports are not valid in the browser because the browser only allo

[GitHub] [incubator-annotator] tilgovi edited a comment on issue #115: Turn AsyncGenerators into Generators

2021-07-19 Thread GitBox
tilgovi edited a comment on issue #115: URL: https://github.com/apache/incubator-annotator/issues/115#issuecomment-883082208 > One can always make a sync function into async one, but not the other way around. Yes, that's the reason for making everything async now. If we compose high

[GitHub] [incubator-annotator] tilgovi commented on issue #115: Turn AsyncGenerators into Generators

2021-07-19 Thread GitBox
tilgovi commented on issue #115: URL: https://github.com/apache/incubator-annotator/issues/115#issuecomment-883082208 > One can always make a sync function into async one, but not the other way around. Yes, that's the reason for making everything async now. If we compose higher lev

[GitHub] [incubator-annotator] DellCliff edited a comment on issue #115: Turn AsyncGenerators into Generators

2021-07-19 Thread GitBox
DellCliff edited a comment on issue #115: URL: https://github.com/apache/incubator-annotator/issues/115#issuecomment-882816203 This kinda smells like speculative generality. IMO I would make those matchers not adhere to some common interface and let them have their own signature. A user c

[GitHub] [incubator-annotator] DellCliff commented on issue #115: Turn AsyncGenerators into Generators

2021-07-19 Thread GitBox
DellCliff commented on issue #115: URL: https://github.com/apache/incubator-annotator/issues/115#issuecomment-882816203 This kinda smells like speculative generality. IMO I would make those matchers not adhere to some common interface and let them have their own signature. A user can then

[GitHub] [incubator-annotator] Treora commented on issue #115: Turn AsyncGenerators into Generators

2021-07-19 Thread GitBox
Treora commented on issue #115: URL: https://github.com/apache/incubator-annotator/issues/115#issuecomment-882519923 You are completely correct that there is no need for the current functions to be async. The reason they are async is to make it easier to do async stuff in the future, with