From 81619839621f7114077b4ecb57262d8be43951b3 Mon Sep 17 00:00:00 2001 From: Kenny Daniel Date: Fri, 11 Apr 2025 04:43:11 -0700 Subject: [PATCH] Publish v1.12.0 --- benchmark.js | 2 +- package.json | 2 +- src/types.d.ts | 2 +- test/column.test.js | 3 --- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/benchmark.js b/benchmark.js index 0a06956..73bf2c9 100644 --- a/benchmark.js +++ b/benchmark.js @@ -15,7 +15,7 @@ if (!stat) { if (!res.ok) throw new Error(res.statusText) // write to file async await pipeline(res.body, createWriteStream(filename)) - stat = await fs.stat(filename).catch(() => undefined) + stat = await fs.stat(filename) console.log('downloaded example.parquet', stat.size) } diff --git a/package.json b/package.json index 3df89ca..a5cc1c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hyparquet", - "version": "1.11.1", + "version": "1.12.0", "description": "Parquet file parser for JavaScript", "author": "Hyperparam", "homepage": "https://hyperparam.app", diff --git a/src/types.d.ts b/src/types.d.ts index 217c327..129c9a2 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -260,7 +260,7 @@ export interface KeyValue { value?: string } -type MinMaxType = bigint | boolean | number | string | Date | Uint8Array +export type MinMaxType = bigint | boolean | number | string | Date | Uint8Array export interface Statistics { max?: MinMaxType diff --git a/test/column.test.js b/test/column.test.js index 34d85a6..de86d88 100644 --- a/test/column.test.js +++ b/test/column.test.js @@ -6,9 +6,6 @@ import { asyncBufferFromFile } from '../src/utils.js' const values = [null, 1, -2, NaN, 0, -1, -0, 2] -/** - * @import {RowGroupSelect} from '../src/types.d.ts' - */ describe('readColumn', () => { it.for([ { selectEnd: Infinity, expected: [values] },