From 0da530edadd7df3f809acc0af8a9f34b5d68fa13 Mon Sep 17 00:00:00 2001 From: coderwhy Date: Mon, 17 Aug 2026 15:36:36 +0800 Subject: [PATCH] chore: prepare v1.4.0 release notes --- CHANGELOG.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 5 +++-- 3 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..7401543 --- /dev/null +++ b/CHANGELOG.md @@ -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. diff --git a/package-lock.json b/package-lock.json index ceec679..8ba9dac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hy-event-store", - "version": "1.3.1", + "version": "1.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hy-event-store", - "version": "1.3.1", + "version": "1.4.0", "license": "MIT" } } diff --git a/package.json b/package.json index 73740c3..a18a728 100644 --- a/package.json +++ b/package.json @@ -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",