@webiny/data-migration 5.40.5 → 5.41.0-dbt.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.
- package/MigrationRunner.d.ts +1 -1
- package/createPinoLogger.d.ts +20 -20
- package/package.json +11 -11
- package/types.d.ts +2 -2
package/MigrationRunner.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Logger } from "@webiny/logger";
|
|
2
2
|
import { MigrationRepository, DataMigration, ExecutionTimeLimiter, MigrationStatus } from "./types";
|
|
3
|
-
export
|
|
3
|
+
export type IsMigrationApplicable = (migration: DataMigration) => boolean;
|
|
4
4
|
export declare class MigrationRunner {
|
|
5
5
|
private readonly logger;
|
|
6
6
|
private readonly migrations;
|
package/createPinoLogger.d.ts
CHANGED
|
@@ -4,23 +4,10 @@ export declare const createPinoLogger: () => Logger<{
|
|
|
4
4
|
level: string;
|
|
5
5
|
redact?: string[] | import("@webiny/logger").RedactOptions | undefined;
|
|
6
6
|
transport?: import("pino").default.TransportSingleOptions<Record<string, any>> | import("pino").default.TransportMultiOptions<Record<string, any>> | import("pino").default.TransportPipelineOptions<Record<string, any>> | undefined;
|
|
7
|
-
safe?: boolean | undefined;
|
|
8
7
|
name?: string | undefined;
|
|
9
|
-
|
|
10
|
-
[key: string]:
|
|
11
|
-
} | undefined;
|
|
12
|
-
timestamp?: boolean | (() => string) | undefined;
|
|
13
|
-
customLevels?: {
|
|
14
|
-
[key: string]: number;
|
|
15
|
-
} | undefined;
|
|
16
|
-
useOnlyCustomLevels?: boolean | undefined;
|
|
17
|
-
mixin?: ((mergeObject: object, level: number) => object) | undefined;
|
|
18
|
-
mixinMergeStrategy?: ((mergeObject: object, mixinObject: object) => object) | undefined;
|
|
19
|
-
levelVal?: number | undefined;
|
|
20
|
-
messageKey?: string | undefined;
|
|
21
|
-
errorKey?: string | undefined;
|
|
22
|
-
nestedKey?: string | undefined;
|
|
23
|
-
enabled?: boolean | undefined;
|
|
8
|
+
base?: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
} | null | undefined;
|
|
24
11
|
browser?: {
|
|
25
12
|
asObject?: boolean | undefined;
|
|
26
13
|
write?: import("pino").default.WriteFn | ({
|
|
@@ -39,9 +26,23 @@ export declare const createPinoLogger: () => Logger<{
|
|
|
39
26
|
send: (level: import("pino").default.Level, logEvent: import("pino").default.LogEvent) => void;
|
|
40
27
|
} | undefined;
|
|
41
28
|
} | undefined;
|
|
42
|
-
|
|
43
|
-
[key: string]:
|
|
44
|
-
} |
|
|
29
|
+
customLevels?: {
|
|
30
|
+
[key: string]: number;
|
|
31
|
+
} | undefined;
|
|
32
|
+
useOnlyCustomLevels?: boolean | undefined;
|
|
33
|
+
levelVal?: number | undefined;
|
|
34
|
+
onChild?: (<ChildOptions extends import("pino").default.ChildLoggerOptions>(child: import("pino").default.Logger<import("pino").LoggerOptions & ChildOptions>) => void) | undefined;
|
|
35
|
+
safe?: boolean | undefined;
|
|
36
|
+
serializers?: {
|
|
37
|
+
[key: string]: import("pino").default.SerializerFn;
|
|
38
|
+
} | undefined;
|
|
39
|
+
timestamp?: boolean | (() => string) | undefined;
|
|
40
|
+
mixin?: ((mergeObject: object, level: number) => object) | undefined;
|
|
41
|
+
mixinMergeStrategy?: ((mergeObject: object, mixinObject: object) => object) | undefined;
|
|
42
|
+
messageKey?: string | undefined;
|
|
43
|
+
errorKey?: string | undefined;
|
|
44
|
+
nestedKey?: string | undefined;
|
|
45
|
+
enabled?: boolean | undefined;
|
|
45
46
|
formatters?: {
|
|
46
47
|
level?: ((label: string, number: number) => object) | undefined;
|
|
47
48
|
bindings?: ((bindings: import("pino").default.Bindings) => object) | undefined;
|
|
@@ -53,7 +54,6 @@ export declare const createPinoLogger: () => Logger<{
|
|
|
53
54
|
} | undefined;
|
|
54
55
|
depthLimit?: number | undefined;
|
|
55
56
|
edgeLimit?: number | undefined;
|
|
56
|
-
onChild?: (<ChildOptions extends import("pino").default.ChildLoggerOptions>(child: import("pino").default.Logger<import("pino").LoggerOptions & ChildOptions>) => void) | undefined;
|
|
57
57
|
}>;
|
|
58
58
|
export declare const getChildLogger: (logger: Logger, migration: DataMigration) => import("pino").default.Logger<import("pino").LoggerOptions & {
|
|
59
59
|
msgPrefix: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/data-migration",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.41.0-dbt.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "types.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"@babel/runtime": "7.24.1",
|
|
15
15
|
"@elastic/elasticsearch": "7.12.0",
|
|
16
16
|
"@types/pino": "7.0.5",
|
|
17
|
-
"@webiny/aws-sdk": "5.
|
|
18
|
-
"@webiny/db-dynamodb": "5.
|
|
19
|
-
"@webiny/handler-aws": "5.
|
|
20
|
-
"@webiny/ioc": "5.
|
|
21
|
-
"@webiny/logger": "5.
|
|
22
|
-
"@webiny/utils": "5.
|
|
17
|
+
"@webiny/aws-sdk": "5.41.0-dbt.0",
|
|
18
|
+
"@webiny/db-dynamodb": "5.41.0-dbt.0",
|
|
19
|
+
"@webiny/handler-aws": "5.41.0-dbt.0",
|
|
20
|
+
"@webiny/ioc": "5.41.0-dbt.0",
|
|
21
|
+
"@webiny/logger": "5.41.0-dbt.0",
|
|
22
|
+
"@webiny/utils": "5.41.0-dbt.0",
|
|
23
23
|
"center-align": "1.0.1",
|
|
24
24
|
"chalk": "4.1.2",
|
|
25
25
|
"minimatch": "5.1.6",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"@babel/preset-env": "7.24.3",
|
|
33
33
|
"@types/center-align": "1.0.0",
|
|
34
34
|
"@types/semver": "7.3.13",
|
|
35
|
-
"@webiny/cli": "5.
|
|
36
|
-
"@webiny/project-utils": "5.
|
|
35
|
+
"@webiny/cli": "5.41.0-dbt.0",
|
|
36
|
+
"@webiny/project-utils": "5.41.0-dbt.0",
|
|
37
37
|
"jest": "29.7.0",
|
|
38
38
|
"jest-dynalite": "3.6.1",
|
|
39
39
|
"jest-mock-console": "1.3.0",
|
|
40
40
|
"rimraf": "5.0.5",
|
|
41
|
-
"typescript": "4.
|
|
41
|
+
"typescript": "4.9.5"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
]
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "bbaec4dd1685579548c08bbde386aee5d96b80f8"
|
|
59
59
|
}
|
package/types.d.ts
CHANGED
|
@@ -57,14 +57,14 @@ export interface DataMigration<TCheckpoint = any> {
|
|
|
57
57
|
/**
|
|
58
58
|
* Migration execution time limiter (in milliseconds).
|
|
59
59
|
*/
|
|
60
|
-
export
|
|
60
|
+
export type ExecutionTimeLimiter = () => number;
|
|
61
61
|
export interface MigrationEventPayload {
|
|
62
62
|
command: "status" | "execute";
|
|
63
63
|
version?: string;
|
|
64
64
|
pattern?: string;
|
|
65
65
|
force?: boolean;
|
|
66
66
|
}
|
|
67
|
-
export
|
|
67
|
+
export type MigrationEventHandlerResponse = undefined | MigrationStatusResponse | MigrationInvocationErrorResponse;
|
|
68
68
|
export interface MigrationInvocationErrorResponse {
|
|
69
69
|
error: {
|
|
70
70
|
message: string;
|