Proto commits in improbable-eng/ts-protoc-gen

These 31 commits are when the Protocol Buffers files have changed:

Commit:77d9ada
Author:Philip K. Warren
Committer:GitHub

Fix get/set conflicting method names. (#272) * Fix get/set conflicting method names. Update the typescript generator to add a suffix '$' to methods which conflict on the Message base class ('getExtension'/'setExtension'/'getJsPbMessageId'/'setJsPbMessageId'). This will keep the typescript definitions in sync with the generated JS code from the protoc compiler. Fixes #271. * Presence checks with conflicting namess * Fix clear method name. Co-authored-by: Marcus Longmuir <marcus.longmuir@improbable.io>

The documentation is generated from this commit.

Commit:d4822f8
Author:Marcus Longmuir

Presence checks with conflicting namess

The documentation is generated from this commit.

Commit:3721355
Author:Philip K. Warren
Committer:Marcus Longmuir

Fix get/set conflicting method names. Update the typescript generator to add a suffix '$' to methods which conflict on the Message base class ('getExtension'/'setExtension'/'getJsPbMessageId'/'setJsPbMessageId'). This will keep the typescript definitions in sync with the generated JS code from the protoc compiler. Fixes #271.

Commit:f7cdd47
Author:Marcus Longmuir
Committer:GitHub

Fix extension type name check (#276)

Commit:f8a4adb
Author:Andrew Braunstein
Committer:GitHub

Add support for proto3 optional presence (#275)

Commit:3b01b6b
Author:Marcus Longmuir

WIP - Tests and implementation

Commit:54688d8
Author:Marcus Longmuir
Committer:Marcus Longmuir

Add usage and tests

Commit:dc70c35
Author:Dig-Doug
Committer:Jonny Reeves

Bazel Deprecation (#207) * - Removes all of the bazel related code - Adds a deprecation warning to the exported rules and points to the migration docs * - Removes the yarn lock

Commit:2f98b5c
Author:Dig-Doug
Committer:Jonny Reeves

Fixes a bug in the bazel rules where names with numbers were not being exported and adds a test. (#191)

Commit:cf38460
Author:Jonny Reeves
Committer:GitHub

Bugfix for field names with leading underscores (#183) * Bugfix for field names with leading underscores If a proto field name has a leading underscore, the typescript definition (`.d.ts`) will be generated incorrectly (the first character will be upper case when it should be lower to match the file generated by protoc-gen-js). This PR fixes this issue by stripping the leading underscore from the field name during code generation. fixes #182 * Remove added whitespace.

Commit:14d69f6
Author:Dig-Doug
Committer:John Reeves

Updates typescript_proto_library to use an aspect that can generate transitive dependencies. (#138)

Commit:34d3d68
Author:Riku Inoue
Committer:John Reeves

Fix snake_cased oneof message are generated to incorrect types (#118) * Fix oneOfName() returns incorrect type names * Add integration tests

Commit:5959599
Author:John Reeves
Committer:GitHub

Implement Client Streaming and BiDi Streaming for grpc-web (#82) * WIP * Fix tests * Improve test coverage * WIP * Finish off tests * Document connecting Chrome Inspector to test runs. * Reinstate test for service creation. * Reinstate mocha-reporter

Commit:24fbad6
Author:Jonny Reeves
Committer:GitHub

Add support for jstype annotation (#104) * Add support for jstype annotation Required an upgrade to google-protobuf 3.6.1, otherwise very straight forward. Fixes #17 * Add test coverage for all support field types

Commit:05c52b8
Author:Colton Morris
Committer:John Reeves

Add Custom Bazel rule (#84) * Added custom bazel rule. Also needed to change around import paths to better align with bazel's ideology. * Cleaned up * Added readme * rerun pipeline :) * Removed services flag because of pull request #83

Commit:54d261f
Author:Lan Xiao
Committer:John Reeves

Generate service files regardless of whether there are service definitions in the protos (#83)

Commit:0a49028
Author:John Reeves
Committer:Jonny Reeves

Bugfix/63 oneof casing (#67) * Fix npm test script so all tests run. * Add failing test-case which repros #63. * Fix #63; The JavaScript codegen in protoc-gen outputs oneOf's in a strange casing (ie: `ThisismyoneofCase`). * Regenerate protos

Commit:ae50fbf
Author:Jon Bretman
Committer:John Reeves

Dont use reserved words as function names (#61)

Commit:28d1540
Author:Milan Pavlik
Committer:GitHub

Move generated protos to examples and check them in (#55) * Move generated protos to examples and check them in * Add .gitattributes for proto generated files * Add better generated glob * Fix lint * Add linting to travis step * Add reference to README * Remove trailing merge line * Improve generate.sh with npm install and building of the lib, generate missing protos * Remove generated files * remove generated code * Regen protos & fix script

Commit:b762686
Author:jonbretman
Committer:jonbretman

Dont output variables that are not used in typescript service definition

Commit:bd7f658
Author:Jonny Reeves
Committer:Jonny Reeves

Export Enum Definitions as ALL_CAPS Fixes #21

Commit:d9a13de
Author:Jonny Reeves
Committer:Jonny Reeves

Add `pb_` prefix to JS Keywords (fixes #19) Matches the logic found in protobuf/compiler/js/js_generator.cc

Commit:0bcf509
Author:Marcus Longmuir
Committer:Marcus Longmuir

Exporting enums without packages

Commit:ff52eb3
Author:Marcus Longmuir

Fixes #10 - Messages without packages

Commit:dcbb8e1
Author:Marcus Longmuir
Committer:GitHub

Merge pull request #6 from improbable-eng/develop/optional-and-add Fixed issues with optional v2 messages and return type of repeated add

Commit:d7da3a9
Author:Marcus Longmuir

Fixed issues with optional v2 messages and return type of repeated add

Commit:70eedee
Author:Chris Manghane
Committer:Chris Manghane

Generate lower-camel-cased field names, getters, and setters. For a given message Foo { int32 my_FIELD }, the protogen would generate myFIELD, getMyFIELD, and setMyFIELD. Meanwhile, the compiled JS would emit myField, getMyField, setMyField, causing silent failures in certain browsers. Added tests to primitive messages for proto2 and proto3. Fixes improbable-eng/ts-protoc-gen/#2.

Commit:af82fa1
Author:Marcus Longmuir
Committer:Marcus Longmuir

Fixed generating from proto files without packages

Commit:bc3a055
Author:Marcus Longmuir
Committer:GitHub

Added Service Definition Generation (#1) * Restructure * WIP JS grpc out * Corrected ts_index * Added JS service definition generation

Commit:4d5f18b
Author:Marcus Longmuir
Committer:Marcus Longmuir

TypeScript + Tests

Commit:85e8ba5
Author:Michal Witkowski

Something working