Skip to content

Commit

Permalink
Flatbuffers Version 2.0.7 (#7462)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaileychess authored Aug 23, 2022
1 parent d6f06c3 commit 8367664
Show file tree
Hide file tree
Showing 45 changed files with 66 additions and 44 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Flatbuffers Change Log

All major or breaking changes will be documented in this file, as well as any
new features that should be highlighted. Minor fixes or improvements are not
necessarily listed.

## 2.0.7 (Aug 22 2022)

* This is the first version with an explicit change log, so all the previous
features will not be listed.

* Verifier now checks that buffers are at least the minimum size required to be
a flatbuffers (12 bytes). This includes nested flatbuffers, which previously
could be declared valid at size 0.

* Annotated binaries. Given a flatbuffer binary and a schema (or binary schema)
one can generate an annotated flatbuffer (.afb) to describe each byte in the
binary with schema metadata and value.

* First binary schema generator (Lua) to generate Lua code via a .bfbs file.
This is mostly an implementation detail of flatc internals, but will be slowly
applied to the other language generators.
2 changes: 1 addition & 1 deletion CMake/Version.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set(VERSION_MAJOR 2)
set(VERSION_MINOR 0)
set(VERSION_PATCH 6)
set(VERSION_PATCH 7)
set(VERSION_COMMIT 0)

find_program(GIT git)
Expand Down
2 changes: 1 addition & 1 deletion include/flatbuffers/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@

#define FLATBUFFERS_VERSION_MAJOR 2
#define FLATBUFFERS_VERSION_MINOR 0
#define FLATBUFFERS_VERSION_REVISION 6
#define FLATBUFFERS_VERSION_REVISION 7
#define FLATBUFFERS_STRING_EXPAND(X) #X
#define FLATBUFFERS_STRING(X) FLATBUFFERS_STRING_EXPAND(X)
namespace flatbuffers {
Expand Down
2 changes: 1 addition & 1 deletion include/flatbuffers/reflection_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
FLATBUFFERS_VERSION_MINOR == 0 &&
FLATBUFFERS_VERSION_REVISION == 6,
FLATBUFFERS_VERSION_REVISION == 7,
"Non-compatible flatbuffers version included");

namespace reflection {
Expand Down
2 changes: 1 addition & 1 deletion samples/monster_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
FLATBUFFERS_VERSION_MINOR == 0 &&
FLATBUFFERS_VERSION_REVISION == 6,
FLATBUFFERS_VERSION_REVISION == 7,
"Non-compatible flatbuffers version included");

namespace MyGame {
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def flatc_reflection(options, location, target):
new_reflection_path = Path(reflection_path, temp_dir, target)
original_reflection_path = Path(root_path, location, target)
if not filecmp.cmp(str(new_reflection_path), str(original_reflection_path)):
shutil.rmtree(str(original_reflection_path))
shutil.rmtree(str(original_reflection_path), ignore_errors=True)
shutil.move(str(new_reflection_path), str(original_reflection_path))
shutil.rmtree(str(Path(reflection_path, temp_dir)))

Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/Ability.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/Any.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/AnyAmbiguousAliases.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/AnyUniqueAliases.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/Color.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/LongEnum.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/Monster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/Race.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/Referrable.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/Stat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/StructOfStructs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/StructOfStructsOfStructs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/Test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/TestSimpleTableWithEnum.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/TypeAliases.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example/Vec3.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/Example2/Monster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/InParentNamespace.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //monster_test.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/OtherNameSpace/FromInclude.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //include_test/sub/include_test2.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/OtherNameSpace/TableB.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //include_test/sub/include_test2.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/MyGame/OtherNameSpace/Unused.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //include_test/sub/include_test2.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/TableA.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Automatically generated by the FlatBuffers compiler, do not modify.
Or modify. I'm a message, not a cop.
flatc version: 2.0.6
flatc version: 2.0.7
Declared by : //include_test/include_test1.fbs
Rooting type : MyGame.Example.Monster (//monster_test.fbs)
Expand Down
2 changes: 1 addition & 1 deletion tests/arrays_test_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
FLATBUFFERS_VERSION_MINOR == 0 &&
FLATBUFFERS_VERSION_REVISION == 6,
FLATBUFFERS_VERSION_REVISION == 7,
"Non-compatible flatbuffers version included");

namespace MyGame {
Expand Down
2 changes: 1 addition & 1 deletion tests/cpp17/generated_cpp17/monster_test_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
FLATBUFFERS_VERSION_MINOR == 0 &&
FLATBUFFERS_VERSION_REVISION == 6,
FLATBUFFERS_VERSION_REVISION == 7,
"Non-compatible flatbuffers version included");

namespace MyGame {
Expand Down
2 changes: 1 addition & 1 deletion tests/cpp17/generated_cpp17/optional_scalars_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
FLATBUFFERS_VERSION_MINOR == 0 &&
FLATBUFFERS_VERSION_REVISION == 6,
FLATBUFFERS_VERSION_REVISION == 7,
"Non-compatible flatbuffers version included");

namespace optional_scalars {
Expand Down
2 changes: 1 addition & 1 deletion tests/cpp17/generated_cpp17/union_vector_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
FLATBUFFERS_VERSION_MINOR == 0 &&
FLATBUFFERS_VERSION_REVISION == 6,
FLATBUFFERS_VERSION_REVISION == 7,
"Non-compatible flatbuffers version included");

struct Attacker;
Expand Down
2 changes: 1 addition & 1 deletion tests/evolution_test/evolution_v1_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
FLATBUFFERS_VERSION_MINOR == 0 &&
FLATBUFFERS_VERSION_REVISION == 6,
FLATBUFFERS_VERSION_REVISION == 7,
"Non-compatible flatbuffers version included");

namespace Evolution {
Expand Down
2 changes: 1 addition & 1 deletion tests/evolution_test/evolution_v2_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
FLATBUFFERS_VERSION_MINOR == 0 &&
FLATBUFFERS_VERSION_REVISION == 6,
FLATBUFFERS_VERSION_REVISION == 7,
"Non-compatible flatbuffers version included");

namespace Evolution {
Expand Down
2 changes: 1 addition & 1 deletion tests/monster_extra_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
FLATBUFFERS_VERSION_MINOR == 0 &&
FLATBUFFERS_VERSION_REVISION == 6,
FLATBUFFERS_VERSION_REVISION == 7,
"Non-compatible flatbuffers version included");

namespace MyGame {
Expand Down
2 changes: 1 addition & 1 deletion tests/monster_test_bfbs_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
FLATBUFFERS_VERSION_MINOR == 0 &&
FLATBUFFERS_VERSION_REVISION == 6,
FLATBUFFERS_VERSION_REVISION == 7,
"Non-compatible flatbuffers version included");

namespace MyGame {
Expand Down
2 changes: 1 addition & 1 deletion tests/monster_test_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
FLATBUFFERS_VERSION_MINOR == 0 &&
FLATBUFFERS_VERSION_REVISION == 6,
FLATBUFFERS_VERSION_REVISION == 7,
"Non-compatible flatbuffers version included");

namespace MyGame {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
FLATBUFFERS_VERSION_MINOR == 0 &&
FLATBUFFERS_VERSION_REVISION == 6,
FLATBUFFERS_VERSION_REVISION == 7,
"Non-compatible flatbuffers version included");

namespace MyGame {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
FLATBUFFERS_VERSION_MINOR == 0 &&
FLATBUFFERS_VERSION_REVISION == 6,
FLATBUFFERS_VERSION_REVISION == 7,
"Non-compatible flatbuffers version included");

namespace MyGame {
Expand Down
2 changes: 1 addition & 1 deletion tests/monster_test_suffix/monster_test_suffix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
FLATBUFFERS_VERSION_MINOR == 0 &&
FLATBUFFERS_VERSION_REVISION == 6,
FLATBUFFERS_VERSION_REVISION == 7,
"Non-compatible flatbuffers version included");

namespace MyGame {
Expand Down
2 changes: 1 addition & 1 deletion tests/namespace_test/namespace_test1_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
FLATBUFFERS_VERSION_MINOR == 0 &&
FLATBUFFERS_VERSION_REVISION == 6,
FLATBUFFERS_VERSION_REVISION == 7,
"Non-compatible flatbuffers version included");

namespace NamespaceA {
Expand Down
2 changes: 1 addition & 1 deletion tests/namespace_test/namespace_test2_generated.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// generated, otherwise it may not be compatible.
static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
FLATBUFFERS_VERSION_MINOR == 0 &&
FLATBUFFERS_VERSION_REVISION == 6,
FLATBUFFERS_VERSION_REVISION == 7,
"Non-compatible flatbuffers version included");

namespace NamespaceA {
Expand Down
Loading

0 comments on commit 8367664

Please sign in to comment.