mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
101 lines
2.6 KiB
Markdown
101 lines
2.6 KiB
Markdown
# Changelog
|
|
|
|
All notable changes to this project will be documented in this file.
|
|
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
## [Unreleased]
|
|
|
|
### Added
|
|
|
|
- `create("ClassName", { props })` and `create(Instance, { props })` syntax.
|
|
- `cleanup()` now accepts `thread` types.
|
|
- Implicit effects to set children can now recursively create more implicit
|
|
effects to set children.
|
|
- `spring()` returns a second value, a setter to set position, velocity and
|
|
impulse.
|
|
|
|
### Changed
|
|
|
|
- A scope can no longer be destroyed while it is active. Strict mode will check
|
|
for this.
|
|
- Implicit effects to set children now unparent all children when the effect is
|
|
destroyed.
|
|
- Error reporting should be improved with better formatting when effects invoke
|
|
other effects and no more loss of stack traces.
|
|
|
|
### Removed
|
|
|
|
- Aggregate construction when setting properties with `create()`.
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
## [0.3.1] - 2024-10-09
|
|
|
|
### Added
|
|
|
|
- Context functions now also return results.
|
|
- `version` table with current version.
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
## [0.3.0] - 2024-10-06
|
|
|
|
### Added
|
|
|
|
- `context()`.
|
|
|
|
### Changed
|
|
|
|
- `root()` now returns its destructor as the first value by default.
|
|
|
|
### Fixed
|
|
|
|
- Error stack traces being lost.
|
|
- `root()` now destroys the scope automatically if an error occurs during call.
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
## [0.2.0] - 2023-11-22
|
|
|
|
### Added
|
|
|
|
- Batched updates with `batch()`.
|
|
|
|
### Changed
|
|
|
|
- Improved graph updating algorithm.
|
|
- Graph nodes when destroyed no longer destroy children; only owned.
|
|
|
|
### Fixed
|
|
|
|
- Graph edge case where a destroyed node can be readded if it was queued for
|
|
rerun before being destroyed.
|
|
- Some properties not being applied when `create()` is used recursively.
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
## [0.1.1] - 2023-09-30
|
|
|
|
### Added
|
|
|
|
- `cleanup()` accepts objects with a `Destroy()` or `Disconnect()` interface.
|
|
- `read()` as a utility to read sources or passthrough a non-source value.
|
|
|
|
### Changed
|
|
|
|
- Reactive scopes created within reactive scopes are now destroyed on rerun.
|
|
- `untrack()` can be called outside of reactive scopes.
|
|
- `changed()` will also run its callback with the initial property value.
|
|
|
|
### Fixed
|
|
|
|
- `show()` and `switch()` not updating when in strict mode.
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
## [0.1.0] - 2023-09-20
|
|
|
|
- Initial release
|