forest-express-sequelize 8.5.1 → 8.5.4
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 +16 -0
- package/package.json +3 -3
- package/types/index.d.ts +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [8.5.4](https://github.com/ForestAdmin/forest-express-sequelize/compare/v8.5.3...v8.5.4) (2022-04-19)
|
|
2
|
+
|
|
3
|
+
## [8.5.3](https://github.com/ForestAdmin/forest-express-sequelize/compare/v8.5.2...v8.5.3) (2022-03-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* prevent deactivate count middleware to throw ([#924](https://github.com/ForestAdmin/forest-express-sequelize/issues/924)) ([9e4cc38](https://github.com/ForestAdmin/forest-express-sequelize/commit/9e4cc38e4962d2a58deefae4df59b9182e0a4795))
|
|
9
|
+
|
|
10
|
+
## [8.5.2](https://github.com/ForestAdmin/forest-express-sequelize/compare/v8.5.1...v8.5.2) (2022-03-08)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **types:** serializers now take optional meta as second argument ([#922](https://github.com/ForestAdmin/forest-express-sequelize/issues/922)) ([f8c50cf](https://github.com/ForestAdmin/forest-express-sequelize/commit/f8c50cfac224a147015116fe093121b24ce38e1f))
|
|
16
|
+
|
|
1
17
|
## [8.5.1](https://github.com/ForestAdmin/forest-express-sequelize/compare/v8.5.0...v8.5.1) (2022-03-02)
|
|
2
18
|
|
|
3
19
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "forest-express-sequelize",
|
|
3
3
|
"description": "Official Express/Sequelize Liana for Forest",
|
|
4
|
-
"version": "8.5.
|
|
4
|
+
"version": "8.5.4",
|
|
5
5
|
"author": "Sandro Munda <sandro@munda.me>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Arnaud Besnier <arnaudibesnier@gmail.com>",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"@babel/runtime": "7.15.4",
|
|
29
29
|
"bluebird": "2.9.25",
|
|
30
30
|
"core-js": "3.6.5",
|
|
31
|
-
"forest-express": "9.4.
|
|
31
|
+
"forest-express": "9.4.3",
|
|
32
32
|
"http-errors": "1.6.1",
|
|
33
33
|
"lodash": "4.17.21",
|
|
34
|
-
"moment": "2.
|
|
34
|
+
"moment": "2.29.2",
|
|
35
35
|
"semver": "5.4.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
package/types/index.d.ts
CHANGED
|
@@ -103,9 +103,14 @@ interface RecordsSerialized {
|
|
|
103
103
|
included: Record<string, unknown>[],
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
interface Meta {
|
|
107
|
+
count: number,
|
|
108
|
+
[k: string]: any,
|
|
109
|
+
}
|
|
110
|
+
|
|
106
111
|
export class AbstractRecordTool<M extends Sequelize.Model> {
|
|
107
112
|
constructor(model: Sequelize.ModelCtor<M>, user: User, query: Query)
|
|
108
|
-
serialize(records: M | M[]): Promise<RecordsSerialized>;
|
|
113
|
+
serialize(records: M | M[], meta?: Meta): Promise<RecordsSerialized>;
|
|
109
114
|
}
|
|
110
115
|
|
|
111
116
|
export class RecordGetter<M extends Sequelize.Model> extends AbstractRecordTool<M> {
|
|
@@ -145,7 +150,7 @@ export class RecordsRemover<M extends Sequelize.Model> extends AbstractRecordToo
|
|
|
145
150
|
|
|
146
151
|
export class RecordSerializer {
|
|
147
152
|
constructor(model: { name: string } | Sequelize.ModelCtor<any>, user?: User, query?: Query);
|
|
148
|
-
serialize(records: Record<string, any> | Record<string, any>[], meta
|
|
153
|
+
serialize(records: Record<string, any> | Record<string, any>[], meta?: Meta): Promise<RecordsSerialized>;
|
|
149
154
|
}
|
|
150
155
|
|
|
151
156
|
// Everything related to Forest permissions
|