@keyv/compress-lz4 1.0.1 → 6.0.0-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/index.cjs CHANGED
@@ -25,8 +25,8 @@ __export(index_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(index_exports);
27
27
  var import_node_buffer = require("buffer");
28
- var import_lz4_napi = require("lz4-napi");
29
28
  var import_serialize = require("@keyv/serialize");
29
+ var import_lz4_napi = require("lz4-napi");
30
30
  var KeyvLz4 = class {
31
31
  constructor(dictionary) {
32
32
  this.dictionary = dictionary;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/index.ts
2
2
  import { Buffer } from "buffer";
3
- import { compress, uncompress } from "lz4-napi";
4
3
  import { defaultDeserialize, defaultSerialize } from "@keyv/serialize";
4
+ import { compress, uncompress } from "lz4-napi";
5
5
  var KeyvLz4 = class {
6
6
  constructor(dictionary) {
7
7
  this.dictionary = dictionary;
package/package.json CHANGED
@@ -1,15 +1,21 @@
1
1
  {
2
2
  "name": "@keyv/compress-lz4",
3
- "version": "1.0.1",
3
+ "version": "6.0.0-alpha.2",
4
4
  "description": "lz4 compression for Keyv",
5
5
  "type": "module",
6
- "main": "dist/index.cjs",
7
- "module": "dist/index.js",
8
- "types": "dist/index.d.ts",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
- "require": "./dist/index.cjs",
12
- "import": "./dist/index.js"
11
+ "require": {
12
+ "types": "./dist/index.d.cts",
13
+ "default": "./dist/index.cjs"
14
+ },
15
+ "import": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.js"
18
+ }
13
19
  }
14
20
  },
15
21
  "repository": {
@@ -38,18 +44,17 @@
38
44
  "homepage": "https://github.com/jaredwray/keyv",
39
45
  "dependencies": {
40
46
  "lz4-napi": "^2.9.0",
41
- "@keyv/serialize": "^1.0.3"
47
+ "@keyv/serialize": "^6.0.0-alpha.2"
42
48
  },
43
49
  "peerDependencies": {
44
- "keyv": "^5.3.4"
50
+ "keyv": "^6.0.0-alpha.2"
45
51
  },
46
52
  "devDependencies": {
47
- "@vitest/coverage-v8": "^3.2.4",
48
- "c8": "^10.1.3",
49
- "rimraf": "^6.0.1",
50
- "vitest": "^3.2.4",
51
- "xo": "^1.1.1",
52
- "@keyv/test-suite": "^2.0.9"
53
+ "@biomejs/biome": "^2.3.8",
54
+ "@vitest/coverage-v8": "^4.0.14",
55
+ "rimraf": "^6.1.2",
56
+ "vitest": "^4.0.14",
57
+ "@keyv/test-suite": "^6.0.0-alpha.2"
53
58
  },
54
59
  "tsd": {
55
60
  "directory": "test"
@@ -63,8 +68,10 @@
63
68
  ],
64
69
  "scripts": {
65
70
  "build": "rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean",
66
- "test": "xo --fix && vitest run --coverage",
67
- "test:ci": "xo && vitest --run --sequence.setupFiles=list --coverage",
71
+ "lint": "biome check --write --error-on-warnings",
72
+ "lint:ci": "biome check --error-on-warnings",
73
+ "test": "pnpm lint && vitest run --coverage",
74
+ "test:ci": "pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage",
68
75
  "clean": "rimraf ./node_modules ./coverage ./test/testdb.sqlite ./dist"
69
76
  }
70
77
  }