@atlaspack/rust 3.2.1-canary.9 → 3.2.1-dev.55

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
@@ -135,7 +136,8 @@ export class Lmdb {
135
136
  commitReadTransaction(): void
136
137
  startWriteTransaction(): Promise<void>
137
138
  commitWriteTransaction(): Promise<void>
138
- close(): void
139
+ /** Compact the database to the target path */
140
+ compact(targetPath: string): void
139
141
  constructor(options: LMDBOptions)
140
142
  get(key: string): Promise<Buffer | null | undefined>
141
143
  hasSync(key: string): boolean
@@ -150,7 +152,7 @@ export class Lmdb {
150
152
  commitReadTransaction(): void
151
153
  startWriteTransaction(): Promise<void>
152
154
  commitWriteTransaction(): Promise<void>
153
- close(): void
155
+ compact(targetPath: string): void
154
156
  }
155
157
  export class Hash {
156
158
  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
@@ -339,7 +339,7 @@ declare export class Lmdb {
339
339
  startWriteTransaction(): Promise<void>;
340
340
  commitWriteTransaction(): Promise<void>;
341
341
  delete(key: string): Promise<void>;
342
- close(): void;
342
+ compact(targetPath: string): void;
343
343
  }
344
344
 
345
345
  export interface InlineRequiresOptimizerInput {
@@ -356,9 +356,13 @@ declare export function runInlineRequiresOptimizer(
356
356
  input: InlineRequiresOptimizerInput,
357
357
  ): InlineRequiresOptimizerResult;
358
358
 
359
+ declare export function runInlineRequiresOptimizerAsync(
360
+ input: InlineRequiresOptimizerInput,
361
+ ): Promise<InlineRequiresOptimizerResult>;
362
+
359
363
  export interface VCSFile {
360
364
  path: string;
361
- hash: number;
365
+ hash?: string | null;
362
366
  }
363
367
 
364
368
  export interface YarnState {
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.9+4c1714103",
3
+ "version": "3.2.1-dev.55+5a11f33c5",
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": "4c1714103dab2aa9039c488f381551d2b65d1d01"
37
+ "gitHead": "5a11f33c51ff74d1cf8d4b72cfa0fda833aa980a"
38
38
  }