@augment-vir/node 31.36.0 → 31.38.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.
@@ -25,6 +25,7 @@ export { prismaCommandsThatSupportNoHints, runPrismaCommand } from '../prisma/ru
25
25
  *
26
26
  * - If `false`, run `prisma.client.generate`
27
27
  *
28
+ * @deprecated Use the `prisma-vir` package instead.
28
29
  * @category Prisma : Node
29
30
  * @category Package : @augment-vir/node
30
31
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */
1
2
  import { addData, dumpData } from '../prisma/model-data.js';
2
3
  import { generatePrismaClient, isGeneratedPrismaClientCurrent } from '../prisma/prisma-client.js';
3
4
  import { doesPrismaDiffExist, getPrismaDiff, resetDevPrismaDatabase, } from '../prisma/prisma-database.js';
@@ -23,6 +24,7 @@ export { prismaCommandsThatSupportNoHints, runPrismaCommand } from '../prisma/ru
23
24
  *
24
25
  * - If `false`, run `prisma.client.generate`
25
26
  *
27
+ * @deprecated Use the `prisma-vir` package instead.
26
28
  * @category Prisma : Node
27
29
  * @category Package : @augment-vir/node
28
30
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
@@ -4,6 +4,7 @@ import { type IsAny } from 'type-fest';
4
4
  * Params for `prisma.client.addData()`. This is similar to {@link PrismaAllModelsCreate} but allows
5
5
  * an array of {@link PrismaAllModelsCreate} for sequential data creation.
6
6
  *
7
+ * @deprecated Use the `prisma-vir` package instead.
7
8
  * @category Prisma : Node
8
9
  * @category Package : @augment-vir/node
9
10
  * @example
@@ -54,6 +55,7 @@ export declare function getAllPrismaModelKeys(prismaClient: BasePrismaClient): s
54
55
  /**
55
56
  * Options for `prisma.client.dumpData`.
56
57
  *
58
+ * @deprecated Use the `prisma-vir` package instead.
57
59
  * @category Prisma : Node
58
60
  * @category Package : @augment-vir/node
59
61
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
@@ -75,6 +77,7 @@ export type PrismaDataDumpOptions = {
75
77
  /**
76
78
  * Output for `prisma.client.dumpData`.
77
79
  *
80
+ * @deprecated Use the `prisma-vir` package instead.
78
81
  * @category Prisma : Node
79
82
  * @category Package : @augment-vir/node
80
83
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */
1
2
  import { assert, check } from '@augment-vir/assert';
2
3
  import { arrayToObject, awaitedForEach, ensureErrorAndPrependMessage, filterMap, getObjectTypedEntries, getObjectTypedValues, mergeDefinedProperties, omitObjectKeys, prismaModelCreateExclude, prismaModelCreateOmitId, setFirstLetterCasing, StringCase, } from '@augment-vir/common';
