Skip to content

Commit

Permalink
Support knex 3.0 (#143)
Browse files Browse the repository at this point in the history
* support knex 3.0.x

* 0.4.13
  • Loading branch information
fbarril authored Dec 6, 2023
1 parent d8b93b1 commit 8710dca
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ESLINT = node_modules/.bin/eslint
LAB = ./node_modules/lab/bin/lab
BABEL = ./node_modules/.bin/babel
KNEX_VERSIONS = 0.8 0.9 0.10 0.11 0.12 0.13 0.14 0.15 0.16 0.17 0.18 0.19 0.20 0.21 0.95 1.0 2.0 latest
KNEX_VERSIONS = 0.8 0.9 0.10 0.11 0.12 0.13 0.14 0.15 0.16 0.17 0.18 0.19 0.20 0.21 0.95 1.0 2.0 3.0 latest

.PHONY: clean test lint lint-quiet watch build test-debug $(KNEX_VERSIONS)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ with [fixture-factory](http://github.com/colonyamerican/fixture-factory).

## Knex Support

Currently tested on knex 0.8 through 2.0, should operate on any version of knex but may have issues with untested releases. Please file an issue if you come across any issues.
Currently tested on knex 0.8 through 3.0, should operate on any version of knex but may have issues with untested releases. Please file an issue if you come across any issues.

## Installation

Expand Down
13 changes: 13 additions & 0 deletions dist/platforms/knex/3.0/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'use strict';

Object.defineProperty(exports, "__esModule", {
value: true
});

var _index = require('../0.12/index');

var _index2 = _interopRequireDefault(_index);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = _index2.default;
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mock-knex",
"version": "0.4.12",
"version": "0.4.13",
"description": "a knex mock adapter for simulating a db during testing",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/platforms/knex/3.0/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import client from '../0.12/index';

export default client;

0 comments on commit 8710dca

Please sign in to comment.