@atlaspack/core 2.36.0 → 2.38.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/CHANGELOG.md +121 -0
- package/dist/Atlaspack.js +41 -6
- package/dist/atlaspack-v3/AtlaspackV3.js +7 -4
- package/dist/atlaspack-v3/NapiWorkerPool.js +33 -0
- package/dist/atlaspack-v3/fs.js +1 -0
- package/dist/atlaspack-v3/worker/compat/index.js +0 -1
- package/dist/atlaspack-v3/worker/worker.js +21 -5
- package/dist/requests/AssetGraphRequestRust.js +5 -1
- package/dist/requests/AtlaspackBuildRequest.js +3 -0
- package/dist/requests/BundleGraphRequestRust.js +5 -1
- package/lib/Atlaspack.js +47 -15
- package/lib/atlaspack-v3/AtlaspackV3.js +7 -4
- package/lib/atlaspack-v3/NapiWorkerPool.js +35 -0
- package/lib/atlaspack-v3/fs.js +1 -0
- package/lib/atlaspack-v3/worker/compat/index.js +0 -11
- package/lib/atlaspack-v3/worker/worker.js +39 -6
- package/lib/requests/AssetGraphRequestRust.js +5 -1
- package/lib/requests/AtlaspackBuildRequest.js +9 -0
- package/lib/requests/BundleGraphRequestRust.js +5 -1
- package/lib/types/atlaspack-v3/AtlaspackV3.d.ts +3 -2
- package/lib/types/atlaspack-v3/fs.d.ts +1 -0
- package/lib/types/atlaspack-v3/worker/compat/index.d.ts +0 -1
- package/package.json +15 -15
- package/src/Atlaspack.ts +54 -12
- package/src/atlaspack-v3/AtlaspackV3.ts +22 -4
- package/src/atlaspack-v3/NapiWorkerPool.ts +38 -0
- package/src/atlaspack-v3/fs.ts +5 -0
- package/src/atlaspack-v3/worker/compat/index.ts +0 -1
- package/src/atlaspack-v3/worker/worker.ts +22 -6
- package/src/requests/AssetGraphRequestRust.ts +5 -1
- package/src/requests/AtlaspackBuildRequest.ts +4 -0
- package/src/requests/BundleGraphRequestRust.ts +5 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/atlaspack-v3/worker/compat/plugin-logger.js +0 -26
- package/lib/atlaspack-v3/worker/compat/plugin-logger.js +0 -29
- package/lib/types/atlaspack-v3/worker/compat/plugin-logger.d.ts +0 -9
- package/src/atlaspack-v3/worker/compat/plugin-logger.ts +0 -45
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PluginLogger = void 0;
|
|
4
|
-
class PluginLogger {
|
|
5
|
-
verbose(diagnostic) {
|
|
6
|
-
// eslint-disable-next-line no-console
|
|
7
|
-
console.log(diagnostic);
|
|
8
|
-
}
|
|
9
|
-
info(diagnostic) {
|
|
10
|
-
// eslint-disable-next-line no-console
|
|
11
|
-
console.info(diagnostic);
|
|
12
|
-
}
|
|
13
|
-
log(diagnostic) {
|
|
14
|
-
// eslint-disable-next-line no-console
|
|
15
|
-
console.log(diagnostic);
|
|
16
|
-
}
|
|
17
|
-
warn(diagnostic) {
|
|
18
|
-
// eslint-disable-next-line no-console
|
|
19
|
-
console.warn(diagnostic);
|
|
20
|
-
}
|
|
21
|
-
error(input) {
|
|
22
|
-
// eslint-disable-next-line no-console
|
|
23
|
-
console.error(input);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.PluginLogger = PluginLogger;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.PluginLogger = void 0;
|
|
7
|
-
class PluginLogger {
|
|
8
|
-
verbose(diagnostic) {
|
|
9
|
-
// eslint-disable-next-line no-console
|
|
10
|
-
console.log(diagnostic);
|
|
11
|
-
}
|
|
12
|
-
info(diagnostic) {
|
|
13
|
-
// eslint-disable-next-line no-console
|
|
14
|
-
console.info(diagnostic);
|
|
15
|
-
}
|
|
16
|
-
log(diagnostic) {
|
|
17
|
-
// eslint-disable-next-line no-console
|
|
18
|
-
console.log(diagnostic);
|
|
19
|
-
}
|
|
20
|
-
warn(diagnostic) {
|
|
21
|
-
// eslint-disable-next-line no-console
|
|
22
|
-
console.warn(diagnostic);
|
|
23
|
-
}
|
|
24
|
-
error(input) {
|
|
25
|
-
// eslint-disable-next-line no-console
|
|
26
|
-
console.error(input);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.PluginLogger = PluginLogger;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { PluginLogger as IPlguinLogger } from '@atlaspack/types';
|
|
2
|
-
import type { Diagnostifiable, DiagnosticWithoutOrigin } from '@atlaspack/diagnostic';
|
|
3
|
-
export declare class PluginLogger implements IPlguinLogger {
|
|
4
|
-
verbose(diagnostic: DiagnosticWithoutOrigin | Array<DiagnosticWithoutOrigin>): void;
|
|
5
|
-
info(diagnostic: DiagnosticWithoutOrigin | Array<DiagnosticWithoutOrigin>): void;
|
|
6
|
-
log(diagnostic: DiagnosticWithoutOrigin | Array<DiagnosticWithoutOrigin>): void;
|
|
7
|
-
warn(diagnostic: DiagnosticWithoutOrigin | Array<DiagnosticWithoutOrigin>): void;
|
|
8
|
-
error(input: Diagnostifiable | DiagnosticWithoutOrigin | Array<DiagnosticWithoutOrigin>): void;
|
|
9
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type {PluginLogger as IPlguinLogger} from '@atlaspack/types';
|
|
2
|
-
import type {
|
|
3
|
-
Diagnostifiable,
|
|
4
|
-
DiagnosticWithoutOrigin,
|
|
5
|
-
} from '@atlaspack/diagnostic';
|
|
6
|
-
|
|
7
|
-
export class PluginLogger implements IPlguinLogger {
|
|
8
|
-
verbose(
|
|
9
|
-
diagnostic: DiagnosticWithoutOrigin | Array<DiagnosticWithoutOrigin>,
|
|
10
|
-
): void {
|
|
11
|
-
// eslint-disable-next-line no-console
|
|
12
|
-
console.log(diagnostic);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
info(
|
|
16
|
-
diagnostic: DiagnosticWithoutOrigin | Array<DiagnosticWithoutOrigin>,
|
|
17
|
-
): void {
|
|
18
|
-
// eslint-disable-next-line no-console
|
|
19
|
-
console.info(diagnostic);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
log(
|
|
23
|
-
diagnostic: DiagnosticWithoutOrigin | Array<DiagnosticWithoutOrigin>,
|
|
24
|
-
): void {
|
|
25
|
-
// eslint-disable-next-line no-console
|
|
26
|
-
console.log(diagnostic);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
warn(
|
|
30
|
-
diagnostic: DiagnosticWithoutOrigin | Array<DiagnosticWithoutOrigin>,
|
|
31
|
-
): void {
|
|
32
|
-
// eslint-disable-next-line no-console
|
|
33
|
-
console.warn(diagnostic);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
error(
|
|
37
|
-
input:
|
|
38
|
-
| Diagnostifiable
|
|
39
|
-
| DiagnosticWithoutOrigin
|
|
40
|
-
| Array<DiagnosticWithoutOrigin>,
|
|
41
|
-
): void {
|
|
42
|
-
// eslint-disable-next-line no-console
|
|
43
|
-
console.error(input);
|
|
44
|
-
}
|
|
45
|
-
}
|