Releases: juanluispaz/ts-sql-query
1.65.0
1.64.0
Changes:
- Add support to
aggregateAsArrayDistinct
andaggregateAsArrayOfOneColumnDistinct
to allow aggregate as array distinct values. - LoggingQueryRunner: Use performance.now() in non-Node environments.
1.63.0
Bug fixes:
- Fix insert multiple no-inserting records when
setForAllIfHasNoValue
is called and the records to insert contain a single record
1.62.0
Changes:
- Add support to custom reusable SQL fragments that the returning value can be optional or required depending on the provided arguments.
2.0.0-alpha.2
Removals:
- Remove deprecated
mergeType
additional utility type. Useconnection.dynamicBooleanExpressionUsing
instead. - Remove deprecated composing and splitting results functionality long warned to be removed in ts-sql-query. Use complex projections or aggregate as an object array instead.
2.0.0-alpha.1
Removals:
-
Remove deprecated any-db support and query runner.
-
Remove deprecated LoopBack support and query runner.
-
Remove deprecated msnodesqlv8 support and query runner.
-
Remove deprecated tedious support and query runner. Tedious still available using mssql.
-
Remove deprecated Prisma's short-running transactions support. Prisma's Long-running transactions continue supported.
-
Remove deprecated connections with extended types:
TypeSafeMariaDBConnection
,TypeSafeMySqlConnection
,TypeSafeNoopDBConnection
,TypeSafeOracleConnection
,TypeSafePostgreSqlConnection
,TypeSafeSqliteConnection
,TypeSafeSqlServerConnection
. -
Remove
ts-extended-types
dependency. -
Remove deprecated
stringInt
andstringDouble
column types in favour ofcustomInt
andcustomDouble
. -
Remove long deprecated functions:
Removed deprecated nam Current name smaller
lessThan
smallAs
lessOrEquals
larger
greaterThan
largeAs
greaterOrEquals
mod
modulo
lower
toLowerCase
upper
toUpperCase
ltrim
trimLeft
rtrim
trimRight
replace
replaceAll
replaceIfValue
replaceAllIfValue
-
Remove long deprecated overload of functions in columns that allowed to send to the database null values in TypeScript when the type were optional.
1.61.0
Changes:
- Deprecate composing and splitting results functionality long warned to be removed in ts-sql-query. Use complex projections or aggregate as an object array instead.
- Deprecate
mergeType
additional utility type. Use Useconnection.dynamicBooleanExpressionUsing
instead.
1.60.0
Changes:
- Allow to use
notEqualsInsensitive
in dynamic filters previously not included in the white list of allowed functions. - Deprecate Tedious and MsNode query runners in favour of mssql.
- Deprecate Prisma's short-running transactions support.
- Deprecate
stringInt
andstringDouble
in favour ofcustomInt
andcustomDouble
. - Deprecated database connections with extended types:
TypeSafeMariaDBConnection
,TypeSafeMySqlConnection
,TypeSafeOracleConnection
,TypeSafePostgreSqlConnection
,TypeSafeSqliteConnection
,TypeSafeSqlServerConnection
.
1.59.0
Changes:
- Add support to more custom types:
customInt
,customDouble
,customUuid
,customLocalDate
,customLocalTime
,customLocalDateTime
. - Add the possibility to get some metadata regarding the query execution in a query runner: the query execution stack, information about the function that requests to execute the query, knowing if the query is a select count in a select page, allowing to specify an execution name, allow to specify additional metadata for the execution.
Documentation changes:
- Improve documentation, making the simplified type definition more explicit.
1.58.0
Changes:
- Add support to complex projections in compound select (
union
,intersect
, etc.)
Bug fixes:
- Fix missing
with
in compound select queries (union
,intersect
, etc.)