File: CHANGELOG.md

package info (click to toggle)
python-strictyaml 1.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,708 kB
  • sloc: python: 12,836; sh: 48; makefile: 3
file content (510 lines) | stat: -rw-r--r-- 14,400 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
# Changelog


### Latest

* BUGFIX : Fully parse URL, fix #141


### 1.6.1

* BUG: Don't check indentation consistency when allowing flow.


### 1.6.0


No relevant code changes.

### 1.5.0

* FEATURE: HexInt scalar validator. Parses hex integers case insensitively while preserving style for "round tripping". (#157)



### 1.4.4


No relevant code changes.

### 1.4.3

* FEATURE : Regression testing on python 2.7.14. This is probably the last release which will support Python 2.
* FEATURE : Bundle last propertly working ruamel.yaml version in with strictyaml.


### 1.4.2

* BUGFIX : Ensure strictyaml continues to work -- updated temporary fix.


### 1.4.1

* BUGFIX : Ensure strictyaml continues to work.
* FEATURE : NullNone - parse 'null' as None like YAML 1.2 does.


### 1.3.2

* BUGFIX : Fix for #135 hat tip @eulores.


### 1.3.1

* BUGFIX : Fix for faulty Url validator.


### 1.3.0

* BUGFIX : Fixes to ensure python 2.7.14 compatibility. This is probably the last time I will do this.
* FEATURE : Use dict instead of OrderedDict for Python 3.7+
* BUGFIX : Require Regex to be a full match
* FEATURE: Support underscores in int and decimal


### 1.2.0

* FEATURE : #129 : Optional keys in mappings and set value to None - with thanks to @wwoods.


### 1.1.1


No relevant code changes.

### 1.1.0

* FEATURE: Add support for NaN and infinity representations (#122)



### 1.0.7

* BUGFIX: Fix for #116 - handle Enum or integers errors
* BUGFIX : Fix accidental python 2 breakage.
* BUGFIX : Accidental misrecognition of boolean values as numbers - cause of #85.
* BUGFIX : Fix for #86 - handle changing multiline strings.
* BUGFIX: handle deprecated collections import in the parser (#82)

* bugfix - handle deprecated collections import in the parser

* import sys


### 1.0.5

* BUGFIX : Fixed python 2 bug introduced when fixing #72.
* BUG: issue #72.  Now __setitem__ uses schema.

Before this commit, schemas could be violated when assigning to
Map/Sequence members.  Now, modifications to the data must fit the
data's schema.

Furthermore, if the node on which __setitem__ is called has a compound
schema, the selected validator within the compound schema may change
correctly.


### 1.0.4

* FEATURE : Include tests / stories in package.
* BUG: issue #72.  Now __setitem__ uses schema.

Before this commit, schemas could be violated when assigning to
Map/Sequence members.  Now, modifications to the data must fit the
data's schema.


### 1.0.3

* BUGFIX : Fix for #64 integer value on YAML object being interpreted as string.


### 1.0.2

* BUGFIX : #63 CommaSeparated should recognize a blank string as a valid empty list.
* BUGFIX : #61 fix for exception when parsing MapPattern with a non-string (float) as a key - hat tip @dgg5503.
* BUGFIX : Fix deprecation warning on Iterable from collections raised by #60 - hat tip @dthonon.
* FEATURE : Raise exception if more than one sequence validators are combined.


### 1.0.1

* FEATURE : #51 - OrValidation with multiple Map validators does not work effectively - raise exception if user tries to use more than one.


### 1.0.0


No relevant code changes.

### 0.15.4

* BUGFIX : If revalidating a subschema with an Or validator and then changing the contents of the parsed data, a cryptic error was raised.


### 0.15.3

* BUGFIX : Fix for #46 - prevent Enum parsed values from becoming YAML objects.


### 0.15.2

* BUGFIX : Modifying YAML via __getitem__ where the YAML was validated using an OR operator failed - or validators didn't have a key_validator.


### 0.15.1

* BUGFIX : Make optional values parsed using Optional appear at the *end* of the ordered dict.
* BUGFIX : Prevent YAML objects from appearing in .data.
* BUGFIX : Fix for bug caused by revalidation with Optional default values.


### 0.15.0

* FEATURE : Raise exception when invalid default data is used is used in Optionals.
* FEATURE : Do not output defaults from Optional() to YAML and ignore parsed defaults where the parsed data is equal to the default specified in Optional().
* BUGFIX : Include README.md.


### 0.14.0

* BUGFIX : Made comma separated serializer serialize correctly.
* BUGFIX : Fixed the way serialization of empty lists, dicts, None and datetimes is handled.
* BUGFIX : Float - fixed transformation in to YAML.
* BUGFIX : Proper serialization for floats.
* BUGFIX : Proper serialization for regexes.
* BUGFIX : Comma separated serialization.
* BUGFIX : Enum - fixed transformation in to YAML.
* BUGFIX : Stricter validation on the serialization of dicts.
* BUGFIX : Stricter validation on the serialization of sequences.
* BUGFIX : Streamlined and fixed the way that serialization of data to YAML is performed so that both complex changes to YAML documents can be made and complex YAML documents can be assembled from scratch.
* BUGFIX : Stop dumping empty dicts / lists.
* BUGFIX : Fixed content encoding on README.


### 0.13.0

* FEATURE : Allow flow style to be parsed with a dirty_load method.


### 0.12.0

* FEATURE : Implement mapping abstract base class as per #39.


### 0.11.10

* BUGFIX : #15 - fix for regression caused by the release of ruamel.yaml 0.15.48.
* FEATURE : Handle building documents a bit more sensibly - build the document from strings, floats, dicts, lists, etc. only.


### 0.11.8

* FEATURE : Include LICENSE.txt in package - #34 - hat tip @mcs07.
* BUGFIX : Fix for #32 hat tip @NoahTheDuke - render given sections on variations in documentation.


### 0.11.7

* FEATURE : Replaced read in README.rst with read in README.md in setup.py.


### 0.11.6

* FEATURE : Replaced link in setup.py to new website.


### 0.11.5

* MINOR BUGFIX : #31 hat tip @karantan - validator was being set incorrectly on YAML objects after parse.


### 0.11.4

* BUGFIX : Fix bug where changing items in the YAML after revalidation failed.


### 0.11.3

* PATCH BUGFIX : Ensure that revalidation keeps the validator.


### 0.11.2

* BUGFIX : When using YAML objects as keys on other YAML objects, it should just use the value.


### 0.11.1

* BUGFIX PATCH : Fix the behavior of getting and deleting items on a YAML object where the key have gone through a validator.
* PATCH BUGFIX : Allow setting of properties using __setitem__ when a key validator was used.
* PATCH REFACTOR : Sequence and Mapping validators now inherit from SeqValidator and MapValidator.
* PATCH REFACTOR : Added some docstrings and removed unnecessary method.
* PATCH REFACTOR : Added docstrings and clarified variable names.
* PATCH REFACTOR : Moved YAMLPointer class into its own file.
* PATCH REFACTOR : Refactored the processing code.
* BUGFIX PATCH : Fix revalidation when using mappings that process keys.
* MINOR : FEATURE : Throw exception on inconsistent indents.
* PATCH : REFACTOR : Cleaned up stories.
* PATCH : REFACTOR : Changes to enable documentation generation.
* PATCH : REFACTOR : Upgraded hitchstory and strictyaml in hitch environment.


### 0.10.0

* MINOR : FEATURE : Optionally specify minimum_keys and maximum_keys in MapPattern.


### 0.9.0

* MINOR : FEATURE : Revalidation of code parsed with any (to make it work with scalar values).
* PATCH : REFACTOR : Renamed defer validation -> revalidation.
* MINOR : FEATURE : Revalidation of code parsed with Any.
* PATCH : REFACTOR : Added more useful YAMLChunk methods.
* PATCH : REFACTOR : Fixed type assertions.
* PATCH : FEATURE : Added assert for or validators.
* PATCH : FEATURE : Clearer error messages for non-matching scalars.
* PATCH : REFACTOR : Made linter happy.
* MINOR : FEATURE : Made clearer exception messages and prevented invalid validators from being used in compound validators.
* PATCH : REFACTOR : Reworked the way YAML objects are created.
* PATCH : REFACTOR : Reworked the way mapping, sequence, 'or' and scalar validators work.
* PATCH : REFACTOR : Add doctests to the regression suite.
* PATCH : REFACTOR : Clean up Map() class so it interacts only via chunk.process().
* PATCH : REFACTOR : Cleaned up some stories.
* PATCH : REFACTOR : Make linter happy.
* PATCH : REFACTOR : Moved more validation functionality into the chunk object.
* PATCH : REFACTOR : Clean up validator code.
* PATCH : REFACTOR : Move more core code away from validators into YAMLChunk.


### 0.8.0

* MINOR : FEATURE : Enum with item validators.
* MINOR : FEATURE : Mappings with key validators.
* MINOR : FEATURE : Key validation using Map().
* PATCH : PERFORMANCE IMPROVEMENTS : Avoided the use of deepcopy() every time a validator is used.
* MINOR BUGFIX : Roundtripping failure fixes.
* PATCH : REFACTOR : Only use chunk object in scalar validators.
* PATCH : REFACTOR : Removed dependency on two variables being fed in to the validate_scalar method.


### 0.7.3

* PERFORMANCE : Improved performance of dumping by restricting the number of times deepcopy() is called.
* FEATURE : Performance improvements.
* FEATURE : Create dumpable YAML documents from simple dicts/lists of python data.
* FEATURE : Create documents from scratch.
* FEATURE : Create YAML documents directly.
* FEATURE : Merging of YAML documents.
* BUGFIX : Handle roundtripping changing indexed elements in sequences.
* BUGFIX : Fix for scalar value roundtripping.
* FEATURE : Set sequences using lists.
* FEATURE : Use 'yes' and 'no' as default boolean values.
* FEATURE : Set nested mappings that get correctly validated using __setitem__ interface on YAML() objects.
* BUGFIX : Don't futz with the ordering of keys when setting vars via __setitem__.


### 0.7.2

* BUGFIX : Decimal point representer does not work with decimal.Decimal() object, so using float instead.
* BUGFIX : In python 2.x, the __ne__ magic method is called on != rather than negating the result of the __eq__ method. This caused undesired behavior in python 2.x.
* FEATURE : Parser errors will have the correct label attached.
* FEATURE : .data now returns ordereddicts.
* BUG : Boolean 'y' and 'n' values ought to resolve to True and False.
* BUG : Map keys were accidentally optional by default.
* BUG : Disallowed exceptions were previously not labeled.
* BUG : Duplicate key exceptions were previously not labeled.
* BUG : Fix for roundtripping multiline strings in python 2.
* FEATURE : Label parsed YAML and have the label appear in exceptions.
* BUG : Fix the way that data is roundtrip loaded into the yaml object via __setitem__.
* BUG : Fixed roundtripping without using load()


### 0.7.0

* FEATURE : Modified the way that roundtripping works.


### 0.6.2

* FEATURE : Added version number accessible from __init__.py
* BUG : Fixed the miscounting of list lines when getting start_line/end_line.


### 0.6.0

* BUG : Fixed import issues.
* FEATURE : Added email and url validators.
* FEATURE : Added Regex validator.


### 0.5.9


No relevant code changes.

### 0.5.8

* BUG : Fixed boolean error.


### 0.5.7

* BUG : Fixed MapPattern errors caused when editing items.


### 0.5.6

* FEATURE : Strict type checking when setting values.


### 0.5.5

* BUG : Fix roundtripping when using non-ascii characters.
* BUG : Fixed unicode roundtripping error.


### 0.5.4

* BUG : Fix mishandling of special characters in mappings.
* BUG : Handle invalid keys which are non-ascii characters gracefully
* BUG : Fix for character encoding issues that occur when non-string scalars see invalid input.


### 0.5.3

* BUG : Third fix for character encoding issues (#18: hat tip @jpscaletti)
* BUG : Second fix for character encoding issues (#18: hat tip Juan Pablo-Scaletti)
* BUG : Fix for #18 (hat tip Juan Pablo-Scaletti)


### 0.5.2

* BUG : Fix for #17 (hat tip @kshpytsya)


### 0.5.1

* FEATURE : YAML object importable directly from module.


### 0.5.0

* BUG : Fixed some broken elements of roundtripping.
* BUG : .data representations did not give keys as strings.
* BUG : Fixed bool(x) overriding in python 2.
* FEATURE : Greater than / less than implemented along with better post-representation assignment to mappings.
* FEATURE : Better repr()
* BUG : Keys are now represented as YAML() objects with full access to the location of the key in the YAML document.
* FEATURE : Added is_[scalar|mapping|sequence] methods.
* FEATURE : .values() on YAML object.
* FEATURE : Added .value property to YAML object.
* FEATURE : Implemented __contains__ so the 'in' method can be used.
* FEATURE : Added .get(val) and .keys() so mapping YAML objects can be treated like dicts.
* FEATURE : Added .items() to YAML object.
* FEATURE : Handle srting casting for integers.
* FEATURE : Raise TypeError when trying to cast a string to bool.
* FEATURE : Raise TypeError when attempting to cast YAML(bool) to string.
* FEATURE : Get lines for a specific YAML value, lines before it and lines after.
* FEATURE : Print line numbers of YAML elements.
* FEATURE : Any validator.
* FEATURE : Fixed length sequence validation.
* BUG : Fixed roundtripping.
* FEATURE : Rountripped YAML with modifications.
* BUG : Fixed ruamel.yaml version at a higher level.
* FEATURE : Parse YAML into roundtrippable YAML object.


### 0.4.2


No relevant code changes.

### 0.4.1

* BUG : Fixed comma separated validator - now removes trailing spaces when parsing "a, b, c" so it does not parse as "a", " b", " c".


### 0.4.0

* FEATURE: Comma separated values.


### 0.3.9

* FEATURE : Added import for CommentedYAML type.


### 0.3.8

* FEATURE : Empty property validation.


### 0.3.7

* BUG : Fixed ruamel.yaml importing so that it works with earlier versions too.


### 0.3.6

* BUG : Fixed 13.1 ruamel.yaml issue.


### 0.3.5

* BUG : Stray print statement.


### 0.3.3

* BUG : Disallow flow style was failing with sequences.


### 0.3.2


No relevant code changes.

### 0.3.1

* BUG : Fixed mis-parsing caused by 'null' and non-strings in dictionary keys.


### 0.3

* FEATURE : Datetime parsing.
* BUG : When loading a blank string using 'Any' it returned None by accident.


### 0.2

* FEATURE : YAMLValidationError now inherits from and uses the same mechanism as MarkedYAMLError.


### 0.1.6


No relevant code changes.

### 0.1.5

* FEATURE : Duplicate keys disallowed.


### 0.1.4

* FEATURE : Made the default to parse all scalars to string (Any validator) and added validator that returns CommentedSeq/CommentedMap.


### 0.1.3

* FEATURE : Clearer exception messages.
* BUG : Fixed bug in sequence validator.


### 0.1.2

* BUG : Single value YAML documents now allowed.
* BUG : Raise type error if it isn't a string passed through.