Skip to content

Releases: gm-core/gdash

6.0.2

15 Sep 13:30
Compare
Choose a tag to compare
  • Bug fix: _clone_array now properly handles arrays of length 0

6.0.1

13 Sep 20:25
Compare
Choose a tag to compare
  • Fixed a bug in _map with return breaking due to uninitialized array
  • Changed internal some variable names to reduce naming collision chances

6.0.0

10 Sep 14:36
Compare
Choose a tag to compare

Starting in 6.0.0, gdash requires GameMaker: Studio 2.3

Changes

  • Now supports GM:S 2.3 methods!
    • _run, _partial, _spread, _map, _filter and _find all support methods
  • Updated code to match new 2.3 conventions
    • Inline function argument names where possible
    • Internal arrays are now all 1d and only use array_length

5.0.0

25 Mar 17:53
7274dac
Compare
Choose a tag to compare

A huge thank you to trouvant for this update.

New scripts:

  • _chunk
  • _difference
  • _difference_by
  • _drop
  • _drop_right
  • _fill
  • _intersection
  • _intersection_by
  • _reverse (which is mutative, as in Lodash)
  • _union
  • _union_by
  • _unzip
  • _without
  • _zip

Changes:

  • The old _reverse is now _backward
    • _reverse mutates, _backward returns a new array

GameMaker Studio 2.3 Beta

gdash is compatible with GameMaker Studio 2.3 Beta. You can import the native 2.3 package below (gdash-5-0-0-beta.yymps). The existing functions work as-is. Core functionality will be revised to center around GM:S2.3 shortly after the 2.3 beta ends and 2.3 becomes the mainline version.

4.0.0

10 Mar 15:30
125bb15
Compare
Choose a tag to compare

This is a breaking change update for gdash.

Changelog:

  • Dropped support for GameMaker: Studio v1
  • All scripts changed to be _snake_case instead of _camelCase
  • Minor performance tuning in most scripts
  • Significant performance updates to:
    • _uniq
    • _contains
  • Bug fixes and behavior alignment for _contains
  • _keys now returns an empty array for empty maps
  • New scripts:
    • _to_list(array)
    • _list_of(values...)
    • _map_of(values...)
    • _error(message [, fatal])
  • Documentation is now generated directly from code comments in the source

3.0.0

19 Jun 03:47
Compare
Choose a tag to compare

Updated:

  • _set can now nest maps and lists directly into the base map
  • _contains defaults to ds_type_list when passing in a data structure

Bug fix:

  • Fixed a compile bug with _spread

2.2.0

11 Feb 14:39
Compare
Choose a tag to compare

Added:

  • _reverse
  • _slice

Updated:

  • _log
    • Now accepts multiple arguments to log to the command line

Thanks to thijsmie

2.1.0

04 Feb 17:48
Compare
Choose a tag to compare

Added:

  • _or
    • Returns two values logically or'd
  • _toArray
    • Can convert ds_lists into arrays
  • _nth
    • Returns the nth element of a given collection (array/list)
    • If n is negative, returns the nth element from the end

Updated:

  • _contains can now take an optional ds_type flag to look in ds_lists and ds_maps explicitly
  • _filter now supports ds_lists
  • _reduce now supports ds_lists

2.0.1

04 Feb 14:46
Compare
Choose a tag to compare

This is an optimization patch, with a huge thanks to thijsmie.

Updated:

  • Most scripts have been optimized, including the use of gml_pragma for smaller scripts to inline themselves during compilation

2.0.0

20 Jan 22:15
Compare
Choose a tag to compare

Updated:

  • Support for GM:S2 live documentation / autocompletion

Removed:

  • _object