129 Commits

Author SHA1 Message Date
dcodeIO
17c2797592 New: Upgrade to codegen 2 2017-04-23 14:51:58 +02:00
dcodeIO
13bf9c2635 CLI: Various improvements to statically generated JSDoc, also fixes #772 2017-04-22 00:27:33 +02:00
dcodeIO
03194c203d Use JSDoc, they said, it documents code, they said. Fixes #770 2017-04-21 15:29:36 +02:00
dcodeIO
ec6a133ff5 Fixed: parser should not confuse previous trailing line comments with comments for the next declaration, see #762 2017-04-18 21:15:39 +02:00
dcodeIO
ff858003f5 Breaking: Replaced Buffer and Long types with interfaces and removed stubs; CLI: Further TypeScript definition improvements 2017-04-16 20:28:06 +02:00
dcodeIO
22f907c49a CLI: Relieved tsd files from unnecessary comments; CLI: Generate TS namespaces for vars and functions with properties; Other: Regenerated dist files; Breaking: Removed Message#toObject in favor of having just the static version (unnecessary static code otherwise) 2017-04-16 03:30:25 +02:00
dcodeIO
c97b618112 Breaking: Everything uses interfaces now instead of typedefs (SomethingProperties is now ISomething) 2017-04-15 19:29:31 +02:00
dcodeIO
9a23ded947 Other: ext/descriptor support for various standard options, see #757 2017-04-14 13:34:18 +02:00
dcodeIO
708552bb84 Other: Added infrastructure for TypeScript support of extensions 2017-04-12 19:03:14 +02:00
dcodeIO
7a6f98b5e7 Breaking: Initial implementation of TypeScript decorators; Breaking: Refactored protobuf.Class away; Breaking: TypeScript definitions now have (a lot of) generics; Breaking: Removed deprecated features; Other: tsd-jsdoc now has limited generics support 2017-04-10 17:17:27 +02:00
dcodeIO
57f1da6494 Other: long, @types/long and @types/node are just dependencies, see #753
It's impossible anyway to get this right for everyone, so here's the intended setup and everything else is re-configuration.
2017-04-08 13:38:17 +02:00
dcodeIO
bed514290c CLI: With null/undefined eliminated by constructors and .create, document message fields as non-optional where applicable (ideally used with TS & strictNullChecks), see #743 2017-04-04 10:23:52 +02:00
dcodeIO
a66f76452b Other: Omit copying of undefined or null in constructors and .create, see #743 2017-04-04 09:56:56 +02:00
dcodeIO
3d23eed6f7 New: Made .verify behave more like .encode, see #710 2017-04-04 08:15:38 +02:00
dcodeIO
ca0dce2d7f Other: Updated deps, ts fixes and regenerated dist files 2017-03-31 15:47:20 +02:00
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
fff1eb297a Other: Coverage for util.isset and service as a namespace 2017-03-25 23:20:52 +01:00
dcodeIO
8a60174932 CLI: Fixed computed array indexes not being renamed in static code, see #726 2017-03-24 18:34:16 +01: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
2a74fbf551 Other: Everything can be block- or line-style when parsing, see #713 2017-03-22 18:26:29 +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
68cdb5f11f Fixed: Most of the parser is not case insensitive, see #705 2017-03-18 01:04:37 +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
ac26a7aa60 New: pbjs now generates multiple exports when using ES6 syntax, see #686 2017-03-11 03:23:57 +01:00
dcodeIO
948a4caf50 Other: Updated dist and generated test files 2017-03-09 17:44:08 +01:00
dcodeIO
3ead13e83e Other: Added tslint 2017-03-09 03:58:54 +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
942011d648 Other: Updated dist files and changelog for 6.6.2 2017-01-27 17:12:14 +01:00
dcodeIO
b6cf228a82 Fixed: Use custom prelude in order to exclude any module loader code from source (for webpack), see #658 2017-01-26 17:41:08 +01:00
dcodeIO
2b12fb7db9 Other: Moved micro modules to lib so they can have their own tests etc.; Fixed: Make sure to check optional inner messages for null when encoding, see #658 2017-01-25 04:39:43 +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
301f7762ef Fixed: Do not randomly remove slashes from comments, fixes #656 2017-01-24 01:48:51 +01:00
dcodeIO
3317a76fb5 Other: Fixed some common reflection deopt sites, see #653 2017-01-24 01:43:53 +01:00