156 Commits

Author SHA1 Message Date
inhere
1801b1b525 👔 up: Update adjusts contextual event handling logic
- fix some unit test error on concurrent run
v1.2.0
2025-08-30 13:22:48 +08:00
inhere
b4e3765eb3 💚 ci: fix github action ci test error 2025-08-25 13:30:03 +08:00
inhere
01c5d2e33e 📝 chore: update some readme and some code comments 2025-08-25 13:19:22 +08:00
inhere
2139003c0e 🐛 fix: fix custom events failed to execute. see issues #68 2025-08-25 13:14:00 +08:00
inhere
dc11518436 test: add test case for issues #67 2025-08-22 12:14:11 +08:00
inhere
3c7c36cff4 ⬆️ dep: upgrade actions checkout to v5, up goutil to v0.7.1
- add run ci test on go1.22+

# Conflicts:
#	.github/workflows/go.yml
#	go.mod
#	go.sum
2025-08-21 22:01:50 +08:00
inhere
72a268efc9 👔 up: update some code style, add more test cases 2025-08-21 22:01:10 +08:00
inhere
1cb22cbe51 👔 up: AddEvent will return an error if the name is invalid, instead of panic. fix #75 2025-08-21 22:01:10 +08:00
inhere
ab0d946a81 feat: add support with context for fire event. see issues #78
- add new method: FireCtx, FireEventCtx
2025-08-21 22:01:10 +08:00
inhere
8a9127892c 👔 up: refactoring the files structure, add fire with context 2025-08-21 22:01:10 +08:00
dependabot[bot]
47e307c1e8 chore(deps): bump github.com/gookit/goutil from 0.6.18 to 0.7.0 (#77) 2025-07-01 09:17:28 +08:00
dependabot[bot]
b9ce75ec37 chore(deps): bump github.com/gookit/goutil from 0.6.17 to 0.6.18 (#74) 2025-03-29 09:51:34 +08:00
dependabot[bot]
91d828c5c5 chore(deps): bump shogo82148/actions-goveralls from 1.9.0 to 1.9.1 (#73) 2025-03-29 09:51:24 +08:00
Inhere
b27d29e85e ci: add ci test on go1.21+ version 2025-03-28 19:26:24 +08:00
Kiyan
f885dbb082 feat: event trigger once (#72) 2025-03-28 19:24:36 +08:00
dependabot[bot]
a5d1e78aa5 chore(deps): bump github.com/gookit/goutil from 0.6.15 to 0.6.17 (#71) 2025-03-28 17:08:49 +08:00
dependabot[bot]
424a47ce1d chore(deps): bump softprops/action-gh-release from 1 to 2 (#65)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-11 23:51:02 +08:00
dependabot[bot]
c3321bbdf2 chore(deps): bump WillAbides/setup-go-faster from 1.13.0 to 1.14.0 (#63)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-23 15:14:39 +08:00
dependabot[bot]
e5906c4b28 chore(deps): bump shogo82148/actions-goveralls from 1.8.0 to 1.9.0 (#62)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v1.1.2
2024-02-06 13:20:02 +08:00
Inhere
b1597a253a 👔 up: set EnableLock default is False
- add some new issues test cases
- replace pkg stretchr/testify to gookit/goutil
- add code lint check action script
2024-02-06 00:25:46 +08:00
dependabot[bot]
51019c49a8 chore(deps): bump actions/setup-go from 4 to 5 (#59)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-08 10:49:16 +08:00
dependabot[bot]
08c444107f chore(deps): bump actions/checkout from 3 to 4 (#57) 2023-09-05 10:25:21 +08:00
Inhere
ddf7cfde94 master chore: update the zh-cn readme docs 2023-08-18 10:07:00 +08:00
dependabot[bot]
2272ccb9e3 chore(deps): bump shogo82148/actions-goveralls from 1.7.0 to 1.8.0 (#54) 2023-08-10 13:41:57 +08:00
Inhere
6c15d5c76b master doc: update readme docs for option ModePath 2023-06-14 19:03:25 +08:00
Inhere
f6dcee8054 doc: update the README docs 2023-06-11 11:27:02 +08:00
Inhere
84c8399110 doc: update some doc for async fire events v1.1.1 2023-06-10 21:38:27 +08:00
Inhere
9f32831391 doc: update some doc for option ModePath 2023-06-10 21:29:26 +08:00
Inhere
51112f489d 👔 up: update some for EnableLock options 2023-06-10 21:24:56 +08:00
Inhere
c020267c7b feat: support async consume events and wait complete
- add some new global func
 - add more unit tests
2023-06-09 14:53:15 +08:00
Inhere
ce4bdc7268 📝 doc: update README docs for new feature usage 2023-06-09 14:42:37 +08:00
Inhere
65c875403f up: update name match logic and add more tests v1.1.0 2023-06-08 00:46:02 +08:00
Inhere
6a692b41b4 test: add more unit tests for ModePath 2023-06-07 10:31:11 +08:00
Inhere
af2093fe96 test: fix all unit tests error, add ci test on go1.20 2023-06-04 16:18:21 +08:00
Inhere
399f023288 feat: add new match mode ModePath for support functionality wildcard event name
- resolve the issues #43
2023-06-04 16:11:25 +08:00
Inhere
a55f9f7436 🐛 fix: use Event factory func for make defined event. resolve issues #48 2023-06-04 16:11:25 +08:00
Inhere
4567e35d2b 🐛 fix: remove repeat listener key check logic codes 2023-06-04 16:11:25 +08:00
dependabot[bot]
9d07a2716f Bump github.com/stretchr/testify from 1.8.0 to 1.8.4 (#50)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-04 16:11:17 +08:00
dependabot[bot]
886fb07809 Bump shogo82148/actions-goveralls from 1.6.0 to 1.7.0 (#47)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-27 10:04:38 +08:00
dependabot[bot]
4b27607b70 Bump actions/setup-go from 3 to 4 (#46)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 10:06:45 +08:00
Inhere
a1aed12e15 Merge pull request #42 from RelicOfTesla/ReflectValueListenCompareKey 2023-02-26 12:03:49 +08:00
Inhere
de59dc9b62 Merge branch 'master' into ReflectValueListenCompareKey 2023-02-07 00:38:26 +08:00
Inhere
9fbb081fc2 Merge pull request #41 from RelicOfTesla/master
fix https://github.com/gookit/event/issues/9
2023-01-18 00:17:31 +08:00
RelicOfTesla
354e6026b8 remove listener_key.go 2023-01-15 15:56:41 +08:00
RelicOfTesla
18c42a184f RemoveListener support closure function; fix: #9 2023-01-15 15:52:13 +08:00
RelicOfTesla
dc57b95e07 test remove some index listener(middle,first,last). 2023-01-15 14:59:14 +08:00
RelicOfTesla
2caf275f64 Resolve Codacy 2023-01-15 12:46:29 +08:00
RelicOfTesla
e3c225867d Resolve Codacy 2023-01-15 12:36:57 +08:00
RelicOfTesla
b5f074732c rename 2023-01-15 12:25:05 +08:00
RelicOfTesla
15098d38d8 del getAnyRawValue 2023-01-15 02:14:41 +08:00