feat: add support for importing functions individually#11
feat: add support for importing functions individually#11danazkari wants to merge 2 commits intoprantlf:masterfrom
Conversation
|
This change uses a clever way to keep compatibility with the named exports, in comparison with #8. It would allow some "deprecation time", so that people could get a friendly warning by an eslint plugin, for example and plan the switch, until the major version changes and they will have to. However, I'm still missing the benefit of this, as I commented on the original PR. |
|
Right, well perhaps I'm the one looking at this from the wrong angle. While it's true that The other reason I see is, PD: I know I messed up the tests, I'll correct them as soon as I get a chance today. |
|
Would love to see this merged! |
This PR adds support for not only still being able to import the entire library and just assign memory pointers to the functions that the user of the API wants to use, but also adds support so that said user can import each individual function in case they're looking for performance wins on their projects.