Skip to content

Commit

Permalink
prep v0.0.51 release (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
tatethurston authored Mar 27, 2022
1 parent d0a622f commit da24652
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v0.0.51

- Map keys are now typed as strings: `Record<string, $SomeType>`. Previously other types were accepted, which would cause type checking to fail when the key was `boolean`, `bigint`, or `number`. This is also more correct because JavaScript always encodes object keys as strings. See [#151](https://github.com/tatethurston/TwirpScript/issues/151) for more background.
- Empty messages now generate the full serialization interface implemented by other messages. This resolves an issue where messages with fields whose value was an empty message would fail code generation.
- Enum serializers now have two private serialization helpers. This resolves an issue where Enums imported into other protobuf files failed code generation. See [#150](https://github.com/tatethurston/TwirpScript/issues/150) for more background.

## v0.0.50

- Add `typescript.emitDeclarationOnly` only option. This will only emit TypeScript type definitions and not any runtime.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twirpscript",
"version": "0.0.50",
"version": "0.0.51",
"description": "A protobuf RPC framework for JavaScript and TypeScript",
"license": "MIT",
"author": "Tate Thurston <tatethurston@gmail.com>",
Expand Down

0 comments on commit da24652

Please sign in to comment.