Releases: ghaiklor/generator-sails-rest-api
Releases · ghaiklor/generator-sails-rest-api
Version 0.9.0
- Improvement: Add much more other social networks for authorize;
- Improvement: Add DynamoDB adapter to questions list;
- Improvement: More flexible questions workflow. Now it will ask you only questions based on database that you chose;
- Fix: OrientDB configuration object in connections;
- Fix: Bug with
allParams()
andid
in body request; - Typo: Add some rules to
User
model attributes;
Version 0.8.1
- Hotfix: Strange bug with parsing AST, when
require
fromtest
folder is not properly parsing and stop the generation;
Version 0.8.0
- Improvement: Rewrite all blueprints to Bluebird promises;
- Improvement: Rewrite authorization method for social networks (add more flexibility to add the new one);
- Improvement: Add separate
socialProfiles
object in User model for storing social profiles; - Improvement: Remove questions about passport strategies and credentials (it works without them);
- Improvement: Remove partial application from passport verify methods;
- Improvement: Add
req
to each verify method in passport; - Improvement: Move configuration objects for passport to separate object (small refactoring);
- Improvement: Add checking for
info
object is exists on authentication; - Fix: Server is crashing when
email
is empty on passport authentication; - Fix: Fix passport authenticate logic for new User
socialProfiles
attribute; - Fix: When
type
inauth/social
is empty; - Fix: Fix response header with
OK
and replace withCREATED
; - Fix: Fix when
skip-all
is not stopping installing npm dependencies; - Typo: Add policy rule for
PingController
which allows to ping server from everywhere; - Typo: Remove
tools
from project. I see, that nobody use it, so it moves just to generator core; - Typo: Rename
response
field in response todata
field; - Typo: Rename fields to retrieve API access token to
Authorization: Bearer <token>
andaccess_token
in POST; - Typo: Change indent size from 4 to 2;
- Typo: Move mocha options to
mocha.opts
file; - Typo: Change ping message;
- Typo:
email
is required now; - Typo: Option names has changes to more simple
skip-welcome
,skip-update
,skip-install
,skip-all
andverbose
;
Version 0.7.0
- Improvement: Add wrapper for prototype extending to services;
- Improvement: Add winston Logger by default;
- Improvement: Add Console and DailyRotateFile transports to
sails.config.log
; - Improvement: Add Google Plus authorization;
- Improvement: Add Memory, Disk, SQLServer and OrientDB connections;
- Improvement: Add model connection by default to Disk in development environment;
- Improvement: Add questions kinda "Do you need Facebook authorization?";
- Improvement: Add test coverage tool;
- Improvement: Add bootstrap function and configure
npm test
command, so you have test coverage and running test cases; - Improvement: Rename all test cases to
*.test.js
files; - Improvement: Move mocha options to
mocha.opts
files intest
folder; - Improvement: Optimize
passport.js
configuration file; - Improvement: Move ping from Auth to
PingController
. Into this controller can be added more checks of server status; - Improvement: Add shortcut for Sails REPL in package, so you can call
npm run console
and you'll get REPL of sails app; - Typo: Rename
JWT
header auth toBearer
; - Typo: Remove auth by username. Local strategy works only with email now;
- Typo: Rename
fix-deps
script tocheck-deps
; - Typo: Remove warning when you set
skip-project-install
option; - Typo: Simplify end section in generator;
- Typo: Rename
test
folder totests
;
Version 0.6.2
- Fix critical bug with inquirer dependency;
Version 0.6.1
- Fixed critical bug when yo is not see the generator;
Version 0.6.0
- Improvement: Implemented parsing CommonJS modules from AST (Abstract Syntax Tree), so now generator is knows which modules you are really using;
- Improvement: Frozen structure of generator and project. Any serious changes in project structure;
- Improvement: Add Yahoo authorization;
- Improvement: Split generator arguments declaration to separate folder;
- Improvement: Split generator options declaration to separate folder;
- Improvement: Split generator questions declaration to separate folder;
- Improvement: Answers to questions is dynamically assign to existing
this.answers
object inRunContext
; - Improvement: Split each generator step to separate folder and modules;
- Improvement: Implement util
assign()
method which is using inprompting
step for extend answers object; - Improvement: Redesign of generator structure;
- Improvement: Add options to
check-updates.js
tool; - Improvement: Add tools to npm scripts, so you can call
npm run-script <tool-name>
now; - Improvement: Add
verbose
flag, so you can see everything what going on inRunContext
; - Improvement: Add logging all
serverError
responses to log by default (you don't need callsails.log.error()
); - Improvement: Implement logging all responses in
silly
mode; - Improvement: Add
ping
route toAuthController
which just respond with OK; - Fix: Bug when JWT issued to user
false
; - Fix: Bug with passport-jwt upgrade;
- Fix: Bug with
bodyParser
is not parsing POST body; - Fix: Bug with no colorful print in
fix-deps.js
; - Fix: Bug with no colorful print in installing step in generator;
- Fix: Bug when returns total count of records even with
where
criteria; - Fix: Change log level info to
info
in production mode;
Version 0.5.1
- Hotfix: Bug when with
skip-all
generator is freeze up;
Version 0.5.0
- Improvement: Add
tools
folder where useful tools is located; - Improvement: Implement
fix-deps
tool which checks for missing or unused dependencies in the project and fix that; - Improvement: Implement
update-deps
tool which checks all modules for new versions and provides interactive menu for updating; - Improvement: Return
methodOverride
middleware to http config; - Improvement: Add hidden
restPrefix
config toblueprints
configuration file; - Improvement: Add hidden
serverOptions
andbodyParser
configurations tohttp
configuration file; - Improvement: Add
.gitkeep
files to eachapi
folder; - Improvement: Extend
api
folder with other directories which loads with Sails by default; - Improvement: Implement checking for
generator-sails-rest-api
updates in CLI; - Improvement: Optimizing and improvement yeoman
index.js
file structure; - Improvement: Automatically creates
.yo-rc.json
file where generator's configuration is storing; - Improvement: Add
skip-generator-update
option which skips checking for generator updates on running; - Improvement: Add
skip-generator-welcome
option which skips yeoman's welcome when generator is running; - Improvement: Add
skip-project-install
option which skips runningnpm install
in project root; - Improvement: Add
skip-project-diagnostic
option which skips running diagnostic tools after project initialized; - Improvement: Add
skip-all
option which skips everything and just scaffolds project; - Fix: Add
skip-install
to yeoman as it should be declared (before it was wrong); - Fix: Bunch of small improvements and fixes;
Version 0.4.0
- Improvement: Move to Sails v0.11;
- Improvement: Move to Unstable stability level;
- Improvement: Move
jwt
config toJwtCipher
service; - Improvement: Add more custom responses
Bad Request
,Created
,Forbidden
,Not Found
,OK
,Server Error
,Unauthorized
; - Improvement: You can override root object in response;
- Improvement: Include all default blueprints to
api/blueprints
folder; - Improvement: Rewrite default blueprints for CRUD and simplify them;
- Improvement: Returns meta information for
GET /v1/:model
in body andContent-Range
in headers; - Improvement: Add questions for Facebook and Twitter tokens;
- Improvement: Rename
isUser
policy toisAuthenticated
, it's more appropriate name; - Fix: Getting status code from passport in
AuthController
;