Changelog for mmzk-typeid-0.2.0.0
Revision history for mmzk-typeid
0.2.0.0 -- 2023-07-14
-
Implement
KindID
to take arbitrary prefix type.- It can be a
Symbol
as before, but it can also be any type that implementsToPrefix
which dictates how to translate the prefix type to aSymbol
.
- It can be a
-
Fix orphan instances for
TypeID
andKindID
. -
Add
FromJSONKey
andToJSONKey
instances forTypeID
andKindID
. -
Introduce
IDType
class to unify thegetPrefix
,getUUID
, andgetTime
functions ofTypeID
andKindID
. -
Introduce
IDConv
class to unify the various conversion functions betweenTypeID
/KindID
andString
/Text
/ByteString
.- The original concrete functions remain, and the class is provided as an alternative.
-
Deprecate
unUUID
,parseStringWithPrefix
,parseTextWithPrefix
,parseByteStringWithPrefix
,nil
, anddecorate
. They are either replaced by functions of other names or are no longer necessary.- They will be removed in the next major version.
-
The
UUID
type is expected to be removed in the next major version in favour of the type from the 'uuid-types' package. -
More tests.
0.1.0.0 -- 2023-07-11
-
First version. Released on an unsuspecting world.
-
Implement TypeID as specified at https://github.com/jetpack-io/typeid.
-
Add unit tests.
-
Add type-level TypeID prefixes.
-
Add
FromJSON
andToJSON
instances forTypeID
andKindID
.