3
4
  export async function addData(prismaClient, data) {
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */
1
2
  import { collapseWhiteSpace } from '@augment-vir/common';
2
3
  import { existsSync } from 'node:fs';
3
4
  import { readFile } from 'node:fs/promises';
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */
1
2
  import { runPrismaCommand } from './run-prisma-command.js';
2
3
  export async function getPrismaDiff(schemaFilePath, env = {}) {
3
4
  const command = [
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Output of `prisma.migration.status`.
3
3
  *
4
+ * @deprecated Use the `prisma-vir` package instead.
4
5
  * @category Prisma : Node : Util
5
6
  * @category Package : @augment-vir/node
6
7
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */
1
2
  import { check } from '@augment-vir/assert';
2
3
  import { log, safeMatch, toEnsuredNumber } from '@augment-vir/common';
3
4
  import terminate from 'terminate';
@@ -3,6 +3,7 @@ import { type ShellOutput } from '../augments/terminal/shell.js';
3
3
  /**
4
4
  * All commands in the Prisma CLI that support the `--no-hints` flag, used to turn off ads.
5
5
  *
6
+ * @deprecated Use the `prisma-vir` package instead.
6
7
  * @category Prisma : Node : Util
7
8
  * @category Package : @augment-vir/node
8
9
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
@@ -11,6 +12,7 @@ export declare const prismaCommandsThatSupportNoHints: string[];
11
12
  /**
12
13
  * Directly run a Prisma command.
13
14
  *
15
+ * @deprecated Use the `prisma-vir` package instead.
14
16
  * @category Prisma : Node : Util
15
17
  * @category Package : @augment-vir/node
16
18
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */
1
2
  import { log, wrapString } from '@augment-vir/common';
2
3
  import { dirname } from 'node:path';
3
4
  import { interpolationSafeWindowsPath } from '../augments/path/os-path.js';
@@ -6,6 +7,7 @@ import { PrismaSchemaError } from './prisma-errors.js';
6
7
  /**
7
8
  * All commands in the Prisma CLI that support the `--no-hints` flag, used to turn off ads.
8
9
  *
10
+ * @deprecated Use the `prisma-vir` package instead.
9
11
  * @category Prisma : Node : Util
10
12
  * @category Package : @augment-vir/node
11
13
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
@@ -14,6 +16,7 @@ export const prismaCommandsThatSupportNoHints = ['generate'];
14
16
  /**
15
17
  * Directly run a Prisma command.
16
18
  *
19
+ * @deprecated Use the `prisma-vir` package instead.
17
20
  * @category Prisma : Node : Util
18
21
  * @category Package : @augment-vir/node
19
22
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augment-vir/node",
3
- "version": "31.36.0",
3
+ "version": "31.38.0",
4
4
  "description": "A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.",
5
5
  "keywords": [
6
6
  "augment",
@@ -38,20 +38,20 @@
38
38
  "test:update": "npm test"
39
39
  },
40
40
  "dependencies": {
41
- "@augment-vir/assert": "^31.36.0",
42
- "@augment-vir/common": "^31.36.0",
41
+ "@augment-vir/assert": "^31.38.0",
42
+ "@augment-vir/common": "^31.38.0",
43
43
  "@date-vir/duration": "^7.4.2",
44
44
  "ansi-styles": "^6.2.3",
45
45
  "sanitize-filename": "^1.6.3",
46
46
  "terminate": "^2.8.0",
47
47
  "tsx": "^4.20.5",
48
- "type-fest": "^5.0.0",
48
+ "type-fest": "^5.0.1",
49
49
  "typed-event-target": "^4.1.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@augment-vir/test": "^31.36.0",
53
- "@prisma/client": "^6.16.1",
54
- "@types/node": "^24.4.0",
52
+ "@augment-vir/test": "^31.38.0",
53
+ "@prisma/client": "^6.16.2",
54
+ "@types/node": "^24.5.2",
55
55
  "@web/dev-server-esbuild": "^1.0.4",
56
56
  "@web/test-runner": "^0.20.2",
57
57
  "@web/test-runner-commands": "^0.9.0",
@@ -59,7 +59,7 @@
59
59
  "@web/test-runner-visual-regression": "^0.10.0",
60
60
  "c8": "^10.1.3",
61
61
  "istanbul-smart-text-reporter": "^1.1.5",
62
- "prisma": "^6.16.1",
62
+ "prisma": "^6.16.2",
63
63
  "typescript": "^5.9.2"
64
64
  },
65
65
  "peerDependencies": {
@@ -1,3 +1,8 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */
2
+
3
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
4
+ import {PrismaMigrationNeededError, PrismaResetNeededError} from '../prisma/prisma-errors.js';
5
+
1
6
  import {addData, dumpData} from '../prisma/model-data.js';
2
7
  import {generatePrismaClient, isGeneratedPrismaClientCurrent} from '../prisma/prisma-client.js';
3
8
  import {
@@ -12,9 +17,6 @@ import {
12
17
  getMigrationStatus,
13
18
  } from '../prisma/prisma-migrations.js';
14
19
 
15
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
16
- import {PrismaMigrationNeededError, PrismaResetNeededError} from '../prisma/prisma-errors.js';
17
-
18
20
  export type {
19
21
  PrismaAddDataData as PrismaAddModelData,
20
22
  PrismaDataDumpOptions,
@@ -43,6 +45,7 @@ export {prismaCommandsThatSupportNoHints, runPrismaCommand} from '../prisma/run-
43
45
  *
44
46
  * - If `false`, run `prisma.client.generate`
45
47
  *
48
+ * @deprecated Use the `prisma-vir` package instead.
46
49
  * @category Prisma : Node
47
50
  * @category Package : @augment-vir/node
48
51
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
@@ -1,3 +1,5 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */
2
+
1
3
  import {assert, check} from '@augment-vir/assert';
2
4
  import {
3
5
  type AnyObject,
@@ -27,6 +29,7 @@ import {type IsAny} from 'type-fest';
27
29
  * Params for `prisma.client.addData()`. This is similar to {@link PrismaAllModelsCreate} but allows
28
30
  * an array of {@link PrismaAllModelsCreate} for sequential data creation.
29
31
  *
32
+ * @deprecated Use the `prisma-vir` package instead.
30
33
  * @category Prisma : Node
31
34
  * @category Package : @augment-vir/node
32
35
  * @example
@@ -165,6 +168,7 @@ export function getAllPrismaModelKeys(prismaClient: BasePrismaClient): string[]
165
168
  /**
166
169
  * Options for `prisma.client.dumpData`.
167
170
  *
171
+ * @deprecated Use the `prisma-vir` package instead.
168
172
  * @category Prisma : Node
169
173
  * @category Package : @augment-vir/node
170
174
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
@@ -192,6 +196,7 @@ const defaultPrismaDumpDataOptions: PrismaDataDumpOptions = {
192
196
  /**
193
197
  * Output for `prisma.client.dumpData`.
194
198
  *
199
+ * @deprecated Use the `prisma-vir` package instead.
195
200
  * @category Prisma : Node
196
201
  * @category Package : @augment-vir/node
197
202
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
@@ -1,3 +1,5 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */
2
+
1
3
  import {collapseWhiteSpace} from '@augment-vir/common';
2
4
  import {existsSync} from 'node:fs';
3
5
  import {readFile} from 'node:fs/promises';
@@ -1,3 +1,5 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */
2
+
1
3
  import {runPrismaCommand} from './run-prisma-command.js';
2
4
 
3
5
  export async function getPrismaDiff(
@@ -1,3 +1,5 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */
2
+
1
3
  import {check} from '@augment-vir/assert';
2
4
  import {log, safeMatch, toEnsuredNumber} from '@augment-vir/common';
3
5
  import terminate from 'terminate';
@@ -8,6 +10,7 @@ import {runPrismaCommand, verifyOutput} from './run-prisma-command.js';
8
10
  /**
9
11
  * Output of `prisma.migration.status`.
10
12
  *
13
+ * @deprecated Use the `prisma-vir` package instead.
11
14
  * @category Prisma : Node : Util
12
15
  * @category Package : @augment-vir/node
13
16
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
@@ -1,3 +1,5 @@
1
+ /* eslint-disable @typescript-eslint/no-deprecated */
2
+
1
3
  import {log, type PartialWithUndefined, wrapString} from '@augment-vir/common';
2
4
  import {dirname} from 'node:path';
3
5
  import {interpolationSafeWindowsPath} from '../augments/path/os-path.js';
@@ -7,6 +9,7 @@ import {PrismaSchemaError} from './prisma-errors.js';
7
9
  /**
8
10
  * All commands in the Prisma CLI that support the `--no-hints` flag, used to turn off ads.
9
11
  *
12
+ * @deprecated Use the `prisma-vir` package instead.
10
13
  * @category Prisma : Node : Util
11
14
  * @category Package : @augment-vir/node
12
15
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
@@ -16,6 +19,7 @@ export const prismaCommandsThatSupportNoHints = ['generate'];
16
19
  /**
17
20
  * Directly run a Prisma command.
18
21
  *
22
+ * @deprecated Use the `prisma-vir` package instead.
19
23
  * @category Prisma : Node : Util
20
24
  * @category Package : @augment-vir/node
21
25
  * @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)