Skip to content

Releases: MafiaHub/Framework

v6.0.0

24 Mar 04:42
399b590

Choose a tag to compare

Update to flecs 4.1.5 (#188)

v5.2.1

22 Mar 04:42

Choose a tag to compare

CI: Re-enable automated style checks on push and PR

Uncomment push/pull_request triggers for the style check workflow
and bump actions/checkout from v2 to v4.

v5.2.0

18 Mar 04:44
93da63c

Choose a tag to compare

Scripting: Derive event handler resource from function origin (#186)

Events.on/once/onLocal/off previously determined "which resource is
calling" by reading a mutable global variable (_currentResourceContext)
set only during synchronous script loading. Any async boundary
(setTimeout, promises, I/O) ran after it was cleared, causing
"must be called from within a resource" errors.

Fix: use v8::Function::GetScriptOrigin() to derive resource identity
from the handler function's definition location. A handler defined in
resources/myResource/main.js always carries that file path regardless
of when or from what async context Events.on() is called.

Three-tier resolution in GetResourceContextWithFallback:
1. Handler function's script origin (async-safe)
2. Explicit _currentResourceContext (synchronous loading)
3. V8 call stack file paths (existing fallback)

Refactored GetResourceContextFromStack into reusable
GetResourceNameFromScriptPath + GetResourceNameFromFunction methods.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

v5.1.0

17 Mar 04:40

Choose a tag to compare

Added environment builtin

v5.0.0

05 Mar 04:38

Choose a tag to compare

Final keyword enforced on final leafs of inheritance chain

v4.4.3

27 Feb 04:38

Choose a tag to compare

Merge branch 'develop' of github.com:MafiaHub/Framework into develop

v4.4.2

26 Feb 04:39
8f92fe4

Choose a tag to compare

Fix ambiguous call to overloaded function (#184)

v4.4.1

25 Feb 04:42

Choose a tag to compare

Merge branch 'develop' of github.com:MafiaHub/Framework into develop

v4.4.0

24 Feb 04:41

Choose a tag to compare

Update CMakeLists.txt

v4.3.5

23 Feb 04:46

Choose a tag to compare

Proper exception catching