@noir-lang/noir_wasm 0.20.0-e3dcc21.nightly → 0.21.0

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.
@@ -11,14 +11,6 @@ export function acir_read_bytes(bytes: Uint8Array): any;
11
11
  */
12
12
  export function acir_write_bytes(acir: any): Uint8Array;
13
13
  /**
14
- * @param {string} entry_point
15
- * @param {boolean | undefined} contracts
16
- * @param {DependencyGraph | undefined} dependency_graph
17
- * @param {PathToFileSourceMap} file_source_map
18
- * @returns {CompileResult}
19
- */
20
- export function compile(entry_point: string, contracts: boolean | undefined, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): CompileResult;
21
- /**
22
14
  * @param {string} level
23
15
  */
24
16
  export function init_log_level(level: string): void;
@@ -26,6 +18,14 @@ export function init_log_level(level: string): void;
26
18
  * @returns {any}
27
19
  */
28
20
  export function build_info(): any;
21
+ /**
22
+ * @param {string} entry_point
23
+ * @param {boolean | undefined} contracts
24
+ * @param {DependencyGraph | undefined} dependency_graph
25
+ * @param {PathToFileSourceMap} file_source_map
26
+ * @returns {CompileResult}
27
+ */
28
+ export function compile(entry_point: string, contracts: boolean | undefined, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): CompileResult;
29
29
 
30
30
  export type Diagnostic = {
31
31
  message: string;
@@ -222,6 +222,23 @@ module.exports.acir_write_bytes = function(acir) {
222
222
  }
223
223
  };
224
224
 
