Skip to content

Commit ccd09b8

Browse files
Bump typescript from 5.9.2 to 5.9.3 (#255)
Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ⟣ €₥ℵ∪ℓ ⟢ <[email protected]>
1 parent 03cf7e0 commit ccd09b8

File tree

11 files changed

+43
-45
lines changed

11 files changed

+43
-45
lines changed

compact/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@
2525
"clean": "git clean -fXd"
2626
},
2727
"devDependencies": {
28+
"@tsconfig/node22": "^22.0.2",
2829
"@types/node": "22.18.0",
29-
"typescript": "^5.8.2",
30+
"typescript": "^5.9.3",
3031
"vitest": "^3.1.3"
3132
},
3233
"dependencies": {

compact/tsconfig.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
{
2+
"extends": "@tsconfig/node22/tsconfig.json",
23
"compilerOptions": {
34
"outDir": "dist",
45
"rootDir": "src",
56
"declaration": true,
6-
"lib": [
7-
"es2022"
8-
],
9-
"module": "nodenext",
10-
"target": "es2022",
11-
"strict": true,
12-
"esModuleInterop": true,
137
"skipLibCheck": true,
14-
"moduleResolution": "nodenext",
158
"sourceMap": true,
169
"rewriteRelativeImportExtensions": true,
1710
"erasableSyntaxOnly": true,
@@ -24,4 +17,4 @@
2417
"node_modules",
2518
"dist"
2619
]
27-
}
20+
}

contracts/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@
2929
"@openzeppelin-compact/compact": "workspace:^"
3030
},
3131
"devDependencies": {
32+
"@tsconfig/node22": "^22.0.2",
3233
"@types/node": "22.18.0",
3334
"ts-node": "^10.9.2",
34-
"typescript": "^5.2.2",
35+
"typescript": "^5.9.3",
3536
"vitest": "^3.1.3"
3637
}
3738
}

contracts/src/archive/test/ShieldedToken.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
} from '@midnight-ntwrk/onchain-runtime';
88
import { beforeEach, describe, expect, it } from 'vitest';
99
import type { Maybe } from '../../../artifacts/MockShieldedToken/contract/index.cjs'; // Combined imports
10-
import { ShieldedTokenSimulator } from './simulators/ShieldedTokenSimulator';
11-
import * as utils from './utils/address';
10+
import { ShieldedTokenSimulator } from './simulators/ShieldedTokenSimulator.js';
11+
import * as utils from './utils/address.js';
1212

1313
const NO_STRING: Maybe<string> = {
1414
is_some: false,

contracts/src/archive/test/simulators/ShieldedTokenSimulator.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,16 @@ import {
2222
import {
2323
type ShieldedTokenPrivateState,
2424
ShieldedTokenWitnesses,
25-
} from '../../witnesses/ShieldedTokenWitnesses';
26-
import type { IContractSimulator } from '../types/test';
25+
} from '../../witnesses/ShieldedTokenWitnesses.js';
26+
import type { IContractSimulator } from '../types/test.js';
2727

2828
/**
2929
* @description A simulator implementation of a shielded token contract for testing purposes.
3030
* @template P - The private state type, fixed to ShieldedTokenPrivateState.
3131
* @template L - The ledger type, fixed to Contract.Ledger.
3232
*/
3333
export class ShieldedTokenSimulator
34-
implements IContractSimulator<ShieldedTokenPrivateState, Ledger>
35-
{
34+
implements IContractSimulator<ShieldedTokenPrivateState, Ledger> {
3635
/** @description The underlying contract instance managing contract logic. */
3736
readonly contract: MockShielded<ShieldedTokenPrivateState>;
3837

contracts/src/archive/test/utils/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
emptyZswapLocalState,
77
QueryContext,
88
} from '@midnight-ntwrk/compact-runtime';
9-
import type { IContractSimulator } from '../types/test';
9+
import type { IContractSimulator } from '../types/test.js';
1010

1111
/**
1212
* Constructs a `CircuitContext` from the given state and sender information.

contracts/src/token/test/MultiToken.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { CoinPublicKey } from '@midnight-ntwrk/compact-runtime';
22
import { beforeEach, describe, expect, it } from 'vitest';
33
import type { Maybe } from '../../../artifacts/MockMultiToken/contract/index.cjs'; // Combined imports
4-
import { MultiTokenSimulator } from './simulators/MultiTokenSimulator';
5-
import * as utils from './utils/address';
4+
import { MultiTokenSimulator } from './simulators/MultiTokenSimulator.js';
5+
import * as utils from './utils/address.js';
66

77
// URIs
88
const NO_STRING = '';

contracts/src/token/test/simulators/MultiTokenSimulator.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,16 @@ import {
1919
import {
2020
type MultiTokenPrivateState,
2121
MultiTokenWitnesses,
22-
} from '../../witnesses/MultiTokenWitnesses';
23-
import type { IContractSimulator } from '../types/test';
22+
} from '../../witnesses/MultiTokenWitnesses.js';
23+
import type { IContractSimulator } from '../types/test.js';
2424

2525
/**
2626
* @description A simulator implementation of a MultiToken contract for testing purposes.
2727
* @template P - The private state type, fixed to MultiTokenPrivateState.
2828
* @template L - The ledger type, fixed to Contract.Ledger.
2929
*/
3030
export class MultiTokenSimulator
31-
implements IContractSimulator<MultiTokenPrivateState, Ledger>
32-
{
31+
implements IContractSimulator<MultiTokenPrivateState, Ledger> {
3332
/** @description The underlying contract instance managing contract logic. */
3433
readonly contract: MockMultiToken<MultiTokenPrivateState>;
3534

contracts/tsconfig.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
{
2-
"include": ["src/**/*.ts"],
2+
"extends": "@tsconfig/node22/tsconfig.json",
3+
"include": [
4+
"src/**/*.ts"
5+
],
36
"compilerOptions": {
47
"rootDir": "src",
58
"outDir": "dist",
69
"declaration": true,
7-
"lib": ["ESNext"],
8-
"target": "ES2022",
9-
"module": "ESNext",
10-
"moduleResolution": "node",
1110
"allowJs": true,
1211
"forceConsistentCasingInFileNames": true,
1312
"noImplicitAny": true,
14-
"strict": true,
1513
"isolatedModules": true,
1614
"sourceMap": true,
1715
"resolveJsonModule": true,
18-
"esModuleInterop": true,
19-
"skipLibCheck": true
2016
}
21-
}
17+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@types/node": "22.18.0",
3131
"ts-node": "^10.9.2",
3232
"turbo": "^2.5.8",
33-
"typescript": "^5.2.2",
33+
"typescript": "^5.9.3",
3434
"vitest": "^3.1.3"
3535
}
3636
}

0 commit comments

Comments
 (0)