@unchainedshop/core-bookmarks 1.2.17 → 1.2.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unchainedshop/core-bookmarks",
3
- "version": "1.2.17",
3
+ "version": "1.2.21",
4
4
  "main": "lib/bookmarks-index.js",
5
5
  "exports": {
6
6
  ".": "./lib/bookmarks-index.js",
@@ -30,15 +30,15 @@
30
30
  },
31
31
  "homepage": "https://github.com/unchainedshop/unchained#readme",
32
32
  "dependencies": {
33
- "@unchainedshop/events": "^1.2.17",
34
- "@unchainedshop/utils": "^1.2.17",
33
+ "@unchainedshop/events": "^1.2.21",
34
+ "@unchainedshop/utils": "^1.2.21",
35
35
  "simpl-schema": "^1.12.3"
36
36
  },
37
37
  "devDependencies": {
38
- "@types/node": "^16.11.49",
39
- "@unchainedshop/types": "^1.2.17",
40
- "jest": "^28.1.3",
38
+ "@types/node": "^16.11.57",
39
+ "@unchainedshop/types": "^1.2.21",
40
+ "jest": "^29.0.2",
41
41
  "ts-jest": "^28.0.8",
42
- "typescript": "^4.7.4"
42
+ "typescript": "^4.8.2"
43
43
  }
44
44
  }
@@ -43,28 +43,4 @@ describe('Test exports', () => {
43
43
  const deletedCount = await module.delete(bookmarkId);
44
44
  assert.equal(deletedCount, 1);
45
45
  });
46
-
47
- it('Check backwards compatibility', async () => {
48
- const Bookmarks = new Mongo.Collection<any>('bookmarks');
49
-
50
- const meteorBookmarkId = Bookmarks.insertOne({
51
- userId: 'Legacy-Test-User-1',
52
- productId: 'Legacy-Product-22',
53
- created: new Date(),
54
- });
55
-
56
- assert.ok(meteorBookmarkId);
57
- const bookmark = await module.findById(meteorBookmarkId);
58
- assert.ok(bookmark);
59
- assert.equal(bookmark._id, meteorBookmarkId);
60
- assert.equal(bookmark.userId, 'Legacy-Test-User-1');
61
- assert.equal(bookmark.productId, 'Legacy-Product-22');
62
- assert.isDefined(bookmark.created);
63
- assert.isUndefined(bookmark.updated);
64
- assert.isUndefined(bookmark.updatedBy);
65
- assert.isUndefined(bookmark.createdBy);
66
-
67
- const deletedCount = await module.delete(meteorBookmarkId);
68
- assert.equal(deletedCount, 1);
69
- });
70
46
  });