redis-kv-store 2.0.1 → 3.0.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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # [3.0.0](https://github.com/nfroidure/redis-kv-store/compare/v2.0.2...v3.0.0) (2023-08-12)
2
+
3
+
4
+
5
+ ## [2.0.2](https://github.com/nfroidure/redis-kv-store/compare/v2.0.1...v2.0.2) (2023-01-05)
6
+
7
+
8
+
1
9
  ## [2.0.1](https://github.com/nfroidure/redis-kv-store/compare/v2.0.0...v2.0.1) (2022-09-01)
2
10
 
3
11
 
package/README.md CHANGED
@@ -7,8 +7,8 @@
7
7
  # redis-kv-store
8
8
  > A simple Redis based key/value store.
9
9
 
10
- [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nfroidure/redis-kv-store/blob/master/LICENSE)
11
- [![Coverage Status](https://coveralls.io/repos/github/nfroidure/redis-kv-store/badge.svg?branch=master)](https://coveralls.io/github/nfroidure/redis-kv-store?branch=master)
10
+ [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/nfroidure/redis-kv-store/blob/main/LICENSE)
11
+ [![Coverage Status](https://coveralls.io/repos/github/nfroidure/redis-kv-store/badge.svg?branch=main)](https://coveralls.io/github/nfroidure/redis-kv-store?branch=main)
12
12
 
13
13
 
14
14
  [//]: # (::contents:start)
@@ -61,4 +61,4 @@ const value = await redisKV.get('my_key');
61
61
  - [Nicolas Froidure](http://insertafter.com/en/index.html)
62
62
 
63
63
  # License
64
- [MIT](https://github.com/nfroidure/redis-kv-store/blob/master/LICENSE)
64
+ [MIT](https://github.com/nfroidure/redis-kv-store/blob/main/LICENSE)
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import type { LogService } from 'common-services';
2
2
  import type { KVStoreService } from 'memory-kv-store';
3
3
  import type { RedisService } from 'simple-redis-service';
4
- export declare type RedisKVService<T> = KVStoreService<T>;
5
- export declare type RedisKVDependencies = {
4
+ export type RedisKVService<T> = KVStoreService<T>;
5
+ export type RedisKVDependencies = {
6
6
  redis: RedisService;
7
7
  log: LogService;
8
8
  };
package/package.json CHANGED
@@ -1,14 +1,4 @@
1
1
  {
2
- "name": "redis-kv-store",
3
- "version": "2.0.1",
4
- "description": "A simple Redis based key/value store.",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "type": "module",
8
- "keywords": [
9
- "redis",
10
- "knifecycle"
11
- ],
12
2
  "metapak": {
13
3
  "data": {
14
4
  "files": "'src/**/*.ts'",
@@ -33,9 +23,19 @@
33
23
  "codeclimate"
34
24
  ]
35
25
  },
26
+ "name": "redis-kv-store",
27
+ "version": "3.0.0",
28
+ "description": "A simple Redis based key/value store.",
29
+ "main": "dist/index.js",
30
+ "types": "dist/index.d.ts",
31
+ "type": "module",
32
+ "keywords": [
33
+ "redis",
34
+ "knifecycle"
35
+ ],
36
36
  "scripts": {
37
37
  "architecture": "jsarch 'src/**/*.ts' > ARCHITECTURE.md && git add ARCHITECTURE.md",
38
- "build": "rimraf -f 'dist' && tsc --outDir dist",
38
+ "build": "rimraf 'dist' && tsc --outDir dist",
39
39
  "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
40
40
  "cli": "env NODE_ENV=${NODE_ENV:-cli}",
41
41
  "cover": "npm run jest -- --coverage",
@@ -48,7 +48,9 @@
48
48
  "precz": "npm run build && npm run doc && npm run architecture && npm t && npm run lint && npm run metapak -- -s",
49
49
  "prettier": "prettier --write 'src/**/*.ts'",
50
50
  "preversion": "npm run build && npm run doc && npm run architecture && npm t && npm run lint && npm run metapak -- -s",
51
+ "rebuild": "swc ./src -s -d dist -C jsc.target=es2022",
51
52
  "test": "npm run jest",
53
+ "type-check": "tsc --pretty --noEmit",
52
54
  "version": "npm run changelog && git add CHANGELOG.md"
53
55
  },
54
56
  "repository": {
@@ -66,34 +68,36 @@
66
68
  },
67
69
  "homepage": "https://github.com/nfroidure/redis-kv-store#readme",
68
70
  "dependencies": {
69
- "common-services": "^11.1.0",
70
- "knifecycle": "14.1.0",
71
- "memory-kv-store": "^6.0.1",
72
- "simple-redis-service": "^2.0.1"
71
+ "common-services": "^13.0.0",
72
+ "knifecycle": "15.0.1",
73
+ "memory-kv-store": "^7.0.0",
74
+ "simple-redis-service": "^3.0.0"
73
75
  },
74
76
  "devDependencies": {
75
- "@typescript-eslint/eslint-plugin": "^5.36.0",
76
- "@typescript-eslint/parser": "^5.36.0",
77
- "commitizen": "^4.2.5",
78
- "conventional-changelog-cli": "^2.2.2",
77
+ "@swc/cli": "^0.1.62",
78
+ "@swc/core": "^1.3.76",
79
+ "@swc/helpers": "^0.5.1",
80
+ "@swc/jest": "^0.2.28",
81
+ "@typescript-eslint/eslint-plugin": "^6.3.0",
82
+ "@typescript-eslint/parser": "^6.3.0",
83
+ "commitizen": "^4.3.0",
84
+ "conventional-changelog-cli": "^3.0.0",
79
85
  "coveralls": "^3.1.1",
80
86
  "cz-conventional-changelog": "^3.3.0",
81
- "esbuild": "^0.15.6",
82
- "esbuild-jest": "^0.5.0",
83
- "eslint": "^8.23.0",
84
- "eslint-config-prettier": "^8.5.0",
85
- "eslint-plugin-prettier": "^4.2.1",
86
- "jest": "^29.0.1",
87
- "jsarch": "^6.0.0",
88
- "jsdoc-to-markdown": "^7.1.1",
89
- "metapak": "^4.0.4",
90
- "metapak-nfroidure": "12.3.0",
91
- "prettier": "^2.7.1",
92
- "rimraf": "^3.0.2",
93
- "typescript": "^4.8.2"
87
+ "eslint": "^8.46.0",
88
+ "eslint-config-prettier": "^9.0.0",
89
+ "eslint-plugin-prettier": "^5.0.0",
90
+ "jest": "^29.6.2",
91
+ "jsarch": "^6.0.1",
92
+ "jsdoc-to-markdown": "^8.0.0",
93
+ "metapak": "^5.1.3",
94
+ "metapak-nfroidure": "15.0.0",
95
+ "prettier": "^3.0.1",
96
+ "rimraf": "^5.0.1",
97
+ "typescript": "^5.1.6"
94
98
  },
95
99
  "engines": {
96
- "node": ">=16.15.0"
100
+ "node": ">=18.16.0"
97
101
  },
98
102
  "config": {
99
103
  "commitizen": {
@@ -114,15 +118,19 @@
114
118
  "cz-conventional-changelog",
115
119
  "conventional-changelog-cli",
116
120
  "eslint",
121
+ "prettier",
117
122
  "eslint-config-prettier",
118
123
  "eslint-plugin-prettier",
119
- "prettier",
120
124
  "@typescript-eslint/eslint-plugin",
121
125
  "@typescript-eslint/parser",
122
126
  "typescript",
123
127
  "rimraf",
128
+ "@swc/cli",
129
+ "@swc/core",
130
+ "@swc/helpers",
124
131
  "jest",
125
132
  "coveralls",
133
+ "@swc/jest",
126
134
  "jsdoc-to-markdown",
127
135
  "jsarch"
128
136
  ]
@@ -175,11 +183,8 @@
175
183
  ],
176
184
  "transform": {
177
185
  "^.+\\.tsx?$": [
178
- "esbuild-jest",
179
- {
180
- "sourcemap": true,
181
- "format": "esm"
182
- }
186
+ "@swc/jest",
187
+ {}
183
188
  ]
184
189
  },
185
190
  "testEnvironment": "node",
@@ -188,7 +193,8 @@
188
193
  },
189
194
  "extensionsToTreatAsEsm": [
190
195
  ".ts"
191
- ]
196
+ ],
197
+ "prettierPath": null
192
198
  },
193
199
  "jsarch": {
194
200
  "parserOptions": {