286 Commits

Author SHA1 Message Date
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
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
26d9fadb21 New: decode throws specific ProtocolError with a reference to the so far decoded message if required fields are missing + example 2017-03-06 03:31:51 +01:00
dcodeIO
7502dd2dfd Docs: Documented that Type#encode respectively Message.encode do not implicitly .verify, see #696 [ci-skip] 2017-03-05 23:15:27 +01:00
dcodeIO
e7e123aa0b Other: Cache any regexp instance (perf); Docs: Documented throwing behavior of Reader.create and Message.decode 2017-03-05 23:08:53 +01:00
dcodeIO
4b21e00adc Other: Moved cli deps placeholder creation to post install script [ci skip] 2017-03-02 20:12:26 +01:00
dcodeIO
7a944538c8 CLI: Added a placeholder to cli deps node_modules folder to make sure node can load from it 2017-03-02 03:25:25 +01:00
dcodeIO
487f8922d8 Other: Updated depdendencies / rebuilt dist files 2017-02-23 18:10:40 +01:00
dcodeIO
7c3506b3f0 Fixed: Post-merge, also tackles #683 2017-02-23 04:07:08 +01:00
David Fox
f8b415a2fc Mark optional fields as possibly being undefined 2017-02-22 18:04:14 -06: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
d246024f4c Other: Minor optimizations to dependencies, build process and tsd 2017-02-03 18:27:51 +01:00
dcodeIO
c365242bdc Docs: Reference Buffer for BufferReader/Writer, see #668 2017-01-30 19:29:03 +01:00
dcodeIO
6a0920b2c3 Other: Added ES6 syntax flag to pbjs, see #667 2017-01-30 16:13:50 +01:00
dcodeIO
3aea1bf3d4 Fixed: Properly replace short vars when beautifying static code, see #663 2017-01-27 16:21:49 +01:00
dcodeIO
dd96dcdacb Other: Various other minor improvements / assertions refactored away, see #653 2017-01-24 05:05:26 +01:00
dcodeIO
735da4315a CLI: Also reuse specified root in pbjs for JSON modules, see #653 2017-01-24 03:12:32 +01:00
dcodeIO
3a056244d3 CLI: Reuse specified root name in pbjs to be able to split definitions over multiple files more easily, see #653 2017-01-24 02:07:46 +01:00
dcodeIO
27b16351f3 Breaking: Reflected and statically generated services use common utility, now work exactly the same 2017-01-21 19:41:55 +01:00
dcodeIO
7299929b37 Other: Statically generated services actually inherit from rpc.Service 2017-01-21 00:54:58 +01:00
dcodeIO
6ba8c726a5 New: Statically generated services act mostly the same as runtime services 2017-01-21 00:39:29 +01:00
dcodeIO
b4f4f48f19 New: Relieved the requirement to call .resolveAll() on roots in order to populate static code-compatible properties, see #653 2017-01-20 16:15:21 +01:00
dcodeIO
4bff9c356e Breaking: Cleaned up library distributions, now is full / light / minimal with proper browserify support for each 2017-01-20 02:50:52 +01:00
dcodeIO
28ddf756ab Docs: Improved pbjs/pbts examples, better covers reflection with definitions for static modules 2017-01-20 00:25:48 +01:00
dcodeIO
799d0303bf Other: In fromObject, check if object is already a runtime message, see #652 2017-01-19 23:24:19 +01:00
dcodeIO
cbaaae99b4 Other: Added version scheme warning to everything CLI so that we don't need this overly explicit in README 2017-01-18 15:12:02 +01:00
dcodeIO
afef1e6c05 Other: Updated changelog and dist files for 6.5.1 2017-01-18 03:29:11 +01:00
dcodeIO
9719fd2fa8 CLI: Reuse module paths when looking up cli dependencies, see #648 2017-01-18 03:14:43 +01:00
dcodeIO
6302655d13 CLI: Check actual module directories to determine if cli dependencies are present and bootstrap semver, see #648 2017-01-18 02:53:49 +01:00
dcodeIO
9b090bb167 New: Switched to own property-aware encoders for compatibility, see #639 2017-01-16 18:33:27 +01:00
dcodeIO
3cb8262815 CLI: Further improved generated static code style 2017-01-16 16:51:32 +01:00
dcodeIO
1cc8a2460c CLI: Made sure that static target's replacement regexes don't match fields 2017-01-15 00:36:47 +01:00