@thi.ng/column-store 0.13.0 → 0.13.2

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/query.js +2 -2
package/README.md CHANGED
@@ -523,7 +523,7 @@ For Node.js REPL:
523
523
  const cs = await import("@thi.ng/column-store");
524
524
  ```
525
525
 
526
- Package sizes (brotli'd, pre-treeshake): ESM: 6.48 KB
526
+ Package sizes (brotli'd, pre-treeshake): ESM: 6.49 KB
527
527
 
528
528
  ## Dependencies
529
529
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/column-store",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
4
4
  "description": "In-memory column store database with customizable column types, extensible query engine, bitfield indexing for query acceleration, JSON serialization with optional RLE compression",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -130,5 +130,5 @@
130
130
  "status": "beta",
131
131
  "year": 2025
132
132
  },
133
- "gitHead": "7b9fc19fe963ac68bfe9d04c63f8a91cc3cfff5c\n"
133
+ "gitHead": "18e5911e6d52c86190706438b753de415379d3fa\n"
134
134
  }
package/query.js CHANGED
@@ -118,7 +118,7 @@ class Query {
118
118
  offset: _offset,
119
119
  limit: _limit
120
120
  };
121
- if (!ctx.bitmap) return result;
121
+ if (!ctx.bitmap && this.terms.length) return result;
122
122
  if (this._cmp) {
123
123
  rows = [...ctx.rows()].sort(this._cmp);
124
124
  result.total = rows.length;
@@ -141,7 +141,7 @@ class Query {
141
141
  *[Symbol.iterator]() {
142
142
  const { table, _limit, _offset } = this;
143
143
  const ctx = new QueryCtx(this).exec();
144
- if (!ctx.bitmap) return;
144
+ if (!ctx.bitmap && this.terms.length) return;
145
145
  if (this._cmp) {
146
146
  const rows = [...ctx.rows()].sort(this._cmp);
147
147
  yield* rows.slice(