Skip to content

Commit de06e4e

Browse files
committed
feat(util-dev)!: remove createStubLogger util
was only used from 'util' package tests, causing circular deps: core->util->util-dev->core
1 parent b72dab5 commit de06e4e

File tree

6 files changed

+2
-5
lines changed

6 files changed

+2
-5
lines changed

Diff for: packages/util-dev/src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export * from './chainSync';
66
export * from './TestLogger';
77
export * from './util';
88
export * from './createStubStakePoolProvider';
9-
export * from './stubLogger';
109
export * from './testScheduler';
1110
export * from './createStubUtxoProvider';
1211
export * from './createGenericMockServer';

Diff for: packages/util/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"test:debug": "DEBUG=true yarn test"
5454
},
5555
"devDependencies": {
56-
"@cardano-sdk/util-dev": "^0.9.0",
5756
"@types/lodash": "^4.14.182",
5857
"eslint": "^7.32.0",
5958
"jest": "^28.1.3",

Diff for: packages/util/test/RunnableModule.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { InvalidModuleState, RunnableModule } from '../src';
22
import { Logger, dummyLogger } from 'ts-log';
3-
import { createStubLogger } from '@cardano-sdk/util-dev';
3+
import { createStubLogger } from './util';
44

55
class SomeRunnableModule extends RunnableModule {
66
constructor(logger = dummyLogger) {

Diff for: packages/util/test/logging.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Logger } from 'ts-log';
2-
import { createStubLogger } from '@cardano-sdk/util-dev';
32

43
import { contextLogger } from '../src';
4+
import { createStubLogger } from './util';
55

66
const SOME_MODULE = 'some-module';
77
const SOME_FUNCTION_NAME = 'some-function-name';
File renamed without changes.

Diff for: yarn.lock

-1
Original file line numberDiff line numberDiff line change
@@ -2950,7 +2950,6 @@ __metadata:
29502950
version: 0.0.0-use.local
29512951
resolution: "@cardano-sdk/util@workspace:packages/util"
29522952
dependencies:
2953-
"@cardano-sdk/util-dev": ^0.9.0
29542953
"@types/lodash": ^4.14.182
29552954
bech32: ^2.0.0
29562955
eslint: ^7.32.0

0 commit comments

Comments
 (0)