Closed kgreenek closed 5 months ago
Thank you for reporting this. I think your assessment is correct and we are falling behind protobuf's developments.
Can confirm the syntax()
method was removed in this commit, which was part of release v26.0 (https://github.com/protocolbuffers/protobuf/commit/cf2d6965dcb6e15490232041da8b7b6c8ec669eb#diff-faab3ee51729cba39d00c0691c6b9905ec3eca43da31dcd09af3e4ffd0d1a6a3L1860).
Relevant comment:
// With the upcoming release of editions, syntax should not be used for
// business logic. Instead, the various feature helpers defined in this file
// should be used to query more targeted behaviors. For example:
// has_presence, is_closed, requires_utf8_validation.
I think this PR removed the Legacy class used in js_generator.cc. That change was also was released in protobuf v26.0 (https://github.com/protocolbuffers/protobuf/pull/15709).
Using the latest version of protobuf (v27.1), I see the following compiler errors when trying to compile the javascript generator:
It looks like perhaps the latest version might have removed some legacy classes.