github superpowers/superpowers-core v0.5.0

latest releases: v5.0.0, v4.0.0, v3.0.0...
pre-release10 years ago

Highlights for this update:

  • Context-sensitive auto-completion in the script editor!
  • Real-time error reporting in the script editor
  • You can now use TypeScript 1.5 features including block-scoped let, const and for(let ITERATOR of ARRAY) ...
  • New text rendering plugin, supports both vector fonts and bitmap fonts
  • You can now remove servers from the launcher's server list
  • Better error reporting in the launcher
  • 14 out of 16 modules have been ported from CoffeeScript to TypeScript. We're almost done!
  • New EventEmitter API plugin, lets you emit and listen for events
  • Many bugfixes (and probably a few new ones, let's be honest, we ported a lot of code :D)

Plugin development

Component editors

The arguments passed to a component editor class constructor have changed (the first one was removed, it was just a copy of SupClient which is a global):

class MyComponentEditor {
  constructor(tbody: HTMLDivElement, config: any, projectClient: SupClient.ProjectClient, editConfig: any) {
    // ...
  }
}

Component updaters

Component updater classes should have a destroy() method (no arguments). It will be called when a component is destroyed.

If your component editor has subscribed to asset(s) or resource(s), make sure to unsubscribe within your destroy method.

Don't miss a new superpowers-core release

NewReleases is sending notifications on new releases.