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