10 Commits

Author SHA1 Message Date
FourierTransformer
663e319179
Rename encode_datetime_as to parse_datetime_as, add some unit tests, fix seconds missing in datetime tables (#16)
## Changes
- renamed `encode_datetime_as` to `parse_datetime_as`. I feel like it
makes more sense in the parser
- Added some unit tests around datetime parsing and max_nesting_depth
- fix bug with seconds not showing up in datetimes when parsed as tables
2026-01-15 19:46:40 -06:00
FourierTransformer
e72f5c4392
Added encode_datetime_as, removed assign value function, and added type checking for options (#15)
## Changes
- All options are runtime type checked
- Default options now specified in the codebase
- Removed `assign_value_function` (should offer a nice speedup in
regular Lua)
- Modified decoder tests to re-add toml-test tags, so this is no
longer needed
  - NOTE: this does mean that the toml-test fails for non Lua 5.3-5.5.
- Added comparison table to README with other TOML parsers
- Can now specify encoding dates/times as strings _or tables!_
2026-01-09 19:52:20 -06:00
FourierTransformer
f9d99cb9b8
Better Error Messages (#14)
* Changed how errors display, now include line number and ensure all toml.io links work
* Updated all errors that could occur during parser
* Removed _nsmerror in utf-8 validation and replaced with standard error handling
* In UTF-8 escaping, show the actual hex escape in the error message to make things easier
* Encoder shows which key failed and displays datetime errors nicely
* Added filesize and nesting depth options.
2026-01-06 20:48:11 -06:00
FourierTransformer
63efdd4c1e
Add TOML Encoder (#13)
* added a TOML encoder

* updated CI/CD to run toml-test encoder suite
2026-01-03 13:45:52 -06:00
FourierTransformer
70a254a8e0
Full support for TOML 1.1.0 (#10)
## TOML 1.1 Changes
* Allow newlines and trailing commas in inline tables
* Add \xHH notation to basic strings for codepoints ≤255
* Add \e escape for the escape character
* Seconds in datetime and time values are now optional

## Bugfixes
* No longer truncate milliseconds to three decimal places in timestamps
2025-12-21 22:27:31 -06:00
FourierTransformer
8fc9acf778
Fix truncating datetimes and not allowing multline keys as table keys (#9)
- Datetimes were incorrectly being truncated even though the string match patterns were okay

- Will now check and error out if a multi-line (triple quoted) string is used as a table key
2025-04-23 22:44:59 -05:00
FourierTransformer
fa122a33dd
Fixed error with non-exact unicode escapes and only whitespace files (#8)
* fixed errors with unicode escapes and only whitespace files

* updated README and rockspec
2025-04-21 20:50:14 -05:00
FourierTransformer
bb76d06014
Adding Teal files to LuaRocks (#5)
* Adding tl files to LuaRocks

* switching to latest v2.1 branch instead of rolling tag (which is out of date)
2024-11-04 17:38:52 -06:00
FourierTransformer
bc641b50cd
Adding in rockspec (#3) 2024-10-31 19:53:10 -05:00
FourierTransformer
876a176023 first commit 2024-10-31 10:19:27 -05:00