@nest-batch/core 0.2.2 → 0.2.3
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/README.md +5 -4
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +13 -5
- package/dist/src/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +3 -2
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ back. This is the model Spring Batch uses, and we keep it.
|
|
|
72
72
|
|
|
73
73
|
The reader, processor, and writer are plain Nest providers. You can
|
|
74
74
|
declare them with `@ItemReader`, `@ItemProcessor`, `@ItemWriter` (under
|
|
75
|
-
the `
|
|
75
|
+
the `Batch` namespace) or with method references on the job
|
|
76
76
|
class itself. Three reference kinds are accepted:
|
|
77
77
|
|
|
78
78
|
- `BuilderLambda` — a function value captured by the builder.
|
|
@@ -306,7 +306,7 @@ The barrel re-exports:
|
|
|
306
306
|
- `./execution` — `JobLauncher`, `JobExecutor`, `InProcessExecutionStrategy`, `IExecutionStrategy`, `EXECUTION_STRATEGY`, `ChunkStepExecutor`, `TaskletStepExecutor`, `ListenerInvoker`, `RefResolver`.
|
|
307
307
|
- `./transaction` — `TransactionManager` token and contract.
|
|
308
308
|
- `./repository` — `JobRepository` token, contract, in-memory reference, ID generators.
|
|
309
|
-
- `./decorators` — under the `
|
|
309
|
+
- `./decorators` — under the `Batch` namespace (`@Jobable`, `@ItemReader`, `@ItemProcessor`, `@ItemWriter`, `@Tasklet`, listener decorators).
|
|
310
310
|
- `./scheduling/batch-scheduled` — `@BatchScheduled` and its schedule option/error types are also re-exported directly from the package root.
|
|
311
311
|
- `./module` — `NestBatchModule`, tokens, options.
|
|
312
312
|
- `./builder` — fluent `BatchBuilder`, `JobBuilder`, `StepBuilder`, `FlowBuilder`.
|
|
@@ -318,8 +318,9 @@ The barrel re-exports:
|
|
|
318
318
|
|
|
319
319
|
Decorator names collide with interface names (e.g. `Tasklet` is both a
|
|
320
320
|
decorator and an interface). Decorators are re-exported under
|
|
321
|
-
`
|
|
322
|
-
`./core/item`.
|
|
321
|
+
`Batch`; interfaces are reachable as bare names from
|
|
322
|
+
`./core/item`. `BatchDecorators` remains available as a backward-compatible
|
|
323
|
+
alias. This is intentional.
|
|
323
324
|
|
|
324
325
|
---
|
|
325
326
|
|
package/dist/src/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './registry';
|
|
|
5
5
|
export * from './execution';
|
|
6
6
|
export * from './transaction';
|
|
7
7
|
export * from './repository';
|
|
8
|
+
export * as Batch from './decorators';
|
|
8
9
|
export * as BatchDecorators from './decorators';
|
|
9
10
|
export * from './module';
|
|
10
11
|
export * from './scheduling/batch-scheduled';
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAOA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,OAAO,KAAK,eAAe,MAAM,cAAc,CAAC;AAChD,cAAc,UAAU,CAAC;AACzB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAOA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,eAAe,MAAM,cAAc,CAAC;AAChD,cAAc,UAAU,CAAC;AACzB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,MAAM,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -3,15 +3,23 @@
|
|
|
3
3
|
// Decorator functions (ItemReader, ItemProcessor, ItemWriter, Tasklet) live in
|
|
4
4
|
// ./decorators and share names with interfaces in ./core/item. To avoid name
|
|
5
5
|
// collisions in the public surface, decorators are re-exported under the
|
|
6
|
-
// `
|
|
7
|
-
//
|
|
6
|
+
// `Batch` namespace; interfaces remain reachable as bare names from ./core/item
|
|
7
|
+
// (or via core/index). `BatchDecorators` remains as a compatibility alias.
|
|
8
8
|
"use strict";
|
|
9
9
|
Object.defineProperty(exports, "__esModule", {
|
|
10
10
|
value: true
|
|
11
11
|
});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
function _export(target, all) {
|
|
13
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
_export(exports, {
|
|
19
|
+
get Batch () {
|
|
20
|
+
return _decorators;
|
|
21
|
+
},
|
|
22
|
+
get BatchDecorators () {
|
|
15
23
|
return _decorators;
|
|
16
24
|
}
|
|
17
25
|
});
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Public API barrel for @nest-batch/core.\n//\n// Decorator functions (ItemReader, ItemProcessor, ItemWriter, Tasklet) live in\n// ./decorators and share names with interfaces in ./core/item. To avoid name\n// collisions in the public surface, decorators are re-exported under the\n// `
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Public API barrel for @nest-batch/core.\n//\n// Decorator functions (ItemReader, ItemProcessor, ItemWriter, Tasklet) live in\n// ./decorators and share names with interfaces in ./core/item. To avoid name\n// collisions in the public surface, decorators are re-exported under the\n// `Batch` namespace; interfaces remain reachable as bare names from ./core/item\n// (or via core/index). `BatchDecorators` remains as a compatibility alias.\nexport * from './core';\nexport * from './compiler';\nexport * from './partition-helpers';\nexport * from './registry';\nexport * from './execution';\nexport * from './transaction';\nexport * from './repository';\nexport * as Batch from './decorators';\nexport * as BatchDecorators from './decorators';\nexport * from './module';\nexport * from './scheduling/batch-scheduled';\nexport * from './builder';\nexport * from './explorer';\nexport * from './listeners';\nexport * from './policies';\nexport * from './flow';\nexport * from './observability';\nexport * from './adapters';\nexport * from './io';\n"],"names":["Batch","BatchDecorators"],"mappings":"AAAA,0CAA0C;AAC1C,EAAE;AACF,+EAA+E;AAC/E,6EAA6E;AAC7E,yEAAyE;AACzE,gFAAgF;AAChF,2EAA2E;;;;;;;;;;;;QAQ/DA;;;QACAC;;;;qBARE;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;oEACS;qBAET;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nest-batch/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Batch processing engine for NestJS — jobs, steps, chunk-oriented processing, and the persistence/transport contracts the @nest-batch adapters implement.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "easdkr",
|
package/src/index.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// Decorator functions (ItemReader, ItemProcessor, ItemWriter, Tasklet) live in
|
|
4
4
|
// ./decorators and share names with interfaces in ./core/item. To avoid name
|
|
5
5
|
// collisions in the public surface, decorators are re-exported under the
|
|
6
|
-
// `
|
|
7
|
-
//
|
|
6
|
+
// `Batch` namespace; interfaces remain reachable as bare names from ./core/item
|
|
7
|
+
// (or via core/index). `BatchDecorators` remains as a compatibility alias.
|
|
8
8
|
export * from './core';
|
|
9
9
|
export * from './compiler';
|
|
10
10
|
export * from './partition-helpers';
|
|
@@ -12,6 +12,7 @@ export * from './registry';
|
|
|
12
12
|
export * from './execution';
|
|
13
13
|
export * from './transaction';
|
|
14
14
|
export * from './repository';
|
|
15
|
+
export * as Batch from './decorators';
|
|
15
16
|
export * as BatchDecorators from './decorators';
|
|
16
17
|
export * from './module';
|
|
17
18
|
export * from './scheduling/batch-scheduled';
|