Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Changelog

All notable changes to `hy-event-store` are documented in this file.

## 1.4.0 (unreleased)

### Added

- Add automated regression tests and continuous integration for Node.js 18,
20, 22, 24, and 26.
- Add contribution, security-reporting, and maintenance guidance.

### Changed

- Return action results from `dispatch`, including Promise values, so callers
can consume or await them. This follows the contribution proposed by
[@Thunder7991](https://github.com/Thunder7991) in
[PR #32](https://github.com/coderwhy/hy-event-store/pull/32).
- Validate store options, state keys, action names, event names, and callbacks
with clearer errors.
- Make multi-state listener registration and removal atomic when validation
fails.
- Remove the unused Axios development dependency and limit the published
package to runtime source and project documentation.

### Fixed

- Prevent `once` listeners from skipping the next listener during emission.
- Make `off` safe when an event has no listeners.
- Repair `clear` and `hasEvent` so they operate on the event registry.
- Support event names that overlap with object prototype properties, including
`constructor`, `toString`, and `__proto__`.

### Compatibility notes

- Existing CommonJS imports remain unchanged.
- State keys must be declared in the initial `state` object. `setState` now
throws for unknown keys instead of creating values that cannot be observed.
- No runtime dependencies are added.

## 1.3.1 - 2023-04-21

- Previous npm release. Earlier changes were not maintained in a repository
changelog.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "hy-event-store",
"version": "1.3.1",
"version": "1.4.0",
"description": "A zero-dependency event bus and global state store for Vue, React, Mini Programs, and vanilla JavaScript.",
"main": "src/index.js",
"files": [
"src"
"src",
"CHANGELOG.md"
],
"scripts": {
"test": "node --test Test/*.test.js",
Expand Down