@parcel/rust 2.12.1-canary.3327 → 2.12.1-canary.3329

Sign up to get free protection for your applications and to get access to all the features.
package/index.d.ts CHANGED
@@ -100,6 +100,54 @@ export interface JsInvalidations {
100
100
  invalidateOnFileCreate: Array<FilePathCreateInvalidation | FileNameCreateInvalidation | GlobCreateInvalidation>
101
101
  invalidateOnStartup: boolean
102
102
  }
103
+ export interface JsFileSystemOptionsOld {
104
+ canonicalize: (...args: any[]) => any
105
+ read: (...args: any[]) => any
106
+ isFile: (...args: any[]) => any
107
+ isDir: (...args: any[]) => any
108
+ includeNodeModules?: NapiSideEffectsVariants
109
+ }
110
+ export interface FileSystemOld {
111
+ fs?: JsFileSystemOptionsOld
112
+ includeNodeModules?: NapiSideEffectsVariants
113
+ conditions?: number
114
+ moduleDirResolver?: (...args: any[]) => any
115
+ mode: number
116
+ entries?: number
117
+ extensions?: Array<string>
118
+ packageExports: boolean
119
+ typescript?: boolean
120
+ }
121
+ export interface ResolveOptionsOld {
122
+ filename: string
123
+ specifierType: string
124
+ parent: string
125
+ packageConditions?: Array<string>
126
+ }
127
+ export interface FilePathCreateInvalidationOld {
128
+ filePath: string
129
+ }
130
+ export interface FileNameCreateInvalidationOld {
131
+ fileName: string
132
+ aboveFilePath: string
133
+ }
134
+ export interface GlobCreateInvalidationOld {
135
+ glob: string
136
+ }
137
+ export interface ResolveResultOld {
138
+ resolution: unknown
139
+ invalidateOnFileChange: Array<string>
140
+ invalidateOnFileCreate: Array<FilePathCreateInvalidationOld | FileNameCreateInvalidationOld | GlobCreateInvalidationOld>
141
+ query?: string
142
+ sideEffects: boolean
143
+ error: unknown
144
+ moduleType: number
145
+ }
146
+ export interface JsInvalidationsOld {
147
+ invalidateOnFileChange: Array<string>
148
+ invalidateOnFileCreate: Array<FilePathCreateInvalidationOld | FileNameCreateInvalidationOld | GlobCreateInvalidationOld>
149
+ invalidateOnStartup: boolean
150
+ }
103
151
  export function testingRunParcelJsTransformerPlugin(targetPath: string): unknown
104
152
  export function transform(opts: object): unknown
105
153
  export function transformAsync(opts: object): object
@@ -123,3 +171,11 @@ export class Resolver {
123
171
  getInvalidations(path: string): JsInvalidations
124
172
  getInvalidations(path: string): JsInvalidations
125
173
  }
174
+ export class ResolverOld {
175
+ constructor(projectRoot: string, options: FileSystemOld)
176
+ resolve(options: ResolveOptionsOld): ResolveResultOld
177
+ resolveAsync(): object
178
+ resolveAsync(options: ResolveOptionsOld): object
179
+ getInvalidations(path: string): JsInvalidationsOld
180
+ getInvalidations(path: string): JsInvalidationsOld
181
+ }
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 { initSentry, closeSentry, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, ParcelNapi, registerWorker, Resolver, testingRunParcelJsTransformerPlugin, transform, transformAsync } = nativeBinding
313
+ const { initSentry, closeSentry, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, ParcelNapi, registerWorker, Resolver, ResolverOld, testingRunParcelJsTransformerPlugin, transform, transformAsync } = nativeBinding
314
314
 
315
315
  module.exports.initSentry = initSentry
316
316
  module.exports.closeSentry = closeSentry
@@ -324,6 +324,7 @@ module.exports.optimizeImage = optimizeImage
324
324
  module.exports.ParcelNapi = ParcelNapi
325
325
  module.exports.registerWorker = registerWorker
326
326
  module.exports.Resolver = Resolver
327
+ module.exports.ResolverOld = ResolverOld
327
328
  module.exports.testingRunParcelJsTransformerPlugin = testingRunParcelJsTransformerPlugin
328
329
  module.exports.transform = transform
329
330
  module.exports.transformAsync = transformAsync
package/index.js.flow CHANGED
@@ -157,3 +157,9 @@ declare export class Resolver {
157
157
  resolveAsync(options: ResolveOptions): Promise<ResolveResult>;
158
158
  getInvalidations(path: string): JsInvalidations;
159
159
  }
160
+ declare export class ResolverOld {
161
+ constructor(projectRoot: string, options: ResolverOptions): Resolver;
162
+ resolve(options: ResolveOptions): ResolveResult;
163
+ resolveAsync(options: ResolveOptions): Promise<ResolveResult>;
164
+ getInvalidations(path: string): JsInvalidations;
165
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/rust",
3
- "version": "2.12.1-canary.3327+808ad6a34",
3
+ "version": "2.12.1-canary.3329+dc29a25b4",
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": "808ad6a34cf66cc96cc820f2aa46cecb562218f3"
43
+ "gitHead": "dc29a25b483a7e8506a0451a623304a845fde3bf"
44
44
  }