@parcel/rust 2.12.1-dev.3141 → 2.12.1-dev.3171
Sign up to get free protection for your applications and to get access to all the features.
- package/index.d.ts +2 -0
- package/index.js +3 -1
- package/index.js.flow +26 -13
- package/package.json +2 -2
- package/parcel-node-bindings.darwin-arm64.node +0 -0
- package/parcel-node-bindings.darwin-x64.node +0 -0
- package/parcel-node-bindings.linux-arm-gnueabihf.node +0 -0
- package/parcel-node-bindings.linux-arm64-gnu.node +0 -0
- package/parcel-node-bindings.linux-arm64-musl.node +0 -0
- package/parcel-node-bindings.linux-x64-gnu.node +0 -0
- package/parcel-node-bindings.linux-x64-musl.node +0 -0
- package/parcel-node-bindings.win32-x64-msvc.node +0 -0
package/index.d.ts
CHANGED
@@ -63,6 +63,8 @@ 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
|
66
68
|
export class Hash {
|
67
69
|
constructor()
|
68
70
|
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 } = nativeBinding
|
298
|
+
const { findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, Resolver, transform, transformAsync, getChangedPackages, getPackages } = nativeBinding
|
299
299
|
|
300
300
|
module.exports.findAncestorFile = findAncestorFile
|
301
301
|
module.exports.findFirstFile = findFirstFile
|
@@ -307,3 +307,5 @@ 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,12 +3,19 @@ import type {FileCreateInvalidation} from '@parcel/types';
|
|
3
3
|
|
4
4
|
declare export var init: void | (() => void);
|
5
5
|
|
6
|
-
declare export function findAncestorFile(
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
declare export function
|
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;
|
12
19
|
export interface JsFileSystemOptions {
|
13
20
|
canonicalize: string => string;
|
14
21
|
read: string => Buffer;
|
@@ -17,14 +24,14 @@ export interface JsFileSystemOptions {
|
|
17
24
|
includeNodeModules?: boolean | Array<string> | {|[string]: boolean|};
|
18
25
|
}
|
19
26
|
export interface FileSystem {
|
20
|
-
fs?: JsFileSystemOptions
|
27
|
+
fs?: JsFileSystemOptions;
|
21
28
|
includeNodeModules?: boolean | Array<string> | {|[string]: boolean|};
|
22
|
-
conditions?: number
|
23
|
-
moduleDirResolver?: (...args: any[]) => any
|
24
|
-
mode: number
|
25
|
-
entries?: number
|
26
|
-
extensions?: Array<string
|
27
|
-
packageExports: boolean
|
29
|
+
conditions?: number;
|
30
|
+
moduleDirResolver?: (...args: any[]) => any;
|
31
|
+
mode: number;
|
32
|
+
entries?: number;
|
33
|
+
extensions?: Array<string>;
|
34
|
+
packageExports: boolean;
|
28
35
|
}
|
29
36
|
export interface ResolveOptions {
|
30
37
|
filename: string;
|
@@ -75,3 +82,9 @@ declare export class Resolver {
|
|
75
82
|
resolveAsync(options: ResolveOptions): Promise<ResolveResult>;
|
76
83
|
getInvalidations(path: string): JsInvalidations;
|
77
84
|
}
|
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.
|
3
|
+
"version": "2.12.1-dev.3171+79b158883",
|
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": "
|
42
|
+
"gitHead": "79b158883170daac9cd17bdecfebff163bc99e52"
|
43
43
|
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|