Nodal Release

As of today, we’ll officially start announcing Nodal releases via the Polybit blog. We’re starting with Nodal 0.11.0!

Nodal is available on GitHub at https://github.com/keithwhor/nodal

Release Details

This release is minor in terms of API interface (not much has changed) but mainly focuses on bugfixes and the Database object.

Fixed an error where the Daemon could crash and bring down the entire development server

Fixed a PostgreSQL error where an old version of the pg module would cause errors when connecting to production servers

module would cause errors when connecting to production servers Migrated all PostgreSQL-specific functionality to its adapter in preparation for potential MySQL integration

Removed any-db and related modules — these projects are not actively maintained and Nodal development will take complete onus of Database translation layers, where necessary

Additionally, we’ve changed Models and relationships a little bit:

Removed Model#joinedBy() completely, reinforcing the old behavior of only specifying Model#joinsTo() (bottom-up joins)

completely, reinforcing the old behavior of only specifying (bottom-up joins) Added ./app/relationships.js to specify Model relationships. All relational mapping should be done in this file with Model#joinsTo() Whenever you do a .join() call in a query, make sure you require this file

Examples

If you want to manage relationships that look like this:

You’d write code like this in relationships.js:

And you’d require this file anytime you want to do joins. Files were just getting way too complicated to manage with circular reference hacks (.joinsTo vs. .joinedBy) so we took a step back and simplified.