@nxtedition/rocksdb 15.2.0 → 15.2.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/binding.cc CHANGED
@@ -442,13 +442,14 @@ class Iterator final : public BaseIterator {
442
442
  keyEncoding_(keyEncoding),
443
443
  valueEncoding_(valueEncoding),
444
444
  unsafe_(unsafe) {
445
- if (keyFilter && keyFilter->size() > 0) {
445
+ if (keyFilter) {
446
446
  keyFilter_.emplace(*keyFilter);
447
447
  if (!keyFilter_->ok()) {
448
448
  throw std::invalid_argument("Invalid key filter regex");
449
449
  }
450
450
  }
451
- if (valueFilter && valueFilter->size() > 0) {
451
+
452
+ if (valueFilter) {
452
453
  valueFilter_.emplace(*valueFilter);
453
454
  if (!valueFilter_->ok()) {
454
455
  throw std::invalid_argument("Invalid value filter regex");
@@ -537,10 +538,6 @@ class Iterator final : public BaseIterator {
537
538
  readOptions.ignore_range_deletions = false;
538
539
  NAPI_STATUS_THROWS(GetProperty(env, options, "ignoreRangeDeletions", readOptions.ignore_range_deletions));
539
540
 
540
- if (!values) {
541
- readOptions.allow_unprepared_value = true;
542
- }
543
-
544
541
  // uint32_t timeout = 0;
545
542
  // NAPI_STATUS_THROWS(GetProperty(env, options, "timeout", timeout));
546
543
 
@@ -594,13 +591,13 @@ class Iterator final : public BaseIterator {
594
591
 
595
592
  bytesRead += CurrentKey().size() + CurrentValue().size();
596
593
 
597
- if (keyFilter_ && !re2::RE2::PartialMatch(CurrentKey().ToStringView(), *keyFilter_)) {
598
- continue;
599
- }
594
+ // if (keyFilter_ && !re2::RE2::PartialMatch(CurrentKey().ToStringView(), *keyFilter_)) {
595
+ // continue;
596
+ // }
600
597
 
601
- if (valueFilter_ && !re2::RE2::PartialMatch(CurrentValue().ToStringView(), *valueFilter_)) {
602
- continue;
603
- }
598
+ // if (valueFilter_ && !re2::RE2::PartialMatch(CurrentValue().ToStringView(), *valueFilter_)) {
599
+ // continue;
600
+ // }
604
601
 
605
602
  if (keys_ && values_) {
606
603
  rocksdb::PinnableSlice k;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/rocksdb",
3
- "version": "15.2.0",
3
+ "version": "15.2.1",
4
4
  "description": "A low-level Node.js RocksDB binding",
5
5
  "license": "MIT",
6
6
  "main": "index.js",