Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
ba832e2
Create SharedArrayBuffers in readSection
OBrezhniev Sep 10, 2025
5e4301b
New nodejs versions increased buffer size limits, so trying to detect…
OBrezhniev Feb 10, 2026
46fd2cd
Make the BigBuffer threshold an explicit 1 GiB constant
OBrezhniev Jun 25, 2026
918fabe
Update devDependencies: rollup 4, eslint 10 (flat config)
OBrezhniev Jul 4, 2026
0a79631
Pin fastfile and ffjavascript to commit refs instead of file: paths
OBrezhniev Jul 4, 2026
fcf8d5b
Remove readSection debug timers
OBrezhniev Jul 4, 2026
b257f6b
Rebuild bundle: silent readSection
OBrezhniev Jul 4, 2026
28b3274
Re-pin ffjavascript (silent workers)
OBrezhniev Jul 4, 2026
1fb7356
Regenerate lockfile against the pinned commit refs
OBrezhniev Jul 4, 2026
dee81e9
Switch fastfile/ffjavascript pins to git+https, re-pin ffjavascript
OBrezhniev Jul 4, 2026
41589e5
Tidy stray blank lines left by debug-timer removal
OBrezhniev Jul 4, 2026
4b19bb9
Re-pin fastfile/ffjavascript to latest commits
OBrezhniev Jul 8, 2026
ce9bf23
test: add a baseline test suite (this repo had zero tests)
OBrezhniev Jul 8, 2026
e982002
Re-pin ffjavascript (worker-error propagation fixes)
OBrezhniev Jul 9, 2026
892d9f2
Re-pin fastfile/ffjavascript (proving-phase hang-audit fixes)
OBrezhniev Jul 9, 2026
c0b23ef
Re-pin ffjavascript (partitioned MSM)
OBrezhniev Jul 11, 2026
a235b93
Re-pin ffjavascript (endo cutoff)
OBrezhniev Jul 11, 2026
377a7a1
feat: re-pin fastfile with HTTP Range streaming; URL readBinFile tests
OBrezhniev Jul 12, 2026
5bad9bb
chore: re-pin fastfile (http/blob page-size cap)
OBrezhniev Jul 12, 2026
b097683
chore: re-pin ffjavascript (worker boot-failure give-up)
OBrezhniev Jul 12, 2026
372283f
chore: re-pin ffjavascript (wasmcurves ESM migration)
OBrezhniev Jul 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .eslintrc.cjs

This file was deleted.

15 changes: 8 additions & 7 deletions build/main.cjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var ffjavascript = require('ffjavascript');
var fastFile = require('fastfile');

function _interopNamespace(e) {
if (e && e.__esModule) return e;
function _interopNamespaceDefault(e) {
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
Expand All @@ -19,11 +16,15 @@ function _interopNamespace(e) {
}
});
}
n["default"] = e;
n.default = e;
return Object.freeze(n);
}

var fastFile__namespace = /*#__PURE__*/_interopNamespace(fastFile);
var fastFile__namespace = /*#__PURE__*/_interopNamespaceDefault(fastFile);

// 1 GiB threshold (matched to BigBuffer's page size): sections at/above this are
// read into a paged BigBuffer instead of one flat Uint8Array.
const MAX_BUFFER_SIZE = 1 << 30;

async function readBinFile(fileName, type, maxVersion, cacheSize, pageSize) {

Expand Down Expand Up @@ -147,7 +148,7 @@ async function readSection(fd, sections, idSection, offset, length) {
}

let buff;
if (length < (1 << 30) ) {
if (length < MAX_BUFFER_SIZE) {
buff = new Uint8Array(length);
} else {
buff = new ffjavascript.BigBuffer(length);
Expand Down
23 changes: 23 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import js from "@eslint/js";
import globals from "globals";

export default [
{ ignores: ["build/"] },
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.node,
...globals.mocha,
},
},
rules: {
"indent": ["error", 4],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
},
},
];
Loading