@adonis-agora/collaboration-client 0.8.0 → 0.8.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.
@@ -29,9 +29,9 @@ export declare const PRE_ISSUED_TOKEN_MIN_TTL_MS = 5000;
29
29
  * would mean trusting a token this function can see is dead.
30
30
  *
31
31
  * `undefined` stays a legitimate answer for a token from some other issuer
32
- * that reports no expiry and is not a readable JWT. It used to be the normal
33
- * case: the self-hosted format was an unsigned base64 blob with no expiry at
34
- * all, which is exactly why it stopped being a format.
32
+ * that reports no expiry and is not a readable JWT. Nothing this package
33
+ * issues lands there: both the edge and the self-hosted engines return
34
+ * `expiresAt` alongside a signed JWT that carries its own `exp`.
35
35
  */
36
36
  export declare function preIssuedTokenExpiry(info: CollabTokenInfo): number | undefined;
37
37
  /**
@@ -28,9 +28,9 @@ export const PRE_ISSUED_TOKEN_MIN_TTL_MS = 5_000;
28
28
  * would mean trusting a token this function can see is dead.
29
29
  *
30
30
  * `undefined` stays a legitimate answer for a token from some other issuer
31
- * that reports no expiry and is not a readable JWT. It used to be the normal
32
- * case: the self-hosted format was an unsigned base64 blob with no expiry at
33
- * all, which is exactly why it stopped being a format.
31
+ * that reports no expiry and is not a readable JWT. Nothing this package
32
+ * issues lands there: both the edge and the self-hosted engines return
33
+ * `expiresAt` alongside a signed JWT that carries its own `exp`.
34
34
  */
35
35
  export function preIssuedTokenExpiry(info) {
36
36
  if (typeof info.expiresAt === 'number' && Number.isFinite(info.expiresAt)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonis-agora/collaboration-client",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Client-side React hooks for @adonis-agora/collaboration — collaborative docs, presence, comments and versions. Part of the Agora ecosystem.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -8,6 +8,19 @@
8
8
  "url": "git+https://github.com/DavideCarvalho/adonis-agora-collaboration.git",
9
9
  "directory": "packages/client"
10
10
  },
11
+ "homepage": "https://davidecarvalho.github.io/agora/docs/collaboration",
12
+ "bugs": {
13
+ "url": "https://github.com/DavideCarvalho/adonis-agora-collaboration/issues"
14
+ },
15
+ "keywords": [
16
+ "adonisjs",
17
+ "crdt",
18
+ "yjs",
19
+ "collaboration",
20
+ "realtime",
21
+ "react-hooks",
22
+ "agora"
23
+ ],
11
24
  "author": "Davi Carvalho <davi@goflip.ai>",
12
25
  "type": "module",
13
26
  "main": "./dist/src/index.js",
@@ -25,12 +38,12 @@
25
38
  ],
26
39
  "sideEffects": false,
27
40
  "dependencies": {
28
- "@automerge/automerge": "^3.4.1",
29
- "@hocuspocus/provider": "^4.6.0",
30
- "y-partykit": "^0.0.33",
31
- "y-partyserver": "^2.2.0",
32
- "y-protocols": "^1.0.7",
33
- "yjs": "^13.6.32"
41
+ "@automerge/automerge": "3.4.1",
42
+ "@hocuspocus/provider": "4.7.0",
43
+ "y-partykit": "0.0.33",
44
+ "y-partyserver": "2.2.0",
45
+ "y-protocols": "1.0.7",
46
+ "yjs": "13.6.32"
34
47
  },
35
48
  "peerDependencies": {
36
49
  "react": "^18.0.0 || ^19.0.0",
@@ -45,30 +58,21 @@
45
58
  }
46
59
  },
47
60
  "devDependencies": {
48
- "@swc/core": "1.16.1",
61
+ "@swc/core": "1.16.2",
49
62
  "@testing-library/react": "16.3.3",
50
- "@types/node": "26.4.0",
51
- "@types/react": "19.2.18",
52
- "@types/react-dom": "19.2.5",
63
+ "@types/node": "26.5.1",
64
+ "@types/react": "19.3.0",
65
+ "@types/react-dom": "19.3.0",
53
66
  "jsdom": "30.0.1",
54
- "react": "19.2.8",
55
- "react-dom": "19.2.8",
67
+ "react": "19.3.0",
68
+ "react-dom": "19.3.0",
56
69
  "typescript": "7.0.2",
57
- "unplugin-swc": "1.5.11",
58
- "vitest": "4.1.11"
70
+ "unplugin-swc": "1.6.0",
71
+ "vitest": "5.0.0"
59
72
  },
60
73
  "engines": {
61
74
  "node": ">=20.6.0"
62
75
  },
63
- "keywords": [
64
- "adonisjs",
65
- "crdt",
66
- "yjs",
67
- "collaboration",
68
- "realtime",
69
- "react-hooks",
70
- "agora"
71
- ],
72
76
  "scripts": {
73
77
  "build": "pnpm run clean && tsc -p tsconfig.build.json",
74
78
  "check:dist": "node ../../scripts/assert-build-output.mjs dist src/index.js",