@warlock.js/notifications 4.4.0 → 4.6.0
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/CHANGELOG.md +5 -5
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -8,11 +8,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
|
8
8
|
|
|
9
9
|
### Changed
|
|
10
10
|
|
|
11
|
-
- In-app column mapping moved onto the model as `static columnMap` (`recipient` / `tenant` / `readAt` / `isRead`); accessors,
|
|
12
|
-
- Read-state is presence-based
|
|
13
|
-
- Multi-tenant support
|
|
14
|
-
- `inApp.list` / `inApp.listUnread` now forward full list options (`page` / `limit` / `orderBy` + filters)
|
|
15
|
-
- `notificationColumns(model)` derives
|
|
11
|
+
- In-app column mapping moved onto the model as `static columnMap` (`recipient` / `tenant` / `readAt` / `isRead`); accessors, repository, and channels all derive from it. New `NotificationColumnMap` type.
|
|
12
|
+
- Read-state is presence-based — declaring `readAt`, `isRead`, or both selects the representation (default `read_at`); the mode-agnostic `unread` filter replaces `isRead`.
|
|
13
|
+
- Multi-tenant support — when the model declares a `tenant` column, the `database` channel reads it off the recipient and `createFor(...)` writes it.
|
|
14
|
+
- `inApp.list` / `inApp.listUnread` now forward full list options (`page` / `limit` / `orderBy` + filters).
|
|
15
|
+
- `notificationColumns(model)` derives its columns from `columnMap`; the SQL-vs-MongoDB `dataSource` branch is removed.
|
|
16
16
|
|
|
17
17
|
## 4.2.0
|
|
18
18
|
|
package/package.json
CHANGED
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"url": "https://github.com/warlockjs/notifications"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@warlock.js/cache": "4.
|
|
20
|
-
"@warlock.js/cascade": "4.
|
|
21
|
-
"@warlock.js/core": "4.
|
|
22
|
-
"@warlock.js/logger": "4.
|
|
19
|
+
"@warlock.js/cache": "4.6.0",
|
|
20
|
+
"@warlock.js/cascade": "4.6.0",
|
|
21
|
+
"@warlock.js/core": "4.6.0",
|
|
22
|
+
"@warlock.js/logger": "4.6.0"
|
|
23
23
|
},
|
|
24
|
-
"version": "4.
|
|
24
|
+
"version": "4.6.0",
|
|
25
25
|
"main": "./cjs/index.cjs",
|
|
26
26
|
"module": "./esm/index.mjs",
|
|
27
27
|
"types": "./esm/index.d.mts",
|