deepbase-redis 3.6.6 → 3.6.8

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/test/test.js +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepbase-redis",
3
- "version": "3.6.6",
3
+ "version": "3.6.8",
4
4
  "description": "⚡ DeepBase Redis (vanilla) - driver",
5
5
  "type": "module",
6
6
  "main": "src/index.cjs",
@@ -17,7 +17,7 @@
17
17
  "redis": "^4.7.0"
18
18
  },
19
19
  "peerDependencies": {
20
- "deepbase": "^3.6.6"
20
+ "deepbase": "^3.6.8"
21
21
  },
22
22
  "scripts": {
23
23
  "test": "mocha test/test.js"
package/test/test.js CHANGED
@@ -192,6 +192,16 @@ describe('RedisDriver', function() {
192
192
  assert.strictEqual(user.age, undefined);
193
193
  });
194
194
 
195
+ it('should delete a deep key from an object value', async function() {
196
+ await db.set('a', {
197
+ b: { c: 1, d: 2 },
198
+ e: 3
199
+ });
200
+ await db.del('a', 'b', 'c');
201
+
202
+ assert.deepStrictEqual(await db.get('a'), { b: { d: 2 }, e: 3 });
203
+ });
204
+
195
205
  it('should clear all data', async function() {
196
206
  await db.set('key1', 'value1');
197
207
  await db.set('key2', 'value2');