Releases: rineex/core
Releases · rineex/core
@rineex/ddd@4.0.0
Major Changes
- Breaking changes in
DomainErrorclass:
(8288b06)- Now extends native
Errorfor correct functionality, affecting
serialization and type checks. - Removed custom message property; uses inherited message from
Error. - Constructor updated to call
super(message)and setthis.name. - Added prototype chain restoration for proper
instanceofbehavior. - Adjusted property order in
toObject()method and markedtoString()with
override. - Simplified JSDoc comments.
- Now extends native
Minor Changes
-
Enhancements to
deepFreezeUtility (0c695b9)- New
isFreezable()helper – Extracted the check for whether a value
can be frozen (object, non-null, not already frozen). Handles primitives,
null, undefined, functions, and already-frozen objects. - Map/Set support –
deepFreezenow recursively freezes Map keys and
values, and Set elements. - Symbol property support – Utilizes
Object.getOwnPropertyNamesand
Object.getOwnPropertySymbolsto freeze symbol-keyed properties alongside
string keys. - Refactored structure – Now organized as Map → Set → Array → Object
branches, usingObject.getOwnPropertyDescriptorand handling
descriptor.valuewhen present. - Documentation updates – JSDoc mentions circular references, Map/Set
handling, symbol properties, and a performance warning about avoiding use
in hot paths.
- New
@rineex/ddd@3.2.2
Patch Changes
- Refactor DomainEvent serialization types.
(69dc686)- Moved
type-festfrom peerDependencies to devDependencies, as it is only
needed for type definitions during build. - Replaced the custom
Serializabletype definition withJsonValuefrom
type-fest to standardize JSON serialization payloads. - Removed unnecessary custom type definitions (
Primitiveand recursive
Serializable), simplifying the code structure.
- Moved
@rineex/authentication-method-passwordless@0.1.8
@rineex/authentication-method-passwordless@0.1.7
Patch Changes
- Updated dependencies
[69dc686]:- @rineex/ddd@3.2.2
- @rineex/auth-core@1.0.7
@rineex/authentication-method-otp@1.0.8
@rineex/authentication-method-otp@1.0.7
Patch Changes
- Updated dependencies
[69dc686]:- @rineex/ddd@3.2.2
- @rineex/auth-core@1.0.7
@rineex/auth-core@1.0.8
@rineex/auth-core@1.0.7
Patch Changes
- Updated dependencies
[69dc686]:- @rineex/ddd@3.2.2
@rineex/ddd@3.2.1
Patch Changes
-
CI and Testing Improvements (#49)
- Added a new "Type Tests" job that runs
pnpm run test:typesin the CI
workflow. - Introduced a new script "test:types" and turbo task with inputs for
src/**/*.test-d.tsfor type testing.
- Added a new "Type Tests" job that runs
@rineex/authentication-method-passwordless@0.1.6
Patch Changes
- Updated dependencies
[3efe26f]:- @rineex/ddd@3.2.1
- @rineex/auth-core@1.0.6