168 Commits

Author SHA1 Message Date
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
dcodeIO
7ab136daa5 Other: Initial map fields support for ext/descriptor, see #757 2017-04-12 22:59:55 +02:00
dcodeIO
708552bb84 Other: Added infrastructure for TypeScript support of extensions 2017-04-12 19:03:14 +02:00
dcodeIO
0425b584f4 Other: More decorator progress (MapField.d, optional Type.d) 2017-04-11 02:15:43 +02:00
dcodeIO
7a6f98b5e7 Breaking: Initial implementation of TypeScript decorators; Breaking: Refactored protobuf.Class away; Breaking: TypeScript definitions now have (a lot of) generics; Breaking: Removed deprecated features; Other: tsd-jsdoc now has limited generics support 2017-04-10 17:17:27 +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
412407de9a Docs: Restructured README 2017-04-04 13:42:19 +02:00
dcodeIO
bed514290c CLI: With null/undefined eliminated by constructors and .create, document message fields as non-optional where applicable (ideally used with TS & strictNullChecks), see #743 2017-04-04 10:23:52 +02:00
dcodeIO
79d0ba2cc7 Docs: Clarified that the service API targets clients consuming a service, see #742 2017-04-03 20:56:50 +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
6f74d30f05 CLI: Exclude JSDoc on typedefs from generated d.ts files because typescript@next, see #737 2017-03-31 14:46:05 +02:00
dcodeIO
2ebb1b7818 CLI: Prepare static code with estraverse instead of regular expressions, see #732 2017-03-27 23:11:34 +02:00
dcodeIO
8aa21268aa Fixed: Ensure that fields have been resolved when looking up js types in static target, see #731 2017-03-27 21:41:03 +02:00
dcodeIO
29ce6cae0c CLI: Moved tsd-jsdoc to future cli package, see #716 2017-03-27 16:20:04 +02:00
dcodeIO
8de21e1a94 CLI: $Properties are just a type that's satisfied, not implemented, by classes, see #723 2017-03-27 00:45:58 +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
8a60174932 CLI: Fixed computed array indexes not being renamed in static code, see #726 2017-03-24 18:34:16 +01:00
dcodeIO
8d9981588d CLI: Check upfront if key-var is required in static decoders with maps, see #726 2017-03-24 17:39:15 +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
afefa3de09 CLI: Properly implement $Properties interface in JSDoc, see #723 2017-03-24 03:33:10 +01:00
dcodeIO
a1f23e09fb CLI: Recursively use $Properties inside of $Properties in static code, see #717 2017-03-24 02:04:41 +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
e1dd1bc266 Other: With stubs in place, 'number|Long' return values can be just 'Long' instead, see #718 2017-03-24 00:02:04 +01:00
dcodeIO
0bc4a14501 CLI: Statically emitted long type is 'Long' now instead of '$protobuf.Long', see #718 2017-03-23 23:24:47 +01:00
dcodeIO
c04d4a5ab8 New: Implemented stubs for long.js / node buffers to be used where either one isn't wanted, see #718 2017-03-23 23:15:08 +01:00
dcodeIO
a06691f5b8 Fixed: Actually emit TS compatible enums in static target if not aliases, see #720 2017-03-23 21:03:13 +01:00
dcodeIO
a75625d176 CLI: Decoupled message properties as an interface in static code for TS intellisense support, see #717 2017-03-23 17:27:02 +01:00
dcodeIO
23f14a61e8 CLI: Static code statically resolves types[..], see #715 2017-03-23 16:13:49 +01:00
dcodeIO
88ca8f0d1e Other: Retain alias order in static code for what it's worth, see #712 2017-03-22 18:29:33 +01:00
dcodeIO
47bb95a317 Other: Determine necessary aliases depending on config, see #712 2017-03-22 16:28:08 +01:00
dcodeIO
588ffd9b12 Other: Use more precise types for message-like plain objects 2017-03-21 23:13:46 +01:00
dcodeIO
fe917652f8 Other: Updated tests to use new simplified encoder logic 2017-03-20 20:30:25 +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
c0b7c9fa63 Other: Added codegen support for constructor functions, see #700 2017-03-12 22:06:11 +01:00
dcodeIO
95cd64ee51 Other: Moved a few things out of the root folder 2017-03-11 05:04:44 +01:00
dcodeIO
ac26a7aa60 New: pbjs now generates multiple exports when using ES6 syntax, see #686 2017-03-11 03:23:57 +01:00