Kairlec
|
8aad1dd994
|
feat: allow message.getTypeUrl provide custom typeUrlPrefix (#1762)
* feat: allow message.getTypeUrl provide custom tyepUrlPrefix
* Update static.js
* test: added tests, regenerated test files
Co-authored-by: Alexander Fenster <fenster@google.com>
|
2022-07-07 14:10:58 -07:00 |
|
Taylor McIntyre
|
d13d5d5688
|
feat: add getTypeUrl method to generated code (#1463)
* Add getTypeUrl method to static-module generated code
* add tests for getTypeUrl method
|
2021-05-21 15:53:03 -07:00 |
|
Daniel Wirtz
|
42f49b43f6
|
feat: update dependencies / general cleanup (#1356)
Co-authored-by: Alexander Fenster <fenster@google.com>
|
2020-04-17 15:53:50 +02:00 |
|
dcodeIO
|
2c5ef95818
|
CLI: Extend list of ignored ESLint rules for pbjs, fixes #1085
|
2018-07-17 22:28:03 +02:00 |
|
dcodeIO
|
19d2af12b5
|
CLI: Make sure enum typings become generated (#884 didn't solve this); Other: Update tests
|
2017-11-24 18:15:12 +01:00 |
|
dcodeIO
|
ed7e2e71f5
|
CLI: Accept null for optional fields in generated static code
|
2017-07-11 17:54:41 +02:00 |
|
dcodeIO
|
e1f9d9856c
|
Also be more verbose when defining properties for ES6, fixes #820
|
2017-06-09 11:17:35 +02:00 |
|
dcodeIO
|
cf36097305
|
Generate more verbose JSDoc comments for ES6 support, fixes #820
|
2017-06-09 11:03:56 +02:00 |
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
d4272dbf5d
|
CLI: Also accept (trailing) triple-slash comments for compatibility with protoc-gen-doc, see #640
|
2017-01-13 01:49:47 +01:00 |
|
dcodeIO
|
3f6ffd01c3
|
Other: Restrict comment parsing for static code to explicit /**-blocks because old protos may generate a lot of nonsense otherwise, see #640
|
2017-01-13 00:31:08 +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 |
|