@data-weave/datamanager 0.4.0 → 0.4.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/CHANGELOG.md +4 -0
- package/lib/DataManager.ts +2 -8
- package/lib/version.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.4.1](https://github.com/data-weave/datamanager/compare/v0.4.0...v0.4.1) (2025-10-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @data-weave/datamanager
|
|
9
|
+
|
|
6
10
|
## [0.4.0](https://github.com/data-weave/datamanager/compare/v0.3.8...v0.4.0) (2025-10-15)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @data-weave/datamanager
|
package/lib/DataManager.ts
CHANGED
|
@@ -30,14 +30,8 @@ export interface Metadata {
|
|
|
30
30
|
readonly deleted: boolean
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
36
|
-
[field: string]: any
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export type WithMetadata<T extends DocumentData> = T & Metadata
|
|
40
|
-
export abstract class DataManager<T extends DocumentData> {
|
|
33
|
+
export type WithMetadata<T> = T & Metadata
|
|
34
|
+
export abstract class DataManager<T> {
|
|
41
35
|
public abstract read(id: string): Promise<T | undefined>
|
|
42
36
|
public abstract create(data: WithoutId<T>, options?: CreateOptions): Promise<IdentifiableReference<WithMetadata<T>>>
|
|
43
37
|
public abstract delete(id: string): Promise<void>
|
package/lib/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
module.exports = '0.4.
|
|
2
|
+
module.exports = '0.4.1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@data-weave/datamanager",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"author": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"access": "public",
|
|
18
18
|
"registry": "https://registry.npmjs.org/"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "b8faf5f44694259ca8d2b2abfcde699328b03879"
|
|
21
21
|
}
|