Skip to content

Releases: hexancore/common

0.16.5

07 Dec 17:46
daaa224
Compare
Choose a tag to compare

Added

  • added MapPlainParseHelper
  • added JsonHelper methods: mapJsonSerializableMapToJson(), mapPrimitiveMapToJson(), mapJsonSerializableArrayToJson()

Fixed

  • JsonSchemaFactory.Object() add missing 'additionalProperties' option

0.16.4

30 Nov 21:01
0d6e839
Compare
Choose a tag to compare

Added

  • added 'additionalProperties' option to JsonSchema Object
  • added PlainParseHelper.parseRecord()

Changed

  • changed HDateTime.now() precision to milis
  • changed HDateTime.toJson() return type to ISO 8601

0.16.3

17 Nov 12:07
ec503e4
Compare
Choose a tag to compare

Added

  • added Uuid ValueObject
  • added UuidBase converters to base62 and base36
  • added JsonSchema prop to HObjects
  • added OrganizationId, OrganizationGroupId, OrganizationMemberId, TenantId
  • added PrimitiveComparable
  • added ObjectFilter

Changed

  • UBigInt64 -> UInt64.
  • HValueObject -> ValueObject
  • GetQueryOptions -> GetListQueryOptions
  • Dto -> DTO

Removed

  • temporaly removed EmailHash(need rework to support browser&node versions in one)
  • removed AccountId -> replaced with TenantId

0.16.2

05 Oct 10:05
a03f1b5
Compare
Choose a tag to compare

Changed

  • reworked HObjects(no backward compatible changes)
    • AbstractValueObject -> HValueObject
    • Removed generic self from HObjects

0.16.1

29 Sep 20:10
a9bb2ac
Compare
Choose a tag to compare
  • reworked HObjects(no backward compatible changes)
  • renamed ValueObjects:
    • DateTime -> HDateTime
    • UIntValue -> UInt
    • UBigInt -> UBigInt64
    • StringValue -> HString
    • RegexStringValue -> HRegexString

0.16.0

23 Sep 18:07
8bf6fcf
Compare
Choose a tag to compare

Added

  • added HObject concept with parse from unknown method generated from AOT(Transformer in core).
  • added first package benchmark stuff
  • added types: NonMethodRequiredPropertyNames,NonMethodOptionalPropertyNames,NonMethodProperties, ToJSONReturnType, JsonObjectType

Changed

  • refactor ValueObject concept to HObject.
  • pascalCaseToSnakeCase() - implemented faster version.
  • OK() returns constant objects for: true, false, undefined, null values for performance.

0.15.0

27 Jun 17:04
0.15.0
b64940b
Compare
Choose a tag to compare

Added

  • extractLoggerFromObject(), extractTestLoggerFromObject(), extractTestLoggerRecordsFromObject

Changed

  • AppMeta - default EnvProvider in NodeJS env.
  • separated http exports(/http and ./testing/http).
  • export ./testutil -> ./testing
  • separated Jest matchers export ./testing/jest

Removed

  • removed MailContent Value Object

0.1.4.0

20 Jun 14:44
Compare
Choose a tag to compare

Changed

  • shrinked build size

Removed

  • removed xss dep
  • removed bin docker
  • removed string.prototype.matchall dep

Fixed

  • small types fixes in strict mode

0.13.1

25 Jan 06:50
Compare
Choose a tag to compare

Added

  • DateTime.formatRfc1123()
  • ARW() - more meaning name for wrapping Promise with AsyncResult

Changed

  • AsyncResult.fromPromise() -> AsyncResult.wrap().
  • AsyncResult.fromPromiseOkTrue() -> AsyncResult.warpOnOkTrue().
  • AsyncResult.from() - accepts functions returns Promise(async/await support).
  • RetryHelper.retryAsync() - returns AR.

Removed

  • AsyncResult.fromSafePromise() - AsyncResult.from supports both.

Deprecated

  • P() - use ARW()
  • PS() - use ARW()
  • PB() - use ARWB()

0.10.3

26 Mar 14:03
6c2b55f
Compare
Choose a tag to compare
v0.10.3

fix (#5)