Support for worker-threads

Hello !

Me and my company are using the couchbase node sdk 2.6.11.
We have tried to use the couchbase library under worker-threads (node 12 +) but it doesn’t seem to work properly.

When we load the library (via require) under a worker thread, this error occured:

Error: Module did not self-register.

It also occured while upgrading the sdk (to 3.0.0+).

It seems that the sdk doesn’t support worker thread. See: https://github.com/nodejs/node/issues/21783 and https://github.com/nodejs/node/blob/master/doc/api/addons.md#context-aware-addons

Have you any plan to support this ?

Thank you !

Hey @guillaume_sensefuel,

We have created an issue to track this, you can find it here:
https://issues.couchbase.com/browse/JSCBC-744

Cheers, Brett