fix: update test expectations for new parser behavior
Missing CSV fields now return empty string instead of undefined.
Updated test expectations in:
- StringCSVParserStream.test.ts
- BinaryCSVParserStream.test.ts
- parseBinaryToIterableIterator.test.ts
- parse.spec.ts
09bfc64
4 days ago
by kamiazya
-36.03%
fix: change toStrictEqual to toEqual in browser tests
Object.create(null) records don't match toStrictEqual due to prototype
differences. Changed to toEqual to properly compare object values.
Updated test files:
- parseResponse.browser.spec.ts
- parseBinaryStream.browser.spec.ts
- parseBinary.browser.spec.ts
a2c5520
4 days ago
by kamiazya
+36.04%
style: format test files
Applied biome formatting to:
- src/parser/stream/StringCSVParserStream.test.ts
- src/parser/stream/BinaryCSVParserStream.test.ts
5e6e690
4 days ago
by kamiazya
×4
feat(parser): enhance FlexibleStringCSVLexer with reusable array pooling
- Implemented ReusableArrayPool to optimize memory usage for string segments in FlexibleStringCSVLexer.
- Updated FlexibleStringCSVLexer to utilize the new array pool for segment management, improving performance in parsing.
- Adjusted token handling to ensure correct delimiter usage, replacing EOF with Record where appropriate.
- Modified tests in CSVRecordAssemblerTransformer and StringCSVLexerTransformer to reflect changes in token structure and delimiter handling.
- Cleaned up test cases for better readability and consistency.
58e5d70
3 days ago
by kamiazya
Add record-view assembler and tighten column strategies
125c345
3 days ago
by kamiazya
-4.06%
feat: apply const type parameters consistently across all parser classes
プロジェクト全体でconst type parametersを一貫して適用しました。
変更内容:
- FlexibleCSVArrayRecordAssembler
- FlexibleCSVObjectRecordAssembler
- FlexibleStringArrayCSVParser
- FlexibleStringObjectCSVParser
- FlexibleBinaryArrayCSVParser
- FlexibleBinaryObjectCSVParser
すべてのクラスで`Header extends ReadonlyArray<string>`を
`const Header extends ReadonlyArray<string>`に変更。
これにより、ユーザーは`as const`を書かなくてもリテラル型が
正しく推論されるようになりました:
Before: header: ['name', 'age'] as const
After: header: ['name', 'age']
テスト:1341個すべて成功
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>