mirror of
https://github.com/knex/knex.git
synced 2025-12-28 15:38:41 +00:00
release 0.6.10
This commit is contained in:
parent
c804822c6d
commit
04cab6df44
@ -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.Knex=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){
|
||||
// Knex.js 0.6.9
|
||||
// Knex.js 0.6.10
|
||||
// --------------
|
||||
|
||||
// (c) 2014 Tim Griesser
|
||||
@ -81,7 +81,7 @@ Knex.initialize = function(config) {
|
||||
|
||||
// The `__knex__` is used if you need to duck-type check whether this
|
||||
// is a knex builder, without a full on `instanceof` check.
|
||||
knex.VERSION = knex.__knex__ = '0.6.9';
|
||||
knex.VERSION = knex.__knex__ = '0.6.10';
|
||||
knex.raw = function(sql, bindings) {
|
||||
var raw = new client.Raw(sql, bindings);
|
||||
raw.on('query', function(data) {
|
||||
@ -431,7 +431,7 @@ Formatter_MySQL.prototype.wrapValue = function(value) {
|
||||
var wrapperMemo = (function(){
|
||||
var memo = Object.create(null);
|
||||
return function(key) {
|
||||
if (memo.key === void 0) {
|
||||
if (memo[key] === void 0) {
|
||||
memo[key] = this._wrapString(key);
|
||||
}
|
||||
return memo[key];
|
||||
@ -1397,7 +1397,7 @@ Formatter_PG.prototype.wrapValue = function(value) {
|
||||
var wrapperMemo = (function(){
|
||||
var memo = Object.create(null);
|
||||
return function(key) {
|
||||
if (memo.key === void 0) {
|
||||
if (memo[key] === void 0) {
|
||||
memo[key] = this._wrapString(key);
|
||||
}
|
||||
return memo[key];
|
||||
@ -2158,7 +2158,7 @@ Formatter_SQLite3.prototype.wrapValue = function(value) {
|
||||
var wrapperMemo = (function(){
|
||||
var memo = Object.create(null);
|
||||
return function(key) {
|
||||
if (memo.key === void 0) {
|
||||
if (memo[key] === void 0) {
|
||||
memo[key] = this._wrapString(key);
|
||||
}
|
||||
return memo[key];
|
||||
|
||||
@ -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.Knex=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){
|
||||
// Knex.js 0.6.9
|
||||
// Knex.js 0.6.10
|
||||
// --------------
|
||||
|
||||
// (c) 2014 Tim Griesser
|
||||
@ -81,7 +81,7 @@ Knex.initialize = function(config) {
|
||||
|
||||
// The `__knex__` is used if you need to duck-type check whether this
|
||||
// is a knex builder, without a full on `instanceof` check.
|
||||
knex.VERSION = knex.__knex__ = '0.6.9';
|
||||
knex.VERSION = knex.__knex__ = '0.6.10';
|
||||
knex.raw = function(sql, bindings) {
|
||||
var raw = new client.Raw(sql, bindings);
|
||||
raw.on('query', function(data) {
|
||||
@ -422,7 +422,7 @@ Formatter_SQLite3.prototype.wrapValue = function(value) {
|
||||
var wrapperMemo = (function(){
|
||||
var memo = Object.create(null);
|
||||
return function(key) {
|
||||
if (memo.key === void 0) {
|
||||
if (memo[key] === void 0) {
|
||||
memo[key] = this._wrapString(key);
|
||||
}
|
||||
return memo[key];
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
<div id="sidebar" class="interface">
|
||||
|
||||
<a class="toc_title" href="#">
|
||||
Knex.js <span class="version">(0.6.9)</span>
|
||||
Knex.js <span class="version">(0.6.10)</span>
|
||||
</a>
|
||||
<ul class="toc_section">
|
||||
<li>» <a href="https://github.com/tgriesser/knex">GitHub Repository</a></li>
|
||||
@ -295,7 +295,7 @@
|
||||
</p>
|
||||
|
||||
|
||||
<h2>Latest Release: 0.6.9 - <span class="small"><a href="#changelog">Change Log</a></span></h2>
|
||||
<h2>Latest Release: 0.6.10 - <span class="small"><a href="#changelog">Change Log</a></span></h2>
|
||||
|
||||
<p>
|
||||
Current Develop —
|
||||
@ -2207,6 +2207,11 @@ $ npm test
|
||||
|
||||
<h2 id="changelog">Change Log</h2>
|
||||
|
||||
<p>
|
||||
<b class="header">0.6.9</b> — <small><i>June 10, 2014</i></small><br />
|
||||
Fix for big regression in memoization of column names from 0.5 -> 0.6.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b class="header">0.6.9</b> — <small><i>June 9, 2014</i></small><br />
|
||||
Fix for regression in <tt>specificType</tt> method.
|
||||
|
||||
4
knex.js
4
knex.js
@ -1,4 +1,4 @@
|
||||
// Knex.js 0.6.9
|
||||
// Knex.js 0.6.10
|
||||
// --------------
|
||||
|
||||
// (c) 2014 Tim Griesser
|
||||
@ -80,7 +80,7 @@ Knex.initialize = function(config) {
|
||||
|
||||
// The `__knex__` is used if you need to duck-type check whether this
|
||||
// is a knex builder, without a full on `instanceof` check.
|
||||
knex.VERSION = knex.__knex__ = '0.6.9';
|
||||
knex.VERSION = knex.__knex__ = '0.6.10';
|
||||
knex.raw = function(sql, bindings) {
|
||||
var raw = new client.Raw(sql, bindings);
|
||||
raw.on('query', function(data) {
|
||||
|
||||
@ -29,7 +29,7 @@ Formatter_MySQL.prototype.wrapValue = function(value) {
|
||||
var wrapperMemo = (function(){
|
||||
var memo = Object.create(null);
|
||||
return function(key) {
|
||||
if (memo.key === void 0) {
|
||||
if (memo[key] === void 0) {
|
||||
memo[key] = this._wrapString(key);
|
||||
}
|
||||
return memo[key];
|
||||
|
||||
@ -32,7 +32,7 @@ Formatter_PG.prototype.wrapValue = function(value) {
|
||||
var wrapperMemo = (function(){
|
||||
var memo = Object.create(null);
|
||||
return function(key) {
|
||||
if (memo.key === void 0) {
|
||||
if (memo[key] === void 0) {
|
||||
memo[key] = this._wrapString(key);
|
||||
}
|
||||
return memo[key];
|
||||
|
||||
@ -28,7 +28,7 @@ Formatter_SQLite3.prototype.wrapValue = function(value) {
|
||||
var wrapperMemo = (function(){
|
||||
var memo = Object.create(null);
|
||||
return function(key) {
|
||||
if (memo.key === void 0) {
|
||||
if (memo[key] === void 0) {
|
||||
memo[key] = this._wrapString(key);
|
||||
}
|
||||
return memo[key];
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "knex",
|
||||
"version": "0.6.9",
|
||||
"version": "0.6.10",
|
||||
"description": "A batteries-included SQL query & schema builder for Postgres, MySQL and SQLite3 and the Browser",
|
||||
"main": "knex.js",
|
||||
"directories": {
|
||||
|
||||
@ -10,13 +10,14 @@ module.exports = function(client) {
|
||||
|
||||
describe("PostgreSQL SchemaBuilder", function() {
|
||||
|
||||
it("basic create table", function() {
|
||||
it("fixes memoization regression", function() {
|
||||
tableSql = new SchemaBuilder().createTable('users', function(table) {
|
||||
table.uuid('key');
|
||||
table.increments('id');
|
||||
table.string('email');
|
||||
}).toSQL();
|
||||
equal(1, tableSql.length);
|
||||
expect(tableSql[0].sql).to.equal('create table "users" ("id" serial primary key, "email" varchar(255))');
|
||||
expect(tableSql[0].sql).to.equal('create table "users" ("key" uuid, "id" serial primary key, "email" varchar(255))');
|
||||
});
|
||||
|
||||
it("basic alter table", function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user