mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-15 01:32:57 +08:00
1.3 KiB
1.3 KiB
History
0.7.0
New Features
- New utilities for extending Resource Types.
- Added
Resource.extend("ResourceName", { /* members */ })syntax for extending Resources. Theinit()function is used as a constructor. The oldutil.inherits()syntax will continue to work. - Moved
Resourcebase class to the exports of the deployd module. You can now userequire('deployd').Resourceinstead ofrequire('deployd/lib/resource'). - Added
get(ctx, next),post(ctx, next),put(ctx, next), anddel(ctx, next)utility functions onResource. You can now override those instead ofhandle().
- Added
- New
Moduletype in extension API- Modules can define multiple Resource Types with
this.addResourceType() - [TODO] Modules can register their own dashboards.
- Modules can define multiple Resource Types with
- Added
dirto server options - for booting in other directories thanprocess.cwd().
Breaking Changes
-
Most configuration properties on the
Resourceclass have been moved to the prototype:external,events,basicDashboard, anddashboard.- The
labelanddefaultTypeproperties will remain on the constructor, as they shouldn't be inherited.
- The
-
The configuration option
Resource.eventshas been renamedResource.eventNames. -
resources now support custom events by default
-
new collection permission api