@warlock.js/notifications 4.3.0 → 4.5.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +5 -7
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -4,17 +4,15 @@ All notable changes to `@warlock.js/notifications` are documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). `@warlock.js/*` packages are released in lockstep — every package shares the same version number, so a version below may list only the changes that affected this package.
6
6
 
7
- ## [Unreleased]
8
-
9
7
  ## 4.2.11
10
8
 
11
9
  ### Changed
12
10
 
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.
16
- - `inApp.list` / `inApp.listUnread` now forward full list options (`page` / `limit` / `orderBy` + filters), not just filter keys.
17
- - `notificationColumns(model)` derives recipient / tenant / read-state columns from `columnMap`; the SQL-vs-MongoDB `dataSource` branch is removed.
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.
18
16
 
19
17
  ## 4.2.0
20
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.3.0",
20
- "@warlock.js/cascade": "4.3.0",
21
- "@warlock.js/core": "4.3.0",
22
- "@warlock.js/logger": "4.3.0"
19
+ "@warlock.js/cache": "4.5.0",
20
+ "@warlock.js/cascade": "4.5.0",
21
+ "@warlock.js/core": "4.5.0",
22
+ "@warlock.js/logger": "4.5.0"
23
23
  },
24
- "version": "4.3.0",
24
+ "version": "4.5.0",
25
25
  "main": "./cjs/index.cjs",
26
26
  "module": "./esm/index.mjs",
27
27
  "types": "./esm/index.d.mts",