Skip to content

Latest commit

 

History

History
202 lines (170 loc) · 11.8 KB

CHANGELOG.md

File metadata and controls

202 lines (170 loc) · 11.8 KB

Changelog

0.9.7 (latest stable)

October 10, 2013

  • Complete improvement/refactoring of configuration loader (fixes bugs)
  • Complete improvement/refactoring of ORM loader (fixes bugs)
  • Continued improvements of tests
  • Include a modified version of consolidate to better support view engines
  • Blueprints are now configurable per-controller (thanks @xdissent, and everyone else who helped!)
    • (waiting to expose this and deprecate the old behavior in the docs until the next minor release to avoid causing any breaking changes)
    • New prefix option in global blueprint config, as well as per-controller.
    • New jsonp option in global controller config, as well as per-controller.
    • New pluralize option in global controller config, as well as per-controller.
  • Models can now easily use one or more custom named connections which use different adapters
    • (waiting to expose this and deprecate the old behavior in the docs until the next minor release to avoid causing any breaking changes)
  • Adds configurable default behavior for 403/404/500/400 HTTP status code error cases.
    • (waiting to expose this and deprecate the old behavior in the docs until the next minor release to avoid causing any breaking changes)
  • Properly namespace the io in bundled sails.io.js client in new projects (thanks @drosen0)
  • Better handle crash scenario, particularly in nodemon (thanks @edy)

Thanks to everyone else I missed, and to everyone else who helped out with this release!

0.9.4

September 5, 2013

  • Improved CSRF prevention support (thanks to @sgress454)
  • Support for CORS (thanks to @sgress454)
  • CoffeeScript supported client-side by default in gruntfile thanks to @reecelewellen
  • Improves/fixes internationalization (thanks to @xdissent and @silvinci)
  • i18n upgraded to 0.4.1
  • All tests pass (thanks to @sgress454)
  • Improvements, fixes to built-in pubsub / socket behaviors (thanks to @xdissent and @irlnathan)
  • Removed vanilla HAML support and tests since it was incomplete (jade is still supported)
  • Config: Sails core is no longer automatically copied as a dependency during sails new. This speeds up the process significantly and avoids occassional recursive copy death spirals.
  • Config: Added explicit --port option to sails lift.
  • Sockets: Added query string parsing to requests.
  • Sockets: Headers can now be specified in requests (** this has implications on full compatibility w/ most Express middleware! **)
  • Routing: Fixed issues with default 404 and 500 responses.
  • Other minor bug fixes/inconsistencies and documentation enhancements

And thanks a ton to anybody I left out! Send me a message on twitter and I'll add you.

0.9.0

July 10, 2013

Sails.JS

  • Main: Express 3.x has been integrated.
  • Main: CSRF Attack Protection was added as part of the core. Uses express-csrf, plus a token-based approach for SPAs and embedded apps (Chrome extensions, javascript plugins).
  • Main: Most of the core has been refactored for performance, code clarity, and simplicity to make contributions easier.
  • Main: Most of the core has been pulled into hooks. In a subsequent patch release for 0.9.x, this process will make Socket.io optional.
  • Controllers: Automatic routing is now disable-able.
  • Assets: Grunt integration replaces Asset Rack.
  • Assets: Public folder removed from new projects.
  • Assets: Temporary 'public' folder is automatically built on lift, using the contents of the assets folder.
  • Assets: Static assets can be compiled with "sails build" for external hosting of front-end assets
  • Assets: Grunt ecosystem allows for a wide variety of front-end template/css/js preprocessor support (sass, hbs, stylus, dust, typescript, etc.)
  • Routing: Automatic 404 and 500 routing is replaced.
  • Assets: Asset bundling is now disabled by default, use sails new foo --linker to enable it
  • Config: Most configuration is now also explicit in new projects. Defaults are still provided underneath.
  • Sockets: Socket.IO can now be configured with the options detailed in config/sockets.js.
  • Sockets: Built-in support for Redis MQ-- allows you to scale realtime apps to a multi-instance deployment without necessitating sticky sessions at your load balancer.
  • Views: Express 3 killed support for layouts/view partials. Sails has been extended to maintain support for them with ejs and jade, but otherwise you are limited to what is supported by the engine itself.
  • Views: Automatic routing to views is now disable-able.
  • Sessions: Built-in support for Redis and Mongo sessions for scaling your app to multi-instance deployments.

Waterline

  • ORM: Waterline has been pulled out of Sails.js... Again. (See Waterline)
  • ORM: Model attributes now support validations. (See Anchor)
  • ORM: Custom instance methods can now be defined on models as virtual attributes.
  • ORM: Lifecycle Callbacks have been added. (See Lifecycle Callbacks)
  • ORM: findAll() has been replaced with find().
  • ORM: find() has been replaced with findOne().
  • ORM: .done() promise now works on all ORM methods
  • ORM: Complete support for the Promise specificiation has been added.

Anchor

0.8.9

