Curious what new developments are happening with the LoopBack project? Here’s a curated selection of the most important changes that have been made to LoopBack in the past four weeks or so.
What’s LoopBack? It’s an open source Node.js framework for creating REST APIs that connect to datasources like Oracle, SQL Server and MongoDB. Learn more…
- New “Operation Hooks” are superseding the old Model hooks. These new Operation hooks provide a simpler and more consistent API while fixing all bugs in the old Model hooks.
- Atomic “findOrCreate” allows connector to provide an atomic implementation of this operation when supported by the backing data-source (loopback-datasource-juggler#423). Note that most connectors did not implemented this feature yet, please open a GitHub issue in your favourite connector (or send a pull request!) if you would like to make use of atomic “findOrCreate” in your project.
- “Protected properties” allows you to define properties for an object which should not be included when nested. For instance if you have an Author object and a Book object. A book has a relation to with Author, and book is public API. Author will have personal information such as social security number etc, and they can now be “protected” such that anyone looking up the author of the book will not get those information back. See loopback-datasource-juggler#400.
- strong-remoting#172 adds handler for errors thrown by remote hooks and thus prevents the server from crashing due to an unhandled error.
- loopback-boot was fixed to work with the recent versions of browserify which changed the way how files in node_modules are loaded. See loopback-boot#95 for more details.
- A new model property option “defaultFn” was added, it configures the property to use the current time or a unique id (UUID/GUID) as the default value. See loopback-datasource-juggler#458 and docs for more details.
- The remoting connector (client) now properly supports authentication via a bearer token: strong-remoting#182.
LoopBack SDK for iOS
The SDK makes it easier to send authenticated requests: the access token is now persisted across app restarts, there is a new helper methods for accessing the currently logged user.
Support for regex flags in like/nlike operators, see loopback-connector-mongodb#86 for more details.
Add support for custom column mapping: loopback-connector-mssql#27.
Support for Promises! We have already landed Promises support in strong-remoting (strong-remoting#180, strong-remoting#179) and support for promise-based Operation hooks in loopback-datasource-juggler (loopback-datasource-juggler#449). Watch the progress in loopback#418.
Check out the complete changelog
You can find the full list of changes at: http://strongloop.github.io/changelog/
StrongLoop Arc is a graphical UI for the StrongLoop API Platform, which includes LoopBack, that complements the slc command line tools for developing APIs quickly and getting them connected to data. Arc also includes tools for building, profiling and monitoring Node apps. It takes just a few simple steps to get started!