@ddd-ts-kit/redis 0.86.0 → 0.87.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.fr.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [English](README.md) · **Français**
2
- <!-- translation-of: README.md sha256:fbafa42f4edca08b -->
2
+ <!-- translation-of: README.md sha256:07effe530968143e -->
3
3
 
4
4
  # @ddd-ts-kit/redis
5
5
 
@@ -1024,7 +1024,16 @@ Ce qui diffère entre les serveurs, pour ce qui concerne le bus d'événements,
1024
1024
  à environ 100 ms de plus sur Valkey.
1025
1025
 
1026
1026
  Testé contre Dragonfly v2.0.2, Valkey 9.1.2 et Redis 8.10.2 avec ioredis 6 : même suite, mêmes
1027
- résultats. La suite a besoin d'un serveur et elle est ignorée sans `DDD_TS_KIT_TEST_REDIS_URL` :
1027
+ résultats. Toutes les *specs* s'exécutent aussi sans serveur, dans le run unitaire : les
1028
+ adaptateurs atteignent, par ioredis et son transport TCP, un serveur Redis que le test démarre
1029
+ dans son propre processus sur un port libre (`test/support/server/`). Il parle RESP2 et RESP3 et
1030
+ répond à ce que les adaptateurs lui demandent comme le fait Dragonfly, d'après un enregistrement
1031
+ de la suite contre lui : chaînes avec leurs expirations, *hashes*, ensembles triés, *streams*
1032
+ avec leurs groupes de consommateurs et leurs lectures bloquantes, `MULTI` et `EXEC`, canaux, et
1033
+ les scripts d'`EVAL` sur Lua 5.1, la version qu'embarquent Redis et Valkey (`wasmoon-lua5.1`,
1034
+ avec le `cjson` de Redis), là où Dragonfly exécute Lua 5.4. Avec `DDD_TS_KIT_TEST_REDIS_URL`, les
1035
+ mêmes *specs* s'exécutent une seconde fois contre un vrai serveur, ce qui garde honnête celui en
1036
+ mémoire :
1028
1037
 
1029
1038
  ```
1030
1039
  docker run -d --rm --name ddd-ts-kit-test-redis -p 127.0.0.1:6390:6379 docker.dragonflydb.io/dragonflydb/dragonfly:v2.0.2
package/README.md CHANGED
@@ -985,7 +985,15 @@ What differs between the servers, as far as the event bus is concerned, and is a
985
985
  about 100 ms more on Valkey.
986
986
 
987
987
  Tested against Dragonfly v2.0.2, Valkey 9.1.2 and Redis 8.10.2 with ioredis 6, same suite,
988
- same results. The suite needs a server and is skipped without `DDD_TS_KIT_TEST_REDIS_URL`:
988
+ same results. Every spec also runs without a server, in the unit run: the adapters reach,
989
+ through ioredis and its TCP transport, a Redis server the test starts in its own process on a
990
+ free port (`test/support/server/`). It speaks RESP2 and RESP3 and answers what the adapters ask
991
+ as Dragonfly answers, from a recording of the suite against it: strings with their expiries,
992
+ hashes, sorted sets, streams with their consumer groups and blocking reads, `MULTI` and `EXEC`,
993
+ channels, and the scripts of `EVAL` on Lua 5.1, the version Redis and Valkey embed
994
+ (`wasmoon-lua5.1`, with the `cjson` of Redis), where Dragonfly runs Lua 5.4. With
995
+ `DDD_TS_KIT_TEST_REDIS_URL`, the same specs run a second time against a real server, which is
996
+ what keeps the in-memory one honest:
989
997
 
990
998
  ```
991
999
  docker run -d --rm --name ddd-ts-kit-test-redis -p 127.0.0.1:6390:6379 docker.dragonflydb.io/dragonflydb/dragonfly:v2.0.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddd-ts-kit/redis",
3
- "version": "0.86.0",
3
+ "version": "0.87.0",
4
4
  "description": "Adapters of the kernel ports on the Redis protocol (Redis, Dragonfly, Valkey): cache, distributed lock, rate limiter, relay wake-up signal, a background job store, and an integration event provider on Redis Streams.",
5
5
  "keywords": [
6
6
  "ddd",
@@ -48,12 +48,12 @@
48
48
  "dist"
49
49
  ],
50
50
  "dependencies": {
51
- "@ddd-ts-kit/kernel": "0.86.0",
52
- "@ddd-ts-kit/scheduling": "0.86.0"
51
+ "@ddd-ts-kit/kernel": "0.87.0",
52
+ "@ddd-ts-kit/scheduling": "0.87.0"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "ioredis": "^5.0.0 || ^6.0.0",
56
- "@ddd-ts-kit/testing": "0.86.0"
56
+ "@ddd-ts-kit/testing": "0.87.0"
57
57
  },
58
58
  "peerDependenciesMeta": {
59
59
  "@ddd-ts-kit/testing": {
@@ -62,7 +62,8 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "ioredis": "^6.0.0",
65
- "@ddd-ts-kit/events": "0.86.0",
66
- "@ddd-ts-kit/testing": "0.86.0"
65
+ "@ddd-ts-kit/events": "0.87.0",
66
+ "@ddd-ts-kit/testing": "0.87.0",
67
+ "wasmoon-lua5.1": "1.18.12"
67
68
  }
68
69
  }