summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-05-03fix possible null dereference for nested_root accessorDerek Bailey4-12/+36
2023-05-02fix possible null dereference for nested_root accessorDerek Bailey2-23/+33
2023-05-01`flat_buffers.dart`: mark const variable finals for internal Dart lintersDerek Bailey1-27/+27
2023-04-29more window fixesDerek Bailey3-6/+8
2023-04-28fixed some windows warnings (#7929)Derek Bailey3-19/+20
2023-04-28inject no long for FBS generation to remove logs in flattests (#7926)Derek Bailey8-42/+113
* inject no long for FBS generation to remove logs in flattests * updated blaze rules
2023-04-28Revert "Migrate from rules_nodejs to rules_js/rules_ts (#7923)" (#7927)Derek Bailey35-1697/+1214
This reverts commit 4172c3f0bd6a62cd29ef160f9236352466b634ca.
2023-04-28Migrate from rules_nodejs to rules_js/rules_ts (#7923)Philipp Schrader35-1214/+1697
* Start using pnpm * Add @npm * get more stuff set up * Get the analysis phase passing. * Get esbuild working? * Get it compiling? $ bazel build //tests/ts/... * Try to get the test working * test is passing * Get the other tests working * clarify comment * clean up a bit * Try to add another test * Add another test * clean up more * remove unused reference * Add e2e test * Get more of the test working * add lock file * Get test working on its own * Get e2e test passing * fix infinite recursion * Add comments * clean up some more * clean up more again * Source typescript version from package.json * run buildifier * lint * Fix unset `extra_env` * Incorporate feedback * run buildifier --------- Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-04-28Only generate @kotlin.ExperimentalUnsigned annotation on create*Vector ↵Aaron Riekenberg32-33/+12
methods having an unsigned array type parameter. (#7881) Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-04-28additional check for absl::string_view availability (#7897)Berke1-6/+11
absl::string_view is uses std::string_view when available. It already checks if std::string_view is available in the earlier code. It should only use absl::string_view implementation. Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-04-28Optionally generate Python type annotations (#7858)Max Burke35-977/+1293
* optionally generate type prefixes and suffixes for python code * fix codegen error when qualified name is empty * WIP: Python typing * more progress towards python typing * Further iterate on Python generated code typing * clang-format * Regenerate code * add documentation for Python type annotations option * generate code with Python type annotations * handle forward references * clang-format
2023-04-25Replace deprecated command with environment file (#7921)Jongwoo Han1-6/+6
Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-04-25drop glibc from runtime dependencies (#7906)Nikita Sokolov1-1/+1
https://github.com/google/flatbuffers/issues/7696 The binary size grows from 5.8MB to 7.2MB, but this way it works on Ubuntu 18.04 and amazonlinux.
2023-04-26Make JSON supporting advanced union features (#7869)Adam Oleksy4-1/+37
This change allows user to decode binary with given schema to JSON representation when schema defines union with struct. Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-04-26Allow to use functions from `BuildFlatBuffers.cmake` from a flatbuffers ↵KerstinKeller2-0/+10
installation installed with CMake. (#7912) Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-04-25TS/JS: Use TypeError instead of Error when appropriate (#7910)José Luis Millán1-5/+5
Ie: when the needed conditions are not satisfied in order to perform a given action.
2023-04-26Go: make generated code more compliant to "go fmt" (#7907)Jeroen Demeyer19-79/+143
Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-04-26Support file_identifier in Go (#7904)Jeroen Demeyer13-13/+200
Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-04-25Optionally generate type prefixes and suffixes for python code (#7857)Max Burke29-453/+1567
* optionally generate type prefixes and suffixes for python code * fix codegen error when qualified name is empty * generated code updated
2023-04-11Go: add test for FinishWithFileIdentifier (#7905)Jeroen Demeyer1-2/+75
Co-authored-by: Michael Le <michael.le647@gmail.com>
2023-04-11Fix go_sample.sh (#7903)Jeroen Demeyer3-13/+15
2023-04-06[TS/JS] Upgrade dependencies (#7889)Björn Harrtell2-283/+285
Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-04-06Add a FileWriter interface (#7821)Khanh Nguyen13-10/+217
* Add a FileWriter interface * Change interface * Provide 2 impl for File interface: FileManager & FileNameManager * Update * update * Update * Add file_writer file * Update * Format files * Update based on review * Update * Format bzl file * Add LoadFile function * Format --------- Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-04-06TS/JS: Use minvalue from enum if not found (#7888)Björn Harrtell7-44/+11
Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-04-06[CS] Verifier (#7850)tira-misu37-9/+1952
* Fix C/C++ Create<Type>Direct with sorted vectors If a struct has a key the vector has to be sorted. To sort the vector you can't use "const". * Changes due to code review * Improve code readability * Add generate of JSON schema to string to lib * option indent_step is supported * Remove unused variables * Fix break in test * Fix style to be consistent with rest of the code * [TS] Fix reserved words as arguments (#6955) * [TS] Fix generation of reserved words in object api (#7106) * [TS] Fix generation of object api * [TS] Fix MakeCamel -> ConvertCase * [C#] Fix collision of field name and type name * [TS] Add test for struct of struct of struct * Update generated files * Add missing files * [TS] Fix query of null/undefined fields in object api * Add .Net verfier * Add some fuzz tests for .Net * Remove additional files * Fix .net test * Changes due to PR * Fix generated files --------- Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-03-30README.md: PyPI case typo (#7880)Daniel Frederick Crisman1-1/+1
PyPI has three capital letters. See the front page of the service: https://pypi.org/ "The Python Package Index (PyPI) ..." Update the Python link under "Supported programming languages" Co-authored-by: Michael Le <michael.le647@gmail.com>
2023-03-29Update go documentation link to point to root module (#7879)Michael Le1-1/+1
Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-03-27use Bool for flatbuffers bool instead of Byte (#7876)blindspotbounty5-10/+14
Add test for Bool type in swift Co-authored-by: mustiikhalil <26250654+mustiikhalil@users.noreply.github.com>
2023-03-24fix using null string in vector (#7872)phenixxy2-2/+7
Use 0 offset as special value. 0 offset is not a valid relative offset, so it's safe to use 0 offset to indicate value is null. https://github.com/google/flatbuffers/issues/7846
2023-03-15Add `flatbuffers-64` branch to CI for pushesDerek Bailey1-0/+1
2023-03-16made changes to the rust docs so they would compile. new_with_capacity is ↵Jeffrey Smith1-4/+4
deprecated should use with_capacity, get_root_as_monster should be root_as_monster (#7871)
2023-03-14Adding comment for code clarification (#7856)SmashedFrenzy161-0/+2
Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-03-15ToCamelCase() when kLowerCamel now converts first char to lower. (#7838)Paulo Pinheiro4-9/+16
ToCamelCase(input, true) converts first char to upper case, but ToCamelCase(input, false) keeps the case of the first char. We are changing its behavior to force a lower case. Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-03-09Fix help output for --java-checkerframework (#7854)Ben Beasley1-1/+1
2023-03-09Update filename to README.md and improve formatting (#7855)SmashedFrenzy161-5/+5
2023-03-03Increase limit on stale.yml items processedDerek Bailey1-1/+1
2023-03-03Allow manual runs of stale.ymlDerek Bailey1-1/+3
2023-03-03Update stale.ymlDerek Bailey1-8/+19
Shorten the PR staleness from 6 months to 3 weeks + 1 week notice. PRs become much harder to deal with the old they become due to merge conflicts and divergence. Updated to stale@v7.0.0
2023-03-03Updated remaining usages of LICENSE.txtDerek Bailey7-9/+9
2023-03-03FlatBuffers Version 23.3.3 (#7852)Derek Bailey173-251/+257
2023-03-03Add Java reflection bindings to the distribution (#7851)Chuck Atkins13-0/+1225
The distributions for C++ and Python include the generated reflection bindings but are currently missing from the other language packages. This will bring the Java package generated for releases closer to feature parity with the C++ and Python release artifacts.
2023-03-02Update pom.xml (#7849)CodeMaster70001-1/+1
Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-03-02TS/JS: Export object based classes on entry (#7822)José Luis Millán29-113/+187
* TS/JS: Export object based classes on entry Along with the non object ones, for consistency. This is a regression introduced recently. Before: `export { UpdateSettingsRequest } from './worker/update-settings-request.js';` Now: `export { UpdateSettingsRequest, UpdateSettingsRequestT } from './worker/update-settings-request.js';` * only export object based classes for structs Enums are not elegible. --------- Co-authored-by: Björn Harrtell <bjornharrtell@users.noreply.github.com> Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-03-02[Android][Kotlin] fixed build after decomission of jcenter and gradle update ↵Paulo Pinheiro13-140/+119
(#7840) * [Android] fixed build after decomission of jcenter JCenter[1] has been removed and now is failing android build. This change updates the configuration to remove this and few other warnings. 1 - https://developer.android.com/studio/build/jcenter-migration * [Kotlin] fix build for latest gradle version 8.0.1 --------- Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-03-02Add a --java-package-prefix option to flatc (#7848)Chuck Atkins3-19/+59
Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-03-02Added GENERATE_<TARGET> to flatbuffers_generate_headers (#7845)Cedric Schmeits1-0/+17
The generation of the library interface supplied by this function only works within the same directory as that the target was defined. By adding a custom target named GENERATE_<TARGET> now also interface files will be generated by making a target dependend on the generate target. Example: /CMakeLists.txt set(MY_INCL_SRC ${CMAKE_CURRENT_SOURCE_DIR}/fbs/my_incl.fbs) flatbuffers_generate_headers(TARGET my_incl SCHEMAS ${MY_INCL_SRC}) add_subdirectory(app) /app/CMakeLists.txt add_executable(app src/test.cpp) target_link_libraries(app my_incl) add_dependencies(app GENERATE_my_incl) Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-03-02[CS] Naming collision if field has same name as table and used as key (#7842)tira-misu3-8/+141
* Fix C/C++ Create<Type>Direct with sorted vectors If a struct has a key the vector has to be sorted. To sort the vector you can't use "const". * Changes due to code review * Improve code readability * Add generate of JSON schema to string to lib * option indent_step is supported * Remove unused variables * Fix break in test * Fix style to be consistent with rest of the code * [TS] Fix reserved words as arguments (#6955) * [TS] Fix generation of reserved words in object api (#7106) * [TS] Fix generation of object api * [TS] Fix MakeCamel -> ConvertCase * [C#] Fix collision of field name and type name * [TS] Add test for struct of struct of struct * Update generated files * Add missing files * [TS] Fix query of null/undefined fields in object api * Fix collision if field name is equal to table name and used as key in an array --------- Co-authored-by: Derek Bailey <derekbailey@google.com>
2023-03-02Add Code Generator for idl_gen_fbs to parse .proto files (#7832)Khanh Nguyen7-16/+119
* Add code generator for proto files * Update * Add --proto to script * Remove cmt * Move proto parsing logic into else block to share same set up logic for code_generator * Remove IsValidCodeGenerator
2023-02-27Editorconfig: als configure to trim whitespaces end EOL. (#7833)Henner Zeller1-0/+1
Signed-off-by: Henner Zeller <hzeller@google.com>
2023-02-17Move defined part to idl.h (#7823)Saman2-10/+12