Releases: Neloreck/dreamstate
Releases · Neloreck/dreamstate
[4.4.0] Dreamstate.
[NIGHTLY] Dreamstate
Latest development build
[4.3.1] Dreamstate.
Added:
- getDefaultContext static method to provide default context when manager is not provided
Changed:
- dreamstate error code mapping to error message
- dreamstate errors throwing instead of default TypeError
[4.3.0] Dreamstate.
Added:
- DreamstateError class for internal errors handling
- DreamstateErrorCode enum added containing all internal error codes from library
- 'getScope' method for context manager instances
[4.2.0] Dreamstate.
Added:
- mockRegistry test-util added
- mockManagerInitialContext test-util added
Updated:
- HMR, case when tree was not synced with actual store data when subscribed with simple useContext managers (useManager without memo)
- setContext and forceUpdate methods can be called out of scope. In this case simply modify class and continue working
- Signal/query methods correctly throw exception if called out of scope (created with new or when doing it from constructor)
- Validate signals types for signals decorators and methods
- Validate queries types for query decorators and methods
- Register method now allows overriding default initial context for mocking/testing
- mockScope method now uses config object as first param instead of boolean variable
[4.1.1] Dreamstate.
Added:
- New scope method 'getContextOf' introduced
[4.1.0] Dreamstate.
Added:
- IS_DISPOSED field for ContextManager instances to indicate current state
- General testing utils flow was reviewed, revisited methods for testing and simplified it
- Mock scope provider test util for scope testing
- Mock manager test util for isolated scope mocking
- Mock managers test util for isolated scope mocking
Updated:
- Do not affect scope after disposing with setContext and forceUpdate methods
- Return signal event from 'emitSignal' manager method
- Warn in console when signal handler fails
- Mocked scope can toggle lifecycle now
[4.0.0] Dreamstate.
Added:
- mockScope test-util added
- mockScopeProvider test-util added
- mockManagerWithScope test-util added
Removed:
- register/observing methods (test-utils) removed
- getCurrentContext (test-utils) removed
- IS_SINGLE removed in favor of scoped storages without global storing // related to HMR problems and best approach for data management
- ContextService removed in favor of ContextManager
- Provide decorator removed
- Consume decorator removed
- withProvision HoC removed
- withConsumption HoC removed
- before/after update lifecycle methods removed
- useSignals method removed
- queryDataAsync stopped supporting array of queries
Updated:
- getCurrent moved to test-utils
- queryData renamed to queryDataAsync
- mount/unmount order now matches react components
- signals/queries cannot be sent from disposed context manager class
- global methods/getters moved to scope context
- sync emitSignal calls
- correct inheritance of signals/queries metadata
- less verbose typing for queries and signals events
- lifecycle events made public for easier testing
- more optimized loadable/nested values
- ContextManager supports default state without manual initialization (empty object)
[3.3.2] Dreamstate.
- 'partialHotReplacement' parameter for created provider elements that are disabled by default -> allow hot updates and partial reload of context managers
- deprecated multiple queries at once for queryData methods
[3.3.1] Dreamstate.
- 'registerQueryProvider' method added
- 'unRegisterQueryProvider' method added
- syncQuery improvements
- types improvements