Socket
Socket
Sign inDemoInstall

melonjs

Package Overview
Dependencies
10
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2345
9Next

17.2.0

Diff

Changelog

Source

[17.2.0] (melonJS 2) - 2024-04-22

Added

  • Audio: add missing optional id parameter to 3D / Spatial audio methods
  • Core: add platform detection if running as a standalone web app
  • Loader: add missing unload implementation for font assets

Fixed

  • Loader: properly return an error when attempting to load FontFace assets on non-browser platforms
  • Renderer: fix a regression when a global canvas is available (e.g. webapp adapter for wechat)
  • Renderer: fix a regression when forcing WebGL1 rendering mode (leading to an exception)
  • Renderer: fix a regression when using the canvas rendering mode where antialias setting was not being applied on cached tinted elements

Chores

  • Chore: Update to eslint 9
melonjs
published 17.1.0 •

Changelog

Source

[17.1.0] (melonJS 2) - 2024-03-29

Added

  • Audio: added/exposed 3D Spatial Audio method (stereo(), position(), orientation() and panner())
  • Loader: image resources can now take an array of src urls with different format (preparing for later usage)
  • Math: added a isPowerOfFour() method
  • Renderer: new renderTarget property specifying the default CanvasRenderTarget to use when rendering

Changed

  • Renderer: CanvasTexture is now deprecated and replaced by a new CanvasRenderTarget class

Fixed

  • Core: prevent multiple temporary canvas creation when calling isWebGLSupported multiple times
melonjs
published 17.0.0 •

Changelog

Source

[17.0.0] (melonJS 2) - 2024-03-05

Added

  • Sprite: add support for aseprite texture atlas (including animation)
  • Atlas: createSpritefromAnim parameter is now optional, and if not defined will use all defined index in the corresponding atlas
  • Loader: new setOptions method that allows specifying custom settings to be applied to fetch requests (crossOrigin, withCredentials, etc..)

Changed

  • Loader: loader settings such as crossOrigin and withCredentials are now deprecated and have to be set through the setOptions method

Fixed

  • Doc: fix hyperlinks to source code within documentation (thanks @Waltibaba)
  • Loader: fix settings for the fetch request not being applied in ES6 builds (thanks @B0sh)
melonjs
published 16.1.3 •

melonjs
published 16.1.2 •

Changelog

Source

[16.1.2] (melonJS 2) - 2024-02-12

Fixed

  • Renderable: fix Light2d renderables not always triggering a screen refresh
  • Plugin: fix version comparaison once and for all using the official semver package
melonjs
published 16.1.1 •

Changelog

Source

[16.1.1] (melonJS 2) - 2024-02-06

Fixed

  • Loader: fix an issue where some mobile browser (e.g. safari) would not emit the canplay event for video assets if autoplay is disabled
melonjs
published 16.1.0 •

Changelog

Source

[16.1.0] (melonJS 2) - 2024-02-06

Added

  • Loader: add optional autoplay and loop parameters when [pre]loading audio and video assets (false by default)
  • Loader: add support for loading/preloading of HTMLVideoElement
  • Sprite: HTMLVideoElement can now be passed as a source when creating Sprite object
melonjs
published 16.0.0 •

Changelog

Source

[16.0.0] (melonJS 2) - 2024-02-03

Added

  • Path2d: preliminary SVG path parsing to the Path2D class (WIP)

Changed

  • Chore: update to npm 10, Node.js 20 and friends
  • loader: replaced XHR by Fetch for assets preloading (thanks @Edwardscb)
  • Renderer: fix toBlob, toDataURL and toImageBitmap method signature to better match with the W3C API
melonjs
published 15.15.0 •

Changelog

Source

[15.15.0] (melonJS 2) - 2023-11-20

Added

  • Renderable : new parentApp getter that returns the parent application/game instance to which a renderable belongs to.

Fixed

  • ImageLayer: fix a regression when loading a level within a sub container (thanks @rcl)
melonjs
published 15.14.0 •

Changelog

Source

[15.14.0] (melonJS 2) - 2023-10-17

Added

  • loader: prevent loading of previously loaded resources. e.g. duplicated resources across mutliple manifest (thanks @z0mb1)
  • loader: add handling of asset load error, enabling to retry loading failed assets (thanks @z0mb1)

Changed

  • UI: small optimization when rendering BitmapText
2345
9Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc