Skip to content

Replace custom flatbuffers.cjs with npm package #7227

@afarber

Description

@afarber

Summary

The codebase currently includes a custom flatbuffers implementation at
features/support/flatbuffers.cjs. It should be replaced with the official npm package.

Current State

  • Custom implementation: features/support/flatbuffers.cjs
  • NPM package already installed: "flatbuffers": "24.3.25"
  • Package provides both CJS and ESM versions

Proposed Changes

  1. Remove features/support/flatbuffers.cjs (duplicate file)
  2. Update imports in dependent files to use import flatbuffers from 'flatbuffers'
  3. Test that all functionality still works correctly

Files to update

  • features/support/fbresult_generated.js
  • Any other files importing the local flatbuffers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions