@harperfast/rocksdb-js 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1025,6 +1025,15 @@ Returns an object containing all of the information in the log file.
1025
1025
  - `length: number` The size of the entry data.
1026
1026
  - `timestamp: number` The entry timestamp.
1027
1027
 
1028
+ ### `currentThreadId(): number`
1029
+
1030
+ Returns the current thread ID.
1031
+
1032
+ ```typescript
1033
+ import { currentThreadId } from '@harperfast/rocksdb-js';
1034
+ console.log(currentThreadId());
1035
+ ```
1036
+
1028
1037
  ### `registryStatus(): RegistryStatus`
1029
1038
 
1030
1039
  Returns an array containing that status of all active RocksDB instances.
package/dist/index.cjs CHANGED
@@ -87,6 +87,7 @@ const NativeTransaction = binding.Transaction;
87
87
  const TransactionLog = binding.TransactionLog;
88
88
  const registryStatus = binding.registryStatus;
89
89
  const shutdown = binding.shutdown;
90
+ const currentThreadId = binding.currentThreadId;
90
91
  const stats = binding.stats;
91
92
  const version = binding.version;
92
93
 
@@ -1908,7 +1909,7 @@ function loadLastPosition(transactionLog, readUncommitted) {
1908
1909
  //#region src/index.ts
1909
1910
  const versions = {
1910
1911
  rocksdb: version,
1911
- "rocksdb-js": "1.0.0"
1912
+ "rocksdb-js": "1.0.1"
1912
1913
  };
1913
1914
 
1914
1915
  //#endregion
@@ -1919,6 +1920,7 @@ exports.Store = Store;
1919
1920
  exports.Transaction = Transaction;
1920
1921
  exports.TransactionLog = TransactionLog;
1921
1922
  exports.constants = constants;
1923
+ exports.currentThreadId = currentThreadId;
1922
1924
  exports.parseTransactionLog = parseTransactionLog;
1923
1925
  exports.registryStatus = registryStatus;
1924
1926
  exports.shutdown = shutdown;