@commonpub/server 2.1.0 → 2.1.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 (1) hide show
  1. package/package.json +102 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commonpub/server",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "type": "module",
5
5
  "description": "Framework-agnostic business logic for CommonPub instances",
6
6
  "license": "AGPL-3.0-or-later",
@@ -9,49 +9,104 @@
9
9
  "url": "https://github.com/commonpub/commonpub",
10
10
  "directory": "packages/server"
11
11
  },
12
- "keywords": ["commonpub", "activitypub", "federation", "typescript", "server", "business-logic"],
13
- "publishConfig": { "access": "public" },
14
- "engines": { "node": ">=22" },
12
+ "keywords": [
13
+ "commonpub",
14
+ "activitypub",
15
+ "federation",
16
+ "typescript",
17
+ "server",
18
+ "business-logic"
19
+ ],
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "engines": {
24
+ "node": ">=22"
25
+ },
15
26
  "sideEffects": false,
16
27
  "main": "./dist/index.js",
17
28
  "types": "./dist/index.d.ts",
18
29
  "exports": {
19
- ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js" },
20
- "./types": { "types": "./dist/types.d.ts", "import": "./dist/types.js" },
21
- "./query": { "types": "./dist/query.d.ts", "import": "./dist/query.js" },
22
- "./content": { "types": "./dist/content/index.d.ts", "import": "./dist/content/index.js" },
23
- "./hub": { "types": "./dist/hub/index.d.ts", "import": "./dist/hub/index.js" },
24
- "./social": { "types": "./dist/social/index.d.ts", "import": "./dist/social/index.js" },
25
- "./learning": { "types": "./dist/learning/index.d.ts", "import": "./dist/learning/index.js" },
26
- "./docs": { "types": "./dist/docs/index.d.ts", "import": "./dist/docs/index.js" },
27
- "./product": { "types": "./dist/product/index.d.ts", "import": "./dist/product/index.js" },
28
- "./contest": { "types": "./dist/contest/index.d.ts", "import": "./dist/contest/index.js" },
29
- "./admin": { "types": "./dist/admin/index.d.ts", "import": "./dist/admin/index.js" },
30
- "./notification": { "types": "./dist/notification/index.d.ts", "import": "./dist/notification/index.js" },
31
- "./messaging": { "types": "./dist/messaging/index.d.ts", "import": "./dist/messaging/index.js" },
32
- "./video": { "types": "./dist/video/index.d.ts", "import": "./dist/video/index.js" },
33
- "./profile": { "types": "./dist/profile/index.d.ts", "import": "./dist/profile/index.js" },
34
- "./federation": { "types": "./dist/federation/index.d.ts", "import": "./dist/federation/index.js" }
35
- },
36
- "files": ["dist/", "!dist/__tests__/", "README.md", "LICENSE"],
37
- "scripts": {
38
- "build": "tsc",
39
- "dev": "tsc --watch",
40
- "test": "vitest run",
41
- "lint": "eslint src/",
42
- "typecheck": "tsc --noEmit",
43
- "clean": "rm -rf dist",
44
- "prepublishOnly": "pnpm run build"
30
+ ".": {
31
+ "types": "./dist/index.d.ts",
32
+ "import": "./dist/index.js"
33
+ },
34
+ "./types": {
35
+ "types": "./dist/types.d.ts",
36
+ "import": "./dist/types.js"
37
+ },
38
+ "./query": {
39
+ "types": "./dist/query.d.ts",
40
+ "import": "./dist/query.js"
41
+ },
42
+ "./content": {
43
+ "types": "./dist/content/index.d.ts",
44
+ "import": "./dist/content/index.js"
45
+ },
46
+ "./hub": {
47
+ "types": "./dist/hub/index.d.ts",
48
+ "import": "./dist/hub/index.js"
49
+ },
50
+ "./social": {
51
+ "types": "./dist/social/index.d.ts",
52
+ "import": "./dist/social/index.js"
53
+ },
54
+ "./learning": {
55
+ "types": "./dist/learning/index.d.ts",
56
+ "import": "./dist/learning/index.js"
57
+ },
58
+ "./docs": {
59
+ "types": "./dist/docs/index.d.ts",
60
+ "import": "./dist/docs/index.js"
61
+ },
62
+ "./product": {
63
+ "types": "./dist/product/index.d.ts",
64
+ "import": "./dist/product/index.js"
65
+ },
66
+ "./contest": {
67
+ "types": "./dist/contest/index.d.ts",
68
+ "import": "./dist/contest/index.js"
69
+ },
70
+ "./admin": {
71
+ "types": "./dist/admin/index.d.ts",
72
+ "import": "./dist/admin/index.js"
73
+ },
74
+ "./notification": {
75
+ "types": "./dist/notification/index.d.ts",
76
+ "import": "./dist/notification/index.js"
77
+ },
78
+ "./messaging": {
79
+ "types": "./dist/messaging/index.d.ts",
80
+ "import": "./dist/messaging/index.js"
81
+ },
82
+ "./video": {
83
+ "types": "./dist/video/index.d.ts",
84
+ "import": "./dist/video/index.js"
85
+ },
86
+ "./profile": {
87
+ "types": "./dist/profile/index.d.ts",
88
+ "import": "./dist/profile/index.js"
89
+ },
90
+ "./federation": {
91
+ "types": "./dist/federation/index.d.ts",
92
+ "import": "./dist/federation/index.js"
93
+ }
45
94
  },
95
+ "files": [
96
+ "dist/",
97
+ "!dist/__tests__/",
98
+ "README.md",
99
+ "LICENSE"
100
+ ],
46
101
  "dependencies": {
47
- "@commonpub/auth": "workspace:*",
48
- "@commonpub/config": "workspace:*",
49
- "@commonpub/docs": "workspace:*",
50
- "@commonpub/infra": "workspace:*",
51
- "@commonpub/learning": "workspace:*",
52
- "@commonpub/protocol": "workspace:*",
53
- "@commonpub/schema": "workspace:*",
54
- "isomorphic-dompurify": "^3.3.0"
102
+ "isomorphic-dompurify": "^3.3.0",
103
+ "@commonpub/auth": "0.5.0",
104
+ "@commonpub/config": "0.7.0",
105
+ "@commonpub/docs": "0.5.0",
106
+ "@commonpub/infra": "0.5.0",
107
+ "@commonpub/learning": "0.5.0",
108
+ "@commonpub/protocol": "0.9.0",
109
+ "@commonpub/schema": "0.8.0"
55
110
  },
56
111
  "peerDependencies": {
57
112
  "drizzle-orm": "^0.45.1"
@@ -62,5 +117,13 @@
62
117
  "drizzle-kit": "^0.31.10",
63
118
  "typescript": "^5.7.0",
64
119
  "vitest": "^3.0.0"
120
+ },
121
+ "scripts": {
122
+ "build": "tsc",
123
+ "dev": "tsc --watch",
124
+ "test": "vitest run",
125
+ "lint": "eslint src/",
126
+ "typecheck": "tsc --noEmit",
127
+ "clean": "rm -rf dist"
65
128
  }
66
- }
129
+ }