Skip to content

Commit a57624a

Browse files
authored
Use latest RenderMap type from renderers-core (#63)
1 parent b4c057e commit a57624a

File tree

6 files changed

+171
-166
lines changed

6 files changed

+171
-166
lines changed

.changeset/smart-pants-begin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@codama/renderers-demo': patch
3+
---
4+
5+
Use latest RenderMap type from renderers-core

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
"test:unit": "vitest run"
5050
},
5151
"dependencies": {
52-
"@codama/errors": "^1.3.7",
53-
"@codama/nodes": "^1.3.7",
54-
"@codama/renderers-core": "^1.2.2",
55-
"@codama/visitors-core": "^1.3.7",
52+
"@codama/errors": "^1.4.1",
53+
"@codama/nodes": "^1.4.1",
54+
"@codama/renderers-core": "^1.3.0",
55+
"@codama/visitors-core": "^1.4.1",
5656
"@solana/codecs": "^5.0.0"
5757
},
5858
"devDependencies": {

pnpm-lock.yaml

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/visitors/getRenderMapVisitor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
getPdaPageFragment,
2020
getProgramPageFragment,
2121
} from '../fragments';
22-
import { RenderMapOptions } from '../utils';
22+
import { Fragment, RenderMapOptions } from '../utils';
2323
import { getTypeVisitor } from './getTypeVisitor';
2424
import { getValueVisitor } from './getValueVisitor';
2525

@@ -34,7 +34,7 @@ export function getRenderMapVisitor(options: RenderMapOptions = {}) {
3434
const byteSizeVisitor = getByteSizeVisitor(linkables, { stack });
3535

3636
return pipe(
37-
staticVisitor(() => createRenderMap(), {
37+
staticVisitor(() => createRenderMap<Fragment>(), {
3838
keys: ['rootNode', 'programNode', 'pdaNode', 'accountNode', 'definedTypeNode', 'instructionNode'],
3939
}),
4040
v =>

test/e2e/system/pnpm-lock.yaml

Lines changed: 76 additions & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)