I've got a few updates. First of all, I'm happy to announce (at long last) that the latest version of Sails (v0.11 stable) was just released.
v0.11 comes with many minor improvements, as well as some internal cleanup in core. But the biggest changes are that Sails core now (1) allows hooks (aka plugins) to be injected simply by installing them from NPM and (2) supports Socket.io v1.0.
A few hooks that might be of interest:
• sails-hook-dev - Provides diagnostic / debugging information during development.
• sails-hook-machines - Allows you to import machines from your api/machines folder and use them in your Sails app. This is useful as a more structured alternative to writing custom model methods and/or services.
How do I upgrade?
Upgrading to v0.11 is straightforward-- the biggest thing to watch out for is that you'll need to update your sails.io.js client (this is because the Socket.io v1.0 client is a breaking change). As you upgrade, be sure and check out the complete
v0.11 migration guide here. There is also a
changelog with additional details.
To upgrade the CLI tool:
sudo npm install -g sails@latest
To upgrade an existing app, once you've cd'ed into it:
npm install sails@latest --save
What else?
So- a couple of other announcements. Last November, I gave a talk at Theatre de Paris (
dotjs.eu) announcing the
Node Machine Project. Since then, there have been over 100 machines published, with capabilities for everything from sending emails with Mandrill, blasting out SMS with Twilio, authenticating with Facebook or GitHub, processing payments with Stripe, posting messages on Slack, compiling markdown to HTML, minifying JavaScript, and much more. The goal here is to create standardized interfaces for node modules; something that helps out not just us Sails users but also the Node community at large. Machines are automatically documented, provide runtime type-checking to prevent errors, (ever see "cannot read property X of undefined"?) and most importantly, an abstraction which simplifies error code negotiation. If you've ever wondered "How do I use XX with Sails?" this is the answer for you. I'll be working on example Sails apps in the upcoming weeks in order to show some of the more commonly-requested examples (social login, payment processing, etc.)
Finally, one last thing: the recording from the
most recent community forum covers this somewhat already, but if you haven't seen that yet, you should know that I'm stepping down from my day-to-day customer-facing role at Balderdash to allow me to focus full-time on Sails and node-machine. I'm still the CEO of Balderdash, but I'll be spending less time on calls and more time writing open-source code. To facilitate this, I've brought on Mike Hostetler from the jQuery Foundation (and formerly of AppendTo) to play the role of CTO and take us to next level. This is a tremendous move for the project, and has already led to some huge gains in the efficiency of the core team. I look forward to seeing what 2015 holds. Thanks to all of you for your continued support.
If you have any questions, please let me know.
- Mike
@mikermcneil
PS- Sails now has almost 10,000 stars on GitHub :)