Skip to content

v4.0.0

Latest

Choose a tag to compare

@claussni claussni released this 24 Nov 11:52
· 2 commits to main since this release
v4.0.0
c8dbf8b

Add support for RFC 4198 Federated Content URNs and URN-equivalence via normalize() and assignedName().

  • Breaking: Reworked NSS validation, encoding and decoding. Percent-encoded literals are preserved and non-UTF-8 octets are accepted (#57). r- and q-components are modelled losslessly with RQComponent. equals() and hashCode() compare URNs and their parts component-wise.

  • Breaking: Namespaces are defined by implementing the new Namespace interface and connected to a URN with URN.in(namespace) and urn.as(namespace) (NamespaceURN). RFC 4198 is implemented this way in the package de.slub.urn.fdc. URN, NamespaceIdentifier and NamespaceSpecificString can no longer be subclassed outside of the library. URNResolver and URNResolvingError are removed (#58). The constructor of RQF_RFC8141 no longer takes an Optional.

  • URN.parse(), URN.create() and URN.of() create RFC 8141 URNs without choosing a parser first.

  • Bugfixes and improvements including #54, #27 as well as fixes to NSS extraction, empty NID handling and URNSyntaxError.toString().

  • Relicensed under LGPL-3.0-or-later (#56).