ovotech / castle

Framework for building Kafka and avro based apps in typescript
Other
77 stars 19 forks source link

avro-ts: DeprecationWarning "createPropertySignature" #137

Open skanaar opened 1 year ago

skanaar commented 1 year ago

This project is super useful for us! Thank you for providing it.

However there is some deprecation warnings being logged when calling toTypeScript which would be nice to get rid of.

DeprecationWarning: 'createPropertySignature' has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead. DeprecationWarning: 'createInterfaceDeclaration' has been deprecated since v4.8.0. Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter. DeprecationWarning: 'createTypeAliasDeclaration' has been deprecated since v4.8.0. Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter. DeprecationWarning: 'createModuleDeclaration' has been deprecated since v4.8.0. Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter.

ivank commented 1 year ago

KK will take a look

ghost commented 1 year ago

Related Stackoverflow post regarding this error. The error isnt quite the same, but the format is.

https://stackoverflow.com/questions/73507563/deprecationwarning-getmutableclone-has-been-deprecated-since-v4-0-0-use-an-a

From the replies it seems to imply that there are a number of typescript features which have been deprecated.

I have recently attempted to upgrade my Typescript version from 4.5.2 to 4.9.4 and am now receiving the same warnings as above.