Releases: jwodder/javaproperties
Releases · jwodder/javaproperties
v0.8.2 — Packaging updates
v0.8.1 — Typing bugfix
- Fix a typing issue in Python 3.9
- Support Python 3.10
v0.8.0 — Type annotations; drop pre-Python 3.6
- Drop support for Python 2.7, 3.4, and 3.5
- Support Python 3.9
ensure_asciiparameter added toPropertiesFile.dump()andPropertiesFile.dumps()- Bugfix: When parsing XML input, empty
<entry>tags now produce an empty string as a value, notNone - Added type annotations
PropertiesandPropertiesFileno longer raiseTypeErrorwhen given a non-string key or value, as type correctness is now expected to be enforced through static type checking- The
PropertiesElementclasses returned byparse()are no longer subclasses ofnamedtuple, but they can still be iterated over to retrieve their fields like a tuple
v0.7.0 — `parse()` objects and `PropertiesFile` properties
parse()now accepts strings as input- Breaking:
parse()now returns a generator of custom objects instead of triples of strings - Gave
PropertiesFilea settabletimestampproperty - Gave
PropertiesFilea settableheader_commentproperty - Handle unescaping surrogate pairs on narrow Python builds
v0.6.0 — `ensure_ascii`
- Include changelog in the Read the Docs site
- Support Python 3.8
- When dumping a value that begins with more than one space, only escape the first space in order to better match Java's behavior
- Gave
dump(),dumps(),escape(), andjoin_key_value()anensure_asciiparameter for optionally not escaping non-ASCII characters in output - Gave
dump()anddumps()anensure_ascii_commentsparameter for controlling what characters in thecommentsparameter are escaped - Gave
to_comment()anensure_asciiparameter for controlling what characters are escaped - Added a custom encoding error handler
'javapropertiesreplace'that encodes invalid characters as\uXXXXescape sequences
v0.5.2 — Fix build
- Added an example of each format to the format descriptions in the docs
- Fix building in non-UTF-8 environments
v0.5.1 — Support datetime.fold
- Bugfix:
java_timestamp()now properly handles naïvedatetimeobjects withfold=1 - Include installation instructions, examples, and GitHub links in the Read the Docs site
v0.5.0 — Error on invalid \uXXXX escapes
- Breaking: Invalid
\uXXXXescape sequences now cause anInvalidUEscapeErrorto be raised Propertiesinstances can now compare equal todicts and other mapping types- Gave
Propertiesacopymethod - Drop support for Python 2.6 and 3.3
- Fixed a
DeprecationWarningin Python 3.7
v0.4.0 — Moved CLI to separate package
Split off the command-line programs into a separate package, javaproperties-cli
v0.3.0 — Class for preserving comments
- Added the
PropertiesFileclass for preserving comments in files [#1] - The
ordereddictpackage is now required under Python 2.6