You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+40-40Lines changed: 40 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,22 +9,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Fixed
11
11
12
-
-The formatting options that were passed as a parameter to `toml.encode`, `toml.encodeToFile`, `toml.toJSON`, and `toml.toYAML` previously had no effect when overriding values.
13
-
-Resolved CMake `FetchContent_Populate` warning.
12
+
- The formatting options that were passed as a parameter to `toml.encode`, `toml.encodeToFile`, `toml.toJSON`, and `toml.toYAML` previously had no effect when overriding values.
-Encodes `data` to the file specified in `fileOrOptions`. the file will be created if it doesn't exist.
57
-
-When `fileOrOptions` is a string, it simply is the file path.
58
-
-When `fileOrOptions` is a table, it should have`file`, and optionally, `overwrite` as keys. `file` is the file path, and `overwrite` should be `true` when `file` should be overwritten with `data`, and `false` when `data` should be appended to `file`.
59
-
-Added tests that cover:
60
-
-The property accessors of `toml.Date`, `toml.Time`, `toml.DateTime`, and `toml.TimeOffset`.
61
-
-`toml.toJSON` and `toml.toYAML`.
53
+
-`toml.decodeFromFile(filePath: string)`:
54
+
- Decodes a TOML document at `filePath`. Throws the same errors as `toml.decode`.
- Encodes `data` to the file specified in `fileOrOptions`. the file will be created if it doesn't exist.
57
+
- When `fileOrOptions` is a string, it simply is the file path.
58
+
- When `fileOrOptions` is a table, it should have`file`, and optionally, `overwrite` as keys. `file` is the file path, and `overwrite` should be `true` when `file` should be overwritten with `data`, and `false` when `data` should be appended to `file`.
59
+
- Added tests that cover:
60
+
- The property accessors of `toml.Date`, `toml.Time`, `toml.DateTime`, and `toml.TimeOffset`.
61
+
-`toml.toJSON` and `toml.toYAML`.
62
62
63
63
### Changed
64
64
65
-
-`toml.tomlToJSON` and `toml.tomlToYAML` have been renamed to `toml.toJSON` and `toml.toYAML`.
66
-
-They have been renamed because they now have two functions: converting a TOML string to JSON/YAML (as before), or converting a table into JSON/YAML.
67
-
-The first parameter can be a string containing TOML (as before), or a table.
65
+
-`toml.tomlToJSON` and `toml.tomlToYAML` have been renamed to `toml.toJSON` and `toml.toYAML`.
66
+
- They have been renamed because they now have two functions: converting a TOML string to JSON/YAML (as before), or converting a table into JSON/YAML.
67
+
- The first parameter can be a string containing TOML (as before), or a table.
0 commit comments