Skip to content

v4.0.1

Choose a tag to compare

@github-actions github-actions released this 05 Nov 09:11
92390ff

What's Changed

Breaking Changes & Migration

  • Moved the public launcher package: replaced github.com/goplus/spx/v4/x/xgolauncher with github.com/goplus/spx/v4/pkg/launcher. Update imports to the new path.
    #2169 by @joeykchen
  • Restored the float64 Rand return type: reverted Rand__0 to return float64. Code relying on the int return introduced in v4.0.0 may need adjustment.
    #2156 by @go-wyvern
  • Separated Scratch compatibility from SPX core: moved Scratch-specific behavior into pkg/scratchcompat, while retaining deprecated SPX list entry points for migration.
    #2177 by @joeykchen

Scratch Compatibility & Interaction

  • Preserved broadcast order across script rounds: admitted eligible scripts together so asynchronous broadcasts do not overtake scripts already waiting in the same batch.
    #2181 by @joeykchen
  • Aligned pixel sensing with Scratch and synchronized changed scene proxies before color queries.
    #2179, #2176 by @songweijun1203
  • Matched Scratch sound-control scheduling: compatibility-layer sound controls wait until the next frame inside SPX coroutines and remain synchronous outside them.
    #2178 by @joeykchen
  • Improved input and reporter behavior: expired gestures during frame dispatch, covered swipe expiry across replay frames, and limited position reporter precision.
    #2152, #2162 by @joeykchen; #2146 by @go-wyvern
  • Refined random compatibility: isolated Scratch random behavior in the compatibility layer while preserving SPX's continuous floating-point sampling.
    #2174, #2177 by @joeykchen

Runtime Reliability & Performance

  • Accelerated collision and color queries with parallel alpha and scene-color processing.
    #2154 by @songweijun1203
  • Reduced event and layer-update overhead: avoided allocating unmatched event sink buffers and limited layer updates to the moved range.
    #2172, #2173 by @joeykchen
  • Simplified runtime state: streamlined state copying and retained only consumed clock and profiler state.
    #2163, #2153 by @joeykchen
  • Clamped stored visual effects: kept ghost and brightness values within their supported ranges.
    #2166 by @joeykchen

Rendering & UI

  • Improved monitor and bubble maintenance: fixed monitor styles and simplified bubble updates.
    #2150 by @joeykchen
  • Unified say-bubble layout scoring while preserving candidate search order and tie-breaking.
    #2187 by @joeykchen

Web, Bindings & Code Generation

  • Derived Web callbacks from ABI metadata and propagated Web preparation failures during export.
    #2164, #2160 by @joeykchen
  • Simplified native bindings: removed unused wrappers, redundant ownership state, and obsolete String and Variant bindings.
    #2147, #2183 by @joeykchen
  • Unified binding and interpreter representations: kept one array and parameter representation, and shared file metadata and JavaScript conversions.
    #2151, #2182 by @joeykchen

Assets, Packaging & Tooling

  • Simplified build configuration: derived download settings from canonical sources and shared CLI platform and mode validation.
    #2148, #2170 by @joeykchen
  • Streamlined project and runtime paths and simplified runtime-bundle cache configuration.
    #2149, #2175 by @joeykchen
  • Reused stable file validation in packaging.
    #2161 by @joeykchen

Testing & Maintenance

  • Expanded Go and C++ test coverage: strengthened native runtime, input, CLI, and filesystem regression tests, bringing combined coverage to approximately 94%.
    #2158, #2165 by @joeykchen; #2159 by @songweijun1203
  • Consolidated CI and coverage collection: simplified build and release automation, finalized the Godot pin, collected cross-package coverage in one test pass, and avoided duplicate uploads.
    #2155, #2157, #2168, #2180 by @joeykchen

Full Changelog: v4.0.0...v4.0.1