document-dataply 0.0.10-alpha.1 → 0.0.10-alpha.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.
package/dist/cjs/index.js CHANGED
@@ -10465,11 +10465,6 @@ var DocumentSerializeStrategyAsync = class extends import_dataply.SerializeStrat
10465
10465
  // src/core/bptree/documentComparator.ts
10466
10466
  var import_dataply2 = __toESM(require_cjs());
10467
10467
  var DocumentValueComparator = class extends import_dataply2.ValueComparator {
10468
- _intlComparator = new Intl.Collator(void 0, {
10469
- numeric: true,
10470
- sensitivity: "variant",
10471
- usage: "sort"
10472
- });
10473
10468
  primaryAsc(a, b) {
10474
10469
  return this._compareValue(a.v, b.v);
10475
10470
  }
@@ -10485,7 +10480,7 @@ var DocumentValueComparator = class extends import_dataply2.ValueComparator {
10485
10480
  */
10486
10481
  _compareDiff(a, b) {
10487
10482
  if (typeof a === "string" && typeof b === "string") {
10488
- return this._intlComparator.compare(a, b);
10483
+ return a.localeCompare(b);
10489
10484
  }
10490
10485
  return +a - +b;
10491
10486
  }
@@ -1,7 +1,6 @@
1
1
  import type { DataplyTreeValue, Primitive } from '../../types';
2
2
  import { ValueComparator } from 'dataply';
3
3
  export declare class DocumentValueComparator<T extends DataplyTreeValue<U>, U extends Primitive> extends ValueComparator<T> {
4
- private readonly _intlComparator;
5
4
  primaryAsc(a: T, b: T): number;
6
5
  asc(a: T, b: T): number;
7
6
  match(value: T): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-dataply",
3
- "version": "0.0.10-alpha.1",
3
+ "version": "0.0.10-alpha.2",
4
4
  "description": "Simple and powerful JSON document database supporting complex queries and flexible indexing policies.",
5
5
  "license": "MIT",
6
6
  "author": "izure <admin@izure.org>",