136 Commits

Author SHA1 Message Date
dcodeIO
805291086f Reverted previous attempt on #597 2016-12-31 00:14:45 +01:00
dcodeIO
40074bb69c New: Added an asJSON-option to always populate array fields, even if defaults=false, see #597 2016-12-30 17:31:00 +01:00
dcodeIO
3bab132b87 Other: Allow null values on optional long fields, see #590 2016-12-29 17:41:10 +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
3d84ecdb47 CLI: pbjs now generates more convenient dot-notation property accessors 2016-12-27 17:57:26 +01:00
dcodeIO
1e0ebc064e Other: And fixed IE8 again (should probably just drop IE8 for good) 2016-12-27 13:47:46 +01:00
dcodeIO
95ed6e9e82 Fixed: Empty inner messages are always present on the wire + test case + removed now unused Writer#ldelim parameter, see #585 2016-12-27 13:25:16 +01:00
dcodeIO
61fd385674 Other: Various minor improvements and coverage progress 2016-12-26 18:58:17 +01:00
dcodeIO
0d66b839df Fixed a couple of issues with alternative browser builds 2016-12-24 01:17:55 +01:00
dcodeIO
a97956b132 Breaking: Moved camelCase/underScore away from util to where actually used 2016-12-23 12:06:54 +01:00
dcodeIO
4d1f5facfc Docs: Updated documentation on runtime and noparse builds 2016-12-23 11:47:40 +01:00
dcodeIO
442471363f New: Added a noparse build for completeness 2016-12-23 11:39:11 +01:00
dcodeIO
d3ebd5745b Other: Expose array implementation used with (older) browsers on util for tests 2016-12-22 23:50:04 +01:00
dcodeIO
c144e73865 Breaking: Renamed asJSON option keys (enum to enums, long to longs) because enum is a reserved keyword 2016-12-22 23:27:19 +01:00
dcodeIO
b1b6a813c9 Other: Updated test cases 2016-12-22 17:09:41 +01:00
dcodeIO
5b9ade428d Breaking: Moved JSON/Message conversion to its own source file and added Message/Type.from + test case, see #575 2016-12-22 14:21:37 +01:00
dcodeIO
bfee1cc362 New: Now compresses .gz files using zopfli to make them useful beyond being just a reference 2016-12-21 12:52:42 +01:00
dcodeIO
aed134aa1c New: Updated non-bundled google types folder with missing descriptors and added wrappers to core 2016-12-21 00:36:28 +01:00
dcodeIO
0b0de2458a Breaking: Relicensed the library and its components to BSD-3-Clause to match the official implementation (again); New: Replaced the ieee754 implementation for old browsers with a faster, use-case specific one + simple test case 2016-12-20 22:40:47 +01:00
dcodeIO
24f2c03af9 Docs: Added notes on how to use pbjs and pbts programmatically 2016-12-20 17:44:55 +01:00
dcodeIO
333f022181 Integrated changelog into build process, now also has 'npm run make' for everything, see #574 2016-12-20 14:20:06 +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
ef43acff54 Added Namespace#getEnum and changed #lookupEnum to the same behavior, see #576 2016-12-19 13:17:55 +01:00
dcodeIO
7fac9d6a39 Properly check Buffer.prototype.set with node v4 2016-12-19 00:34:34 +01:00
dcodeIO
22a64c641d Dropped support for browser buffer entirely (is an Uint8Array anyway), ensures performance and makes things simpler; Removed dead parts of the Reader API 2016-12-18 23:48:54 +01:00
dcodeIO
1fcfdfe21c Added a heap of coverage comments for usually unused code paths to open things up 2016-12-18 21:07:36 +01:00
dcodeIO
964f65a9dd Refactored BufferReader/Writer to their own files and removed unnecessary operations (node always has FloatXXArray and browser buffer uses ieee anyway) 2016-12-18 20:26:02 +01:00
dcodeIO
7939a4bd8b Updated README and bundler according to dynamic require calls 2016-12-18 18:55:07 +01:00
dcodeIO
8ef6975b0b Use custom require (now a micromodule) for all optional modules, see #571 2016-12-18 18:35:31 +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
4bd9bd7254 Post-merge 2016-12-18 15:45:33 +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
19e906c2a1 Added filter type to Namespace#lookup, fixes #569; Reverted aliases frequently used in codegen for better gzip ratio 2016-12-18 13:29:12 +01:00
dcodeIO
47b51ec95a Shrinked bundle size - a bit 2016-12-18 03:02:53 +01:00
dcodeIO
fed2000e7e Added legacy groups support to pbjs, see #568 2016-12-18 01:56:47 +01:00
dcodeIO
974a1321da Initial support for legacy groups + test case, see #568 2016-12-18 01:21:27 +01:00
dcodeIO
9c9a66bf39 Added asJSON bytes as Buffer, see #566; Fixed parsing enum inner options, see #565; Other minor optimizations 2016-12-17 13:47:06 +01:00
dcodeIO
ea7ba8b838 Fixed release links in README files [ci skip] 2016-12-16 17:12:20 +01:00
dcodeIO
7003c56b1a 6.2.1 2016-12-16 17:10:38 +01:00
dcodeIO
3cb1b7e994 Updated docs and types [ci skip] 2016-12-16 15:43:04 +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
4531d75cdd Can't just inline longNeq but can be simplified 2016-12-16 14:15:22 +01:00
dcodeIO
8f25377cf9 Inlined longNeq; Additional cyclic checks, see 563; More profiling data; Array abuse and varint optimization 2016-12-16 12:38:14 +01:00
dcodeIO
90b201209a Updated dependencies 2016-12-15 19:22:00 +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
c079c900e2 Post-merge; Reader/Writer example 2016-12-15 18:47:35 +01:00
dcodeIO
fb74223b72 Simplified programmatic CLI api; Other minor optimizations 2016-12-15 17:51:24 +01:00
dcodeIO
9c769504e0 Lazily resolve (some) cyclic dependencies, see #560 2016-12-15 15:27:54 +01:00