Igor Savin
38f54ce8f0
Refactor migration logic to use async/await. Add test case for using classes with custom migration sources ( #3838 )
2020-05-05 19:10:50 +02:00
Igor Savin
fe8340a627
Prepare for 0.21.1 release
0.21.1
2020-04-28 01:27:07 +02:00
Iryna Zadorozhna
fa906278b8
add support cjs files by default ( #3829 )
...
Co-authored-by: Kyrylo <kyrylo.onufriiev@gmail.com>
2020-04-28 01:21:39 +02:00
Igor Savin
40621fac9e
Update dependencies ( #3830 )
2020-04-26 19:35:06 +02:00
maximelkin
93f3f0ed11
rewrite delay to not node-only version ( #3820 )
2020-04-24 23:52:00 +02:00
Igor Savin
ec9c61a114
Update dependencies ( #3825 )
2020-04-24 02:04:33 +02:00
Zach McElrath
b626702b47
Add migrate:unlock command, truncate on forceFreeMigrationsLock ( #3822 )
2020-04-23 21:51:32 +02:00
Lorefnon
7b4d208bae
Fix inferrence of seed/migration extension from knexfile extension ( #3814 )
...
Current implementation doesn't work when knexfile has multiple env-specific configuration sections.
Resolves #3807
2020-04-20 01:19:15 +02:00
Igor Savin
b9f88645ee
Add Node version change note
0.21.0
2020-04-19 00:41:40 +02:00
Igor Savin
e37aeaa31c
Prepare for 0.21.0 release ( #3811 )
2020-04-19 00:40:23 +02:00
Igor Savin
61514abf55
Bump dependencies ( #3809 )
2020-04-18 21:34:52 +02:00
tkalliom
02d94d96b0
Reduce size of lodash in bundle ( #3804 )
2020-04-18 19:41:23 +02:00
Mohamed Nainar
1d5353c4a8
ES2015 ( #3810 )
2020-04-18 18:26:07 +02:00
Igor Savin
d44c18c2f7
Add changelog entries for 0.20.12 - 0.20.15 releases
2020-04-16 19:47:16 +02:00
Brian Lauber
8d5715a03a
Fix: Support for .finally(..)
on knex's Promise-alikes ( #3800 )
2020-04-15 21:05:40 +02:00
Victor Andrée
a8a074bed4
Add types for .distinctOn
( #3784 )
2020-04-15 19:01:42 +02:00
Lorefnon
82361d12c1
Fix minor issues around typings ( #3765 )
2020-04-13 01:11:36 +02:00
Edvaldo Szymonek
336b41e148
Add clearGroup method ( #3771 )
2020-04-13 01:09:51 +02:00
Daniel Rozenberg
ea92e94f02
Support more modes to set the host as a Postgres socket ( #3783 )
...
v2.2.0 of pg-connection-string adds this feature: https://github.com/iceddev/pg-connection-string/pull/34
2020-04-13 01:08:26 +02:00
Tanguy Krotoff
1fcc40d868
interface Knex
and function Knex
should have the same types (#3787 )
2020-04-12 20:12:27 +02:00
Igor Savin
7568ab51c4
Split tests in groups ( #3785 )
2020-04-07 21:27:40 +02:00
Lorefnon
72aaf6c6e1
Add toSQL and toString to SchemaBuilder ( #3758 )
...
Fixes #3751
2020-03-25 22:13:36 +01:00
Lorefnon
c35a66d31b
Update signature of orderBy to support QueryBuilder inside array ( #3757 )
...
Fixes #3738
2020-03-25 22:12:38 +01:00
Lorefnon
2fbe91da1a
Add typings for MigrationSource ( #3756 )
2020-03-25 18:22:38 +01:00
Igor Savin
3df39aa48e
Revert "coverage calculation fix ( #3752 )" ( #3753 )
...
This reverts commit 912fe11b9ece9a3ddce7e4f23ea6ae6180fb5e32.
2020-03-25 00:45:26 +01:00
maximelkin
912fe11b9e
coverage calculation fix ( #3752 )
2020-03-25 00:24:57 +01:00
Florent Vilmart
41d02ba5c1
CLI: adds support for asynchronous knexfile loading ( #3748 )
2020-03-24 17:07:05 +01:00
Kabir Baidhya
a6551559f0
Minor improvements on the usage of fs utilities - unify all the fs functions into the same util/fs to simplify things ( #3749 )
2020-03-24 15:50:47 +01:00
Kabir Baidhya
ec2351b7a8
Minor test internal enhancements ( #3747 )
2020-03-23 22:09:01 +01:00
maximelkin
74501e612a
typings: support Raw types for insert, where, update ( #3730 )
2020-03-23 21:26:14 +01:00
Igor Savin
e552fbda78
Make protocol length check more defensive ( #3744 )
2020-03-22 23:51:42 +01:00
Kabir Baidhya
078b749892
Add unit tests for escape utility functions ( #3742 )
2020-03-22 18:44:51 +01:00
Kabir Baidhya
a7031c3cef
Upgrade package mkdirp and improve it's usage ( #3741 )
2020-03-21 11:01:10 +01:00
Florent Vilmart
998c92ca97
Typescript: Makes the ChainableInterface conform to Promise<T> ( #3724 )
2020-03-19 23:19:57 +01:00
Caíque de Castro Soares da Silva
e7e7a07ce9
Update url for dependencies status badge ( #3736 )
2020-03-19 13:07:56 +01:00
Brian Lauber
31c5b86ec4
Fix: Transaction_OracleDB can use config.connection ( #3731 )
2020-03-15 20:30:40 +01:00
Brian Lauber
37d9c30347
Fix/method binding on knex proxy ( #3717 )
...
* knex methods are proxies for context methods ...
... as opposed to injecting the methods directly onto the knex
function. (Which was then causing `this` to point to the wrong
object when evaluating the context methods)
* Moved CONTEXT_METHODS constant to a higher scope
* mv knex.context -> this.context
* Extracted KNEX_PROPERTY_DEFINITIONS to module scope ...
... which was possible since all of the properties reference
`this` instead of `knex` now
* shallowCloneFunction no longer accesses _context ...
... instead, it uses the normal context property
* transaction method delegates to _transaction ...
... This way, we can be sure that the lower-level details are
consistent across implementations. Individual implementations
just need to handle the quirks around setting up the `config`
and `outerTx`
* CONTEXT_METHODS shared. Fixed override of withUserParams ...
Restructured the code so that CONTEXT_METHODS populates the
KNEX_PROPERTY_DEFINITIONS with the proxy methods.
In doing so, it also exposed the fact that the withUserParams(..)
method was being overridden on the Transactor instead of its
context. So, that bug was fixed as well.
* Added a TODO to remove client.makeKnex(..) in future PR
* Added a warning about QueryBuilder.extend(..) and side-effects
2020-03-11 16:05:03 -04:00
Lorefnon
acf56b5922
Fix incorrect type signature of Having ( #3719 )
2020-03-11 12:08:58 +01:00
Brian Lauber
c309c98f04
Cleanup/remove transaction stalling ( #3716 )
...
* Transactions initialize their own _lastChild placeholder ...
... rather than initializing the _lastChild on their outerTx
* Transaction initialization logic no longer needs to be stalled
* Extracted _previousSibling logic out of _evaluateContainer
2020-03-10 09:52:11 -04:00
Brian Lauber
0f523db957
Removed .should(..) syntax from test cases ( #3713 )
2020-03-09 10:10:33 -04:00
Brian Lauber
9d07bc97ea
Removed some globals from tests ( #3712 )
...
* `chai` is no longer global
* sinon is no longer globally defined
* expect(..) is no longer defined globally
* Removed obsolete eslint hints about globals
* Removed unused variable ( `expect(..)` )
2020-03-08 19:48:23 -04:00
Brian Lauber
d00bd8d2dd
Fix: Added missing call to _reject in Transactor#transaction ( #3706 )
2020-03-07 01:53:33 +01:00
Brian Lauber
6e6b666603
Rewrote Transaction#acquireConnection() methods to use async ( #3707 )
2020-03-07 01:15:23 +01:00
Brian Lauber
4006bddbcf
Fixed a few unhandled Promise rejections in a test case ( #3705 )
2020-03-06 22:26:34 +01:00
maximelkin
2270c112e8
Speed up CI by tweaking db configs ( #3688 )
2020-03-06 22:25:54 +01:00
Brian Lauber
1ae9312fa4
Updated .gitignore files to ignore testing artifacts ( #3709 )
2020-03-06 22:24:24 +01:00
Igor Savin
85888ce3c2
Prepare to release 0.20.11 ( #3689 )
0.20.11
2020-03-05 21:43:57 +01:00
Igor Savin
b80966a60e
Cleanup/extract transaction ordering logic (implementation 2.0) ( #3698 )
2020-03-05 21:40:33 +01:00
Igor Savin
46783590be
timeout(..) function clears unnecessary timeouts ( #3703 )
2020-03-05 21:37:23 +01:00
Brian Lauber
51052c52e8
Cleanup/remove dead oracle code ( #3697 )
2020-03-03 00:18:45 +01:00