init.luau
Versions
Every version of this package its world published, newest first by when it first appeared. A version published again later keeps its place.
Comparing from 01KYJS2CWPX4C0E823SSZYC4Z8. Pick the version to compare it with. Cancel
package portability: internal requires use relative identity form (.sibling / ..uncle / .stdlib.child) so installs resolve from any location, including /source/deps/ --- requires name the package alias, so the package resolves wherever it is installed Every intra-package require now reads ~zerojs.<tail> — the alias the package registers from its package.yaml name — instead of the world-root identity zerojs.<tail>, which only resolves from a root literally named zerojs and so left the package unusable once installed under /source/deps/. One uniform form across all 87 sites also gives each module a single identity: reaching the same file under two different literals loaded it twice, which is what the semantics suite's undefined-sentinel comparisons were failing on. 1220/1220.
01KYJS2CWPX4C0E823SSZYC4Z80259d04488Browse filesPickedzerojs: typed arrays cross the bridge as zero-copy layout records toLuau hands hosts the backing buffer + layout (with a toTable materializer); toJs wraps a returned record back into a shared view of its kind. Bytes are shared in both directions.
01KXR08XZ0AJC6JXH7MHY5798A4c4469713dBrowse filesCompare with this versionzerojs: buffer-backed ArrayBuffer, TypedArray family, and DataView Element storage is a native Luau buffer: rt.get/rt.set/rt.hasOwn route canonical numeric keys straight to buffer reads/writes with per-kind ECMAScript conversions, set() between same-kind views is a byte copy, fill() doubles a copied span, subarray() shares the buffer, and slice() copies. DataView covers both byte orders. The bridge crosses typed arrays to Luau as number arrays read off the buffer and Luau buffers to JS as Uint8Array views; rt.typedArrayOf / rt.newTypedArray / rt.newArrayBuffer give hosts direct byte access.
01KXQZXB6CDXCFAA6EQC9BVJHP402108cc1aBrowse filesCompare with this version