Skip to content

Releases: ghaiklor/generator-sails-rest-api

Version 0.9.0

17 Apr 15:16
Compare
Choose a tag to compare
Version 0.9.0 Pre-release
Pre-release
  • 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() and id in body request;
  • Typo: Add some rules to User model attributes;

Version 0.8.1

16 Apr 18:52
Compare
Choose a tag to compare
Version 0.8.1 Pre-release
Pre-release
  • Hotfix: Strange bug with parsing AST, when require from test folder is not properly parsing and stop the generation;

Version 0.8.0

07 Apr 09:50
Compare
Choose a tag to compare
Version 0.8.0 Pre-release
Pre-release
  • 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 in auth/social is empty;
  • Fix: Fix response header with OK and replace with CREATED;
  • 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 to data field;
  • Typo: Rename fields to retrieve API access token to Authorization: Bearer <token> and access_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 and verbose;

Version 0.7.0

19 Mar 16:10
Compare
Choose a tag to compare
Version 0.7.0 Pre-release
Pre-release
  • 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 in test 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 to Bearer;
  • Typo: Remove auth by username. Local strategy works only with email now;
  • Typo: Rename fix-deps script to check-deps;
  • Typo: Remove warning when you set skip-project-install option;
  • Typo: Simplify end section in generator;
  • Typo: Rename test folder to tests;

Version 0.6.2

12 Mar 16:10
Compare
Choose a tag to compare
Version 0.6.2 Pre-release
Pre-release
  • Fix critical bug with inquirer dependency;

Version 0.6.1

12 Mar 15:35
Compare
Choose a tag to compare
Version 0.6.1 Pre-release
Pre-release
  • Fixed critical bug when yo is not see the generator;

Version 0.6.0

05 Mar 14:36
Compare
Choose a tag to compare
Version 0.6.0 Pre-release
Pre-release
  • 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 in RunContext;
  • Improvement: Split each generator step to separate folder and modules;
  • Improvement: Implement util assign() method which is using in prompting 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 in RunContext;
  • Improvement: Add logging all serverError responses to log by default (you don't need call sails.log.error());
  • Improvement: Implement logging all responses in silly mode;
  • Improvement: Add ping route to AuthController 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

19 Feb 19:41
Compare
Choose a tag to compare
Version 0.5.1 Pre-release
Pre-release
  • Hotfix: Bug when with skip-all generator is freeze up;

Version 0.5.0

19 Feb 19:00
Compare
Choose a tag to compare
Version 0.5.0 Pre-release
Pre-release
  • 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 to blueprints configuration file;
  • Improvement: Add hidden serverOptions and bodyParser configurations to http configuration file;
  • Improvement: Add .gitkeep files to each api 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 running npm 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

16 Feb 13:50
Compare
Choose a tag to compare
Version 0.4.0 Pre-release
Pre-release
  • Improvement: Move to Sails v0.11;
  • Improvement: Move to Unstable stability level;
  • Improvement: Move jwt config to JwtCipher 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 and Content-Range in headers;
  • Improvement: Add questions for Facebook and Twitter tokens;
  • Improvement: Rename isUser policy to isAuthenticated, it's more appropriate name;
  • Fix: Getting status code from passport in AuthController;