@converse/skeletor 4.0.0 → 4.0.2
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/CHANGES.md +19 -0
- package/dist/skeletor.d.ts +925 -953
- package/dist/skeletor.esm.js +79 -91
- package/dist/skeletor.esm.js.map +1 -1
- package/dist/skeletor.js +79 -91
- package/dist/skeletor.js.map +1 -1
- package/dist/skeletor.min.js +5 -5
- package/dist/skeletor.node.d.ts +950 -978
- package/dist/skeletor.node.js +79 -91
- package/dist/skeletor.node.mjs +79 -91
- package/package.json +9 -19
- package/src/collection.ts +35 -34
- package/src/model.ts +85 -52
- package/src/types.ts +5 -6
package/CHANGES.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.0.2 (2026-11-05)
|
|
4
|
+
|
|
5
|
+
- Subclasses of `Model` and `Collection` now type-check for consumers with `strict: true` and
|
|
6
|
+
`skipLibCheck: false`. (#67)
|
|
7
|
+
- A subclass that declares `computed` still satisfies `T extends Model` (TS2344).
|
|
8
|
+
- `Collection#model` and `Collection#comparator` are no longer accessors, so subclasses can
|
|
9
|
+
override them as instance properties (`model = Contact`) as well as accessors (TS2610).
|
|
10
|
+
- `model` accepts model classes whose constructors take required or narrower attributes and
|
|
11
|
+
options (TS2416).
|
|
12
|
+
- `EventHandlersMap` no longer conflicts with its own index signature (TS2411).
|
|
13
|
+
|
|
14
|
+
`Collection` still falls back to `Model` when `model` is unset. The protected `_model` and
|
|
15
|
+
`_comparator` fields are gone; use `model` and `comparator`.
|
|
16
|
+
|
|
17
|
+
## 4.0.1 (2026-10-27)
|
|
18
|
+
|
|
19
|
+
- The declarations for `Model` and `Collection` no longer contain `#private` members, so mixins
|
|
20
|
+
over them (`class extends Base`) type-check under TypeScript 6 (TS4094). No runtime change.
|
|
21
|
+
|
|
3
22
|
## 4.0.0 (2026-10-24)
|
|
4
23
|
|
|
5
24
|
- Attribute-object queries on a collection (`findWhere`, `where`, and `find`, `filter`, `some`,
|