extra-disk-store 0.3.2 → 0.4.0

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
@@ -136,9 +136,9 @@ class LZ4ValueConverter<T> implements IValueConverter<T> {
136
136
  #### ZstandardValueConverter
137
137
  ```ts
138
138
  class ZstandardValueConverter<T> implements IValueConverter<T> {
139
- static create<T>(
139
+ constructor(
140
140
  valueConverter: IValueConverter<T>
141
141
  , level: number
142
- ): Promise<ZstandardValueConverter<T>>
142
+ )
143
143
  }
144
144
  ```
@@ -3,8 +3,7 @@ import { IValueConverter } from "../types";
3
3
  export declare class ZstandardValueConverter<T> implements IValueConverter<T> {
4
4
  private valueConverter;
5
5
  private level;
6
- private constructor();
7
- static create<T>(valueConverter: IValueConverter<T>, level: number): Promise<ZstandardValueConverter<T>>;
6
+ constructor(valueConverter: IValueConverter<T>, level: number);
8
7
  toBuffer(value: T): Promise<Buffer>;
9
8
  fromBuffer(value: Buffer): Promise<T>;
10
9
  }
@@ -30,9 +30,6 @@ class ZstandardValueConverter {
30
30
  this.valueConverter = valueConverter;
31
31
  this.level = level;
32
32
  }
33
- static async create(valueConverter, level) {
34
- return new ZstandardValueConverter(valueConverter, level);
35
- }
36
33
  async toBuffer(value) {
37
34
  const buffer = await this.valueConverter.toBuffer(value);
38
35
  return Buffer.from(await zstd.compress(buffer, this.level));
@@ -1 +1 @@
1
- {"version":3,"file":"zstandard-value-converter.js","sourceRoot":"","sources":["../../src/converters/zstandard-value-converter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAwC;AAGxC,MAAa,uBAAuB;IAClC,YACU,cAAkC,EAClC,KAAa;QADb,mBAAc,GAAd,cAAc,CAAoB;QAClC,UAAK,GAAL,KAAK,CAAQ;IACpB,CAAC;IAEJ,MAAM,CAAC,KAAK,CAAC,MAAM,CACjB,cAAkC,EAClC,KAAa;QAEb,OAAO,IAAI,uBAAuB,CA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C,UAAU,CAAC,MAAM,CAAC,CAAA;IACrD,CAAC;CACF;AAfD,0DAeC"}
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "extra-disk-store",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "files": [
7
- "lib",
8
- "migrations"
7
+ "lib"
9
8
  ],
10
9
  "main": "lib/index.js",
11
10
  "types": "lib/index.d.ts",
@@ -14,7 +13,7 @@
14
13
  "license": "MIT",
15
14
  "sideEffects": false,
16
15
  "engines": {
17
- "node": ">=14"
16
+ "node": ">=16"
18
17
  },
19
18
  "scripts": {
20
19
  "prepare": "ts-patch install -s",
@@ -36,14 +35,14 @@
36
35
  }
37
36
  },
38
37
  "devDependencies": {
39
- "@blackglory/structures": "^0.11.5",
38
+ "@blackglory/structures": "^0.11.6",
40
39
  "@commitlint/cli": "^17.3.0",
41
40
  "@commitlint/config-conventional": "^17.3.0",
42
41
  "@types/jest": "^29.2.4",
43
42
  "@types/node": "14",
44
- "@typescript-eslint/eslint-plugin": "^5.45.1",
45
- "@typescript-eslint/parser": "^5.45.1",
46
- "eslint": "^8.29.0",
43
+ "@typescript-eslint/eslint-plugin": "^5.47.0",
44
+ "@typescript-eslint/parser": "^5.47.0",
45
+ "eslint": "^8.30.0",
47
46
  "husky": "^4.3.0",
48
47
  "jest": "^29.3.1",
49
48
  "npm-run-all": "^4.1.5",
@@ -52,19 +51,19 @@
52
51
  "standard-version": "^9.5.0",
53
52
  "ts-jest": "^29.0.3",
54
53
  "ts-node": "^10.9.1",
55
- "ts-patch": "^2.0.2",
54
+ "ts-patch": "^2.1.0",
56
55
  "tsconfig-paths": "^4.1.1",
57
56
  "typescript": "4.8",
58
57
  "typescript-transform-paths": "^3.4.4"
59
58
  },
60
59
  "dependencies": {
61
- "@blackglory/prelude": "^0.1.8",
60
+ "@blackglory/prelude": "^0.2.0",
62
61
  "@mongodb-js/zstd": "^1.0.0",
63
62
  "extra-benchmark": "^0.2.2",
64
63
  "extra-filesystem": "^0.4.8",
65
64
  "extra-promise": "^4.4.0",
66
- "extra-utils": "^3.5.1",
67
- "iterable-operator": "^2.5.0",
65
+ "extra-utils": "^4.0.0",
66
+ "iterable-operator": "^3.0.0",
68
67
  "lmdb": "^2.7.3",
69
68
  "lz4-wasm-nodejs": "^0.9.2"
70
69
  }