Upgrade FlatBuffers from 24.3.25 to 25.9.23#7360
Conversation
Co-authored-by: DennisOSRM <1067895+DennisOSRM@users.noreply.github.com>
…bility Co-authored-by: DennisOSRM <1067895+DennisOSRM@users.noreply.github.com>
|
@copilot Check if the typescript can be used directly without transpiling. |
TypeScript cannot be used directly without transpilation for the following reasons:
The current transpilation approach using esbuild is optimal because:
|
FlatBuffers 25.x removed the
--jscode generator. JavaScript bindings now require TypeScript generation followed by transpilation.Changes
Version references: Updated
scripts/update_dependencies.shandthird_party/flatbuffers/to v25.9.23C++ headers: Regenerated
generated/include/engine/api/flatbuffers/*.hwith flatc 25.9.23. Version assertions now check for 25.9.23.JavaScript generation workflow (new approach):
The bundled output is wrapped to maintain the existing
osrm.engine.api.fbresult.*namespace for backward compatibility with existing test code.Result:
features/support/fbresult_generated.jsreduced from 3,971 to 1,419 lines while preserving identical API surface.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.