@parcel/rust 2.12.1-dev.3171 → 2.12.1-dev.3185

Sign up to get free protection for your applications and to get access to all the features.
package/index.d.ts CHANGED
@@ -63,8 +63,6 @@ export interface JsInvalidations {
63
63
  }
64
64
  export function transform(opts: object): unknown
65
65
  export function transformAsync(opts: object): object
66
- export function getChangedPackages(packageVersions: object, prevPackageVersions: object): unknown
67
- export function getPackages(yarnLockContents: string): unknown
68
66
  export class Hash {
69
67
  constructor()
70
68
  writeString(s: string): void
package/index.js CHANGED
@@ -295,7 +295,7 @@ if (!nativeBinding) {
295
295
  throw new Error(`Failed to load native binding`)
296
296
  }
297
297
 
298
- const { findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, Resolver, transform, transformAsync, getChangedPackages, getPackages } = nativeBinding
298
+ const { findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, Resolver, transform, transformAsync } = nativeBinding
299
299
 
300
300
  module.exports.findAncestorFile = findAncestorFile
301
301
  module.exports.findFirstFile = findFirstFile
@@ -307,5 +307,3 @@ module.exports.optimizeImage = optimizeImage
307
307
  module.exports.Resolver = Resolver
308
308
  module.exports.transform = transform
309
309
  module.exports.transformAsync = transformAsync
310
- module.exports.getChangedPackages = getChangedPackages
311
- module.exports.getPackages = getPackages
package/index.js.flow CHANGED
@@ -3,19 +3,12 @@ import type {FileCreateInvalidation} from '@parcel/types';
3
3
 
4
4
  declare export var init: void | (() => void);
5
5
 
6
- declare export function findAncestorFile(
7
- filenames: Array<string>,
8
- from: string,
9
- root: string,
10
- ): string | null;
11
- declare export function findFirstFile(names: Array<string>): string | null;
12
- declare export function findNodeModule(
13
- module: string,
14
- from: string,
15
- ): string | null;
16
- declare export function hashString(s: string): string;
17
- declare export function hashBuffer(buf: Buffer): string;
18
- declare export function optimizeImage(kind: string, buf: Buffer): Buffer;
6
+ declare export function findAncestorFile(filenames: Array<string>, from: string, root: string): string | null
7
+ declare export function findFirstFile(names: Array<string>): string | null
8
+ declare export function findNodeModule(module: string, from: string): string | null
9
+ declare export function hashString(s: string): string
10
+ declare export function hashBuffer(buf: Buffer): string
11
+ declare export function optimizeImage(kind: string, buf: Buffer): Buffer
19
12
  export interface JsFileSystemOptions {
20
13
  canonicalize: string => string;
21
14
  read: string => Buffer;
@@ -24,14 +17,14 @@ export interface JsFileSystemOptions {
24
17
  includeNodeModules?: boolean | Array<string> | {|[string]: boolean|};
25
18
  }
26
19
  export interface FileSystem {
27
- fs?: JsFileSystemOptions;
20
+ fs?: JsFileSystemOptions,
28
21
  includeNodeModules?: boolean | Array<string> | {|[string]: boolean|};
29
- conditions?: number;
30
- moduleDirResolver?: (...args: any[]) => any;
31
- mode: number;
32
- entries?: number;
33
- extensions?: Array<string>;
34
- packageExports: boolean;
22
+ conditions?: number,
23
+ moduleDirResolver?: (...args: any[]) => any,
24
+ mode: number,
25
+ entries?: number,
26
+ extensions?: Array<string>,
27
+ packageExports: boolean
35
28
  }
36
29
  export interface ResolveOptions {
37
30
  filename: string;
@@ -82,9 +75,3 @@ declare export class Resolver {
82
75
  resolveAsync(options: ResolveOptions): Promise<ResolveResult>;
83
76
  getInvalidations(path: string): JsInvalidations;
84
77
  }
85
- export type PackageVersions = Map<String, Array<String>>;
86
- declare export function getChangedPackages(
87
- packageVersions: PackageVersions,
88
- prevPackageVersions: PackageVersions,
89
- ): Array<string>;
90
- declare export function getPackages(yarnLock: string): PackageVersions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/rust",
3
- "version": "2.12.1-dev.3171+79b158883",
3
+ "version": "2.12.1-dev.3185+298c035e0",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -39,5 +39,5 @@
39
39
  "wasm:build": "cargo build -p parcel-node-bindings --target wasm32-unknown-unknown && cp ../../../target/wasm32-unknown-unknown/debug/parcel_node_bindings.wasm .",
40
40
  "wasm:build-release": "CARGO_PROFILE_RELEASE_LTO=true cargo build -p parcel-node-bindings --target wasm32-unknown-unknown --release && wasm-opt --strip-debug -O ../../../target/wasm32-unknown-unknown/release/parcel_node_bindings.wasm -o parcel_node_bindings.wasm"
41
41
  },
42
- "gitHead": "79b158883170daac9cd17bdecfebff163bc99e52"
42
+ "gitHead": "298c035e0ffb82d7c5579ce233cc35dce2fe1061"
43
43
  }