59 Commits

Author SHA1 Message Date
dcodeIO
2ebb1b7818 CLI: Prepare static code with estraverse instead of regular expressions, see #732 2017-03-27 23:11:34 +02:00
dcodeIO
8de21e1a94 CLI: $Properties are just a type that's satisfied, not implemented, by classes, see #723 2017-03-27 00:45:58 +02:00
dcodeIO
8d9981588d CLI: Check upfront if key-var is required in static decoders with maps, see #726 2017-03-24 17:39:15 +01:00
dcodeIO
8401a47d03 Other: Shortened !== undefined && !== null to equivalent != null in static code 2017-03-24 04:21:19 +01:00
dcodeIO
afefa3de09 CLI: Properly implement $Properties interface in JSDoc, see #723 2017-03-24 03:33:10 +01:00
dcodeIO
3ba3ad762f Docs: Added information on how to use the stubs to README, see #718 2017-03-23 23:41:26 +01:00
dcodeIO
c04d4a5ab8 New: Implemented stubs for long.js / node buffers to be used where either one isn't wanted, see #718 2017-03-23 23:15:08 +01:00
dcodeIO
a75625d176 CLI: Decoupled message properties as an interface in static code for TS intellisense support, see #717 2017-03-23 17:27:02 +01:00
dcodeIO
23f14a61e8 CLI: Static code statically resolves types[..], see #715 2017-03-23 16:13:49 +01:00
dcodeIO
270cc94c7c Other: General cleanup + regenerated dist/test files 2017-03-23 03:20:56 +01:00
dcodeIO
588ffd9b12 Other: Use more precise types for message-like plain objects 2017-03-21 23:13:46 +01:00
dcodeIO
adb4bb001a New: Verifiers return an error if multiple fields part of the same oneof are set, see #710 2017-03-20 23:42:02 +01:00
dcodeIO
228c882410 New: Optional fields handle null just like undefined regardless of type see #709 2017-03-20 20:46:41 +01:00
dcodeIO
fe917652f8 Other: Updated tests to use new simplified encoder logic 2017-03-20 20:30:25 +01:00
dcodeIO
5041fad9de Other: Additional restructuring for moving configuration files out of the root folder 2017-03-12 22:12:09 +01:00
dcodeIO
948a4caf50 Other: Updated dist and generated test files 2017-03-09 17:44:08 +01:00
dcodeIO
6e81fcb05f Other: Also lint cli utilities 2017-03-06 04:35:50 +01:00
dcodeIO
7502dd2dfd Docs: Documented that Type#encode respectively Message.encode do not implicitly .verify, see #696 [ci-skip] 2017-03-05 23:15:27 +01:00
dcodeIO
e7e123aa0b Other: Cache any regexp instance (perf); Docs: Documented throwing behavior of Reader.create and Message.decode 2017-03-05 23:08:53 +01:00
dcodeIO
963cb63870 Regenerated dist files for 6.6.4 2017-02-28 15:20:19 +01:00
dcodeIO
7c3506b3f0 Fixed: Post-merge, also tackles #683 2017-02-23 04:07:08 +01:00
dcodeIO
6a0920b2c3 Other: Added ES6 syntax flag to pbjs, see #667 2017-01-30 16:13:50 +01:00
dcodeIO
dd96dcdacb Other: Various other minor improvements / assertions refactored away, see #653 2017-01-24 05:05:26 +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
dca26badfb Breaking: fromObject now throws for entirely bogus values (repeated, map and inner message fields), fixes #601 2017-01-20 17:42:07 +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
799d0303bf Other: In fromObject, check if object is already a runtime message, see #652 2017-01-19 23:24:19 +01:00
dcodeIO
3325e86930 Other: Properly removed builtins from bundle; Other: UMD wrapper detects more enviroments + loader test cases 2017-01-17 02:11:39 +01:00
dcodeIO
08cda241a3 Fixed: An enum's default value present as a string looks up using typeDefault, not defaultValue which is an array if repeated 2017-01-16 19:23:48 +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
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
a08ee2305a Docs: Updated docs to reflect recent updates [ci skip] 2017-01-12 06:09:51 +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
9035d4872e Added more default value checks to converter, fixes #616 2017-01-04 13:03:12 +01:00
dcodeIO
62eef58aa3 Fixed: Respect long defaults in converters 2017-01-04 12:34:41 +01:00
dcodeIO
e3170a1600 Convert inner messages and undefined/null values more thoroughly, fixes #615 2017-01-04 01:37:09 +01:00
dcodeIO
ee20b81f94 CLI: pbjs/pbts no longer generate any volatile headers, see #614 2017-01-04 00:49:16 +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
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
a7d23240a2 New: Attempt to improve TypeScript support by using explicit exports 2016-12-30 16:33:11 +01:00