mirror of https://github.com/vee1e/flatbuffers - FlatBuffers: Memory Efficient Serialization Library
Find a file
Björn Harrtell ef76b5ece4
[TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510)
* [TS/JS] Entry point per namespace

* Fix handling of outputpath and array_test

* Attempt to fix generate_code

* Fix cwd for ts in generate_code

* Attempt to fixup bazel and some docs

* Add --ts-flat-files to bazel build to get bundle

* Move to DEFAULT_FLATC_TS_ARGS

* Attempt to add esbuild

* Attempt to use npm instead

* Remove futile attempt to add esbuild

* Attempt to as bazel esbuild

* Shuffle

* Upgrade bazel deps

* Revert failed attempts to get bazel working

* Ignore flatc tests for now

* Add esbuild dependency

* `package.json` Include esbuild

* `WORKSPACE` Add fetching esbuild binary

* Update WORKSPACE

* Unfreeze Lockfile

* Update WORKSPACE

* Update BUILD.bazel

* Rework to suggest instead of running external bundler

* Add esbuild generation to test script

* Prelim bundle test

* Run test JavaScriptTest from flatbuffers 1.x

* Deps upgrade

* Clang format fix

* Revert bazel changes

* Fix newline

* Generate with type declarations

* Handle "empty" root namespace

* Adjust tests for typescript_keywords.ts

* Separate test procedure for old node resolution module output

* Fix rel path for root level re-exports

* Bazel support for esbuild-based flatc

Unfortunately, we lose typing information because the new esbuild method
of generating single files does not generate type information.

The method used here is a bit hack-ish because it relies on parsing the
console output of flatc to figure out what to do.

* Try to fix bazel build for when node isn't present on host

* Auto formatting fixes

* Fix missing generated code

Co-authored-by: Derek Bailey <derekbailey@google.com>
Co-authored-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
2023-01-21 12:22:22 -08:00
.bazelci
.github [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
android Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
bazel
benchmarks
CMake Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
conan
dart Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
docs [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
examples/go-echo
go
grpc [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
include/flatbuffers [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
java Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
js
kotlin
lobster
lua
mjs
net/FlatBuffers Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
nim
php
python Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
reflection [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
rust Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
samples Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
scripts [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
snap
src [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
swift Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
tests [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
ts [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
.clang-format
.clang-tidy
.editorconfig
.eslintrc.js
.gitattributes
.gitignore
BUILD.bazel
build_defs.bzl [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
CHANGELOG.md Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
CMakeLists.txt
composer.json
conanfile.py
CONTRIBUTING.md
FlatBuffers.podspec Flatbuffers Version 23.1.20 (#7794) 2023-01-21 12:03:17 -08:00
Formatters.md
LICENSE.txt
package.json [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
Package.swift
Package@swift-5.5.swift
readme.md
SECURITY.md
swift.swiftformat
tsconfig.json [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
tsconfig.mjs.json [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
typescript.bzl [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
WORKSPACE [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00
yarn.lock [TS/JS] Entry point per namespace and reworked 1.x compatible single file build (#7510) 2023-01-21 12:22:22 -08:00

logo FlatBuffers

Build status BuildKite status Fuzzing Status OpenSSF Scorecard Join the chat at https://gitter.im/google/flatbuffers Discord Chat Twitter Follow Twitter Follow

FlatBuffers is a cross platform serialization library architected for maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility.

Go to our landing page to browse our documentation.

Supported operating systems

  • Windows
  • macOS
  • Linux
  • Android
  • And any others with a recent C++ compiler (C++ 11 and newer)

Supported programming languages

Code generation and runtime libraries for many popular languages.

  1. C
  2. C++ - snapcraft.io
  3. C# - nuget.org
  4. Dart - pub.dev
  5. Go - go.dev
  6. Java - Maven
  7. JavaScript - NPM
  8. Kotlin
  9. Lobster
  10. Lua
  11. PHP
  12. Python - PyPi
  13. Rust - crates.io
  14. Swift - swiftpackageindex
  15. TypeScript - NPM
  16. Nim

Versioning

FlatBuffers does not follow traditional Semver versioning (see rationale) but rather uses a format of the date of the release.

Contribution

To contribute to this project, see CONTRIBUTING.

Community

Security

Please see our Security Policy for reporting vulnerabilities.

Licensing

Flatbuffers is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.