@codama/renderers-js 1.5.5 → 1.6.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"programInstructions.d.ts","sourceRoot":"","sources":["../../../src/fragments/programInstructions.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,WAAW,EAEd,MAAM,eAAe,CAAC;AAIvB,OAAO,EAAsB,QAAQ,EAA4B,WAAW,EAAO,MAAM,UAAU,CAAC;AAGpG,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,0BAA0B,GAAG,qBAAqB,CAAC,GAAG;IACvF,WAAW,EAAE,WAAW,CAAC;CAC5B,GACF,QAAQ,GAAG,SAAS,CAgBtB"}
1
+ {"version":3,"file":"programInstructions.d.ts","sourceRoot":"","sources":["../../../src/fragments/programInstructions.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,WAAW,EAEd,MAAM,eAAe,CAAC;AAIvB,OAAO,EAAsB,QAAQ,EAA4B,WAAW,EAAO,MAAM,UAAU,CAAC;AAGpG,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,0BAA0B,GAAG,qBAAqB,CAAC,GAAG;IACvF,WAAW,EAAE,WAAW,CAAC;CAC5B,GACF,QAAQ,GAAG,SAAS,CAiBtB"}
@@ -7,7 +7,7 @@ export type NameTransformerHelpers = {
7
7
  titleCase: (name: string) => string;
8
8
  };
9
9
  export type NameTransformer = (name: string, helpers: NameTransformerHelpers) => string;
10
- export type NameTransformerKey = 'accountDecodeFunction' | 'accountFetchAllFunction' | 'accountFetchAllMaybeFunction' | 'accountFetchFromSeedsFunction' | 'accountFetchFunction' | 'accountFetchMaybeFromSeedsFunction' | 'accountFetchMaybeFunction' | 'accountGetSizeFunction' | 'codecFunction' | 'constant' | 'constantFunction' | 'dataArgsType' | 'dataType' | 'decoderFunction' | 'discriminatedUnionDiscriminator' | 'discriminatedUnionFunction' | 'discriminatedUnionVariant' | 'encoderFunction' | 'enumVariant' | 'instructionAsyncFunction' | 'instructionAsyncInputType' | 'instructionDataType' | 'instructionExtraType' | 'instructionParsedType' | 'instructionParseFunction' | 'instructionSyncFunction' | 'instructionSyncInputType' | 'instructionType' | 'isDiscriminatedUnionFunction' | 'pdaFindFunction' | 'pdaSeedsType' | 'programAccountsEnum' | 'programAccountsEnumVariant' | 'programAccountsIdentifierFunction' | 'programAddressConstant' | 'programErrorConstant' | 'programErrorConstantPrefix' | 'programErrorMessagesMap' | 'programErrorUnion' | 'programGetErrorMessageFunction' | 'programInstructionsEnum' | 'programInstructionsEnumVariant' | 'programInstructionsIdentifierFunction' | 'programInstructionsParsedUnionType' | 'programIsErrorFunction' | 'resolverFunction';
10
+ export type NameTransformerKey = 'accountDecodeFunction' | 'accountFetchAllFunction' | 'accountFetchAllMaybeFunction' | 'accountFetchFromSeedsFunction' | 'accountFetchFunction' | 'accountFetchMaybeFromSeedsFunction' | 'accountFetchMaybeFunction' | 'accountGetSizeFunction' | 'codecFunction' | 'constant' | 'constantFunction' | 'dataArgsType' | 'dataType' | 'decoderFunction' | 'discriminatedUnionDiscriminator' | 'discriminatedUnionFunction' | 'discriminatedUnionVariant' | 'encoderFunction' | 'enumVariant' | 'instructionAsyncFunction' | 'instructionAsyncInputType' | 'instructionDataType' | 'instructionExtraType' | 'instructionParsedType' | 'instructionParseFunction' | 'instructionSyncFunction' | 'instructionSyncInputType' | 'instructionType' | 'isDiscriminatedUnionFunction' | 'pdaFindFunction' | 'pdaSeedsType' | 'programAccountsEnum' | 'programAccountsEnumVariant' | 'programAccountsIdentifierFunction' | 'programAddressConstant' | 'programErrorConstant' | 'programErrorConstantPrefix' | 'programErrorMessagesMap' | 'programErrorUnion' | 'programGetErrorMessageFunction' | 'programInstructionsEnum' | 'programInstructionsEnumVariant' | 'programInstructionsIdentifierFunction' | 'programInstructionsParsedUnionType' | 'programInstructionsParseFunction' | 'programIsErrorFunction' | 'resolverFunction';
11
11
  export type NameTransformers = Record<NameTransformerKey, NameTransformer>;
12
12
  export type NameApi = Record<NameTransformerKey, (name: string) => string>;
13
13
  export declare function getNameApi(transformers: NameTransformers): NameApi;
@@ -1 +1 @@
1
- {"version":3,"file":"nameTransformers.d.ts","sourceRoot":"","sources":["../../../src/utils/nameTransformers.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,sBAAsB,GAAG;IACjC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACrC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACrC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,KAAK,MAAM,CAAC;AAExF,MAAM,MAAM,kBAAkB,GACxB,uBAAuB,GACvB,yBAAyB,GACzB,8BAA8B,GAC9B,+BAA+B,GAC/B,sBAAsB,GACtB,oCAAoC,GACpC,2BAA2B,GAC3B,wBAAwB,GACxB,eAAe,GACf,UAAU,GACV,kBAAkB,GAClB,cAAc,GACd,UAAU,GACV,iBAAiB,GACjB,iCAAiC,GACjC,4BAA4B,GAC5B,2BAA2B,GAC3B,iBAAiB,GACjB,aAAa,GACb,0BAA0B,GAC1B,2BAA2B,GAC3B,qBAAqB,GACrB,sBAAsB,GACtB,uBAAuB,GACvB,0BAA0B,GAC1B,yBAAyB,GACzB,0BAA0B,GAC1B,iBAAiB,GACjB,8BAA8B,GAC9B,iBAAiB,GACjB,cAAc,GACd,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A2B,GAC3B,wBAAwB,GACxB,eAAe,GACf,UAAU,GACV,kBAAkB,GAClB,cAAc,GACd,UAAU,GACV,iBAAiB,GACjB,iCAAiC,GACjC,4BAA4B,GAC5B,2BAA2B,GAC3B,iBAAiB,GACjB,aAAa,GACb,0BAA0B,GAC1B,2BAA2B,GAC3B,qBAAqB,GACrB,sBAAsB,GACtB,uBAAuB,GACvB,0BAA0B,GAC1B,yBAAyB,GACzB,0BAA0B,GAC1B,iBAAiB,GACjB,8BAA8B,GAC9B,iBAAiB,GACjB,cAAc,GACd,qBAAqB,GACrB,4BAA4B,GAC5B,mCAAmC,GACnC,wBAAwB,GACxB,sBAAsB,GACtB,4BAA4B,GAC5B,yBAAyB,GACzB,mBAAmB,GACnB,gCAAgC,GAChC,yBAAyB,GACzB,gCAAgC,GAChC,uCAAuC,GACvC,oCAAoC,GACpC,kCAAkC,GAClC,wBAAwB,GACxB,kBAAkB,CAAC;AAEzB,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,kBAAkB,EAAE,eAAe,CAAC,CAAC;AAE3E,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,kBAAkB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;AAE3E,wBAAgB,UAAU,CAAC,YAAY,EAAE,gBAAgB,GAAG,OAAO,CAYlE;AAED,eAAO,MAAM,yBAAyB,EAAE,gBAgDvC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"renderVisitor.d.ts","sourceRoot":"","sources":["../../../src/visitors/renderVisitor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAoB,aAAa,EAAmB,MAAM,UAAU,CAAC;AAG5E,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB,sEAoBtE"}
1
+ {"version":3,"file":"renderVisitor.d.ts","sourceRoot":"","sources":["../../../src/visitors/renderVisitor.ts"],"names":[],"mappings":"AAGA,OAAO,EAA8B,aAAa,EAAmB,MAAM,UAAU,CAAC;AAGtF,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB,sEA2BtE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codama/renderers-js",
3
- "version": "1.5.5",
3
+ "version": "1.6.1",
4
4
  "description": "JavaScript renderer compatible with the Solana Kit library",
5
5
  "exports": {
6
6
  "types": "./dist/types/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  "@codama/renderers-core": "^1.3.4",
43
43
  "@codama/visitors-core": "^1.4.4",
44
44
  "@solana/codecs-strings": "^5.0.0",
45
- "prettier": "^3.6.2",
45
+ "prettier": "^3.8.1",
46
46
  "semver": "^7.7.3"
47
47
  },
48
48
  "devDependencies": {
@@ -51,12 +51,12 @@
51
51
  "@codama/nodes-from-anchor": "^1.3.6",
52
52
  "@solana/eslint-config-solana": "^5.0.0",
53
53
  "@solana/prettier-config-solana": "0.0.5",
54
- "@types/node": "^24",
54
+ "@types/node": "^25",
55
55
  "@types/semver": "^7.7.1",
56
56
  "agadoo": "^3.0.0",
57
57
  "eslint": "^9.35.0",
58
58
  "happy-dom": "^20.0.0",
59
- "prettier": "^3.6.2",
59
+ "prettier": "^3.8.1",
60
60
  "rimraf": "6.1.2",
61
61
  "tsup": "^8.5.0",
62
62
  "typescript": "^5.9.2",