Skip to content

Releases: phax/ph-commons

v12.1.1

16 Dec 17:50

Choose a tag to compare

  • Updated to BouncyCastle 1.83
  • Added methods CertificateHelper.getPrincipalTypeValueOrNull
  • Added additional CertificateHelper.getPrincipalTypeValue overload
  • Added methods StringHex.getHexEncodedByteArray
  • Deprecated the usage of XML 1.1 in EXMLVersion and EXMLSerializeVersion - see w3ctag/obsoletion#6 for details
  • Added IMissingLocaleHandler.NULL_INSTANCE as a constant
  • Added new class CertificateDecodeHelper to help decode certificates more safely.

Full Changelog: ph-commons-parent-pom-12.1.0...ph-commons-parent-pom-12.1.1

ph-commons 12.1.0

02 Nov 11:05

Choose a tag to compare

  • Changed from Jakarta Nullable annotations to JSpecify. See #54 - thx @vlsi. Backward incompatible change.
  • Extracted submodule ph-csv containing the CSV handling. This also changed the package of the classes from com.helger.commons.csv to com.helger.csv. Backward incompatible change.
  • SafeXMLStreamWriter now correctly honours XMLWriterSettings.SerializeXMLDeclaration setting

Full Changelog: ph-commons-parent-pom-12.0.4...ph-commons-parent-pom-12.1.0

ph-commons 12.0.4

19 Oct 16:40

Choose a tag to compare

  • Reverted back from Map.entry to new MapEntry<> due to null-issues

Full Changelog: ph-commons-parent-pom-12.0.3...ph-commons-parent-pom-12.0.4

ph-commons 12.0.3

03 Oct 17:38

Choose a tag to compare

  • Updated to JAXB 4.0.6
  • Added JDK_25 to enum EJavaVersion
  • Fixed bug in PDTDisplayHelper.getPeriodText in case where same day but earlier time is used. See phax/phoss-smp#383

Full Changelog: ph-commons-parent-pom-12.0.2...ph-commons-parent-pom-12.0.3

ph-commons 12.0.2

03 Oct 17:38

Choose a tag to compare

  • Updated to BouncyCastle 1.82
  • Made method BigHelper.equalValues null-safe
  • Added overloads of GenericReflection.newInstance with a custom Exception consumer

Full Changelog: ph-commons-parent-pom-12.0.1...ph-commons-parent-pom-12.0.2

ph-commons 12.0.1

18 Sep 12:05

Choose a tag to compare

  • Added overloads SimpleUrl.add (String, int|long)
  • Added possibility to customize GenericJAXBMarshaller.xmlWriterSettings

Full Changelog: ph-commons-parent-pom-12.0.0...ph-commons-parent-pom-12.0.1

ph-commons 12.0.0

24 Aug 19:33

Choose a tag to compare

  • The baseline is now Java 17 - older Java versions are no longer supported

Changes compared to RC1:

  • Added new annotation UsedInGeneratedCode
  • Added new methods to JAXBHelper to handle JAXB xs:any mappings
  • Renamed all methods in class TestHelper so that it uses an uppercase C in hashCode or HashCode
  • Renamed class URLCodec to RFC3986Codec
  • Renamed interface IPrimitiveConverterTo to ITypeConverterTo
  • Renamed interface IHasPrimitiveConverter to IHasTypeConverterTo and renamed method to getTypeConverterTo()
  • Added new trait interface IGenericMapAdderTrait
  • Renamed ICommonsMap.addAll to putAllIfNotNull
  • Added new class TypeConverterToAny
  • Renamed class PrimitiveConvererToIJson to TypeConverterToIJson
  • Renamed package com.helger.base.traits to com.helger.base.trait
  • Renamed ICommonsIterable.getCount methods to size
  • Interface ICommonsIterable already implements IHasSize
  • Extracted class URLCleanser and moved URLHelper to ph-base
  • Moved class URNHelper to ph-base
  • Added new class URLBuilder

Full Changelog: ph-commons-parent-pom-11.2.6...ph-commons-parent-pom-12.0.0

ph-commons 12.0.0 RC1

24 Aug 19:32

Choose a tag to compare

