Skip to content

v1.0.1 - Expose types

Latest

Choose a tag to compare

@Jumballaya Jumballaya released this 12 Apr 19:46
· 15 commits to master since this release

v1.0.1 – April 12, 2024

Added

  • Exposed BaseStrategy in main exports to support custom strategy creation
  • Exposed types for BufferWrap users
Type Name Description
ProxyShape TS-resolved shape of the struct (e.g. { a: number, b: [x, y] })
BufferType Union of valid memory types (ArrayBuffer, Buffer, etc.)
BufferStrategy<T, B> Interface for memory strategies (read/write, capacity, slicing)
ProxyAccessStrategy (Legacy) Interface for proxy access strategy (may be phased out)
StrategyConfig<T, B> Config used to initialize a strategy (offsets, stride, buffer, etc.)
WrapperConfig<T, B> Full user-facing config passed to new BufferWrap()
WrapperStructConfig<T> Field definitions: type + length per key (like schema)
BufferList<T> Struct-of-buffers format for importing/exporting
CopyTarget<T, B> Valid input types for .from() or .copyInto()

Notes

  • No functional or runtime changes
  • Fully backward compatible with v1.0.0