You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/melonjs/CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,15 @@
7
7
- Tiled: new public `registerTiledObjectFactory(type, factory)` and `registerTiledObjectClass(name, Constructor)` APIs allowing plugins to register custom Tiled object handlers by class name without modifying engine code
8
8
- Tiled: `detectObjectType()` now checks `settings.class` and `settings.name` against the factory registry before falling through to structural detection, enabling class-based dispatch for custom types
9
9
10
+
### Changed
11
+
- EventEmitter: native context parameter support — `addListener(event, fn, context)` and `addListenerOnce(event, fn, context)` now accept an optional context, eliminating `.bind()` closure overhead and enabling proper `removeListener()` by original function reference
12
+
- EventEmitter: `event.on()` and `event.once()` no longer create `.bind()` closures when a context is provided
13
+
10
14
### Fixed
11
15
- WebGLRenderer: `setBlendMode()` now tracks the `premultipliedAlpha` flag — previously only the mode name was checked, causing incorrect GL blend function when mixing PMA and non-PMA textures with the same blend mode
12
16
- TMX: fix crash in `getObjects(false)` when a map contains an empty object group (Container.children lazily initialized)
17
+
- EventEmitter: `removeAllListeners()` now correctly clears once-listeners (previously only cleared regular listeners)
18
+
- Loader: fix undefined `crossOrigin` variable in script parser, unsafe regex match in video parser, missing error parameter in video/fontface error callbacks, `fetchData` Promise constructor antipattern and silent error swallowing
13
19
14
20
### Chore
15
21
- Minimum Node.js version is now 24.0.0 (Node 18/20 EOL, Node 22 in maintenance)
0 commit comments