prisma-sql 1.40.0 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -56,7 +56,7 @@ var require_package = __commonJS({
56
56
  "package.json"(exports$1, module) {
57
57
  module.exports = {
58
58
  name: "prisma-sql",
59
- version: "1.40.0",
59
+ version: "1.42.0",
60
60
  description: "Convert Prisma queries to optimized SQL with type safety. 2-7x faster than Prisma Client.",
61
61
  main: "dist/index.cjs",
62
62
  module: "dist/index.js",
@@ -129,6 +129,8 @@ var require_package = __commonJS({
129
129
  "@faker-js/faker": "^10.2.0",
130
130
  "@prisma/adapter-better-sqlite3": "^7.2.0",
131
131
  "@prisma/adapter-pg": "^7.2.0",
132
+ "@semantic-release/changelog": "^6.0.3",
133
+ "@semantic-release/git": "^10.0.1",
132
134
  "@types/better-sqlite3": "^7.6.13",
133
135
  "@types/node": "^25.0.10",
134
136
  "@vitest/coverage-v8": "4.0.18",
@@ -2546,12 +2548,6 @@ function validateState(params, mappings, index) {
2546
2548
  validateMappings(mappings);
2547
2549
  assertNextIndexMatches(mappings.length, index);
2548
2550
  }
2549
- function normalizeValue2(value) {
2550
- if (value instanceof Date) {
2551
- return value.toISOString();
2552
- }
2553
- return value;
2554
- }
2555
2551
  function createStoreInternal(startIndex, initialParams = [], initialMappings = []) {
2556
2552
  let index = startIndex;
2557
2553
  const params = [...initialParams];
@@ -2594,7 +2590,7 @@ function createStoreInternal(startIndex, initialParams = [], initialMappings = [
2594
2590
  }
2595
2591
  function addStatic(value) {
2596
2592
  const position = index;
2597
- const normalizedValue = normalizeValue2(value);
2593
+ const normalizedValue = normalizeValue(value);
2598
2594
  params.push(normalizedValue);
2599
2595
  mappings.push({ index: position, value: normalizedValue });
2600
2596
  index++;
@@ -3816,7 +3812,12 @@ function buildSelectSpec(input) {
3816
3812
  model,
3817
3813
  alias
3818
3814
  );
3819
- const orderByClause = buildOrderByClause(normalizedArgs, alias, dialect);
3815
+ const orderByClause = buildOrderByClause(
3816
+ normalizedArgs,
3817
+ alias,
3818
+ dialect,
3819
+ model
3820
+ );
3820
3821
  const { take, skip, cursor } = getPaginationParams(method, normalizedArgs);
3821
3822
  const params = createParamStoreFrom(
3822
3823
  whereResult.params,