@12-apps/notifications 4.1.0 → 4.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.
package/package.json CHANGED
@@ -1,17 +1,33 @@
1
1
  {
2
2
  "name": "@12-apps/notifications",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "type": "module",
5
5
  "description": "Plug-and-play notification system (12-15): an always-on in-app inbox, per-user × per-category channel preferences, and email / SMS / WhatsApp / web-push transports behind vendor DRIVERS so a second provider is a config entry. Framework-free core (.), host-mounted backend surface (./server: inbox / preferences / push-subscription endpoints, the channel router with delivery records + retry sweep, the permission fan-out, duck-typed Prisma seam), Hono adapter (./hono), React surface (./react: bell + badge, inbox drawer, preferences screen), VAPID sender (./web-push) and the package-owned Prisma partial + migrations. Standardized adoption contract in ADOPTING.md.",
6
6
  "exports": {
7
- ".": "./src/index.ts",
8
- "./server": "./src/server/index.ts",
9
- "./hono": "./src/hono/index.ts",
10
- "./react": "./src/react/index.ts",
11
- "./web-push": "./src/web-push/index.ts",
7
+ ".": {
8
+ "types": "./dist/index.d.ts",
9
+ "default": "./dist/index.js"
10
+ },
11
+ "./server": {
12
+ "types": "./dist/server/index.d.ts",
13
+ "default": "./dist/server/index.js"
14
+ },
15
+ "./hono": {
16
+ "types": "./dist/hono/index.d.ts",
17
+ "default": "./dist/hono/index.js"
18
+ },
19
+ "./react": {
20
+ "types": "./dist/react/index.d.ts",
21
+ "default": "./dist/react/index.js"
22
+ },
23
+ "./web-push": {
24
+ "types": "./dist/web-push/index.d.ts",
25
+ "default": "./dist/web-push/index.js"
26
+ },
12
27
  "./package.json": "./package.json"
13
28
  },
14
29
  "scripts": {
30
+ "build": "rm -rf dist && tsup",
15
31
  "clean": "rm -rf node_modules coverage",
16
32
  "test": "node ../../scripts/vitest-with-teardown.mjs run",
17
33
  "test:watch": "vitest watch",
@@ -22,7 +38,7 @@
22
38
  "prisma:sync:check": "node scripts/sync-notifications-schema.mjs --check"
23
39
  },
24
40
  "dependencies": {
25
- "@12-apps/ui": "^5.0.0"
41
+ "@12-apps/ui": "^5.0.1"
26
42
  },
27
43
  "peerDependencies": {
28
44
  "hono": ">=4.0.0",
@@ -57,6 +73,7 @@
57
73
  "jsdom": "^25.0.1",
58
74
  "react": "^19.2.0",
59
75
  "react-dom": "^19.2.0",
76
+ "tsup": "^8.0.0",
60
77
  "typescript": "^5.9.2",
61
78
  "vitest": "^3.2.4",
62
79
  "web-push": "^3.6.7"
@@ -83,6 +100,7 @@
83
100
  "*.mjs",
84
101
  "*.md",
85
102
  "!eslint.config.js",
103
+ "!tsup.config.ts",
86
104
  "!**/__tests__/**",
87
105
  "!**/tests/**",
88
106
  "!**/*.test.*",
@@ -24,7 +24,7 @@
24
24
  --
25
25
  -- ============================ REPLAY SAFETY ================================
26
26
  -- Every statement is guarded, because the first adopters ALREADY HAVE these
27
- -- tables: the origin host created them by hand before the package existed, so this
27
+ -- tables: future-pay created them by hand before the package existed, so this
28
28
  -- migration must be a no-op there and correct on an empty database.
29
29
  --
30
30
  -- The guards are per COLUMN, not per table. `CREATE TABLE IF NOT EXISTS` alone