Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
tresabhi authored Nov 9, 2024
2 parents 735eedc + 38b114c commit 94251ce
Show file tree
Hide file tree
Showing 8 changed files with 638 additions and 9 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
## [2.2.5](https://github.com/stephenh/ts-proto/compare/v2.2.4...v2.2.5) (2024-10-22)


### Bug Fixes

* Added null propagation and guard ([#1127](https://github.com/stephenh/ts-proto/issues/1127)) ([86637fa](https://github.com/stephenh/ts-proto/commit/86637fa6c39ddcc09cab3c486c34b7a52adaf694))

## [2.2.4](https://github.com/stephenh/ts-proto/compare/v2.2.3...v2.2.4) (2024-10-15)


### Bug Fixes

* Unbreak a use case for [#1110](https://github.com/stephenh/ts-proto/issues/1110) / fix for [#1121](https://github.com/stephenh/ts-proto/issues/1121) ([#1123](https://github.com/stephenh/ts-proto/issues/1123)) ([476e99b](https://github.com/stephenh/ts-proto/commit/476e99bcbc651cec1946d0dbad09dc9aea3224ff))

## [2.2.3](https://github.com/stephenh/ts-proto/compare/v2.2.2...v2.2.3) (2024-10-06)


### Bug Fixes

* Don't fail on Function message names ([#1119](https://github.com/stephenh/ts-proto/issues/1119)) ([da048a1](https://github.com/stephenh/ts-proto/commit/da048a1e78cdc1baa228700c40a944652998d2a1)), closes [#1110](https://github.com/stephenh/ts-proto/issues/1110)

## [2.2.2](https://github.com/stephenh/ts-proto/compare/v2.2.1...v2.2.2) (2024-10-04)


Expand Down
1 change: 1 addition & 0 deletions integration/test-1110/parameters.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
useExactTypes=false
13 changes: 13 additions & 0 deletions integration/test-1110/test-1110-test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { UserRule, Nested_Function } from "./test-1110";

describe("test-1110", () => {
it("Able to create a partial user rule with reserved word messages", () => {
const simple: UserRule = UserRule.fromPartial({ UUID: "foo" });
expect(simple).toBeTruthy();
});

it("built in handling should only be done to top level", () => {
const nestedFunction: Nested_Function = Nested_Function.fromPartial({});
expect(nestedFunction).toBeTruthy();
});
});
36 changes: 36 additions & 0 deletions integration/test-1110/test-1110.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
syntax = "proto3";

message UserRule {
// just some fake rule for testing
string UUID = 1 [json_name = "uuid"];
}

message Object {
string namespace = 1;
string name = 2;
}

message Boolean {
string namespace = 1;
string name = 2;
}

message Symbol {
string namespace = 1;
string name = 2;
}

message Function {
string namespace = 1;
string name = 2;
}

message Nested {
message Function {
string namespace = 1;
string name = 2;
}
}

service APIService {
}
Loading

0 comments on commit 94251ce

Please sign in to comment.