4 Commits

Author SHA1 Message Date
3668cf5c7a Feat: Add ArrayBuffer, DataView, TypedArray, External support
Implement wrappers and N-API bindings for managing JavaScript
ArrayBuffer, DataView, TypedArray, and External values.

Includes creation, info retrieval, and JS-to-Go conversion support.
Update README checklist for newly supported types.
2025-04-28 13:39:22 -03:00
3d448ec949 Feat: Implement N-API thread-safe functions
Adds `CreateThreadsafeFunction` and the `ThreadsafeFunction` type,
enabling asynchronous calls to JavaScript functions from Go background
threads via N-API's mechanism. Includes CGO bindings and callback
handling for the main event loop.

Refactors value conversion helpers from the `js` subpackage into the
main `napi` package. Adds an example usage and updates the README.
2025-04-28 12:20:44 -03:00
f2c4d39358 clean internal/napi files and add comments to types 2025-04-27 15:06:47 -03:00
32f3ff500d Update pkg to same Node addon Header ()
Reviewed-on: 
Co-authored-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
Co-committed-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
2025-04-27 06:59:21 +00:00