April 9, 2013

  • Controllers must now also be generated to use the default API (they can be empty)
  • Haml template support on back-end for new projects (thanks @dcbartlett)
  • default values in models (defaultsTo)
  • Chained policies fixed
  • Removed all reference to blueprints as "scaffolds". Blueprints are more than temporary placeholders-- they are the preferred method of serving an API from your app.
  • Refactored most of the code base
  • Removed CRUD synonyms
  • Main: Compatibility with Node v0.10.0 (patches node-dirty)
  • Main: Fixed crash that happened when absolute path was given as appPath
  • Assets: Added more logging features for LESS.
  • Assets: Reset.css now in mixins
  • Assets: LESS assets are deligated to Rack.LessAsset
  • Assets: LESS assets served from asset-rack will have their extensions changed to css
  • Policies: Implemented the controller syntax for defining a policy.
  • Naming: scaffolds is now known as blueprints
  • Naming: blueprints is now known as boilerplates
  • Routing: Added controller.action syntax
  • Routing: Removed CRUD Synonyms-- now you must explicitly use find, findAll, create, destroy, update (can't use get,detail, delete, edit, etc. to indicate the same thing. Turns out this was actually annoying, not helpful)
  • Routing: Fix in API blueprint for regression around PUT/DELETE automatic RESTful routes
  • Routing: Fix for resourceful routing. /model/[id] didn't work with verbs. It now does.
  • Config: _ and async no longer have to be global (but they are by default) They are configurable with sails.config.globals._ and sails.config.globals.async (thanks @particlebanana!)
  • New sails project can now be created in the current dir with sails new . (thanks @collinwren!)
  • More tests (thanks @collinwren and @benrudolph)
  • Travis CI integration (thanks @collinwren!)

0.8.895

  • Policies: Fixed the "*" route for controllers.
  • Policies: The "*" policy can now be set to false
  • Collections: Type restrictions are cleaner
  • Adapters: Default was changed to memory due to an issue with node-dirty
  • Log: sails.config.log.level is passed to socket.io
  • Assets: Bug fixed: not calling next when compiling LESS with syntax (thanks vicapow)
  • Assets: Typescript supported on front-end (thanks Diullei)
  • Assets: Meaningful LESS errors were added (thanks vicapow)

0.8.892

  • Front-end CoffeeScript support in AssetRack (thanks @techpines!)
  • Chained policy support
  • New styles for default home page (thanks @egdelwonk!)
  • Windows compat. fix (thanks @feroc1ty!)
  • Support for string IDs (thanks @tedkulp!)
  • Attribute scaffolding for model generation (thanks @Tidwell)
  • Support for big int string conversion in ID normalization (thanks @d4mn!)

0.8.88

  • Adds coffeescript support on the front-end in dev and production environments via asset-rack (thanks @techpines!)

0.8.87

Monday, March 4, 2013

  • Patch fixes updates sails-dirty version which fixes sorting by date

0.8.86

Monday, March 4, 2013

  • Patch to allow for easier SSL configuration.

0.8.85

Sunday, March 3, 2013

  • Check for and warn if port is currently being used on lift, with support for explicit hosts (balderdashy#197)
  • Model.stream() support over socket.io (balderdashy#196)

0.8.84

Saturday, March 2, 2013

  • Bug fixes: (explicit hosts, and included an additional file in new app generation)

0.8.83

Saturday, March 2, 2013

  • Support for streaming large datasets from models (e.g. User.stream().pipe(res);)
  • Bug fix for chains of multiple policies (thanks @themouette)
  • Jade template support (thanks @valinorsgatekeeper)
  • AssetRack integration for more robust css/js/template/LESS management, replaces Rigging (thanks @techpines)
  • Fixed some docs /refactored (thanks @slantzjr)
  • Bundled excruciatingly simple "authenticated" policy in new projects
  • Made "redirect" work in API scaffolds
  • Renamed waterline-* adapter modules as sails-*. Added backwards compat.
  • Added .gitkeep in all directories when generating new projects to make sure they get committed
  • Bootstrap and log config now available in project template
  • View config now available in new projects as 'config/views.js'
  • Better error checking in the sails CLI
  • Docs
  • Added app.js file back in, but this time hidden as '.app.js'. It can be run however you like, or you can use npm debug to debug it. To run daemonized, you can use forever start .app.js
  • Added notion of sails.explicitHost to track whether a host was explicitly specified. If it was not, Express takes the approach of accepting all connections via INADDR_ANY (see http://expressjs.com/2x/guide.html#app.listen()) Now, if you specify sails.config.host, sails.explicitHost gets set, and Express will start the server deliberately using the host you specify. In certain PaaS deployments, this is required. For instance, this was causing problems in an Openshift deployment environment (big thanks to @hypereive for figuring that out).

0.8.82

Sunday, February 24, 2013

  • Bootstrap function fires warning if callback not triggered after a few seconds (thanks @virpool)
  • Bug fixes w/ pubsub/model convenience methods.

0.8.80

  • Refactored app layout to make it a bit more straightforward. To check out the the new folder structure, make a new project with sails new foo
  • Added robot.txt in new app generation
  • Bound all methods in adapter to have the right context.

0.8.79

  • Adapter definitions are no longer functions-- instead the direct definition object is accepted. This makes it easier, cleaner, and more declarative to create adapters.
  • Merged waterline into main Sails repo.
  • Brought in sails-util and sails-moduleloader, moved watelrine tests into top level.
  • Attribute values in models in result sets from Waterline are now cast to numbers, if they are number-looking strings.
  • Substantial refactoring of waterline model-augmentation logic.
  • Added TODO for asynchronous module loading for future.
  • Upgraded waterline-dirty dep.

0.8.77

  • Patch updates the waterline-dirty dependency to deal with an issue with that adapter returning objects which map directly to the in-memory database (was causing changes made to found models to be persisted without calling .save())

< 0.8.77

githalytics.com alpha