std/csv
Yusuke Tanaka b85d219148
feat(csv): support fieldsPerRecord in CsvParseStream (#5600)
Although the constructor of `CsvParseStream` accepts `fieldsPerRecord` option
(see https://jsr.io/@std/csv@1.0.0-rc.5/doc/~/CsvParseStreamOptions) that
ensures that every record has the specified (or inferred from the first row)
number of fields, this option has no effect at all in the current
implementation. To fix this issue, this patch implements the `fieldsPerRecord`
logic in `CsvParseStream` together with sufficient amount of test cases.
2024-08-01 03:48:14 -07:00
..
testdata BREAKING(csv): move encoding/csv to own top-level folder and towards single-export files (#3228) 2023-03-13 14:56:25 +09:00
_io.ts BREAKING(csv): remove ParseError (#5405) 2024-07-16 17:35:40 +10:00
_shared.ts refactor(csv): rename graphemeLength to codePointLength (#5421) 2024-07-12 15:23:13 +09:00
deno.json chore: release 2024.07.26 (#5554) 2024-07-26 19:45:22 +09:00
mod.ts refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199) 2024-06-30 08:30:10 +00:00
parse_stream_test.ts feat(csv): support fieldsPerRecord in CsvParseStream (#5600) 2024-08-01 03:48:14 -07:00
parse_stream.ts feat(csv): support fieldsPerRecord in CsvParseStream (#5600) 2024-08-01 03:48:14 -07:00
parse_test.ts BREAKING(csv): remove ParseError (#5405) 2024-07-16 17:35:40 +10:00
parse.ts docs(csv): clarify parse document (#5597) 2024-08-01 14:36:23 +09:00
stringify_stream_test.ts BREAKING(csv): throw TypeError in stringify() instead of StringifyError (#5347) 2024-07-10 20:32:59 +10:00
stringify_stream.ts chore(csv): remove redundant constructor examples (#5509) 2024-07-23 12:05:23 +09:00
stringify_test.ts BREAKING(csv): throw TypeError in stringify() instead of StringifyError (#5347) 2024-07-10 20:32:59 +10:00
stringify.ts BREAKING(csv): throw TypeError in stringify() instead of StringifyError (#5347) 2024-07-10 20:32:59 +10:00