Skip to content

Commit

Permalink
release 0.7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
tgriesser committed Jun 29, 2014
1 parent af3685a commit 61578fa
Showing 4 changed files with 19 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bookshelf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Bookshelf.js 0.7.5
// Bookshelf.js 0.7.6
// ---------------

// (c) 2013 Tim Griesser
@@ -15,7 +15,7 @@ var Bookshelf = function() {
// `Model` and `Collection` constructors for use in the current instance.
Bookshelf.initialize = function(knex) {
var bookshelf = {
VERSION: '0.7.5'
VERSION: '0.7.6'
};

var _ = require('lodash');
10 changes: 7 additions & 3 deletions browser/bookshelf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Bookshelf=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
// Bookshelf.js 0.7.5
// Bookshelf.js 0.7.6
// ---------------

// (c) 2013 Tim Griesser
@@ -16,7 +16,7 @@ var Bookshelf = function() {
// `Model` and `Collection` constructors for use in the current instance.
Bookshelf.initialize = function(knex) {
var bookshelf = {
VERSION: '0.7.5'
VERSION: '0.7.6'
};

var _ = _dereq_('lodash');
@@ -523,14 +523,17 @@ _.extend(ModelBase.prototype, _.omit(Backbone.Model.prototype, modelOmitted), Ev
// Returns an object containing a shallow copy of the model attributes,
// along with the `toJSON` value of any relations,
// unless `{shallow: true}` is passed in the `options`.
// Also includes _pivot_ keys for relations unless `{omitPivot: true}`
// is passed in `options`.
toJSON: function(options) {
var attrs = _.extend({}, this.attributes);
if (options && options.shallow) return attrs;
var relations = this.relations;
for (var key in relations) {
var relation = relations[key];
attrs[key] = relation.toJSON ? relation.toJSON() : relation;
attrs[key] = relation.toJSON ? relation.toJSON(options) : relation;
}
if (options && options.omitPivot) return attrs;
if (this.pivot) {
var pivot = this.pivot.attributes;
for (key in pivot) {
@@ -616,6 +619,7 @@ _.extend(ModelBase.prototype, _.omit(Backbone.Model.prototype, modelOmitted), Ev
ModelBase.extend = _dereq_('simple-extend');

module.exports = ModelBase;

},{"./events":4,"./promise":6,"backbone":"5kFNoY","lodash":"K2RcUv","simple-extend":"vZYVcT"}],6:[function(_dereq_,module,exports){
var Promise = _dereq_('bluebird');

12 changes: 9 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@
<div id="sidebar" class="interface">

<a class="toc_title" href="#">
Bookshelf.js <span class="version">(0.7.5)</span>
Bookshelf.js <span class="version">(0.7.6)</span>
</a>
<ul class="toc_section">
<li>&raquo; <a href="http://github.com/tgriesser/bookshelf">GitHub Repository</a></li>
@@ -195,7 +195,7 @@
and has a comprehensive <a href="https://travis-ci.org/tgriesser/bookshelf">test suite</a>.
</p>

<h2>Latest Release: 0.7.5 - <span class="small"><a href="#changelog">Change Log</a></span></h2>
<h2>Latest Release: 0.7.6 - <span class="small"><a href="#changelog">Change Log</a></span></h2>

<p>
Current Develop &mdash;
@@ -2269,7 +2269,13 @@ <h2 id="faq">F.A.Q.</h2>
<h2 id="changelog">Change Log</h2>

<p>
<b class="header">0.7.5</b> &mdash; <small><i>June 23, 2014</i></small> &mdash; <a href="https://github.com/tgriesser/bookshelf/compare/0.7.3...0.7.4">Diff</a><br />
<b class="header">0.7.6</b> &mdash; <small><i>June 29, 2014</i></small> &mdash; <a href="https://github.com/tgriesser/bookshelf/compare/0.7.5...0.7.6">Diff</a><br />
Add <tt>omitPivot</tt> flag on toJSON options for omitting the <tt>_pivot_</tt> keys in <tt>through</tt> and
<tt>belongsToMany</tt> relations (#404).
</p>

<p>
<b class="header">0.7.5</b> &mdash; <small><i>June 23, 2014</i></small> &mdash; <a href="https://github.com/tgriesser/bookshelf/compare/0.7.4...0.7.5">Diff</a><br />
Fix missing NotFoundError &amp; EmptyError on Model &amp; Collection, respectively (#389, 399).
</p>

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bookshelf",
"version": "0.7.5",
"version": "0.7.6",
"description": "A lightweight ORM for PostgreSQL, MySQL, and SQLite3",
"main": "bookshelf.js",
"scripts": {

0 comments on commit 61578fa

Please sign in to comment.