43 Commits

Author SHA1 Message Date
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
dcodeIO
e3e77d0c7d Annotate namespaces generated by static target, see #550 2016-12-13 16:58:15 +01:00
dcodeIO
ce41d0ef21 More micromodules; A lot of minor optimizations to performance and gzip ratio 2016-12-12 23:52:01 +01:00
dcodeIO
01365ba911 Added Namespace#lookupType and Namespace#lookupService (throw instead of returning null), see #544 2016-12-12 00:23:58 +01:00
dcodeIO
b8bce03405 Added simple CommonJS and AMD wrappers, see #540; Refactored json/static-module targets to use common wrappers 2016-12-12 00:08:41 +01:00
dcodeIO
5f07302f8f Static target: emit $prototype only if there are any prototype properties, see #540; utf8 1.0.2 2016-12-11 23:54:15 +01:00
dcodeIO
aff21a71e6 static target: Basic support for oneof fields, see #542 2016-12-11 14:13:39 +01:00
dcodeIO
691231fbc4 Refactor cli to support multiple built-in wrappers, added named roots instead of always using global.root and added additionally necessary eslint comments, see #540 2016-12-11 13:39:45 +01:00
dcodeIO
14c207ed6e Restructured reusable micromodules 2016-12-11 00:01:14 +01:00
dcodeIO
4157a0ec2e Also validate map fields, see #526 (this really needs some tests) 2016-12-09 16:11:27 +01:00
dcodeIO
1d99442fe6 Integrated types fixes into our tsd-jsdoc fork, now using void as return type for undefined, see #527; updated internals and static target to use immutable objects on prototypes 2016-12-07 23:37:12 +01:00
dcodeIO
5dc851e35e Versioning, actually had a couple of minor but breaking API changes [ci skip] 2016-12-07 13:44:47 +01:00
dcodeIO
090d8eaf10 Refactored cli targets; added 'defaults' option to Prototype#asJSON, see #521 2016-12-07 13:17:11 +01:00
Daniel Wirtz
046fc9f268 Merge pull request #525 from joakimrapp/missing-syntax-declaration
Missing syntax declaration
2016-12-07 12:46:45 +01:00
dcodeIO
0ce099bf4f Added json-module target to pbjs, renamed static to static-module, see #522 2016-12-07 12:05:41 +01:00
joakimrapp
bb40594672 syntax was never declared
added line 21:
var syntax = 3;

by the way, why not include the json->proto functionality into "util"?
2016-12-07 11:53:25 +01:00
joakimrapp
f1008e6ee5 Update proto.js 2016-12-07 11:47:07 +01:00
dcodeIO
09865d0693 Unified proto/reflection/classes/static encoding API to always return a writer 2016-12-04 13:06:00 +01:00
dcodeIO
81e36a7c14 pbjs static target services support 2016-12-03 15:06:51 +01:00
dcodeIO
4885b8239e pbjs static target progress, uses customizable wrapper template [ci skip] 2016-12-03 01:00:34 +01:00
dcodeIO
926905bf91 Post-merge, accept custom targets in pbjs, see #512 2016-12-02 17:47:14 +01:00
dcodeIO
ad5abe7bac Static pbjs target progress, now generates usable CommonJS code, see #512 2016-12-02 00:36:24 +01:00
dcodeIO
00f3574ef4 Initial static codegen target for reference [ci skip] 2016-12-01 17:40:04 +01:00
dcodeIO
5785dee15d Restructured encoder / decoder to better support static code gen 2016-12-01 16:55:30 +01:00
dcodeIO
6a06e95222 pbjs descriptor.proto compatibility; always use Uint8Array in docs for tsd, see #503 2016-11-30 14:50:22 +01:00
dcodeIO
4affa1b7c0 pbjs proto target field options, language-level compliance with jspb test.proto 2016-11-29 13:20:10 +01:00
dcodeIO
26ba0bb1ab Fresh master without docs 2016-11-26 11:53:06 +01:00