@atlaspack/rust 3.2.1-canary.8 → 3.2.1-dev.14

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/index.d.ts CHANGED
@@ -61,6 +61,7 @@ export interface InlineRequiresOptimizerResult {
61
61
  sourceMap?: string
62
62
  }
63
63
  export declare function runInlineRequiresOptimizer(input: InlineRequiresOptimizerInput): InlineRequiresOptimizerResult
64
+ export declare function runInlineRequiresOptimizerAsync(input: InlineRequiresOptimizerInput): object
64
65
  export interface JsFileSystemOptions {
65
66
  canonicalize: (...args: any[]) => any
66
67
  read: (...args: any[]) => any
@@ -136,6 +137,8 @@ export class Lmdb {
136
137
  startWriteTransaction(): Promise<void>
137
138
  commitWriteTransaction(): Promise<void>
138
139
  close(): void
140
+ /** Compact the database to the target path */
141
+ compact(targetPath: string): void
139
142
  constructor(options: LMDBOptions)
140
143
  get(key: string): Promise<Buffer | null | undefined>
141
144
  hasSync(key: string): boolean
@@ -151,6 +154,7 @@ export class Lmdb {
151
154
  startWriteTransaction(): Promise<void>
152
155
  commitWriteTransaction(): Promise<void>
153
156
  close(): void
157
+ compact(targetPath: string): void
154
158
  }
155
159
  export class Hash {
156
160
  constructor()
Binary file
Binary file
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, AtlaspackTracer, createAssetId, atlaspackNapiCreate, atlaspackNapiBuildAssetGraph, atlaspackNapiRespondToFsEvents, createDependencyId, createEnvironmentId, getAvailableThreads, initializeMonitoring, closeMonitoring, newNodejsWorker, runInlineRequiresOptimizer, Resolver, performStringReplacements, transform, transformAsync, getVcsStateSnapshot, getEventsSince } = nativeBinding
313
+ const { initTracingSubscriber, Lmdb, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, AtlaspackTracer, createAssetId, atlaspackNapiCreate, atlaspackNapiBuildAssetGraph, atlaspackNapiRespondToFsEvents, createDependencyId, createEnvironmentId, getAvailableThreads, initializeMonitoring, closeMonitoring, newNodejsWorker, runInlineRequiresOptimizer, runInlineRequiresOptimizerAsync, Resolver, performStringReplacements, transform, transformAsync, getVcsStateSnapshot, getEventsSince } = nativeBinding
314
314
 
315
315
  module.exports.initTracingSubscriber = initTracingSubscriber
316
316
  module.exports.Lmdb = Lmdb
@@ -333,6 +333,7 @@ module.exports.initializeMonitoring = initializeMonitoring
333
333
  module.exports.closeMonitoring = closeMonitoring
334
334
  module.exports.newNodejsWorker = newNodejsWorker
335
335
  module.exports.runInlineRequiresOptimizer = runInlineRequiresOptimizer
336
+ module.exports.runInlineRequiresOptimizerAsync = runInlineRequiresOptimizerAsync
336
337
  module.exports.Resolver = Resolver
337
338
  module.exports.performStringReplacements = performStringReplacements
338
339
  module.exports.transform = transform
package/index.js.flow CHANGED
@@ -340,6 +340,7 @@ declare export class Lmdb {
340
340
  commitWriteTransaction(): Promise<void>;
341
341
  delete(key: string): Promise<void>;
342
342
  close(): void;
343
+ compact(targetPath: string): void;
343
344
  }
344
345
 
345
346
  export interface InlineRequiresOptimizerInput {
@@ -356,6 +357,10 @@ declare export function runInlineRequiresOptimizer(
356
357
  input: InlineRequiresOptimizerInput,
357
358
  ): InlineRequiresOptimizerResult;
358
359
 
360
+ declare export function runInlineRequiresOptimizerAsync(
361
+ input: InlineRequiresOptimizerInput,
362
+ ): Promise<InlineRequiresOptimizerResult>;
363
+
359
364
  export interface VCSFile {
360
365
  path: string;
361
366
  hash: number;
@@ -372,6 +377,8 @@ export interface VCSState {
372
377
  // Files that have been modified since the last commit
373
378
  dirtyFiles: VCSFile[];
374
379
  yarnStates: YarnState[];
380
+ dirtyFilesExecutionTime: number;
381
+ yarnStatesExecutionTime: number;
375
382
  }
376
383
 
377
384
  declare export function getVcsStateSnapshot(
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/rust",
3
- "version": "3.2.1-canary.8+46a90dccd",
3
+ "version": "3.2.1-dev.14+8c369e38c",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -34,5 +34,5 @@
34
34
  "test": "mocha"
35
35
  },
36
36
  "type": "commonjs",
37
- "gitHead": "46a90dccd019a26b222c878a92d23acc75dc67c5"
37
+ "gitHead": "8c369e38ccd428409811114aebd6044c27f90705"
38
38
  }