Releases: christoph-fricke/xsystem
Releases · christoph-fricke/xsystem
v0.6.0
Features
- Add
createData
behavior, which can be used to store and update any data in an actor. #23- See its documentation for an example: https://github.com/christoph-fricke/xsystem/wiki/05-Plug-n-Play-Behavior#createdata
Documentation
- Add documentation for
createData
. https://github.com/christoph-fricke/xsystem/wiki/05-Plug-n-Play-Behavior#createdata
Internal
- Refactor of the history behavior to use a double-linked list internally, which simplified the implementation. #21
- Use commit-lint to lint commit messages while creating a commit.
- Update dev dependencies
v0.5.0
Features
- Add
createSendCall
to event creators, which can be used to avoid boilerplate when connecting actors to UIs. #19- See its documentation for an example: https://github.com/christoph-fricke/xsystem/wiki/04-Utilities#connecting-actors-with-uis-createsendcall
Documentation
- Add documentation for
createSendCall
.
Fixes
- Remove
"type": "module"
from package defintiontion.- XSystem is shipped as ESM + CJS anyway, so the module type just caused problems when build tools do not have full module support.
v0.4.0
Features
- Add
createEvent
utility function to create event factories with attached type predicates. #16- See its documentation to learn more: https://github.com/christoph-fricke/xsystem/wiki/04-Utilities#createevent
- Add
EventFrom
helper to extract the event shape of an event factory. #16- See its documentation to learn more: https://github.com/christoph-fricke/xsystem/wiki/04-Utilities#eventfrom
Documentation
- Add documentation for the new features.
- Recommend
creator.match
overis
.
Internal
- Replace event creator functions with
createEvent
creators where possible.
v0.3.2
Fixes
- Add a CommonJS bundle and entrypoint.
- This fixes errors when used in some Jest Setups such as the one for create-react-script.
The story around bundling this library and providing multiple entrypoint will still be improved and changed in the future, while keeping a solution as lean as possible, given the current situation of an ecosystem transition towards pure ESM packages.
v0.3.1
Fixes
- Change build target from "ES2020" to "ES6".
- This should make it possible to use XSystem with templates such as create-react-app.
v0.3.0
Features
- Add new plug n' play behavior
createWebSocket
to wrap a WebSocket in an publishing actor. #12 - Add an option
channel
tocreateEventBus
, which can provide a customBroadcastChannel
polyfill for relevant strategies. #15 - Add new
withSubscription
HOB to automatically subscribe an behavior to a publisher for the life-cycle of the behavior. #14
Documentation
- Add relevant documentation for the new features
Internal
- Update dev-dependencies to their latest versions
- Use
jest-mock-extended
to simplify actor setups for testing
v0.2.1
Fixes
- The dependency to
@swc-node/jest
is now correctly declared as a dev-dependency.
v0.2.0
Features
- Export action creators for
undo
andredo
events in the main package entry point. - Remove test files from npm bundle, which reduces the package install size.
Documentation
- Complete documentation in the repository's wiki.
Internal
- Remove our custom
BaseActorRef
. - Switch to @swc-node/jest as a test transformer.
v0.1.2
Fixes
- Simplified type definitions around the
subscribe
andunsubscribe
events to avoid TypeScript problems when they are used. #5- They should still provide a complete type experience when used - just without errors.
- Fixed type definitions of
fromActor
to make the utility function usable without TypeScript problems. #9
Internal
- Added tests for most features. #6
- The only missing feature is the broadcast strategy of the event bus, which uses a
BroadcastChannel
.
- The only missing feature is the broadcast strategy of the event bus, which uses a
- Updated badges in the documentation.