@graphprotocol/graph-cli 0.63.0-alpha-20231129164624-7160f52 → 0.63.0-alpha-20231204215314-34e2f68
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/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# @graphprotocol/graph-cli
|
|
2
2
|
|
|
3
|
-
## 0.63.0-alpha-
|
|
3
|
+
## 0.63.0-alpha-20231204215314-34e2f68
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
- [#
|
|
8
|
-
[`
|
|
9
|
-
Thanks [@
|
|
10
|
-
`
|
|
7
|
+
- [#1524](https://github.com/graphprotocol/graph-tooling/pull/1524)
|
|
8
|
+
[`086a2da`](https://github.com/graphprotocol/graph-tooling/commit/086a2da03a4388277b69b6db541a0673dc9505bb)
|
|
9
|
+
Thanks [@pedropregueiro](https://github.com/pedropregueiro)! - Add support for M3 apple silicon
|
|
10
|
+
for `graph test`
|
|
11
11
|
|
|
12
12
|
## 0.62.0
|
|
13
13
|
|
|
@@ -90,7 +90,6 @@ describe('Schema code generator', () => {
|
|
|
90
90
|
|
|
91
91
|
# New scalars
|
|
92
92
|
int8: Int8!
|
|
93
|
-
ts: Timestamp!
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
type Wallet @entity {
|
|
@@ -296,26 +295,6 @@ describe('Schema code generator', () => {
|
|
|
296
295
|
returnType: undefined,
|
|
297
296
|
body: `
|
|
298
297
|
this.set('int8', Value.fromI64(value))
|
|
299
|
-
`,
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
name: 'get timtestamp',
|
|
303
|
-
params: [],
|
|
304
|
-
returnType: new typescript_1.NamedType('i64'),
|
|
305
|
-
body: `let value = this.get('timestamp')
|
|
306
|
-
if (!value || value.kind == ValueKind.NULL) {
|
|
307
|
-
return 0
|
|
308
|
-
} else {
|
|
309
|
-
return value.toI64()
|
|
310
|
-
}
|
|
311
|
-
`,
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
name: 'set timestamp',
|
|
315
|
-
params: [new typescript_1.Param('value', new typescript_1.NamedType('i64'))],
|
|
316
|
-
returnType: undefined,
|
|
317
|
-
body: `
|
|
318
|
-
this.set('timestamp', Value.fromI64(value))
|
|
319
298
|
`,
|
|
320
299
|
},
|
|
321
300
|
{
|
|
@@ -258,7 +258,6 @@ const VALUE_TO_ASSEMBLYSCRIPT = [
|
|
|
258
258
|
['[Boolean]', 'Array<boolean>', (code) => `${code}.toBooleanArray()`],
|
|
259
259
|
['[Int]', 'Array<i32>', (code) => `${code}.toI32Array()`],
|
|
260
260
|
['[Int8]', 'Array<i64>', (code) => `${code}.toI64Array()`],
|
|
261
|
-
['[Timestamp]', 'Array<i64>', (code) => `${code}.toI64Array()`],
|
|
262
261
|
['[BigInt]', 'Array<BigInt>', (code) => `${code}.toBigIntArray()`],
|
|
263
262
|
['[ID]', 'Array<string>', (code) => `${code}.toStringArray()`],
|
|
264
263
|
['[String]', 'Array<string>', (code) => `${code}.toStringArray()`],
|
|
@@ -273,7 +272,6 @@ const VALUE_TO_ASSEMBLYSCRIPT = [
|
|
|
273
272
|
['ID', 'string', (code) => `${code}.toString()`],
|
|
274
273
|
['String', 'string', (code) => `${code}.toString()`],
|
|
275
274
|
['BigDecimal', 'BigDecimal', (code) => `${code}.toBigDecimal()`],
|
|
276
|
-
['Timestamp', 'i64', (code) => `${code}.toI64()`],
|
|
277
275
|
[/.*/, 'string', (code) => `${code}.toString()`],
|
|
278
276
|
];
|
|
279
277
|
/**
|
|
@@ -290,7 +288,6 @@ const ASSEMBLYSCRIPT_TO_VALUE = [
|
|
|
290
288
|
['Array<Array<boolean>>', '[[Boolean]]', (code) => `Value.fromBooleanMatrix(${code})`],
|
|
291
289
|
['Array<Array<i32>>', '[[Int]]', (code) => `Value.fromI32Matrix(${code})`],
|
|
292
290
|
['Array<Array<i64>>', '[[Int8]]', (code) => `Value.fromI64Matrix(${code})`],
|
|
293
|
-
['Array<Array<i64>>', '[[Timestamp]]', (code) => `Value.fromI64Matrix(${code})`],
|
|
294
291
|
['Array<Array<BigInt>>', '[[BigInt]]', (code) => `Value.fromBigIntMatrix(${code})`],
|
|
295
292
|
['Array<Array<string>>', '[[String]]', (code) => `Value.fromStringMatrix(${code})`],
|
|
296
293
|
['Array<Array<string>>', '[[ID]]', (code) => `Value.fromStringMatrix(${code})`],
|
|
@@ -308,7 +305,6 @@ const ASSEMBLYSCRIPT_TO_VALUE = [
|
|
|
308
305
|
['Array<boolean>', '[Boolean]', (code) => `Value.fromBooleanArray(${code})`],
|
|
309
306
|
['Array<i32>', '[Int]', (code) => `Value.fromI32Array(${code})`],
|
|
310
307
|
['Array<i64>', '[Int8]', (code) => `Value.fromI64Array(${code})`],
|
|
311
|
-
['Array<i64>', '[Timestamp]', (code) => `Value.fromI64Array(${code})`],
|
|
312
308
|
['Array<BigInt>', '[BigInt]', (code) => `Value.fromBigIntArray(${code})`],
|
|
313
309
|
['Array<string>', '[String]', (code) => `Value.fromStringArray(${code})`],
|
|
314
310
|
['Array<string>', '[ID]', (code) => `Value.fromStringArray(${code})`],
|
|
@@ -321,7 +317,6 @@ const ASSEMBLYSCRIPT_TO_VALUE = [
|
|
|
321
317
|
['boolean', 'Boolean', (code) => `Value.fromBoolean(${code})`],
|
|
322
318
|
['i32', 'Int', (code) => `Value.fromI32(${code})`],
|
|
323
319
|
['i64', 'Int8', (code) => `Value.fromI64(${code})`],
|
|
324
|
-
['i64', 'Timestamp', (code) => `Value.fromI64(${code})`],
|
|
325
320
|
['BigInt', 'BigInt', (code) => `Value.fromBigInt(${code})`],
|
|
326
321
|
['string', 'String', (code) => `Value.fromString(${code})`],
|
|
327
322
|
['string', 'ID', (code) => `Value.fromString(${code})`],
|
package/dist/commands/test.js
CHANGED
|
@@ -146,7 +146,7 @@ async function getPlatform(matchstickVersion, logsOpt) {
|
|
|
146
146
|
const type = os_1.default.type();
|
|
147
147
|
const arch = os_1.default.arch();
|
|
148
148
|
const cpuCore = os_1.default.cpus()[0];
|
|
149
|
-
const isAppleSilicon = arch === 'arm64' && /Apple (M1|M2|processor)/.test(cpuCore.model);
|
|
149
|
+
const isAppleSilicon = arch === 'arm64' && /Apple (M1|M2|M3|processor)/.test(cpuCore.model);
|
|
150
150
|
const linuxInfo = type === 'Linux' ? await getLinuxInfo.bind(this)() : {};
|
|
151
151
|
const linuxDistro = linuxInfo.name;
|
|
152
152
|
const release = linuxInfo.version || os_1.default.release();
|
|
@@ -44,7 +44,6 @@ const BUILTIN_SCALAR_TYPES = [
|
|
|
44
44
|
'Bytes',
|
|
45
45
|
'ID',
|
|
46
46
|
'Int8',
|
|
47
|
-
'Timestamp',
|
|
48
47
|
];
|
|
49
48
|
// Type suggestions for common mistakes
|
|
50
49
|
const TYPE_SUGGESTIONS = [
|
|
@@ -65,8 +64,6 @@ const TYPE_SUGGESTIONS = [
|
|
|
65
64
|
['Float', 'BigDecimal'],
|
|
66
65
|
['int', 'Int'],
|
|
67
66
|
['int8', 'Int8'],
|
|
68
|
-
['timestamp', 'Timestamp'],
|
|
69
|
-
['ts', 'Timestamp'],
|
|
70
67
|
['uint', 'BigInt'],
|
|
71
68
|
['owner', 'String'],
|
|
72
69
|
['Owner', 'String'],
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED