57 Commits

Author SHA1 Message Date
dcodeIO
65637ffce2 CLI: Do not wrap main definition as a module and export directly instead; CLI: Generate prettier definitions with --no-comments 2016-12-31 01:08:14 +01:00
dcodeIO
a7d23240a2 New: Attempt to improve TypeScript support by using explicit exports 2016-12-30 16:33:11 +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
kaka
46ec8209b2 Reference dependencies as imports in generated typescript definitions, see #596 2016-12-30 17:31:56 +08:00
dcodeIO
c0ab94c2e4 Other: Reference dependencies as imports in generated typescript definitions, see #596 2016-12-30 01:52:19 +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
e8a4d5373b CLI: Expose tsd-jsdoc's comments option to pbts as --no-comments, see #587 2016-12-27 23:17:35 +01:00
dcodeIO
6fe099259b CLI: Increase child process max buffer when running jsdoc from pbts, see #587 2016-12-27 23:07:49 +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
b40c86a66e 6.2.0 [ci skip] 2016-12-15 18:00:06 +01:00
dcodeIO
fb74223b72 Simplified programmatic CLI api; Other minor optimizations 2016-12-15 17:51:24 +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
75f4b6cb63 Moved extend implementation to its own micromodule, might help with #560; tsd-jsdoc progress 2016-12-15 12:57:11 +01:00
dcodeIO
8f407a1860 Post-merge; Repo now includes a restructured version of tsd-jsdoc with our changes incorporated for issues/prs, see #550 2016-12-15 02:30:55 +01:00
dcodeIO
4750e3111b pbts: Pipe tsd-jsdoc output (requires dcodeIO/tsd-jsdoc/master) and respect cwd, see #550 2016-12-14 18:30:03 +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
d31590b82d Notes on descriptors vs static modules [ci skip] 2016-12-13 15:05:25 +01:00
dcodeIO
3783af7ca9 Initial pbts CLI for generating TypeScript definitions, see #550 2016-12-13 13:43:22 +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
28a1d26f28 Make genVerifyKey actually generate conditions for 32bit values and bool, fixes #546 2016-12-12 01:30:06 +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