208 Commits

Author SHA1 Message Date
dcodeIO
cc991a058b CLI: Use correct safeProp in json-module target, see #956 2017-11-29 02:16:51 +01:00
dcodeIO
db2dd49f6a Fixed: Prevent invalid JSDoc names when generating service methods, see #870 2017-11-27 17:45:05 +01:00
dcodeIO
20a2627142 CLI: Sanitize CR-only line endings (coming from jsdoc?) 2017-11-26 22:51:44 +01:00
dcodeIO
c482a5b76f Fixed: Unified safe property escapes and added a test for #834 2017-11-26 22:41:09 +01:00
Daniel Wirtz
e04ddc42eb
CLI: Skip defaults when generating proto3 (#902) 2017-11-25 14:18:21 +01:00
Daniel Wirtz
c7ecc925ad
CLI: Annotate virtual oneof fields as string literal unions (#880) 2017-11-24 23:21:01 +01:00
dcodeIO
b8a5b126fa Other: Regenerated dist files and fixed linting issues 2017-11-24 18:50:18 +01:00
dcodeIO
19d2af12b5 CLI: Make sure enum typings become generated (#884 didn't solve this); Other: Update tests 2017-11-24 18:15:12 +01:00
Daniel Wirtz
367d5daff4
CLI: Annotate class definitions with @implements (#881) 2017-11-24 16:13:01 +01:00
Daniel Wirtz
6bb5237609
Fixed: Made sure enum typings become generated (#884) 2017-11-24 16:11:30 +01:00
Daniel Wirtz
87136f7355
Merge pull request #913 from AndiDog/type-name-starting-with-object-fix
Fix codegen if type name starts with "Object"
2017-11-24 16:03:26 +01:00
Nikita Tokarchuk
a2c72c08b0 CLI: Remove exclude and include patterns from jsdoc config 2017-11-05 22:44:15 +01:00
Andreas Sommer
1724581c36 Fix codegen if type name starts with "Object" 2017-09-17 18:58:46 +02:00
stelcheck
9afb8a2ff2
proto3: skip defaults
Defaults are not supported in proto3, and therefore should
not be appended to a `.proto` file when using `-t proto3`
flag for `pbjs`.
2017-09-04 12:43:43 +09:00
Andreas Noever
5a6feb4eda Generate enum TypeScript typings.
Fixes #836.
2017-07-30 19:34:36 +02:00
Cory Li
27cc66a539 annotating classes with @implements 2017-07-26 22:18:48 -07:00
Cory Li
05e7e06367 virtual oneofs annotated as string literal unions 2017-07-26 20:57:25 -07:00
dcodeIO
952c7d1b47 CLI: Wait for both the 'end' and 'close' event to happen before finishing in pbts, see #863 2017-07-12 23:03:52 +02:00
Daniel Wirtz
31ab863f4f Merge pull request #864 from eventualbuddha/use-light-instead-of-minimal
Fixed dependency for json-module to use "light".
2017-07-11 18:01:40 +02:00
dcodeIO
ed7e2e71f5 CLI: Accept null for optional fields in generated static code 2017-07-11 17:54:41 +02:00
Brian Donovan
adecd544c5 Fixed dependency for json-module to use "light".
"minimal" doesn't include `Root`, as mentioned in #828 and #856. Probably caused by #813.
2017-07-11 08:52:10 -07:00
dcodeIO
c306d19d80 Added 'undefined' besides 'null' as a valid value of an optional field, fixes #826 2017-06-09 23:00:07 +02:00
dcodeIO
e1f9d9856c Also be more verbose when defining properties for ES6, fixes #820 2017-06-09 11:17:35 +02:00
dcodeIO
cf36097305 Generate more verbose JSDoc comments for ES6 support, fixes #820 2017-06-09 11:03:56 +02:00
dcodeIO
3b848a10b3 Fixed missing semicolon after 'extensions' and 'reserved' when generating proto files, fixes #810 2017-06-09 10:08:04 +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
dcodeIO
eb1b40497e Call npm with '--no-bin-links' when installing CLI deps, fixes #823 2017-06-09 10:02:39 +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
a510692fe9 Cleanup 2017-05-23 13:44:27 -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
Marcus Ilgner
429de19d85
Fix Reader argument conversion in static module 2017-05-14 13:57:52 +02:00
dcodeIO
3a959453fe CLI: Added closure wrapper 2017-04-24 13:02:10 +02:00
dcodeIO
17c2797592 New: Upgrade to codegen 2 2017-04-23 14:51:58 +02:00
dcodeIO
13bf9c2635 CLI: Various improvements to statically generated JSDoc, also fixes #772 2017-04-22 00:27:33 +02:00
dcodeIO
03194c203d Use JSDoc, they said, it documents code, they said. Fixes #770 2017-04-21 15:29:36 +02:00
dcodeIO
23f4b99037 Docs: Replaced nullable types with explicit type|null for better tooling compatibility, also fixes #766 and fixes 767 2017-04-20 14:42:45 +02:00
dcodeIO
ffdc93c7cf CLI: Check incompatible properties for namespaces only in tsd-jsdoc 2017-04-18 21:16:33 +02:00
dcodeIO
fb3f9c7043 CLI: Additional tsd-jsdoc handling of properties inside of namespaces and TS specific API exposure 2017-04-18 14:28:36 +02:00
dcodeIO
2dcae25c99 CLI: Several improvements to tsd-jsdoc emitted comments 2017-04-17 23:44:59 +02:00
dcodeIO
ff858003f5 Breaking: Replaced Buffer and Long types with interfaces and removed stubs; CLI: Further TypeScript definition improvements 2017-04-16 20:28:06 +02:00
dcodeIO
22f907c49a CLI: Relieved tsd files from unnecessary comments; CLI: Generate TS namespaces for vars and functions with properties; Other: Regenerated dist files; Breaking: Removed Message#toObject in favor of having just the static version (unnecessary static code otherwise) 2017-04-16 03:30:25 +02:00
dcodeIO
c97b618112 Breaking: Everything uses interfaces now instead of typedefs (SomethingProperties is now ISomething) 2017-04-15 19:29:31 +02:00
dcodeIO
9a23ded947 Other: ext/descriptor support for various standard options, see #757 2017-04-14 13:34:18 +02:00
dcodeIO
3a20968c6d Other: Properly remove unnecessary (packed) options from JSON descriptors 2017-04-13 19:12:45 +02:00
dcodeIO
1fc911cef0 Other: Fixed obvious issues with ext/descriptor, does not throw anymore when throwing descriptor.proto itself at it, see #757 2017-04-13 02:40:01 +02:00
dcodeIO
b355115e61 CLI: Prefer @tstype over @type when generating typedefs (tsd-jsdoc) 2017-04-12 23:40:06 +02:00