@parcel/rust 2.12.1-canary.3203 → 2.12.1-canary.3205
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 +23 -9
- package/index.js +2 -1
- 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
|
@@ -9,6 +9,17 @@ export interface JsMacroError {
|
|
|
9
9
|
}
|
|
10
10
|
export function initSentry(): void
|
|
11
11
|
export function closeSentry(): void
|
|
12
|
+
/**
|
|
13
|
+
* JavaScript API for running a config request.
|
|
14
|
+
* At the moment the request fields themselves will be copied on call.
|
|
15
|
+
*
|
|
16
|
+
* This is not efficient but can be worked around when it becomes an issue.
|
|
17
|
+
*
|
|
18
|
+
* This should have exhaustive unit-tests on `packages/core/core/test/requests/ConfigRequest.test.js`.
|
|
19
|
+
*/
|
|
20
|
+
export function napiRunConfigRequest(configRequest: ConfigRequest, api: object, options: object): void
|
|
21
|
+
/** napi entry-point for `run_entry_request`. */
|
|
22
|
+
export function napiRunEntryRequest(entryRequest: EntryRequestInput, api: object, options: object): EntryResult
|
|
12
23
|
export interface ConfigKeyChange {
|
|
13
24
|
filePath: ProjectPath
|
|
14
25
|
configKey: string
|
|
@@ -32,15 +43,18 @@ export interface ConfigRequest {
|
|
|
32
43
|
export interface RequestOptions {
|
|
33
44
|
|
|
34
45
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
46
|
+
export interface Entry {
|
|
47
|
+
filePath: ProjectPath
|
|
48
|
+
packagePath: ProjectPath
|
|
49
|
+
}
|
|
50
|
+
export interface EntryResult {
|
|
51
|
+
entries: Array<Entry>
|
|
52
|
+
files: Array<ProjectPath>
|
|
53
|
+
globs: Array<string>
|
|
54
|
+
}
|
|
55
|
+
export interface EntryRequestInput {
|
|
56
|
+
projectPath: string
|
|
57
|
+
}
|
|
44
58
|
export function findAncestorFile(filenames: Array<string>, from: string, root: string): string | null
|
|
45
59
|
export function findFirstFile(names: Array<string>): string | null
|
|
46
60
|
export function findNodeModule(module: string, from: string): string | null
|
package/index.js
CHANGED
|
@@ -295,11 +295,12 @@ if (!nativeBinding) {
|
|
|
295
295
|
throw new Error(`Failed to load native binding`)
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
const { initSentry, closeSentry, napiRunConfigRequest, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, Resolver, transform, transformAsync } = nativeBinding
|
|
298
|
+
const { initSentry, closeSentry, napiRunConfigRequest, napiRunEntryRequest, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, Resolver, transform, transformAsync } = nativeBinding
|
|
299
299
|
|
|
300
300
|
module.exports.initSentry = initSentry
|
|
301
301
|
module.exports.closeSentry = closeSentry
|
|
302
302
|
module.exports.napiRunConfigRequest = napiRunConfigRequest
|
|
303
|
+
module.exports.napiRunEntryRequest = napiRunEntryRequest
|
|
303
304
|
module.exports.findAncestorFile = findAncestorFile
|
|
304
305
|
module.exports.findFirstFile = findFirstFile
|
|
305
306
|
module.exports.findNodeModule = findNodeModule
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcel/rust",
|
|
3
|
-
"version": "2.12.1-canary.
|
|
3
|
+
"version": "2.12.1-canary.3205+d1f778f79",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"wasm:build": "cargo build -p parcel-node-bindings --target wasm32-unknown-unknown && cp ../../../target/wasm32-unknown-unknown/debug/parcel_node_bindings.wasm .",
|
|
41
41
|
"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"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "d1f778f79e8c8fbab6ebc56e40da936f59441439"
|
|
44
44
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|