Updated history

This commit is contained in:
DallonF
2012-11-20 12:01:13 -07:00
parent 8fc463229f
commit 60d0ad070e
2 changed files with 8 additions and 0 deletions

View File

@@ -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

View File

@@ -18,6 +18,7 @@ module.exports = function(parent) {
constructor.prototype[k] = child[k];
});
module.exports(constructor);
return constructor;
};
};