Skip to content

Latest commit

 

History

History
223 lines (120 loc) · 5.01 KB

CHANGELOG.md

File metadata and controls

223 lines (120 loc) · 5.01 KB

typechain

8.3.2

Patch Changes

  • 3469800: Escape dirs starting with digits

8.3.1

Patch Changes

  • 9107713: Fix the detection of inputs root in some specific scenarios

8.3.0

Minor Changes

  • c4720b9: fix tuples in event signatures and also arrays of tuples in functions

8.2.1

Patch Changes

  • cd4bb0f: Add the node16 moduleSuffix also to directories (including the index filename) as in ESM directory root files have to be explicitly stated (including their file extension).

8.2.0

Minor Changes

  • 15541e4: Support for nodenext style import paths with new CLI flag: --node16-modules

8.1.1

Patch Changes

  • bbc9656: Skip run if project has no ABIs

8.1.0

Minor Changes

  • 63691c4: - Expose TypechainUserConfig type.
    • Removed contractName from interface output see #692 for details.

8.0.0

Major Changes

  • 3a8a99a: Directory tree in generated types now reflects the directory tree in the inputs. Also, only the main contract type is reexported from each file.

    This change solves a number of name clashing problems. All generated code can still be imported after updating the import path.

  • 978490f: ## What's breaking:

    We are not emitting contractName fields on contracts and factories anymore.

    Why?

    contractName breaks polymorphism for example: exact token implementation is not assignable to token interface.

    What do to?

    We are adding optional flag --discriminate-types to continue emitting contractName.

  • 975a9dc: Fix type generation for arrays of nested structs ex: GovernanceMessage.Call[][] calldata _remoteCalls.

    Fix structs parser in typechain package. Now only struct tuples are registered.

Minor Changes

  • 5b9a7fb: typechain will now resolve targets better in cases where the core package is symlinked
  • e447bfb: Added optional config.inputDir property and --input-dir flag to control directory structure in generated types. If not set, it's inferred as lowest common path of all ABI files.
  • a59ae6e: Prefer import type in generated files when possible

Patch Changes

  • e1f832c: Make parsing JSON abi files more resilent. This should improve foundry integration.

7.0.1

Patch Changes

  • 7e7bbed: Add support for foundry / forge style artifacts

7.0.0

Major Changes

  • 92939ea: Structs will be namespaced using contract name when available

Patch Changes

  • d244e41: Fix event name generation for events with arrays

6.1.0

Minor Changes

  • 5f81ca9: Using --ts-nocheck (config.tsNocheck) flag, you can now add // @ts-nocheck comment in case where code generated by TypeChain doesn't pass typechecking.

    Read more in TypeScript docs.

  • 156c744: Given --help flag, typechain CLI now shows the usage guide.

6.0.5

Patch Changes

  • 135f6ce: Fix structName for nested array of struct

6.0.4

Patch Changes

  • a26ea50: Constant size struct arrays are now properly supported and don't cause malformed TS emit anymore.

6.0.3

Patch Changes

  • a0fba00: Ethers V5 target doesn't emit unused imports anymore.

6.0.2

Patch Changes

  • c6b6e5f: Remove unnecessary console.log about structs internals

6.0.1

Patch Changes

  • 44a04c0: Fix bug in parsing names of free floating structs

6.0.0

Major Changes

  • 33ee803: Fix tuple array signature

Minor Changes

  • 95517e9: Add support for Solidity structs

    // before
    function deposit(amount: { token: string; value: BigNumberish }): Promise<ContractTransaction>
    
    // after
    export type AmountStruct = { token: string; value: BigNumberish }
    
    function deposit(amount: AmountStruct): Promise<ContractTransaction>

Patch Changes

  • 0ac4921: Propagate module resolution errors from inside of target.

    Previously, when the version of @typechain/ethers-v5 you were depending on was in some way broken, typechain would just say that it could not find a target. Now, an error message will explain why.

5.2.0

Minor Changes

  • c7c2913: Escaped reserved words in argument names

5.1.2

Patch Changes

  • a3feb27: Support extracting library references in hardhat style artifacts

5.1.1

Patch Changes

  • b4fac2d: Add missing runtime dep

5.1.0

Minor Changes

  • 22134ac: Support optional ignoreNodeModules(default=true) flag for glob helper

5.0.0

Major Changes

  • d60a343: Rename --outDir CLI option to --out-dir
  • 5a60d00: Remove dependency on ts-generator

Minor Changes

  • d60a343: Add --always-generate-overloads option and by default stop generating types for overloaded functions if there are no overloads (reduces bloat)

4.0.3

Patch Changes

  • dbfe92a: Improve error message in case of a missing target

4.0.2

Patch Changes

  • d07ae43: Fix signature of overloaded methods with struct in arguments

4.0.1

Patch Changes

  • 82633bb: Do not ship tests and original source files with the npm package