ThomasAribart / json-schema-to-ts

Infer TS types from JSON schemas 📝
MIT License
1.43k stars 30 forks source link

node 18 support #106

Closed efstathiosntonas closed 1 year ago

efstathiosntonas commented 1 year ago

Hi, can you please add support for node 18.x?

My CIs are failing with while deploying to aws lambda: error json-schema-to-ts@2.6.1: The engine "node" is incompatible with this module. Expected version "^16.10.0". Got "18.12.1"

smeijer commented 1 year ago

Use 2.6.0 as a temporary workaround. That version doesn't have the engine restriction in package.json.

npm i json-schema-to-ts@2.6.0
ThomasAribart commented 1 year ago

Hi @efstathiosntonas and thanks for the heads up !

I increased node support to >=16 in the 2.6.2-beta.0, can you try it and confirm that it works ?

AntonOellerer commented 1 year ago

Hey, I am currently working on a simple service and the beta works fine for me :)

ThomasAribart commented 1 year ago

2.6.2 is out 👍 You can switch to it :) Cheers !