ph-commons 12.0.0 RC1 Pre-release
Pre-release
  • The baseline is now Java 17 - older Java versions are no longer supported
  • Uses parent-pom v3.0.0
  • Completely restructured the libraries, so that smaller, functional JARs are created instead of one big ph-commons JAR
    • Added new submodule ph-annotations including the contents of JSR305
      • Only Nonnull and Nullable are taken from the jakarta.annotation package instead
    • Extracted new submodules ph-base, ph-unittest-support, ph-typeconvert, ph-statistics, ph-cache, ph-io, ph-unittest-support-ext, ph-text, ph-diagnostics, ph-config-json, ph-mime and ph-http
    • Removed submodule ph-less-commons - the remainders ended up in ph-commons
    • Integrated ph-web/ph-http module content into this repository
    • If you are using JSON for configuration, make sure to include the new submodule ph-config-json as well
  • Movings
    • Moved all annotations from package com.helger.commons.annotation to submodule ph-annotations
    • Moved basically all classes back and forth between the modules - re-organizing your imports should do 95% of the work
    • The ArrayHelper.EMPTY_* constants were moved to class CGlobal
    • Moved constant INITIAL_HASHCODE from HashCodeGenerator to HashCodeCalculator
    • Moved methods CollectionHelper.new* to CollectionHelperExt.create*
  • Removals
    • Removed classes SecurityManagerHelper, ReflectionSecurityManager, IPrivilegedAction and AccessControllerHelper because the Java SecurityManager is deprecated for removal
    • Removed deprecated package com.helger.jaxb.builder
    • Removed all methods marked as deprecated for removal
    • Removed class IJsonParserCustomizeCallback
    • Removed method ABNF.isHexDigitCaseInsensitive in favour of isHexDigit (was misreading the RFC)
  • Renamings
    • Renamed class SingleError.AbstractBuilder to AbstractSingleErrorBuilder
    • Renamed class SingleError.Builder to SingleErrorBuilder
    • Renamed class Option.Builder to OptionBuilder
    • Renamed class KeyStoreAndKeyDescriptor.KeyStoreAndKeyDescriptorBuilder to KeyStoreAndKeyDescriptorBuilder
    • Renamed class KeyStoreDescriptor.KeyStoreDescriptorBuilder to KeyStoreDescriptorBuilder
    • Renamed class TrustStoreDescriptor.TrustStoreDescriptorBuilder to TrustStoreDescriptorBuilder
    • Renamed class BasicThreadFactory.Builder to BasicThreadFactoryBuilder
    • Renamed class JsonReader.Builder to JsonReader.JsonBuilder
    • Renamed methods IMicroNode.append* to add*
    • Renamed class ABNF to RFC5234Helper
    • Renamed class ByteBuffersInputStream to MultiByteBufferInputStream
    • Renamed class CommonsTestHelper to TestHelper
  • Additions
    • Added classes (I)JsonParserSettings
    • Added new class CacheBuilder
    • Added new constants
      • CMimeType.APPLICATION_EDIFACT
      • CMimeType.APPLICATION_EDI_X12
    • Via FileHelper.setWarnOnIssues the warnings can be enabled or disabled
    • Added new interface IWriteToWriter
    • Extended IAppendable and HashCodeCalculator with overloads that take arrays with offset and length
  • Incompatible changes
    • EqualsHelper and HashCodeGenerator no longer work based on the SPI based registration. Instead the non-default cases need to be handled manually
    • By default the global debug mode (GlobalDebug) is disabled
    • Extended the JsonReader builder to include all the settings directly
    • Extracted all collection related methods from EqualsHelper to CollectionEqualsHelper
    • Extracted functionality from StringHelper into new classes: StringHex, StringImplode, StringRemove, StringReplace
    • Extracted the BigDecimal and BigInteger functionality from MathHelper to BigHelper
    • Extracted functionality from CollectionHelper into new classes: CollectionFind, CollectionSort
    • The following SPI interfaces were changed:
      • com.helger.commons.thirdparty.IThirdPartyModuleProviderSPI -> com.helger.base.thirdparty.IThirdPartyModuleProviderSPI
    • The methods IJsonObject.addJson where renamed to add only
  • Deprecations
    • StringHelper.hasText was deprecated in favour of StringHelper.isNotEmpty
    • StringHelper.hasNoText was deprecated in favour of StringHelper.isEmpty

ph-commons 11.2.6

10 Jun 13:03

Choose a tag to compare

  • Updated to BouncyCastle 1.81

What's Changed

Full Changelog: ph-commons-parent-pom-11.2.5...ph-commons-parent-pom-11.2.6

ph-commons 11.2.5

19 May 16:20

Choose a tag to compare

  • Fixed a bug in ConfigWithFallback.getAsCharArrayOrFallback so that fallbacks were performed in the wrong scenario

Full Changelog: ph-commons-parent-pom-11.2.4...ph-commons-parent-pom-11.2.5