@atlaspack/core 2.19.3-typescript-0c2081aca.0 → 2.19.3-typescript-8e1995d58.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.
Files changed (2) hide show
  1. package/index.d.ts +25 -0
  2. package/package.json +20 -19
package/index.d.ts CHANGED
@@ -4,6 +4,8 @@ import type {
4
4
  BuildSuccessEvent,
5
5
  AsyncSubscription,
6
6
  } from '@atlaspack/types';
7
+ import type {Diagnostic} from '@atlaspack/diagnostic';
8
+ import type ThrowableDiagnostic from '@atlaspack/diagnostic';
7
9
 
8
10
  import type {FarmOptions} from '@atlaspack/workers';
9
11
 
@@ -17,6 +19,7 @@ export class Atlaspack {
17
19
  watch(
18
20
  cb?: (err: Error | null | undefined, buildEvent?: BuildEvent) => unknown,
19
21
  ): Promise<AsyncSubscription>;
22
+ _init(): Promise<void>;
20
23
  }
21
24
 
22
25
  export class Parcel {
@@ -25,6 +28,7 @@ export class Parcel {
25
28
  watch(
26
29
  cb?: (err: Error | null | undefined, buildEvent?: BuildEvent) => unknown,
27
30
  ): Promise<AsyncSubscription>;
31
+ _init(): Promise<void>;
28
32
  }
29
33
 
30
34
  export declare function createWorkerFarm(
@@ -32,3 +36,24 @@ export declare function createWorkerFarm(
32
36
  ): WorkerFarm;
33
37
 
34
38
  export default Atlaspack;
39
+
40
+ export type NapiWorkerPoolOptions = {
41
+ workerCount?: number;
42
+ };
43
+
44
+ export type Transferable = any;
45
+
46
+ export declare class NapiWorkerPool {
47
+ constructor(options?: NapiWorkerPoolOptions);
48
+ workerCount(): number;
49
+ getWorkers(): Promise<Array<Transferable>>;
50
+ shutdown(): void;
51
+ }
52
+
53
+ export declare class BuildError extends ThrowableDiagnostic {
54
+ constructor(diagnostic: Array<Diagnostic> | Diagnostic);
55
+ }
56
+
57
+ export const INTERNAL_TRANSFORM: symbol;
58
+ export const INTERNAL_RESOLVE: symbol;
59
+ export let WORKER_PATH: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/core",
3
- "version": "2.19.3-typescript-0c2081aca.0",
3
+ "version": "2.19.3-typescript-8e1995d58.0",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/atlassian-labs/atlaspack.git"
11
11
  },
12
12
  "main": "lib/index.js",
13
- "types": "src/index.ts",
13
+ "types": "index.d.ts",
14
14
  "source": "src/index.ts",
15
15
  "engines": {
16
16
  "node": ">= 16.0.0"
@@ -18,24 +18,25 @@
18
18
  "scripts": {
19
19
  "test": "mocha",
20
20
  "test-ci": "mocha",
21
+ "generate-ts": "tsc --emitDeclarationOnly",
21
22
  "check-ts": "tsc --noEmit"
22
23
  },
23
24
  "dependencies": {
24
- "@atlaspack/build-cache": "2.13.4-typescript-0c2081aca.0",
25
- "@atlaspack/cache": "3.2.16-typescript-0c2081aca.0",
26
- "@atlaspack/diagnostic": "2.14.2-typescript-0c2081aca.0",
27
- "@atlaspack/events": "2.14.2-typescript-0c2081aca.0",
28
- "@atlaspack/feature-flags": "2.19.3-typescript-0c2081aca.0",
29
- "@atlaspack/fs": "2.15.16-typescript-0c2081aca.0",
30
- "@atlaspack/graph": "3.5.10-typescript-0c2081aca.0",
31
- "@atlaspack/logger": "2.14.14-typescript-0c2081aca.0",
32
- "@atlaspack/package-manager": "2.14.21-typescript-0c2081aca.0",
33
- "@atlaspack/plugin": "2.14.21-typescript-0c2081aca.0",
34
- "@atlaspack/profiler": "2.14.18-typescript-0c2081aca.0",
35
- "@atlaspack/rust": "3.4.2-typescript-0c2081aca.0",
36
- "@atlaspack/types": "2.15.11-typescript-0c2081aca.0",
37
- "@atlaspack/utils": "2.17.3-typescript-0c2081aca.0",
38
- "@atlaspack/workers": "2.14.21-typescript-0c2081aca.0",
25
+ "@atlaspack/build-cache": "2.13.4-typescript-8e1995d58.0",
26
+ "@atlaspack/cache": "3.2.16-typescript-8e1995d58.0",
27
+ "@atlaspack/diagnostic": "2.14.2-typescript-8e1995d58.0",
28
+ "@atlaspack/events": "2.14.2-typescript-8e1995d58.0",
29
+ "@atlaspack/feature-flags": "2.19.3-typescript-8e1995d58.0",
30
+ "@atlaspack/fs": "2.15.16-typescript-8e1995d58.0",
31
+ "@atlaspack/graph": "3.5.10-typescript-8e1995d58.0",
32
+ "@atlaspack/logger": "2.14.14-typescript-8e1995d58.0",
33
+ "@atlaspack/package-manager": "2.14.21-typescript-8e1995d58.0",
34
+ "@atlaspack/plugin": "2.14.21-typescript-8e1995d58.0",
35
+ "@atlaspack/profiler": "2.14.18-typescript-8e1995d58.0",
36
+ "@atlaspack/rust": "3.4.2-typescript-8e1995d58.0",
37
+ "@atlaspack/types": "2.15.11-typescript-8e1995d58.0",
38
+ "@atlaspack/utils": "2.17.3-typescript-8e1995d58.0",
39
+ "@atlaspack/workers": "2.14.21-typescript-8e1995d58.0",
39
40
  "@mischnic/json-sourcemap": "^0.1.0",
40
41
  "@parcel/source-map": "^2.1.1",
41
42
  "base-x": "^3.0.8",
@@ -49,7 +50,7 @@
49
50
  "semver": "^7.5.2"
50
51
  },
51
52
  "devDependencies": {
52
- "@atlaspack/babel-register": "2.14.2-typescript-0c2081aca.0",
53
+ "@atlaspack/babel-register": "2.14.2-typescript-8e1995d58.0",
53
54
  "@types/node": ">= 18",
54
55
  "graphviz": "^0.0.9",
55
56
  "jest-diff": "*",
@@ -60,5 +61,5 @@
60
61
  "./src/serializerCore.js": "./src/serializerCore.browser.js"
61
62
  },
62
63
  "type": "commonjs",
63
- "gitHead": "0c2081aca1b5696646874aee2f776d43f1dbe894"
64
+ "gitHead": "8e1995d58c0a542dffa3b1fa0da3381be69fe125"
64
65
  }