document-drive 1.10.1 → 1.11.1

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 +14 -16
  2. package/src/utils/index.ts +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-drive",
3
- "version": "1.10.1",
3
+ "version": "1.11.1",
4
4
  "license": "AGPL-3.0-only",
5
5
  "type": "module",
6
6
  "module": "./src/index.ts",
@@ -32,9 +32,8 @@
32
32
  "json-stringify-deterministic": "^1.0.12",
33
33
  "nanoevents": "^9.0.0",
34
34
  "sanitize-filename": "^1.6.3",
35
- "uuid": "^9.0.1",
36
- "document-model": "2.12.0",
37
- "document-model-libs": "1.121.2",
35
+ "document-model": "2.13.0",
36
+ "document-model-libs": "1.122.1",
38
37
  "@powerhousedao/scalars": "1.13.0"
39
38
  },
40
39
  "optionalDependencies": {
@@ -50,24 +49,23 @@
50
49
  "@prisma/client": "5.17.0",
51
50
  "@types/node": "^20.14.11",
52
51
  "@types/uuid": "^9.0.8",
53
- "fake-indexeddb": "^5.0.2",
54
- "localforage": "^1.10.0",
55
- "msw": "^2.3.1",
56
- "prisma": "^5.18.0",
57
- "sequelize": "^6.37.2",
58
- "sqlite3": "^5.1.7",
59
- "webdriverio": "^9.0.9",
60
- "vitest-fetch-mock": "^0.3.0",
61
52
  "change-case": "^5.4.4",
62
53
  "exponential-backoff": "^3.1.1",
54
+ "fake-indexeddb": "^5.0.2",
63
55
  "graphql": "^16.9.0",
64
56
  "graphql-request": "^6.1.0",
65
57
  "json-stringify-deterministic": "^1.0.12",
58
+ "localforage": "^1.10.0",
59
+ "msw": "^2.3.1",
66
60
  "nanoevents": "^9.0.0",
61
+ "prisma": "^5.18.0",
67
62
  "sanitize-filename": "^1.6.3",
68
- "uuid": "^9.0.1",
69
- "document-model": "2.12.0",
70
- "document-model-libs": "1.121.2"
63
+ "sequelize": "^6.37.2",
64
+ "sqlite3": "^5.1.7",
65
+ "vitest-fetch-mock": "^0.3.0",
66
+ "webdriverio": "^9.0.9",
67
+ "document-model": "2.13.0",
68
+ "document-model-libs": "1.122.1"
71
69
  },
72
70
  "scripts": {
73
71
  "check-types": "tsc --build",
@@ -79,6 +77,6 @@
79
77
  "test:watch": "vitest watch",
80
78
  "clean": "rimraf dist",
81
79
  "clean:node_modules": "rimraf node_modules",
82
- "postinstall": "prisma generate"
80
+ "postinstall": "prisma generate --schema ./prisma/schema.prisma"
83
81
  }
84
82
  }
@@ -10,8 +10,7 @@ import {
10
10
  Operation,
11
11
  OperationScope,
12
12
  } from "document-model/document";
13
- // import setAsap from 'setasap';
14
- import { v4 as uuidv4 } from "uuid";
13
+ import { generateId } from "document-model/utils";
15
14
  import { OperationError } from "../server/error";
16
15
  import { DocumentDriveStorage, DocumentStorage } from "../storage";
17
16
  import { RunAsap } from "./run-asap";
@@ -64,7 +63,7 @@ export function mergeOperations<A extends Action = Action>(
64
63
  }
65
64
 
66
65
  export function generateUUID(): string {
67
- return uuidv4();
66
+ return generateId();
68
67
  }
69
68
 
70
69
  export function isNoopUpdate(