@prisma/orm-mongo 8.0.0-rc.18-dev.16 → 8.0.0-rc.18-dev.17

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/orm-mongo",
3
- "version": "8.0.0-rc.18-dev.16",
3
+ "version": "8.0.0-rc.18-dev.17",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -10,18 +10,18 @@
10
10
  "skills"
11
11
  ],
12
12
  "dependencies": {
13
- "@prisma/orm-family-mongo": "8.0.0-rc.18-dev.16",
14
- "@prisma/orm-framework": "8.0.0-rc.18-dev.16",
15
- "@prisma/orm-target-mongo": "8.0.0-rc.18-dev.16",
16
- "@prisma/orm-toolchain": "8.0.0-rc.18-dev.16",
13
+ "@prisma/orm-family-mongo": "8.0.0-rc.18-dev.17",
14
+ "@prisma/orm-framework": "8.0.0-rc.18-dev.17",
15
+ "@prisma/orm-target-mongo": "8.0.0-rc.18-dev.17",
16
+ "@prisma/orm-toolchain": "8.0.0-rc.18-dev.17",
17
17
  "mongodb-connection-string-url": "^7.0.1",
18
18
  "pathe": "^2.0.3",
19
19
  "tinyglobby": "^0.2.17"
20
20
  },
21
21
  "devDependencies": {
22
- "@internal/mongo": "8.0.0-rc.18-dev.16",
23
- "@repo/tsconfig": "8.0.0-rc.18-dev.16",
24
- "@repo/tsdown": "8.0.0-rc.18-dev.16",
22
+ "@internal/mongo": "8.0.0-rc.18-dev.17",
23
+ "@repo/tsconfig": "8.0.0-rc.18-dev.17",
24
+ "@repo/tsdown": "8.0.0-rc.18-dev.17",
25
25
  "tsdown": "0.22.14",
26
26
  "typescript": "5.9.3"
27
27
  },
@@ -15,7 +15,7 @@ description: >-
15
15
  ORM 7 or earlier (schema.prisma + @prisma/client).
16
16
  metadata:
17
17
  library: '@prisma/orm-mongo'
18
- library_version: '8.0.0-rc.18-dev.16'
18
+ library_version: '8.0.0-rc.18-dev.17'
19
19
  version: '2026-09-12'
20
20
  ---
21
21
 
@@ -142,7 +142,7 @@ export function decodePslString(raw) {
142
142
  return out;
143
143
  }
144
144
 
145
- /** A `sql` literal holding `text`: the backtick form, or the double-quote form when the text holds a backtick. */
145
+ /** A `sql` literal holding `text`: the backtick form, or the double-quote form when the text holds a backtick. A backtick body doubles a backslash only before another backslash or at its end, where it would be read as an escape. */
146
146
  export function printSqlLiteral(text) {
147
147
  if (text.includes('`')) {
148
148
  const escaped = text
@@ -152,7 +152,7 @@ export function printSqlLiteral(text) {
152
152
  .replace(/\r/g, '\\r');
153
153
  return `${TAG}"${escaped}"`;
154
154
  }
155
- const fenced = text.replace(/\\/g, '\\\\');
155
+ const fenced = text.replace(/\\(?=\\|$)/g, '\\\\');
156
156
  return text.includes('\n') ? `${TAG}\`\n${fenced}\n\`` : `${TAG}\`${fenced}\``;
157
157
  }
158
158