Skip to content

Releases: Shynixn/MCCoroutine

Release 2.1.0

29 Apr 16:04
1ace676
Compare
Choose a tag to compare

Developer Notes

  • See 2.0 changes if you are upgrading from 1.x.x to 2.x.x.

Changes

  • #60 Introduced support for Velocity. See the new wiki for details.

Release 2.0.1

16 Apr 15:35
460d184
Compare
Choose a tag to compare

Developer Notes

  • See the 2.0.0 release below.

Bugs/Issues

  • #58 Fixed mccoroutine-bungeecord-core.jar contains Kotlin libraries.

Release 2.0.0

16 Apr 13:11
1cbc0eb
Compare
Choose a tag to compare

Developer Notes

This change is a major version change and contains breaking changes. Please follow the upgrade guide below.

Changes

  • #52 Changed the way how exceptions are handled. It is now possible to fully control any coroutine exceptions using the new event MCCoroutineExceptionEvent. The details are explained on the new wiki page.
  • #52 CoroutineCancellations are no longer being logged by MCCoroutine because people were confused why this exception is printed in the first place. You can still catch it using the new MCCoroutineExceptionEvent.
  • #50 Introcuded support for BungeeCord and Waterfall. See the new wiki for details.
  • #50 Removed any implementation details from the mccoroutine-framework-api projects.
  • #50 Removed plugin.launchAsync from MCCoroutine. This function was an idea to directly allow async dispatches. However, after investigating open source projects, this function was almost always used incorrectly and caused to return on unknown threads. Please see the upgrade guide below, how to fix it.
  • #50 Moved classes to different packages.
  • #50 plugin.launch behaves now exactly the same as plugin.scope.launch.
  • #50 Added start parameter to plugin.launch

Upgrading from 1.x.x to 2.x.x

  • Replace plugin.launchAsync
// 1.x.x
fun foo(){
  plugin.launchAsync {
     // Code A
  }
}
// 2.x.x
fun foo(){
  plugin.launch {
    withContext(Dispatchers.IO) {
       // Code A
    }
  }
}
  • Fix the import changes:

com.github.shynixn.mccoroutine.* has become either:

  • com.github.shynixn.mccoroutine.bukkit.*
  • com.github.shynixn.mccoroutine.sponge.*
  • com.github.shynixn.mccoroutine.bungeecord.*

Release 1.6.0

11 Mar 10:04
40075d1
Compare
Choose a tag to compare

Changes

  • #51 Added support to call suspending events consecutively. Use the new overload plugin.server.pluginManager.callSuspendingEvent(event, plugin, EventExecutionType.Consecutive) . The default behaviour (as in previous versions) is EventExecutionType.Concurrent.

Release 1.5.0

02 Jun 09:23
9009a12
Compare
Choose a tag to compare

Bugs/Issues

  • #38 Fixed scheduler hack was always enabled when not using SuspendingJavaPlugin.

Release 1.4.0

31 May 12:23
952e849
Compare
Choose a tag to compare

Changes

  • #33 Added support for suspend keyword in the Plugin main class. Use the new type called SuspendingJavaPlugin. For more details, please consult the new wiki.

Release 1.2.0

11 Mar 16:22
d8f3534
Compare
Choose a tag to compare

Bugs/Issues

  • #28 Fixed maven release did not contain correct javadoc and sources files.

Release 1.1.2

11 Mar 15:05
d4f77c1
Compare
Choose a tag to compare

This release was automatically created by Github Actions. Please wait until the author manually sets the patchnotes for this release.

Release 1.1.0

24 Feb 13:45
98b9e23
Compare
Choose a tag to compare

Changes

  • #24 Extended PluginManager to await the sending of custom events.
  • #25 Removed KotlinReflect dependency as it is no longer needed. This reduces the overall library size by 2-3 MB.

MCCoroutine 0.0.7

07 Feb 15:02
Compare
Choose a tag to compare

Changes

  • #19 Added suspending tab completer.