node-crude
Seamless CRUD control operations for node.
Currently works with Express and [Mongoose or Sequelize].
Install
npm install crude --save
Documentation
Still in alpha
Stack
This package assumes you have the following stack:
- Mongoose
- Express
- connect-flash
- Jade
Authors
Release History
- v0.5.2, 01 Jul 2014
- Create and expose API Test Helper for easily testing API endpoints.
- v0.5.1, 26 Jun 2014
- author test for more complex queries using
between
by means of from
/ to
.
- v0.5.0, 26 Jun 2014
- renamed option
noPagination
to pagination
- Decoupled all CRUD ops to separate modules
- Added query filtering options for Read OP
- Added
dateField
option
- v0.4.2, 01 May 2014
- Check for
req.body.id
first, req.params.id
second on update.
- v0.4.1, 24 Apr 2014
- Enable customizable entityCreate op.
- v0.4.0, 12 Apr 2014
- Added
ownUser
switch, will not enforce own user policy on CRUD ops. - More customization options.
- Improved how errors are handled.
- Bug fixes
- v0.3.11, 06 Apr 2014
- Create sanitizeResult option callback.
- v0.3.10, 28 Mar 2014
- Fix edit item bug for list view ONCE AND FOR ALL!!!! (ok maybe not).
- v0.3.9, 11 Mar 2014
- Fix list item link on default list view.
- Allow Custom Labels for default views.
- v0.3.7, 04 Mar 2014
- Fix baseUrl() method for urls with no :id.
- v0.3.6, 27 Feb 2014
- Views piping fixes.
- Make the entity methods configurable
- honor excludePaths in item view
- refactor how baseUrl is produced
- rewire how update handles success
- inject query callback on pagination
- accept itemView and listView options
- v0.3.5, 23 Feb 2014
- Implement DELETE, about time.
- v0.3.4, 23 Feb 2014
- v0.3.3, 23 Feb 2014
- JSON requests with pagination now get the
Link
HTTP header - Better handling of CRUD responses based on requested
accepts
header.
- v0.3.2, 22 Feb 2014
- Update router module to new API.
- v0.3.1, 22 Feb 2014
- Removed all args from ctor, introduced
setEntity()
and setOptions
() methods.
- v0.3.0, 22 Feb 2014
- Changed constructor signature, now only accepts an Entity and optional options.
- v0.2.3, 19 Feb 2014
- Upgrade all dependencies to latest.
- Perform a READ after an UPDATE.
- Bug fixes.
- v0.2.2, 18 Feb 2014
- v0.2.1, 17 Feb 2014
- Lazy instantiate Entities.
- v0.2.0, 17 Feb 2014
- Upgrade to 0.2.1 Entity and Cip packages.
- v0.1.1, 12 Feb 2014
- Now accepts both an instance and a constructor for Entity DI.
- Ctor optimizations.
- v0.1.0, 12 Feb 2014
- v0.0.12, 10 Oct 2013 Bug fixes.
- v0.0.11, 10 Oct 2013 Entities moved to their own repo
- v0.0.3, 15 Jul 2013
- Integrated Middlewarify and made all Entity primitive methods middleware.
- Added Entity tests
- v0.0.2, 21 Jun 2013
License
Copyright 2014 Thanasis Polychronakis
Licensed under the MIT License