208 Commits

Author SHA1 Message Date
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
dcodeIO
cda5c5452f New: Removed scoping iifes from generated static code 2017-01-15 00:11:40 +01:00
dcodeIO
def7b45fb9 New: Removed even more clutter from generated static code 2017-01-14 23:52:30 +01:00
dcodeIO
dbd19fd9d3 New: Removed various clutter from generated static code 2017-01-14 22:51:03 +01:00
dcodeIO
c7e14b1d68 Fixed: Use common utility for virtual oneof getters and setters in both reflection and static code, see #644 2017-01-14 05:21:28 +01:00
dcodeIO
3f6ffd01c3 Other: Restrict comment parsing for static code to explicit /**-blocks because old protos may generate a lot of nonsense otherwise, see #640 2017-01-13 00:31:08 +01:00
dcodeIO
340d6aa82a New: Now also parses comments, sets them on reflected objects and re-uses them when generating static code, see #640 2017-01-12 23:37:08 +01:00
dcodeIO
508984b7ff CLI: Replace all occurencies of types[%d].values in static code, see #641; Fixed: Use Type.toObject/Message.toObject within converters, see #641 2017-01-12 21:23:34 +01:00
dcodeIO
0a3862b75f CLI: Use semver to validate that CLI dependencies actually satisfy the required version, see #637 2017-01-12 19:30:13 +01:00
dcodeIO
a08ee2305a Docs: Updated docs to reflect recent updates [ci skip] 2017-01-12 06:09:51 +01:00
dcodeIO
079388ca65 Docs: Updated converter documentation 2017-01-12 05:46:55 +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
1e6a8d10f2 Other: Slightly restructured utility to better support static code default values 2017-01-07 15:42:37 +01:00
dcodeIO
f303049f92 Properly annotate map fields in pbjs, fixes #624 2017-01-07 01:01:05 +01:00
dcodeIO
26d68e36e4 Dynamically resolve jsdoc when running pbts, fixes #622 2017-01-06 03:01:07 +01:00
dcodeIO
c9a61e574f Use full library for JSON modules and runtime dependency for static modules, fixes #621 2017-01-05 21:56:06 +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
Daniel Wirtz
196fdc0edd Merge pull request #610 from halex2005/master
use Long type from $protobuf
2017-01-03 21:28:00 +01:00
dcodeIO
64f95f9fa1 Install correct 'tmp' dependency when running pbts without dev dependencies installed, fixes #612 2017-01-03 21:26:18 +01:00
halex2005
169638382d use $protobuf.Long 2017-01-04 00:58:21 +05: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
fde56c0de6 Improved bytes field support, also fixes #606; Other: Refactored some internal utility away 2017-01-02 16:36:34 +01:00
dcodeIO
407223b5ce CLI: Static code no longer uses IE8 support utility 2017-01-02 14:13:48 +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
0cda72a55a CLI: Added a few helpful comments to static code 2016-12-31 14:23:44 +01:00