Skip to content

Releases: punchupworld/sheethuahua

Release 3.1.0

20 Nov 10:07
Compare
Choose a tag to compare

3.1.0 (2024-11-20)

Features

  • add asArray and include validate schema in transformer (dcee5c5)
  • add formatToCsv formatter (0f9cfc2)
  • asDate support custom format and timezone using tempo (5e1ba2a)
  • optional transformer can accept fallback value (b5b8e7c)
  • validate transformer encode input and make optional (fc5bdd2)

Performance Improvements

  • upgrade typebox and use tree-shakable function from value module (00eb7c5)

Release 3.0.0

01 Nov 11:05
Compare
Choose a tag to compare

3.0.0 (2024-11-01)

Old API has been deprecated. Please check out the new API at the new official documentation website.

⚠ BREAKING CHANGES

  • required name in column to support non object schema
  • shorten parser functions name to fetchCsv and parseCsv
  • move spreadsheet table name and schema definition to get function
  • replace table with typebox object and simplify column type

Features

  • bring oneOf back as a schema helper (0aff565)
  • move spreadsheet table name and schema definition to get function (340f9e2)
  • replace table with typebox object and simplify column type (78bdd52)
  • required name in column to support non object schema (471c7b3)
  • rewrite parsing logic using type transform (ccbf73d)
  • shorten parser functions name to fetchCsv and parseCsv (5573121)
  • support root column, tuple, or nested schema (139aaa8)

Bug Fixes

  • correct csv schema type and filter undefined from columns (a5a23cc)
  • replace typebox with transformer optional variant for corrected typing (ce1dcf7)

Performance Improvements

  • add column property map in parseCsv (532b74e)
  • reorganize lib module to support treeshaking (6134d0c)

Release 2.1.0

16 Sep 10:22
Compare
Choose a tag to compare

2.1.0 (2024-09-16)

Features

  • add early missing column in header row validation (e1e568f)

Release 2.0.0

17 May 11:24
Compare
Choose a tag to compare

2.0.0 (2024-05-17)

⚠ BREAKING CHANGES

  • parseCSVFromString now return a promise
  • remove sheets uncompatible custom header and body row number options

Features

  • add TSDoc for exported variables, functions and types (26af842)
  • parseCSVFromString now return a promise (0f951e4)
  • remove sheets uncompatible custom header and body row number options (07721c1)
  • support sheets API query params (7c91207)

Release 1.0.0

08 May 10:24
Compare
Choose a tag to compare

1.0.0 (2024-05-08)

The initial version was released! Please refer to the full documentation here: https://github.com/Th1nkK1D/sheethuahua

Features

  • add basic table and spreadsheet type interface (c6ae100)
  • add column type (96bf619)
  • add exclude unknown columns with options (0b158d4)
  • add nullable column type (6ca61d3)
  • add one of column type and rename optional (cf09f65)
  • add row generic type infer from table (486fa63)
  • add trim option and parse empty cell as null (23cc22d)
  • add twin optional variant to all column types (6e8ebfc)
  • allow passing fetch init config (0be368c)
  • config package building (295517c)
  • extract parser out of spreadsheet (925ffd2)
  • fetch, parse, and validate data in get function (9761c6d)
  • improve error messages (527ce1f)
  • make parseCSVFromString synchronous (d9ec2ea)
  • spreadsheets can specify global options (6851961)
  • support anonymous table for csv parser (ce62a34)
  • support custom header and body row number (9b840ff)
  • use includeUnknownColumns option instead of exclude (7fc0785)
  • use typebox convert in csv parser (e0757b3)
  • validate table name and narrow down parser schema type (274cf4b)