Skip to content

v4.0.0

Compare
Choose a tag to compare
@craigbeck craigbeck released this 01 May 19:23
· 33 commits to master since this release

TypeScript *.d.ts type definition files are now bundled with both Derby and Racer!

derby@4 uses racer@2. If you have a separate dependency on Racer, be sure to update it.

Breaking changes

  • Declaring a singleton component via ComponentClass.prototype.singleton = true; is no longer supported.
    • Instead, use a static property class ComponentClass { static singleton = true; }
    • Or without class syntax, ComponentClass.singleton = true;
  • Internal class hierarchies have been changed, with new client-specific and server-specific classes inheriting from base classes.
    • This generally won't affect you, unless you had custom type definitions written for Derby's classes.
    • In most cases, the base class type is appropriate unless you are using specific client or server side methods
      • Derby base, DerbyForClient and DerbyForServer subclasses
      • Page base, PageForClient and PageForServer subclasses
      • App base, AppForClient and AppForServer subclasses

If you are upgrading straight from the pure-JS derby@2, also see the release notes for derby@3 here:
https://github.com/derbyjs/derby/releases/tag/v3.0.0

What's Changed

Full Changelog: v3.0.3...v4.0.0