12 Commits

Author SHA1 Message Date
Mike Kruskal
a6563617de Add tests for proto targets and support valid edition 2023 inputs 2025-03-20 20:49:11 -07:00
Mike Kruskal
1af8454538 Hook up field presence feature 2025-03-19 23:28:49 -07:00
Martin Traverse
258679c240 Update tests for proto3 to let implicit members be optional but not nullable 2024-07-26 23:11:42 +01:00
Martin Traverse
623477b698 Include tests for interface / message types under --null-semantics 2024-07-26 16:00:15 +01:00
Martin Traverse
dee30839b0 Update tests for --null-semantics flag 2024-07-26 15:45:17 +01:00
Martin Traverse
f2a69a5c1d Add tests for handling optional fields in both proto2 and proto3 syntax 2024-07-24 18:30:11 +01:00
Alexander Fenster
f2a8620179
fix: possible infinite loop when parsing option (#1923) 2023-08-21 10:31:54 -07:00
pluschen
32f2d6a68b
feat(cli): generate static files at the granularity of proto messages (#1840)
* feat: add message filter for cli

* feat: add test

* fix: update comment

* fix: update error message

* fix: remove test file

* fix: lint, jsdoc comments, return values

Co-authored-by: pluschen <pluschen@tencent.com>
Co-authored-by: Alexander Fenster <fenster@google.com>
2023-01-24 11:44:53 -08:00
Alexander Fenster
7120e93b79
fix: generate valid js code for aliased enum values (#1801) 2022-09-09 13:15:49 -07:00
Kairlec
8aad1dd994
feat: allow message.getTypeUrl provide custom typeUrlPrefix (#1762)
* feat: allow message.getTypeUrl provide custom tyepUrlPrefix

* Update static.js

* test: added tests, regenerated test files

Co-authored-by: Alexander Fenster <fenster@google.com>
2022-07-07 14:10:58 -07:00
Simon Lipp
6e713baf54
feat: add null-defaults option (#1611)
* feat: add null-defaults option

* fix: linting

Co-authored-by: Alexander Fenster <github@fenster.name>
Co-authored-by: Alexander Fenster <fenster@google.com>
2021-05-07 20:29:36 -07:00
Alexander Fenster
90afe4412d
fix: fromObject should not initialize oneof members (#1597)
* test: adding test for pbjs static code generation

* fix: fromObject should not initialize oneof members
2021-04-28 18:25:37 -07:00