Skip to content

Releases: phax/ph-commons

ph-commons 10.1.0

13 May 14:22
Compare
Choose a tag to compare
  • Started the explicit Wiki
  • Added CHttpHeader.HOST
  • Extended Copy*StreamBuilder with limit (Long)
  • Added Predicates.and and Predicates.or
  • Create new classes XMLOffsetDate and AdapterXMLOffsetDate similar to OffsetDate but with an optional zone offset
  • Create new classes XMLOffsetTime and AdapterXMLOffsetTime similar to OffsetTime but with an optional zone offset
  • Create new classes XMLOffsetDateTime and AdapterXMLOffsetDateTime similar to OffsetDateTime but with an optional zone offset
  • Added method Version.hasQualifier
  • Changed Version.parse to use the new format by default. Added Version.parseDotOnly for the old version.
  • Added missing PDTToString.getAsString overloads
  • Avoid the inclusion of JAXB and JAX-WS implementation artefacts. The JAXB implementation must now explicitly be added to an application pom.xml e.g. like this:
<dependency>
  <groupId>com.sun.xml.bind</groupId>
  <artifactId>jaxb-impl</artifactId>
</dependency>

ph-commons 10.0.0

23 Mar 09:19
Compare
Choose a tag to compare
  • Changed Maven groupId from com.helger to com.helger.commons
  • The submodule ph-xml no longer depends on ph-collection
  • Separated the JAXB adapter classes and JAXBHelper to new submodule ph-jaxb-adapter - the goal is to have less dependencies
  • Removed the submodule ph-charset - who needs UTF-7 nowadays....
  • Removed deprecated methods
  • Removed Serializable from base interfaces
  • Removed the serializable functional specializations (IFunction, ISupplier, IConsumer, IPredicate, IBiConsumer, IBiFunction, IBiPredicate, NamespaceContext)
  • GenericJAXBMarshaller now has a chaining API
  • Made MimeTypeParserException a checked Exception
  • Added CertificateHelper.getEncodedCertificate()
  • Fixed potential NPE in GenericJAXBMarshaller.toString()
  • Removed TimeValue in favour of Duration
  • Added StopWatch.getLapDuration ()
  • Removed ResourceStreamSource and ResourceStreamResult - see https://saxonica.plan.io/issues/4833 for the reasons
  • Changed JsonReader.Builder method names to not use set
  • The calling order of "useBufferedReader" and "dontCloseSource" compared to "source" in JsonReader.Builder is not longer of importance
  • Changed the SingleError.builder() to use method names without set
  • Added more SingleError builder errorLocation overloads
  • Removed the class ScriptHelper as Nashorn gets removed in JDK 15 (see JEP 335)
  • Added new interfaces IBuilder and IResettableBuilder
  • Extended HTTPHeaderMap API
  • Fixed the data type of the custom HTTP headers in WSClientConfig
  • Changed the default value DEFAULT_QUOTE_IF_NECESSARY from true to false
  • Deprecated all the "multi map" classes in ph-collection. With the computeIfAbsent functions, most of the simplifications can be achieved with runtime features. They will be removed in the next major version.
  • Extended ILocalDatePeriod based on issue #23
  • Added classes ILocalDateTimePeriod and LocalDateTimePeriod
  • Added class PasswordHashCreatorPBKDF2_SHA256_1000_48 for better PBKDF2 usage
  • Deprecated class PasswordHashCreatorPBKDF2_1000_48 because it uses the PBKDF2 with the SHA1 hash
  • Added new class StringHelper.ImploderBuilder that handles all the StringHelper.getImploded* stuff internally
  • Added new method ICommonsIterable.forEachThrowing
  • Added new class StreamHelper.CopyByteStreamBuilder
  • Added new class StreamHelper.CopyCharStreamBuilder
  • Added new method URLHelper.isValidURN to check RFC 2141 compliance
  • Deprecated some methods in StreamHelper that should be replaced with calls to the new builder
  • Added CommonsHashSet.createFiltered factory methods
  • Added new class AdapterOffsetTime
  • Added support for OffsetTime in PDT* classes
  • Made the JAXB adapters for AdapterOffsetDateTime and AdapterZonedDateTime more resilient to read data without time zone offsets as well
  • Added class OffsetDate from ThreeTen-Extra project for XML parsing
  • Added new methods in PDTFactory that deal with UTC time zones

ph-commons 9.5.5

23 Mar 09:18
Compare
Choose a tag to compare
  • Updated to BouncyCastle 1.68 (again with bcprov-ext-jdk15on)
  • Added new class AdapterOffsetDateTime

ph-commons 9.5.4

22 Jan 21:25
Compare
Choose a tag to compare
  • Updated to BouncyCastle 1.67 (no more bcprov-ext-jdk15on)
  • Removed "double locking" in AbstractCollector

ph-commons 9.5.3

22 Jan 21:17
Compare
Choose a tag to compare
  • Reverting the changes from 9.5.2
  • Made the JAXB DateTime adapter classes more resilient by trimming the input string

ph-commons 9.5.2

22 Jan 21:17
Compare
Choose a tag to compare
  • Experimental release that uses CommonsHashMap instead of CommonsWeakHashMap for all registries having Class<?> as the key

ph-commons 9.5.1

24 Sep 15:16
Compare
Choose a tag to compare

ph-commons 9.4.8

10 Sep 15:12
Compare
Choose a tag to compare
  • Added new JAXB Adapter class AdapterZonedDateTime
  • Added a new factory method in ConfigFactory.
  • Default configuration source loading is now more consistent and behaves identical for all predefined filenames.
  • Extended IConfig API to easily reload all resource based configuration files
  • New interface IAddableByTrait to be used as the constraint for the element type of IGenericAdderTrait

ph-commons 9.4.7

28 Aug 15:14
Compare
Choose a tag to compare
  • Extended IPrivilegedAction API for Security provider APIs
  • Extended IJsonArray API to iterate only child arrays, objects or values
  • Scope debugging no longer activates itself if the log level is set to debug
  • Extended PDTWebDateHelper to handle LocalTime values as well
  • Added predefined JAXB adapters in package com.helger.jaxb.adapter

ph-commons 9.4.6

15 Jul 19:44
Compare
Choose a tag to compare
  • Allow empty MIME type parameter values
  • MimeTypeParser.safeParseMimeType does an RFC 2616 decoding if necessary
  • Updated to BouncyCastle 1.66