294 Commits

Author SHA1 Message Date
sofisl
c74c2ecc36 chore: release master 2025-04-14 19:15:44 -07:00
sofisl
f04ded3a03
Merge pull request #2051 from mkruskal-google/edition2023
feat: add Edition 2023 Support
2025-04-14 12:30:00 -07:00
sofisl
d36ef0faea
feat: increase size of file that protobufjs CLI can process 2025-04-01 16:36:16 -07:00
Mike Kruskal
a84409b47f Cleanup: remove protoFeatures, move editions out of options, handle unresolved options for fromJSON, fix aggregate feature handling 2025-03-26 21:13:03 -07:00
Mike Kruskal
9c5a178c4b Fix file metadata problem by storing edition/features on top-level objects 2025-03-25 21:54:29 -07:00
Mike Kruskal
b2c686721e Partially fix some bugs handling the load of cross-edition files.
This will now work as long as all files sharing a package agree on file-level edition and options
2025-03-21 20:09:21 -07:00
Mike Kruskal
60f3e51087 Lint fixes 2025-03-20 21:33:00 -07:00
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
Sofia Leon
caad500420 tests: added and broke up tests 2024-10-08 12:44:16 -07:00
sofisl
5d352876d2
Merge branch 'master' into protobufEditionsWork 2024-09-19 11:25:43 -07:00
Sofia Leon
1bd72fff37 chore: run lint 2024-09-19 11:21:21 -07:00
Sofia Leon
43a703ab77 revert package-lock updates/ 2024-09-18 21:13:01 -07:00
Sofia Leon
a9ffc8a7b5 feat: add feature resolution 2024-09-18 21:05:00 -07:00
Sofia Leon
a70c6a4c9f revert package-lock changes 2024-09-17 13:59:42 -07:00
Sofia Leon
73590ccadc undo bundle changes 2024-09-17 13:58:08 -07:00
Sofia Leon
b802c42881 save for now 2024-09-16 20:38:48 -07:00
Sofia Leon
dae1b3ee58 undo lockfile update 2024-09-13 18:56:50 -07:00
Sofia Leon
b4b5ca468f feat: api_converters_editions tests added and run successfully" 2024-08-23 16:31:25 -07:00
github-actions[bot]
3d2e2f9677
chore: release master 2024-08-22 18:30:10 +00:00
github-actions[bot]
01c96b5641
chore: release master 2024-08-16 19:43:05 +00:00
Daniel Bankhead
7be19d329a
Merge pull request #2010 from LavissaWoW/typedef-fix
fix: multi-line typedefs generating "let" statements
2024-08-16 12:42:13 -07:00
Martin Traverse
c478e1fe21 Add braces to if/else clauses for readability on all code touched by this change 2024-07-29 08:02:09 +01:00
Martin Traverse
94bfbbc18e Allow undefined values (but not nulls) for implicit presence fields in properties / interfaces 2024-07-26 22:47:52 +01:00
Martin Traverse
8e0027a193
Make parentIsInterface default to false in toJsType()
Co-authored-by: Daniel Bankhead <dan@danielbankhead.com>
2024-07-26 20:26:52 +01:00
Martin Traverse
fda51db00c Allow for other syntax options than "proto2" or "proto3" 2024-07-26 16:38:29 +01:00
Martin Traverse
9bcc00610f Update CLI options help and README 2024-07-26 16:05:43 +01:00
Martin Traverse
d5700a5a6a Implement propagation of interface / message types under --null-semantics flag 2024-07-26 16:00:54 +01:00
Martin Traverse
50255d0862 Fix one lint warning 2024-07-26 15:45:29 +01:00
Martin Traverse
bee997d5e8 Update PBJS and README for new --null-semantics flag 2024-07-26 15:43:14 +01:00
Martin Traverse
ed5980cadc Change config flag to --null-semantics and update comments 2024-07-26 15:41:24 +01:00
Martin Traverse
31f85e943c Address comment for default syntax 2024-07-26 15:07:33 +01:00
Martin Traverse
6204b2dee9 Address codestyle comment (braces for if/else) 2024-07-26 15:06:43 +01:00
Martin Traverse
09f577a5ab Do not generate doc comments for virtual oneOfs 2024-07-25 16:19:44 +01:00
Martin Traverse
ccd640e62b Do not require repeated or map fields in the object properties (i.e. for interface types) 2024-07-25 16:18:32 +01:00
Martin Traverse
856af47881 Use field options in proto3 instead of adding an extra property 2024-07-25 15:59:55 +01:00
Martin Traverse
f2ed6e0021 Fix lint warnings 2024-07-25 11:47:27 +01:00
Martin Traverse
aa61793c1c Only look up proto syntax once per type in the static generator 2024-07-24 19:18:48 +01:00
Martin Traverse
996e445f59 Explicit handling of proto3 syntax in the parser and static generator 2024-07-24 18:42:01 +01:00
Martin Traverse
479375556f Fix options list in pbjs 2024-07-24 16:28:48 +01:00
Martin Traverse
2bd0b43444 New implementation that explicitly respects the optional keyword 2024-07-24 16:25:56 +01:00
Martin Traverse
94556f9f1b Do not use null-defaults to decide type signature for pb3-optionals (this only sets the default of optional fields, it doesn't control whether a field is optional or not) 2024-07-24 11:53:33 +01:00
Martin Traverse
358d336439 Hide the fix for PB3 optional type declarations behind the flag --pb3-optional 2024-07-24 11:53:33 +01:00
Martin Traverse
b38a668f49 Fixes optional handling for class-level comments (JS) and interfaces (TS) 2024-07-24 11:53:33 +01:00
Nichlas Nielsen Walsøe
28e8d921e5 Fix multi-line typedefs generating "let" statements
Multi-line typedefs now generates valid type syntax
2024-07-24 10:49:02 +02:00
github-actions[bot]
4436cc748c
chore: release master (#1925)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-21 17:03:30 -07:00
Alexander Fenster
f2a8620179
fix: possible infinite loop when parsing option (#1923) 2023-08-21 10:31:54 -07:00
github-actions[bot]
644d588c04
chore: release master (#1865)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-02 13:15:45 -08:00
gitjuba
e42eea4868
fix(cli): fix relative path to Google pb files (#1859) 2023-02-02 13:14:35 -08:00
github-actions[bot]
0099ddccae
chore: release master (#1852)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-24 11:48:28 -08:00