v0.0.61
What's Changed
- Fix JSON deserialization. #181 introduced a regression that caused TwirpScript servers' JSON serialization to fail.
- Distribute strict ESM. A CommonJS is runtime is included for legacy node clients. Code generation uses ESM and requires Node.js v14 or later. If you're using a compiler other than TypeScript such as
webpack
, please see [these instructions].(https://github.com/tatethurston/TwirpScript#webpack-setup) - Use ProtoScript code generation. This will result in some generated imports coming from
protoscript
instead oftwirpscript
, but this is a non breaking change. These imports were previously delegated to ProtoScript via reexports inside TwirpScript, and that indirection has now been removed.
Full Changelog: v0.0.60...v0.0.61