176 Commits

Author SHA1 Message Date
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
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
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
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
c9a61e574f Use full library for JSON modules and runtime dependency for static modules, fixes #621 2017-01-05 21:56:06 +01:00
dcodeIO
44f6357557 CLI: Revised automatic setup of cli dependencies, see #618 2017-01-04 22:24:49 +01:00
halex2005
169638382d use $protobuf.Long 2017-01-04 00:58:21 +05: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
dcodeIO
24b293c297 CLI: Slightly beautify statically generated code 2016-12-31 03:53:46 +01:00
dcodeIO
8493dbd9a9 CLI: Reference dependency imports as a module to prevent name collisions, see #596 2016-12-30 13:24:43 +01:00
dcodeIO
31da56c177 Other: Various jsdoc improvements and a workaround for d.ts generation, see #592 2016-12-29 17:26:39 +01:00
dcodeIO
39a2ea361c CLI: Removed now unnecessary comment lines in generated static code 2016-12-27 23:53:24 +01:00
dcodeIO
3d84ecdb47 CLI: pbjs now generates more convenient dot-notation property accessors 2016-12-27 17:57:26 +01:00
dcodeIO
a97956b132 Breaking: Moved camelCase/underScore away from util to where actually used 2016-12-23 12:06:54 +01:00
dcodeIO
c60cd397e9 CLI: Annotated callback types in pbjs-generated services, see #582 2016-12-22 19:51:41 +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
dcodeIO
3e7e4fc59e pbjs: Removed type/ns alias comment in static target to not confuse jsdoc unnecessarily 2016-12-20 00:09:44 +01:00
dcodeIO
99ad9cc087 Added .create to statically generated types and uppercase nested elements to reflection namespaces, see #576; Also added Namespace#getEnum for completeness, see #576; Made pbjs use loadSync for deterministic outputs, see #573 2016-12-19 23:51:45 +01:00
dcodeIO
3ad8108eab Prevent NRE and properly annotate verify signature in tsd-jsdoc, fixed #572 2016-12-18 16:33:25 +01:00
dcodeIO
bfac0ea9af Stripped out fallback encoder/decoder/verifier completely (even IE8 supports codegen), significantly reduces bundle size, can use static codegen elsewhere 2016-12-18 13:59:52 +01:00
dcodeIO
fed2000e7e Added legacy groups support to pbjs, see #568 2016-12-18 01:56:47 +01:00
dcodeIO
1a6fdc9a11 Added ParseOptions to protobuf.parse and --keep-case for .proto sources to pbjs, see #564 2016-12-16 15:18:38 +01:00
dcodeIO
f1110b0993 Allow null for optional messages, see #562; Other minor improvements to short ifs 2016-12-15 19:18:43 +01:00
dcodeIO
9b7b92a4c7 Fixed reserved names re, also ensure valid service method names, see #559 2016-12-15 14:49:41 +01:00
dcodeIO
be3e0d92e1 Use extend module; Attempt to alias reserved js names in static codegen, see #559; Some README 2016-12-15 14:44:01 +01:00
dcodeIO
74b2c5c5d3 Process huge strings in chunks, see #555; Run bench in tests for a while; Raw alloc benchmark 2016-12-13 23:24:40 +01:00