@atlaspack/rust 2.12.1-dev.3478 → 2.12.1-dev.3502
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/atlaspack-node-bindings.darwin-arm64.node +0 -0
- package/atlaspack-node-bindings.darwin-x64.node +0 -0
- package/atlaspack-node-bindings.linux-arm-gnueabihf.node +0 -0
- package/atlaspack-node-bindings.linux-arm64-gnu.node +0 -0
- package/atlaspack-node-bindings.linux-x64-gnu.node +0 -0
- package/index.d.ts +3 -2
- package/index.js +3 -2
- package/index.js.flow +28 -6
- package/package.json +2 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -88,7 +88,6 @@ export interface InlineRequiresOptimizerResult {
|
|
|
88
88
|
sourceMap?: string
|
|
89
89
|
}
|
|
90
90
|
export function runInlineRequiresOptimizer(input: InlineRequiresOptimizerInput): InlineRequiresOptimizerResult
|
|
91
|
-
export function replaceHashReferences(input: Buffer, hashRefToNameHash: Record<string, string>): Buffer
|
|
92
91
|
export interface JsFileSystemOptions {
|
|
93
92
|
canonicalize: (...args: any[]) => any
|
|
94
93
|
read: (...args: any[]) => any
|
|
@@ -139,6 +138,8 @@ export interface JsInvalidations {
|
|
|
139
138
|
}
|
|
140
139
|
export function transform(opts: object): unknown
|
|
141
140
|
export function transformAsync(opts: object): object
|
|
141
|
+
export function getVcsStateSnapshot(path: string, excludePatterns: Array<string>): unknown
|
|
142
|
+
export function getEventsSince(repoPath: string, oldRev: string, newRev?: string | undefined | null): Array<string>
|
|
142
143
|
export type LMDB = Lmdb
|
|
143
144
|
export class Lmdb {
|
|
144
145
|
constructor(options: LmdbOptions)
|
|
@@ -174,7 +175,7 @@ export class Hash {
|
|
|
174
175
|
}
|
|
175
176
|
export class AtlaspackNapi {
|
|
176
177
|
nodeWorkerCount: number
|
|
177
|
-
|
|
178
|
+
static create(napiOptions: AtlaspackNapiOptions, lmdb?: LMDB | undefined | null): this
|
|
178
179
|
buildAssetGraph(options: AtlaspackNapiBuildOptions): object
|
|
179
180
|
}
|
|
180
181
|
export class Resolver {
|
package/index.js
CHANGED
|
@@ -310,7 +310,7 @@ if (!nativeBinding) {
|
|
|
310
310
|
throw new Error(`Failed to load native binding`)
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
const { initTracingSubscriber, Lmdb, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, createAssetId, AtlaspackNapi, createDependencyId, createEnvironmentId, initializeMonitoring, closeMonitoring, registerWorker, runInlineRequiresOptimizer,
|
|
313
|
+
const { initTracingSubscriber, Lmdb, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, createAssetId, AtlaspackNapi, createDependencyId, createEnvironmentId, initializeMonitoring, closeMonitoring, registerWorker, runInlineRequiresOptimizer, Resolver, transform, transformAsync, getVcsStateSnapshot, getEventsSince } = nativeBinding
|
|
314
314
|
|
|
315
315
|
module.exports.initTracingSubscriber = initTracingSubscriber
|
|
316
316
|
module.exports.Lmdb = Lmdb
|
|
@@ -329,7 +329,8 @@ module.exports.initializeMonitoring = initializeMonitoring
|
|
|
329
329
|
module.exports.closeMonitoring = closeMonitoring
|
|
330
330
|
module.exports.registerWorker = registerWorker
|
|
331
331
|
module.exports.runInlineRequiresOptimizer = runInlineRequiresOptimizer
|
|
332
|
-
module.exports.replaceHashReferences = replaceHashReferences
|
|
333
332
|
module.exports.Resolver = Resolver
|
|
334
333
|
module.exports.transform = transform
|
|
335
334
|
module.exports.transformAsync = transformAsync
|
|
335
|
+
module.exports.getVcsStateSnapshot = getVcsStateSnapshot
|
|
336
|
+
module.exports.getEventsSince = getEventsSince
|
package/index.js.flow
CHANGED
|
@@ -61,8 +61,8 @@ export type AtlaspackBuildOptions = {|
|
|
|
61
61
|
|};
|
|
62
62
|
|
|
63
63
|
declare export class AtlaspackNapi {
|
|
64
|
+
static create(options: AtlaspackNapiOptions, lmdb: mixed): AtlaspackNapi;
|
|
64
65
|
nodeWorkerCount: number;
|
|
65
|
-
constructor(options: AtlaspackNapiOptions): AtlaspackNapi;
|
|
66
66
|
build(options: AtlaspackBuildOptions): Promise<void>;
|
|
67
67
|
buildAssetGraph(options: AtlaspackBuildOptions): Promise<any>;
|
|
68
68
|
static defaultThreadCount(): number;
|
|
@@ -333,6 +333,33 @@ declare export function runInlineRequiresOptimizer(
|
|
|
333
333
|
input: InlineRequiresOptimizerInput,
|
|
334
334
|
): InlineRequiresOptimizerResult;
|
|
335
335
|
|
|
336
|
+
export interface VCSFile {
|
|
337
|
+
path: string;
|
|
338
|
+
hash: number;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
export interface YarnState {
|
|
342
|
+
yarnLockPath: string;
|
|
343
|
+
yarnLock: mixed;
|
|
344
|
+
yarnState: mixed;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export interface VCSState {
|
|
348
|
+
gitHash: string;
|
|
349
|
+
dirtyFiles: VCSFile[];
|
|
350
|
+
yarnStates: YarnState[];
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
declare export function getVcsStateSnapshot(
|
|
354
|
+
path: string,
|
|
355
|
+
excludePatterns: Array<string>,
|
|
356
|
+
): VCSState;
|
|
357
|
+
declare export function getEventsSince(
|
|
358
|
+
repoPath: string,
|
|
359
|
+
oldRev: string,
|
|
360
|
+
newRev?: string | void | null,
|
|
361
|
+
): Array<string>;
|
|
362
|
+
|
|
336
363
|
declare export function createAssetId(params: mixed): string;
|
|
337
364
|
declare export function createDependencyId(params: mixed): string;
|
|
338
365
|
declare export function createEnvironmentId(params: mixed): string;
|
|
@@ -368,8 +395,3 @@ export type Resolution =
|
|
|
368
395
|
| {|type: 'External'|}
|
|
369
396
|
| {|type: 'Empty'|}
|
|
370
397
|
| {|type: 'Global', value: string|};
|
|
371
|
-
|
|
372
|
-
declare export function replaceHashReferences(
|
|
373
|
-
input: Buffer,
|
|
374
|
-
hashRefToNameHash: {[key: string]: string},
|
|
375
|
-
): Buffer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/rust",
|
|
3
|
-
"version": "2.12.1-dev.
|
|
3
|
+
"version": "2.12.1-dev.3502+c2daeab5a",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"wasm:build": "cargo build -p atlaspack-node-bindings --target wasm32-unknown-unknown && cp ../../../target/wasm32-unknown-unknown/debug/atlaspack_node_bindings.wasm .",
|
|
38
38
|
"wasm:build-release": "CARGO_PROFILE_RELEASE_LTO=true cargo build -p atlaspack-node-bindings --target wasm32-unknown-unknown --release && wasm-opt --strip-debug -O ../../../target/wasm32-unknown-unknown/release/atlaspack_node_bindings.wasm -o atlaspack_node_bindings.wasm"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "c2daeab5a12461903159dec34df5671eaaa9b749"
|
|
41
41
|
}
|