64 Commits

Author SHA1 Message Date
Martin Traverse
9bcc00610f Update CLI options help and README 2024-07-26 16:05:43 +01:00
Martin Traverse
bee997d5e8 Update PBJS and README for new --null-semantics flag 2024-07-26 15:43:14 +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
358d336439 Hide the fix for PB3 optional type declarations behind the flag --pb3-optional 2024-07-24 11:53:33 +01:00
gitjuba
e42eea4868
fix(cli): fix relative path to Google pb files (#1859) 2023-02-02 13:14:35 -08: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
Gergely Nagy
7558ef0f93
feat: add alt-comment CLI option (#1692) 2022-07-07 17:16:14 -07:00
Taylor McIntyre
d13d5d5688
feat: add getTypeUrl method to generated code (#1463)
* Add getTypeUrl method to static-module generated code

* add tests for getTypeUrl method
2021-05-21 15:53:03 -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
Matthew Douglass
d01394a146
feat: add --no-service option for pbjs static target (#1577)
This option skips generation of service clients.

Co-authored-by: Alexander Fenster <fenster@google.com>
2021-04-14 10:33:42 -07:00
Mike Ralphson
7f46dbeb53
fix: typo in pbjs help text (#1552) 2021-03-12 15:54:47 -08:00
Taylor McIntyre
da34f43ccd
feat!: move command line tool to a new package named protobufjs-cli (#1234)
* Get protobufjs-cli to a publishable state

* Fix eslint issues

* Fix pbts path

* Install cli package deps on CI 'build' job

* fix: get rid of require-protobufjs.js

* fix: lint

* fix: versions

* chore(deps): update package-lock.json

Co-authored-by: Stacey Sern <stacey@dropbox.com>
Co-authored-by: Gabriel Cangussu <gabrielcangussu@gmail.com>
Co-authored-by: Alexander Fenster <fenster@google.com>
2021-01-15 16:02:00 -08:00
Simon Warta
6698d59243 Don't imply --wrap es6 from --es6 2020-06-18 11:13:31 +02:00
dcodeIO
2c5ef95818 CLI: Extend list of ignored ESLint rules for pbjs, fixes #1085 2018-07-17 22:28:03 +02:00
dcodeIO
3a86c1751a Merge branch 'master' of https://github.com/dcodeIO/protobuf.js 2017-06-09 10:04:05 +02:00
dcodeIO
114f7ea9fa Other: Minor formatting 2017-06-09 10:04:01 +02:00
Vitalii Ishchenko
4eac28c7d3 Use protobuf/minimal when pbjs target is static-module 2017-05-30 15:26:46 +03:00
Robin Anil
8a6e464954 Generate files 2017-05-23 15:05:23 -05:00
Robin Anil
42f8a97630 Remove the no-constructor arg 2017-05-23 13:46:04 -05:00
Robin Anil
6446247cd7 Remove the ctor option. 2017-05-23 13:41:48 -05:00
Robin Anil
2059ee0f6f Add support to generate types for JSON object.
Add support for string types.
2017-05-23 13:28:37 -05:00
dcodeIO
3a959453fe CLI: Added closure wrapper 2017-04-24 13:02:10 +02:00
dcodeIO
1f76749d0b Docs: Replaced 'runtime message' with 'message instance' for clarity 2017-04-05 19:01:36 +02:00
dcodeIO
16e3c9405a Other: Rebuilt dist files for 6.7.1 2017-04-05 12:12:16 +02:00
dcodeIO
007b232984 CLI: Renamed --strict-long/message to --force-long/message with backward compatible aliases, see #741 2017-04-03 17:09:26 +02:00
dcodeIO
6aae71f75e CLI: Keep $Properties with --strict-message but require actual instances within, see #741 2017-04-03 16:52:05 +02:00
dcodeIO
c812cef0ef CLI: Added --strict-message option to pbjs to strictly reference message instances instead of $Properties, see #741 2017-04-03 13:48:13 +02:00
dcodeIO
ca0dce2d7f Other: Updated deps, ts fixes and regenerated dist files 2017-03-31 15:47:20 +02:00
dcodeIO
4bfe0c239b CLI: More progress on decoupling the CLI; Docs: Explained the JSON structure in README and moved CLI specific information to the CLI package 2017-03-24 22:41:04 +01:00
dcodeIO
16adff0c7b CLI: Fixed handling of stdout if callback is specified, see #724 2017-03-24 16:28:40 +01:00
dcodeIO
6423a419fe CLI: Preparations for moving the CLI to its own package, see #716 2017-03-24 16:14:59 +01:00
dcodeIO
c3f0a2124c CLI: Added --strict-long option to pbjs to always emit 'Long' instead of 'number|Long' (only relevant with long.js), see #718 2017-03-24 00:57:06 +01:00
dcodeIO
5041fad9de Other: Additional restructuring for moving configuration files out of the root folder 2017-03-12 22:12:09 +01:00
dcodeIO
364e7d457e Other: Exclude dist/ from codeclimate checks 2017-03-07 23:04:37 +01:00
dcodeIO
6e81fcb05f Other: Also lint cli utilities 2017-03-06 04:35:50 +01:00
dcodeIO
2ddb76b6e9 CLI: Added an experimental --sparse option to limit pbjs output to actually referenced types within main files; Other: Added a few more common google types from google/api, see #433 2017-02-04 05:36:57 +01:00
dcodeIO
6a0920b2c3 Other: Added ES6 syntax flag to pbjs, see #667 2017-01-30 16:13:50 +01:00
dcodeIO
9b090bb167 New: Switched to own property-aware encoders for compatibility, see #639 2017-01-16 18:33:27 +01:00
dcodeIO
a08ee2305a Docs: Updated docs to reflect recent updates [ci skip] 2017-01-12 06:09:51 +01:00
dcodeIO
3946e0fefe Breaking: Initial upgrade of converters to real generated functions, see #620 2017-01-12 05:10:14 +01:00
dcodeIO
f230d985ab Docs: Updated changelog for 6.4.6 2017-01-11 02:30:58 +01:00
dcodeIO
e88d13ca7e CLI: Additional workarounds for on demand CLI dependencies, see #618 2017-01-05 01:16:37 +01:00
dcodeIO
44f6357557 CLI: Revised automatic setup of cli dependencies, see #618 2017-01-04 22:24:49 +01:00
dcodeIO
ee20b81f94 CLI: pbjs/pbts no longer generate any volatile headers, see #614 2017-01-04 00:49:16 +01:00
dcodeIO
804739dbb7 CLI: Removed 'not recommend' label for --keep-case, see #608 [ci skip] 2017-01-03 14:55:33 +01:00
dcodeIO
9681854526 CLI: Added customizable linter configuration to pbjs; CLI: Added stdin support to pbjs and pbts 2017-01-02 22:02:25 +01:00
dcodeIO
a017bf8a2d Breaking: Dropped IE8 support; New: Converters use code generation and support custom implementations; CLI: Generated static code now supports asJSON/from 2017-01-02 05:46:27 +01:00
dcodeIO
3d84ecdb47 CLI: pbjs now generates more convenient dot-notation property accessors 2016-12-27 17:57:26 +01:00
dcodeIO
ab3e236a96 Docs: Added static/JSON module interchangeability to README; Minor optimizations through providing type-hints; Performance: Reverted shortened switch statements in verifier; Compatibility: Enums can't be map key types 2016-12-20 01:38:22 +01:00