225
+ /**
226
+ * @param {string} level
227
+ */
228
+ module.exports.init_log_level = function(level) {
229
+ const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
230
+ const len0 = WASM_VECTOR_LEN;
231
+ wasm.init_log_level(ptr0, len0);
232
+ };
233
+
234
+ /**
235
+ * @returns {any}
236
+ */
237
+ module.exports.build_info = function() {
238
+ const ret = wasm.build_info();
239
+ return takeObject(ret);
240
+ };
241
+
225
242
  function _assertClass(instance, klass) {
226
243
  if (!(instance instanceof klass)) {
227
244
  throw new Error(`expected instance of ${klass.name}`);
@@ -255,23 +272,6 @@ module.exports.compile = function(entry_point, contracts, dependency_graph, file
255
272
  }
256
273
  };
257
274
 
258
- /**
259
- * @param {string} level
260
- */
261
- module.exports.init_log_level = function(level) {
262
- const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
263
- const len0 = WASM_VECTOR_LEN;
264
- wasm.init_log_level(ptr0, len0);
265
- };
266
-
267
- /**
268
- * @returns {any}
269
- */
270
- module.exports.build_info = function() {
271
- const ret = wasm.build_info();
272
- return takeObject(ret);
273
- };
274
-
275
275
  function handleError(f, args) {
276
276
  try {
277
277
  return f.apply(this, args);
@@ -328,7 +328,7 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
328
328
  takeObject(arg0);
329
329
  };
330
330
 
331
- module.exports.__wbg_constructor_2f52aa89ce97ba46 = function(arg0) {
331
+ module.exports.__wbg_constructor_35233efb35960b52 = function(arg0) {
332
332
  const ret = new Error(takeObject(arg0));
333
333
  return addHeapObject(ret);
334
334
  };
@@ -338,7 +338,7 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
338
338
  return ret;
339
339
  };
340
340
 
341
- module.exports.__wbg_constructor_1292ee4141d8f79d = function() {
341
+ module.exports.__wbg_constructor_0fbcf25c6da50731 = function() {
342
342
  const ret = new Object();
343
343
  return addHeapObject(ret);
344
344
  };
Binary file
@@ -3,12 +3,12 @@
3
3
  export const memory: WebAssembly.Memory;
4
4
  export function acir_read_bytes(a: number, b: number): number;
5
5
  export function acir_write_bytes(a: number, b: number): void;
6
+ export function init_log_level(a: number, b: number): void;
7
+ export function build_info(): number;
6
8
  export function __wbg_pathtofilesourcemap_free(a: number): void;
7
9
  export function pathtofilesourcemap_new(): number;
8
10
  export function pathtofilesourcemap_add_source_code(a: number, b: number, c: number, d: number, e: number): number;
9
11
  export function compile(a: number, b: number, c: number, d: number, e: number, f: number): void;
10
- export function init_log_level(a: number, b: number): void;
11
- export function build_info(): number;
12
12
  export function __wbindgen_export_0(a: number): number;
13
13
  export function __wbindgen_export_1(a: number, b: number, c: number): number;
14
14
  export function __wbindgen_add_to_stack_pointer(a: number): number;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "The Noir Team <team@noir-lang.org>"
5
5
  ],
6
- "version": "0.20.0-e3dcc21.nightly",
6
+ "version": "0.21.0",
7
7
  "license": "(MIT OR Apache-2.0)",
8
8
  "main": "./nodejs/noir_wasm.js",
9
9
  "types": "./web/noir_wasm.d.ts",
@@ -30,9 +30,6 @@
30
30
  "build:nix": "nix build -L .#noir_wasm",
31
31
  "install:from:nix": "yarn clean && yarn build:nix && cp -rL ./result/noir_wasm/nodejs ./ && cp -rL ./result/noir_wasm/web ./"
32
32
  },
33
- "peerDependencies": {
34
- "@noir-lang/source-resolver": "0.20.0-e3dcc21.nightly"
35
- },
36
33
  "devDependencies": {
37
34
  "@esm-bundle/chai": "^4.3.4-fix.0",
38
35
  "@web/dev-server-esbuild": "^0.3.6",
@@ -11,14 +11,6 @@ export function acir_read_bytes(bytes: Uint8Array): any;
11
11
  */
12
12
  export function acir_write_bytes(acir: any): Uint8Array;
13
13
  /**
14
- * @param {string} entry_point
15
- * @param {boolean | undefined} contracts
16
- * @param {DependencyGraph | undefined} dependency_graph
17
- * @param {PathToFileSourceMap} file_source_map
18
- * @returns {CompileResult}
19
- */
20
- export function compile(entry_point: string, contracts: boolean | undefined, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): CompileResult;
21
- /**
22
14
  * @param {string} level
23
15
  */
24
16
  export function init_log_level(level: string): void;
@@ -26,6 +18,14 @@ export function init_log_level(level: string): void;
26
18
  * @returns {any}
27
19
  */
28
20
  export function build_info(): any;
21
+ /**
22
+ * @param {string} entry_point
23
+ * @param {boolean | undefined} contracts
24
+ * @param {DependencyGraph | undefined} dependency_graph
25
+ * @param {PathToFileSourceMap} file_source_map
26
+ * @returns {CompileResult}
27
+ */
28
+ export function compile(entry_point: string, contracts: boolean | undefined, dependency_graph: DependencyGraph | undefined, file_source_map: PathToFileSourceMap): CompileResult;
29
29
 
30
30
  export type Diagnostic = {
31
31
  message: string;
@@ -103,12 +103,12 @@ export interface InitOutput {
103
103
  readonly memory: WebAssembly.Memory;
104
104
  readonly acir_read_bytes: (a: number, b: number) => number;
105
105
  readonly acir_write_bytes: (a: number, b: number) => void;
106
+ readonly init_log_level: (a: number, b: number) => void;
107
+ readonly build_info: () => number;
106
108
  readonly __wbg_pathtofilesourcemap_free: (a: number) => void;
107
109
  readonly pathtofilesourcemap_new: () => number;
108
110
  readonly pathtofilesourcemap_add_source_code: (a: number, b: number, c: number, d: number, e: number) => number;
109
111
  readonly compile: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
110
- readonly init_log_level: (a: number, b: number) => void;
111
- readonly build_info: () => number;
112
112
  readonly __wbindgen_export_0: (a: number) => number;
113
113
  readonly __wbindgen_export_1: (a: number, b: number, c: number) => number;
114
114
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
package/web/noir_wasm.js CHANGED
@@ -219,6 +219,23 @@ export function acir_write_bytes(acir) {
219
219
  }
220
220
  }
221
221
 
222
+ /**
223
+ * @param {string} level
224
+ */
225
+ export function init_log_level(level) {
226
+ const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
227
+ const len0 = WASM_VECTOR_LEN;
228
+ wasm.init_log_level(ptr0, len0);
229
+ }
230
+
231
+ /**
232
+ * @returns {any}
233
+ */
234
+ export function build_info() {
235
+ const ret = wasm.build_info();
236
+ return takeObject(ret);
237
+ }
238
+
222
239
  function _assertClass(instance, klass) {
223
240
  if (!(instance instanceof klass)) {
224
241
  throw new Error(`expected instance of ${klass.name}`);
@@ -252,23 +269,6 @@ export function compile(entry_point, contracts, dependency_graph, file_source_ma
252
269
  }
253
270
  }
254
271
 
255
- /**
256
- * @param {string} level
257
- */
258
- export function init_log_level(level) {
259
- const ptr0 = passStringToWasm0(level, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
260
- const len0 = WASM_VECTOR_LEN;
261
- wasm.init_log_level(ptr0, len0);
262
- }
263
-
264
- /**
265
- * @returns {any}
266
- */
267
- export function build_info() {
268
- const ret = wasm.build_info();
269
- return takeObject(ret);
270
- }
271
-
272
272
  function handleError(f, args) {
273
273
  try {
274
274
  return f.apply(this, args);
@@ -357,7 +357,7 @@ function __wbg_get_imports() {
357
357
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
358
358
  takeObject(arg0);
359
359
  };
360
- imports.wbg.__wbg_constructor_2f52aa89ce97ba46 = function(arg0) {
360
+ imports.wbg.__wbg_constructor_35233efb35960b52 = function(arg0) {
361
361
  const ret = new Error(takeObject(arg0));
362
362
  return addHeapObject(ret);
363
363
  };
@@ -365,7 +365,7 @@ function __wbg_get_imports() {
365
365
  const ret = getObject(arg0) === undefined;
366
366
  return ret;
367
367
  };
368
- imports.wbg.__wbg_constructor_1292ee4141d8f79d = function() {
368
+ imports.wbg.__wbg_constructor_0fbcf25c6da50731 = function() {
369
369
  const ret = new Object();
370
370
  return addHeapObject(ret);
371
371
  };
Binary file
@@ -3,12 +3,12 @@
3
3
  export const memory: WebAssembly.Memory;
4
4
  export function acir_read_bytes(a: number, b: number): number;
5
5
  export function acir_write_bytes(a: number, b: number): void;
6
+ export function init_log_level(a: number, b: number): void;
7
+ export function build_info(): number;
6
8
  export function __wbg_pathtofilesourcemap_free(a: number): void;
7
9
  export function pathtofilesourcemap_new(): number;
8
10
  export function pathtofilesourcemap_add_source_code(a: number, b: number, c: number, d: number, e: number): number;
9
11
  export function compile(a: number, b: number, c: number, d: number, e: number, f: number): void;
10
- export function init_log_level(a: number, b: number): void;
11
- export function build_info(): number;
12
12
  export function __wbindgen_export_0(a: number): number;
13
13
  export function __wbindgen_export_1(a: number, b: number, c: number): number;
14
14
  export function __wbindgen_add_to_stack_pointer(a: number): number;