mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-13 12:37:17 +08:00
Updated history
This commit is contained in:
@@ -5,5 +5,12 @@
|
||||
### Breaking Changes
|
||||
|
||||
### New Features
|
||||
- New utilities for extending Resource Types.
|
||||
- Added `Resource.extend("ResourceName", { /* members */ })` syntax for extending Resources. The `init()` function is used as a constructor. The old `util.inherits()` syntax will continue to work.
|
||||
- Moved `Resource` base class to the exports of the deployd module. You can now use `require('deployd').Resource` instead of `require('deployd/lib/resource')`.
|
||||
- Added `get(ctx, next)`, `post(ctx, next)`, `put(ctx, next)`, and `del(ctx, next)` utility functions on `Resource`. You can now override those instead of `handle()`.
|
||||
- New `Module` type in extension API
|
||||
- Modules can define multiple Resource Types with `this.addResourceType()`
|
||||
- [TODO] Modules can register their own dashboards.
|
||||
|
||||
### Major Bugfixes
|
||||
@@ -18,6 +18,7 @@ module.exports = function(parent) {
|
||||
constructor.prototype[k] = child[k];
|
||||
});
|
||||
|
||||
module.exports(constructor);
|
||||
return constructor;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user