NimYAML/CHANGELOG.md

179 lines
4.9 KiB
Markdown
Raw Normal View History

2016-12-15 17:24:50 +00:00
### 0.9.0
Features:
* Better DOM API:
- yMapping is now a Table
- field names have changed to imitate those of Nim's json API
- Better getter and setter procs
* Added ability to resolve non-specific tags in presenter.transform
Bugfixes:
* Fixed parsing floating point literals (#30)
* Fixed a bug with variant records (#31)
* Empty documents now always contain an empty scalar
2017-01-09 18:09:07 +00:00
* Block scalars with indentation indicator now have correct whitespace on first
line.
2016-12-15 17:24:50 +00:00
2016-11-08 20:29:59 +00:00
### 0.8.0
Features:
* NimYAML now has a global tag URI prefix for Nim types,
`tag:nimyaml.org,2016:`. This prefix is denoted by the custom tag handle
`!n!`.
* Support arbitrary tag handles.
* Added ability to mark object and tuple fields as transient.
* Added ability to set a default value for object fields.
* Added ability to ignore key-value pairs in the input when loading object
values.
* Support `!!timestamp` by parsing it to `Time` from module `times`.
Bugfixes:
* Fixed a bug concerning duplicate TagIds for different tags in the
`serializationTagLibrary`
* Convert commas in tag URIs to semicolons when using a tag URI as generic
parameter to another one, because commas after the tag handle are interpreted
as flow separators.
### 0.7.0
Features:
* Better handling of internal error messages
* Refactoring of low-level API:
* No more usage of first-class iterators (not supported for JS target)
* Added ability to directly use strings as input without stdlib's streams
(which are not available for JS)
* Added ability to parse octal and hexadecimal numbers
* Restructuring of API: now available as submodules of yaml. For backwards
compatibility, it is still possible to `import yaml`, which will import all
submodules
* Check for missing, duplicate and unknown fields when deserializing tuples and
objects
Bugfixes:
* Fixed double quotes inside plain scalar (#25)
* Return correct line content for errors if possible (#23)
* Some smaller lexer/parser fixes
2016-07-08 10:08:04 +00:00
### 0.6.3
Bugfixes:
* Can load floats from integer literals (without decimal point) (#22)
2016-07-07 15:55:58 +00:00
### 0.6.2
Bugfixes:
* Fixed problem when serializing a type that overloads the `==` operator (#19)
2016-07-08 10:08:04 +00:00
* Fixed type hints for floats (`0` digit was not processed properly) (#21)
2016-07-07 15:55:58 +00:00
2016-06-27 19:09:34 +00:00
### 0.6.1
Bugfixes:
* Fixed deserialization of floats (#17)
* Handle IndexError from queues properly
2016-06-08 19:28:07 +00:00
### 0.6.0
Features:
* Properly support variant object types
* First version that works with a released Nim version (0.14.0)
Bugfixes:
* Fixed a crash in presenter when outputting JSON or canonical YAML
* Raise an exception when trying to output multiple documents in JSON style
### 0.5.1
Bugfixes:
* Fixed a problem that was introduced by a change in Nim devel
### 0.5.0
Features:
* Support variant object types (experimental)
* Added ability to use variant object types to process
heterogeneous data
* Support `set` type
* Support `array` type
* Support `int`, `uint` and `float` types
(previously, the precision must be specified)
* Check for duplicate tag URIs at compile time
* Renamed `setTagUriForType` to `setTagUri`
Bugfixes:
* None, but fastparse.nim has seen heavy refactoring
2016-03-25 22:20:17 +00:00
### 0.4.0
Features:
* Added option to output YAML 1.1
* Added benchmark for processing YAML input
* Serialization for OrderedMap
* Use !nim:field for object field names (#12)
Bugfixes:
* Code refactoring (#9, #10, #11, #13)
* Some small improvements parsing and presenting
2016-03-14 17:23:55 +00:00
### 0.3.0
Features:
* Renamed some symbols to improve consistency (#6):
- `yamlStartSequence` -> `yamlStartSeq`
- `yamlEndSequence` -> `yamlEndSeq`
- `yamlStartDocument` -> `yamlStartDoc`
- `yamlEndDocument` -> `yamlEndDoc`
- `yTagMap` -> `yTagMapping`
* Introduced `PresentationOptions`:
- Let user specify newline style
- Merged old presentation options `indentationStep` and `presentationStyle`
into it
* Use YAML test suite from `yaml-dev-kit` to test parser.
Bugfixes:
* Fixed various parser bugs discovered with YAML test suite:
- Block scalar as root node no longer leads to a parser error
- Fixed a bug that caused incorrect handling of comments after plain scalars
- Fixed bugs with newline handling of block scalars
- Fixed a bug related to block sequence indentation
- Skip content in tag and anchor names and single-quoted scalars when
scanning for possible implicit map key
- Properly handle more indented lines in folded block scalars
- Fixed a problem with handling ':' after whitespace
- Fixed indentation handling after block scalar
2016-02-25 21:44:41 +00:00
### 0.2.0
Features:
* Added DOM API
* Output block scalars in presenter if scalar is long and block scalar output
is feasible. Else, use multiple lines for long scalars in double quotes.
Bugfixes:
* Improved parser (#1, #3, #5)
* Made parser correctly handle block sequences that have the same indentation
as their parent node (#2)
* Fixed problems with outputting double quoted strings (#4)
### 0.1.0
* Initial release