v2.0.7
版本发布时间: 2022-08-23 12:44:56
google/flatbuffers最新发布版本:v24.3.25(2024-03-26 13:27:38)
This is a minor release with lots of changes :)
I would like to get in the habit of releasing more often (at least for the flatc
and C++ libraries) and the first step is to reduce the amount of diffs between releases (especially patch/revision only updates).
See a high level change log notes in our new CHANGELOG.md document, with the following list auto generated by github release workflow:
What's Changed
- explicitly use windows-2019 to unblock ci by @dbaileychess in https://github.com/google/flatbuffers/pull/7105
- Go optional scalars by @chriscraws in https://github.com/google/flatbuffers/pull/7104
- Fix minor typo in WhitePaper.md by @meersuri in https://github.com/google/flatbuffers/pull/7108
- [TS] Fix generation of reserved words in object api (#7106) by @tira-misu in https://github.com/google/flatbuffers/pull/7115
- Add deps attribute to flatbuffer_cc_library by @jkuszmaul in https://github.com/google/flatbuffers/pull/7107
- add the missing checkNullConditionnal code in the "GenObjApi" function by @anov21 in https://github.com/google/flatbuffers/pull/7114
- remove auto generate code from cmakelists by @dbaileychess in https://github.com/google/flatbuffers/pull/7119
- Trigger fuzzing CI only on relevant changes by @dbaileychess in https://github.com/google/flatbuffers/pull/7120
- update proto tests with alaised enum by @dbaileychess in https://github.com/google/flatbuffers/pull/7121
- Use target_compile_features to target C++11 by @dbaileychess in https://github.com/google/flatbuffers/pull/7122
- Use ConvertCase instead of Make{Upper,Lower,Snake} implementations by @dbaileychess in https://github.com/google/flatbuffers/pull/7127
- Replaced ToDasherCase with ConvertCase by @dbaileychess in https://github.com/google/flatbuffers/pull/7131
- [Rust] Add length checks to arrays and vectors. by @CasperN in https://github.com/google/flatbuffers/pull/7130
- Prevent name clash by @dbaileychess in https://github.com/google/flatbuffers/pull/7133
- Fix 64-bit numeric enum values in typescript by @jkuszmaul in https://github.com/google/flatbuffers/pull/7135
- [TS] Escape keywords in typescript object names by @jkuszmaul in https://github.com/google/flatbuffers/pull/7137
- Implement a config based name manager and use it in Rust codegen by @CasperN in https://github.com/google/flatbuffers/pull/7144
- Fix missing 'break' by @CasperN in https://github.com/google/flatbuffers/pull/7151
- Apply Namer to Python code gen by @CasperN in https://github.com/google/flatbuffers/pull/7146
- Apply Namer to Go code gen by @CasperN in https://github.com/google/flatbuffers/pull/7150
- [TS] Add single-file ts codegen & bazel rule for typescript by @jkuszmaul in https://github.com/google/flatbuffers/pull/7161
- Use DESCRIPTION only if CMake version >= 3.9 by @Paulchen-Panther in https://github.com/google/flatbuffers/pull/7166
- Nameroverloads by @CasperN in https://github.com/google/flatbuffers/pull/7164
- Namersw by @CasperN in https://github.com/google/flatbuffers/pull/7167
- Make inclusion of header
opt-out via macro by @davschne in https://github.com/google/flatbuffers/pull/7168 - [Lua] Apply Namer to Lua by @dbaileychess in https://github.com/google/flatbuffers/pull/7171
- Annotated Flatbuffer Binary by @dbaileychess in https://github.com/google/flatbuffers/pull/7174
- Typo in flatc options (warning-as-errors instead of warnings-as-errors) by @stefan301 in https://github.com/google/flatbuffers/pull/7180
- Move flatbuffer_ts_library to typescript.bzl by @jkuszmaul in https://github.com/google/flatbuffers/pull/7183
- Adds no-includes flags to the swift code generator by @mustiikhalil in https://github.com/google/flatbuffers/pull/7182
- Correctly parse lists of enums in Dart generated code by @insertjokehere in https://github.com/google/flatbuffers/pull/7157
- VerifySizePrefixed (reflection::Schema) and GetAnySizePrefixedRoot added by @stefan301 in https://github.com/google/flatbuffers/pull/7181
- [TS] Fix generation of struct members in object api by @tira-misu in https://github.com/google/flatbuffers/pull/7148
- Handle root offset and root table vtable invalidation by @dbaileychess in https://github.com/google/flatbuffers/pull/7177
- Fuzzed binary annotator by @dbaileychess in https://github.com/google/flatbuffers/pull/7188
- Namerdart by @CasperN in https://github.com/google/flatbuffers/pull/7187
- Annotated Binary Structured Comments by @dbaileychess in https://github.com/google/flatbuffers/pull/7192
- [swift] Add bazel configuration for Swift by @keith in https://github.com/google/flatbuffers/pull/7195
- [C#] Fix collision of field name and type name by @tira-misu in https://github.com/google/flatbuffers/pull/7149
- Apply Namer to Java. by @CasperN in https://github.com/google/flatbuffers/pull/7194
- Apply Namer prefix/suffix to other generators by @CasperN in https://github.com/google/flatbuffers/pull/7197
- fixed padding in struct for annotated binary by @dbaileychess in https://github.com/google/flatbuffers/pull/7199
- [C++] Static assert on Flatbuffers Version by @dbaileychess in https://github.com/google/flatbuffers/pull/7203
- maximize parallel builds in CI by @dbaileychess in https://github.com/google/flatbuffers/pull/7206
- Add overloads for C# ByteBuffer/FlatBufferBuilder to allow adding vector blocks from ArraySegments or IntPtr by @Jamie-Jameson in https://github.com/google/flatbuffers/pull/7193
- Fix for [C++] flatc generates invalid Code in the default constructor for structs, when --cpp-field-case-style is used #7209 by @stefan301 in https://github.com/google/flatbuffers/pull/7211
- [C++] generate sorted #include directives by @stefan301 in https://github.com/google/flatbuffers/pull/7213
- code gen flexbuffer verifier by @dbaileychess in https://github.com/google/flatbuffers/pull/7207
- [C++] stl_emulation span::count_ is not const anymore (#7226) by @avaliente-bc in https://github.com/google/flatbuffers/pull/7227
- Started to migrate to target_compile_options by @dbaileychess in https://github.com/google/flatbuffers/pull/7222
- Adds implementation flag for swift by @mustiikhalil in https://github.com/google/flatbuffers/pull/7202
- Adds a way to verify/exposes Entities ids by @mustiikhalil in https://github.com/google/flatbuffers/pull/7221
- Create cpp-linter.yml by @dbaileychess in https://github.com/google/flatbuffers/pull/7208
- disable cpp-linter by @dbaileychess in https://github.com/google/flatbuffers/pull/7229
- Remove call toascii by @dbaileychess in https://github.com/google/flatbuffers/pull/7234
- [Kotlin] Update gradle to 7.4.1 and simplify config files. by @paulovap in https://github.com/google/flatbuffers/pull/7231
- [Swift] Fixes a bug for create function by @mustiikhalil in https://github.com/google/flatbuffers/pull/7228
- Allow CreateVectorOfStrings() to work with any string-type. by @hzeller in https://github.com/google/flatbuffers/pull/7238
- [Java] Fix key lookup returning null clashing with default value by @paulovap in https://github.com/google/flatbuffers/pull/7236
- [Kotlin] Fix key lookup returning null clashing with default value by @paulovap in https://github.com/google/flatbuffers/pull/7237
- set workflows permissions to read-only by @dbaileychess in https://github.com/google/flatbuffers/pull/7239
- Expand test to make sure {}-initializers are properly understood by template by @hzeller in https://github.com/google/flatbuffers/pull/7242
- Make Java namespaces keep case by default by @CasperN in https://github.com/google/flatbuffers/pull/7243
- Add parameter back to EndVector by @dbaileychess in https://github.com/google/flatbuffers/pull/7246
- Java namer typo by @dbaileychess in https://github.com/google/flatbuffers/pull/7249
- [optimization] Keep the underlying storage capacity when clearing the FlatBufferBuilder by @hassila in https://github.com/google/flatbuffers/pull/7250
- Turn off Go modules temporary by @mustiikhalil in https://github.com/google/flatbuffers/pull/7251
- Add test for nested buffer verifier by @dbaileychess in https://github.com/google/flatbuffers/pull/7252
- Swift update performance benchmark infrastructure by @hassila in https://github.com/google/flatbuffers/pull/7255
- Specialize CreateVector with std::initializer_list by @dbaileychess in https://github.com/google/flatbuffers/pull/7254
- Handle +/-inf in protos by @dbaileychess in https://github.com/google/flatbuffers/pull/7256
- [performance] [swift] Add systematic inlining by @hassila in https://github.com/google/flatbuffers/pull/7253
- Added Swift to supported languages by @hassila in https://github.com/google/flatbuffers/pull/7257
- fix include order by @dbaileychess in https://github.com/google/flatbuffers/pull/7266
- Rust: fix a name conflict when building with "no_std" feature by @fjarri in https://github.com/google/flatbuffers/pull/7268
- [swift] Make swift module public by @keith in https://github.com/google/flatbuffers/pull/7274
- Make
flatc
generate Rust files not requiringstd
by @fjarri in https://github.com/google/flatbuffers/pull/7273 - Namerkot by @CasperN in https://github.com/google/flatbuffers/pull/7245
- Remove span ConstIterator/cbegin()/cend(). by @pkasting in https://github.com/google/flatbuffers/pull/7295
- [swift] add 'has<ArrayName>' property to check optional array presence in mes… by @mr-swifter in https://github.com/google/flatbuffers/pull/7280
- Update Rust docs page by @bsilver8192 in https://github.com/google/flatbuffers/pull/7296
- Add size check to fix out of bounds read risk by @bjornharrtell in https://github.com/google/flatbuffers/pull/7304
- Add explicit return types to lobster generated code by @bartwe in https://github.com/google/flatbuffers/pull/7312
- Use keep case for Rust union discriminant type. by @CasperN in https://github.com/google/flatbuffers/pull/7321
- [Swift] Wasm support by @mustiikhalil in https://github.com/google/flatbuffers/pull/7328
- Started implementation for private flags in rust by @mustiikhalil in https://github.com/google/flatbuffers/pull/7269
- Implement optional scalars for Python by @calebzulawski in https://github.com/google/flatbuffers/pull/7318
- Move reflection_ts_fbs into a separate directory by @liuliu in https://github.com/google/flatbuffers/pull/7342
- Implement optional scalars for JSON by @calebzulawski in https://github.com/google/flatbuffers/pull/7322
- [Go] Replace deprecated package io/ioutil by @cia-rana in https://github.com/google/flatbuffers/pull/7281
- [TS] fix ts import path issue by @sssooonnnggg in https://github.com/google/flatbuffers/pull/7298
- [Kotlin] Remove download benchmark files dependency by @paulovap in https://github.com/google/flatbuffers/pull/7314
- [golang] Create missing namespace directory structure (#7324) by @tsturm in https://github.com/google/flatbuffers/pull/7325
- [TS] Don't generate self-imports with --ts-flat-file by @jkuszmaul in https://github.com/google/flatbuffers/pull/7340
- Revert "Move reflection_ts_fbs into a separate directory" by @dbaileychess in https://github.com/google/flatbuffers/pull/7349
- Revert "Implement optional scalars for JSON" by @dbaileychess in https://github.com/google/flatbuffers/pull/7351
- Only include direct included files by @dbaileychess in https://github.com/google/flatbuffers/pull/7348
- Reenable optional json by @calebzulawski in https://github.com/google/flatbuffers/pull/7352
- Bump Newtonsoft.Json from 12.0.3 to 13.0.1 in /tests/FlatBuffers.Test by @dependabot in https://github.com/google/flatbuffers/pull/7363
- [Dart] Implement putBool to fix errors when serializing structs with bools by @insertjokehere in https://github.com/google/flatbuffers/pull/7359
- Fix references to LICENSE file by @Hixie in https://github.com/google/flatbuffers/pull/7377
- Updated Newtonsoft.Json to 13.0.1 by @dbaileychess in https://github.com/google/flatbuffers/pull/7393
- cpp_generator: comment out unused parameter to avoid warnings by @yshalabi in https://github.com/google/flatbuffers/pull/7381
- fix(#7360): grpc used deprecated functions by @godcong in https://github.com/google/flatbuffers/pull/7361
-
keep-prefix
keeps relative pathing by @dbaileychess in https://github.com/google/flatbuffers/pull/7394 - Compilation issue msys2 by @chronoxor in https://github.com/google/flatbuffers/pull/7403
- Add missing const by @atkurtul in https://github.com/google/flatbuffers/pull/7401
- [TS] fix incorrect reverse order when writting array of structs by @sssooonnnggg in https://github.com/google/flatbuffers/pull/7271
- [TS/Bazel] Minor improvements to typescript.bzl by @jkuszmaul in https://github.com/google/flatbuffers/pull/7300
- Fix Clang-Cl compile on Windows by @06393993 in https://github.com/google/flatbuffers/pull/7308
- grpc/compiler: Respect filename suffix and extension during code generation by @amaneureka in https://github.com/google/flatbuffers/pull/7343
- Fix error msg format when generate GRPC failed by @SF-Zhou in https://github.com/google/flatbuffers/pull/7350
- (#7323) Rename CMake files according to project name by @clanghans in https://github.com/google/flatbuffers/pull/7378
- Revert "grpc/compiler: Respect filename suffix and extension during code generation" by @dbaileychess in https://github.com/google/flatbuffers/pull/7406
- Revert "Compilation issue msys2" by @dbaileychess in https://github.com/google/flatbuffers/pull/7407
- Compilation issue msys2 #7399 by @chronoxor in https://github.com/google/flatbuffers/pull/7409
- [TS] Use TextEncoder and TextDecoder by @bjornharrtell in https://github.com/google/flatbuffers/pull/7400
- Add FLATBUFFERS_STRICT_MODE by @dbaileychess in https://github.com/google/flatbuffers/pull/7408
- Add tests for flatc by @dbaileychess in https://github.com/google/flatbuffers/pull/7405
- Rebased: grpc/compiler: Respect filename suffix and extension during code generation by @amaneureka in https://github.com/google/flatbuffers/pull/7414
- Moved TypeScriptTests to python script by @dbaileychess in https://github.com/google/flatbuffers/pull/7411
- [golang] Add support for text parsing with json struct tags by @aburdulescu in https://github.com/google/flatbuffers/pull/7353
- Remove stringop-overflow from error by @dbaileychess in https://github.com/google/flatbuffers/pull/7422
- [golang] Perform keyword escaping after case conversion by @aburdulescu in https://github.com/google/flatbuffers/pull/7421
- [C++] Vector of Tables equality by @dbaileychess in https://github.com/google/flatbuffers/pull/7415
- [C++] avoid zero-as-null-pointer warning by @sssooonnnggg in https://github.com/google/flatbuffers/pull/7423
- Issue#6959 :Updated Automatically generated rust files. by @YashasviChaurasia in https://github.com/google/flatbuffers/pull/7425
- [C++] Make template parameter in stl_emulation.h more explicit to avoid conflicts with cpprestsdk U macro by @marcelkrueger in https://github.com/google/flatbuffers/pull/7424
- [C++] Set StructDef::has_key property when deserializing from binary … by @sssooonnnggg in https://github.com/google/flatbuffers/pull/7428
- Remove auto including locale functions by @dbaileychess in https://github.com/google/flatbuffers/pull/7430
- Update gitingore to reflect name change by @dbaileychess in https://github.com/google/flatbuffers/pull/7431
- Update TypeScriptTest.py to work better cross platform by @dbaileychess in https://github.com/google/flatbuffers/pull/7436
- Add flatc python tests to CI by @dbaileychess in https://github.com/google/flatbuffers/pull/7437
- Fix FlexBuffers JS/TS bug by @mzaks in https://github.com/google/flatbuffers/pull/7434
- Add checks to verifier by @dbaileychess in https://github.com/google/flatbuffers/pull/7438
- [TypeScript] Fix namespaceless schema generation by @dbaileychess in https://github.com/google/flatbuffers/pull/7432
- make_span overloads for pointer to vector (#7374) by @stefan301 in https://github.com/google/flatbuffers/pull/7435
- Define minimum buffer size by @dbaileychess in https://github.com/google/flatbuffers/pull/7440
- [C#] Rework how sorted vectors are looked up by @dbaileychess in https://github.com/google/flatbuffers/pull/7441
- Stop using __has_trivial_copy on recent clang versions. by @MirkoBonadei in https://github.com/google/flatbuffers/pull/7443
- [Kotlin] Make sure namespace path exist for code generation by @paulovap in https://github.com/google/flatbuffers/pull/7357
- Partial support for --ts-flat-files and --gen-all by @dbaileychess in https://github.com/google/flatbuffers/pull/7446
- Add some extra warnings, tested on GCC 9.4.0 by @paulharris in https://github.com/google/flatbuffers/pull/7212
- Wrap types in namespace for --ts-flat-files and --gen-all by @dbaileychess in https://github.com/google/flatbuffers/pull/7451
- [WIP] speedup by @paulovap in https://github.com/google/flatbuffers/pull/7452
- Generate SLSA signatures for Released zip files by @laurentsimon in https://github.com/google/flatbuffers/pull/7450
- Change to GetTypeName by @dbaileychess in https://github.com/google/flatbuffers/pull/7453
- Group anonymous namespaces by @paulharris in https://github.com/google/flatbuffers/pull/7455
- Remove old GRPC bash script and convert to python3 by @dbaileychess in https://github.com/google/flatbuffers/pull/7454
- [C++] Disabling unpackto optimization by @dbaileychess in https://github.com/google/flatbuffers/pull/7459
- update grpc version by @Wyverald in https://github.com/google/flatbuffers/pull/7457
- Reworked keep prefix by @dbaileychess in https://github.com/google/flatbuffers/pull/7456
New Contributors
- @chriscraws made their first contribution in https://github.com/google/flatbuffers/pull/7104
- @meersuri made their first contribution in https://github.com/google/flatbuffers/pull/7108
- @anov21 made their first contribution in https://github.com/google/flatbuffers/pull/7114
- @Paulchen-Panther made their first contribution in https://github.com/google/flatbuffers/pull/7166
- @davschne made their first contribution in https://github.com/google/flatbuffers/pull/7168
- @insertjokehere made their first contribution in https://github.com/google/flatbuffers/pull/7157
- @keith made their first contribution in https://github.com/google/flatbuffers/pull/7195
- @Jamie-Jameson made their first contribution in https://github.com/google/flatbuffers/pull/7193
- @avaliente-bc made their first contribution in https://github.com/google/flatbuffers/pull/7227
- @hzeller made their first contribution in https://github.com/google/flatbuffers/pull/7238
- @hassila made their first contribution in https://github.com/google/flatbuffers/pull/7250
- @fjarri made their first contribution in https://github.com/google/flatbuffers/pull/7268
- @mr-swifter made their first contribution in https://github.com/google/flatbuffers/pull/7280
- @bsilver8192 made their first contribution in https://github.com/google/flatbuffers/pull/7296
- @bartwe made their first contribution in https://github.com/google/flatbuffers/pull/7312
- @calebzulawski made their first contribution in https://github.com/google/flatbuffers/pull/7318
- @cia-rana made their first contribution in https://github.com/google/flatbuffers/pull/7281
- @sssooonnnggg made their first contribution in https://github.com/google/flatbuffers/pull/7298
- @Hixie made their first contribution in https://github.com/google/flatbuffers/pull/7377
- @yshalabi made their first contribution in https://github.com/google/flatbuffers/pull/7381
- @atkurtul made their first contribution in https://github.com/google/flatbuffers/pull/7401
- @06393993 made their first contribution in https://github.com/google/flatbuffers/pull/7308
- @amaneureka made their first contribution in https://github.com/google/flatbuffers/pull/7343
- @SF-Zhou made their first contribution in https://github.com/google/flatbuffers/pull/7350
- @clanghans made their first contribution in https://github.com/google/flatbuffers/pull/7378
- @aburdulescu made their first contribution in https://github.com/google/flatbuffers/pull/7353
- @YashasviChaurasia made their first contribution in https://github.com/google/flatbuffers/pull/7425
- @marcelkrueger made their first contribution in https://github.com/google/flatbuffers/pull/7424
- @MirkoBonadei made their first contribution in https://github.com/google/flatbuffers/pull/7443
- @laurentsimon made their first contribution in https://github.com/google/flatbuffers/pull/7450
- @Wyverald made their first contribution in https://github.com/google/flatbuffers/pull/7457
Full Changelog: https://github.com/google/flatbuffers/compare/v2.0.6...v2.0.7
1、 Linux.flatc.binary.clang++-12.zip 1.27MB
2、 Linux.flatc.binary.g++-10.zip 1.31MB
3、 Mac.flatc.binary.zip 2.23MB
4、 MacIntel.flatc.binary.zip 1.15MB
5、 Windows.flatc.binary.zip 1.18MB