6.3.3 is a minor release of FlatSharp with a couple of bugfixes and a minor new feature.
Bug 1:
#307 -- FlatSharp only generated unions for up to 30 types. Some people seem to need more! Version 6.3.3 includes unions up to 50 generic types. Have fun!
Bug 2:
#299 -- Fixed an issue where FlatSharp would encounter a NullReferenceException when parsing a schema with a circular Table --> Union --> Table chain.
Feature: Union Visitors
Unions now support a native visitor pattern. You can refer to the unions sample for more details. The short version is that Union types now include a Accept method that requires a IFlatBufferUnionVistior<TReturn, T1, T2, ..., TN> visitor. The visitor interface must match the union definition, which adds a layer of compiler validation to ensure that all union cases are handled.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps FlatSharp from 6.3.1 to 6.3.3.
Release notes
Sourced from FlatSharp's releases.
Commits
c253a44
Update samples to 6.3.3 (#310)6ac0675
Union visitors (#309)cd7b5f7
Increase number of Union types created (#308)f37672c
Fix Null Reference with Recursive Unions (#300)78b411a
Project status information (#296)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)