@aztec/builder 0.86.0-starknet.1 → 0.87.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.
@@ -30,7 +30,7 @@ import { EventSelector, decodeFunctionSignature, getAllFunctionAbis, getDefaultI
30
30
  }
31
31
  return `{ ${type.fields.map((f)=>`${f.name}: ${abiTypeToTypescript(f.type)}`).join(', ')} }`;
32
32
  default:
33
- throw new Error(`Unknown type ${type}`);
33
+ throw new Error(`Unknown type ${type.kind}`);
34
34
  }
35
35
  }
36
36
  /**
@@ -155,7 +155,7 @@ import { EventSelector, decodeFunctionSignature, getAllFunctionAbis, getDefaultI
155
155
  * @returns Code.
156
156
  */ function generateAbiStatement(name, artifactImportPath) {
157
157
  const stmts = [
158
- `import ${name}ContractArtifactJson from '${artifactImportPath}' assert { type: 'json' };`,
158
+ `import ${name}ContractArtifactJson from '${artifactImportPath}' with { type: 'json' };`,
159
159
  `export const ${name}ContractArtifact = loadContractArtifact(${name}ContractArtifactJson as NoirCompiledContract);`
160
160
  ];
161
161
  return stmts.join('\n');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/builder",
3
- "version": "0.86.0-starknet.1",
3
+ "version": "0.87.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/index.js",
@@ -65,17 +65,17 @@
65
65
  ]
66
66
  },
67
67
  "dependencies": {
68
- "@aztec/foundation": "0.86.0-starknet.1",
69
- "@aztec/stdlib": "0.86.0-starknet.1",
68
+ "@aztec/foundation": "0.87.0",
69
+ "@aztec/stdlib": "0.87.0",
70
70
  "commander": "^12.1.0"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@jest/globals": "^29.5.0",
74
74
  "@types/jest": "^29.5.0",
75
- "@types/node": "^18.7.23",
75
+ "@types/node": "^22.15.17",
76
76
  "jest": "^29.5.0",
77
77
  "ts-node": "^10.9.1",
78
- "typescript": "^5.0.4"
78
+ "typescript": "^5.3.3"
79
79
  },
80
80
  "files": [
81
81
  "dest",
@@ -84,6 +84,6 @@
84
84
  ],
85
85
  "types": "./dest/index.d.ts",
86
86
  "engines": {
87
- "node": ">=18"
87
+ "node": ">=20.10"
88
88
  }
89
89
  }
@@ -45,7 +45,7 @@ function abiTypeToTypescript(type: ABIParameter['type']): string {
45
45
  }
46
46
  return `{ ${type.fields.map(f => `${f.name}: ${abiTypeToTypescript(f.type)}`).join(', ')} }`;
47
47
  default:
48
- throw new Error(`Unknown type ${type}`);
48
+ throw new Error(`Unknown type ${type.kind}`);
49
49
  }
50
50
  }
51
51
 
@@ -185,7 +185,7 @@ function generateArtifactGetters(name: string) {
185
185
  */
186
186
  function generateAbiStatement(name: string, artifactImportPath: string) {
187
187
  const stmts = [
188
- `import ${name}ContractArtifactJson from '${artifactImportPath}' assert { type: 'json' };`,
188
+ `import ${name}ContractArtifactJson from '${artifactImportPath}' with { type: 'json' };`,
189
189
  `export const ${name}ContractArtifact = loadContractArtifact(${name}ContractArtifactJson as NoirCompiledContract);`,
190
190
  ];
191
191
  return stmts.join('\n');