@visulima/prisma-dmmf-transformer 2.0.26 → 2.0.28

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## @visulima/prisma-dmmf-transformer [2.0.28](https://github.com/visulima/visulima/compare/@visulima/prisma-dmmf-transformer@2.0.27...@visulima/prisma-dmmf-transformer@2.0.28) (2025-03-07)
2
+
3
+ ### Bug Fixes
4
+
5
+ * updated @visulima/packem and other dev deps, for better bundling size ([e940581](https://github.com/visulima/visulima/commit/e9405812201594e54dd81d17ddb74177df5f3c24))
6
+
7
+ ## @visulima/prisma-dmmf-transformer [2.0.27](https://github.com/visulima/visulima/compare/@visulima/prisma-dmmf-transformer@2.0.26...@visulima/prisma-dmmf-transformer@2.0.27) (2025-02-28)
8
+
9
+ ### Bug Fixes
10
+
11
+ * updated @prisma/generator-helper to v6.4.1 ([f35dd61](https://github.com/visulima/visulima/commit/f35dd6103d4a4618f7f252af5647cff9cb44090a))
12
+
1
13
  ## @visulima/prisma-dmmf-transformer [2.0.26](https://github.com/visulima/visulima/compare/@visulima/prisma-dmmf-transformer@2.0.25...@visulima/prisma-dmmf-transformer@2.0.26) (2025-01-25)
2
14
 
3
15
  ### Bug Fixes
package/README.md CHANGED
@@ -244,15 +244,16 @@ If you would like to help take a look at the [list of issues](https://github.com
244
244
 
245
245
  ## Credits
246
246
 
247
- - [Valentin Palkovic](https://github.com/valentinpalkovic) and [prisma-json-schema-generator](https://github.com/valentinpalkovic/prisma-json-schema-generator)
248
- - [Daniel Bannert](https://github.com/prisis)
249
- - [All Contributors](https://github.com/visulima/visulima/graphs/contributors)
247
+ - [Valentin Palkovic](https://github.com/valentinpalkovic) and [prisma-json-schema-generator](https://github.com/valentinpalkovic/prisma-json-schema-generator)
248
+ - [Daniel Bannert](https://github.com/prisis)
249
+ - [All Contributors](https://github.com/visulima/visulima/graphs/contributors)
250
250
 
251
251
  ## License
252
252
 
253
253
  The visulima prisma-dmmf-transformer is open-sourced software licensed under the [MIT][license-url]
254
254
 
255
255
  [typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
256
+
256
257
  [typescript-url]: https://www.typescriptlang.org/ "TypeScript" "typescript"
257
258
  [license-image]: https://img.shields.io/npm/l/@visulima/prisma-dmmf-transformer?color=blueviolet&style=for-the-badge
258
259
  [license-url]: LICENSE.md "license"
package/dist/index.cjs CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
4
 
5
- const getJSONSchemaProperty = require('./packem_shared/getJSONSchemaProperty-CQOx1F3i.cjs');
6
- const transformDMMF = require('./packem_shared/transformDMMF-DsOUjIEw.cjs');
5
+ const getJSONSchemaProperty = require('./packem_shared/getJSONSchemaProperty-Ul9ZXvbT.cjs');
6
+ const transformDMMF = require('./packem_shared/transformDMMF-BlrIBvPS.cjs');
7
7
 
8
8
 
9
9
 
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export { default as getJSONSchemaProperty } from './packem_shared/getJSONSchemaProperty-DzE_Iliv.mjs';
2
- export { default as transformDMMF } from './packem_shared/transformDMMF-DScJsLwJ.mjs';
1
+ export { default as getJSONSchemaProperty } from './packem_shared/getJSONSchemaProperty-CCMlB6rF.mjs';
2
+ export { default as transformDMMF } from './packem_shared/transformDMMF-BtZz70Wg.mjs';
@@ -2,7 +2,7 @@ import assert from 'node:assert';
2
2
 
3
3
  var __defProp = Object.defineProperty;
4
4
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
5
- const isDefined = /* @__PURE__ */ __name((value) => value !== undefined && value !== null, "isDefined");
5
+ const isDefined = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null, "isDefined");
6
6
  const getJSONSchemaScalar = /* @__PURE__ */ __name((fieldType) => {
7
7
  switch (fieldType) {
8
8
  case "Int":
@@ -86,7 +86,7 @@ const getFormatByDMMFType = /* @__PURE__ */ __name((fieldType) => {
86
86
  if (fieldType === "DateTime") {
87
87
  return "date-time";
88
88
  }
89
- return undefined;
89
+ return void 0;
90
90
  }, "getFormatByDMMFType");
91
91
  const getJSONSchemaForPropertyReference = /* @__PURE__ */ __name((field, { persistOriginalType, schemaId }) => {
92
92
  const notNullable = field.isRequired || field.isList;
@@ -102,7 +102,7 @@ const getJSONSchemaForPropertyReference = /* @__PURE__ */ __name((field, { persi
102
102
  }, "getJSONSchemaForPropertyReference");
103
103
  const getItemsByDMMFType = /* @__PURE__ */ __name((field, transformOptions) => {
104
104
  if (field.kind === "scalar" && !field.isList || field.kind === "enum") {
105
- return undefined;
105
+ return void 0;
106
106
  }
107
107
  if (field.kind === "scalar" && field.isList) {
108
108
  return { type: getJSONSchemaScalar(field.type) };
@@ -113,7 +113,7 @@ const isSingleReference = /* @__PURE__ */ __name((field) => field.kind !== "scal
113
113
  const getEnumListByDMMFType = /* @__PURE__ */ __name((modelMetaData) => (field) => {
114
114
  const enumItem = modelMetaData.enums.find(({ name }) => name === field.type);
115
115
  if (!enumItem) {
116
- return undefined;
116
+ return void 0;
117
117
  }
118
118
  return enumItem.values.map((item) => item.name);
119
119
  }, "getEnumListByDMMFType");
@@ -8,7 +8,7 @@ const assert__default = /*#__PURE__*/_interopDefaultCompat(assert);
8
8
 
9
9
  var __defProp = Object.defineProperty;
10
10
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
11
- const isDefined = /* @__PURE__ */ __name((value) => value !== undefined && value !== null, "isDefined");
11
+ const isDefined = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null, "isDefined");
12
12
  const getJSONSchemaScalar = /* @__PURE__ */ __name((fieldType) => {
13
13
  switch (fieldType) {
14
14
  case "Int":
@@ -92,7 +92,7 @@ const getFormatByDMMFType = /* @__PURE__ */ __name((fieldType) => {
92
92
  if (fieldType === "DateTime") {
93
93
  return "date-time";
94
94
  }
95
- return undefined;
95
+ return void 0;
96
96
  }, "getFormatByDMMFType");
97
97
  const getJSONSchemaForPropertyReference = /* @__PURE__ */ __name((field, { persistOriginalType, schemaId }) => {
98
98
  const notNullable = field.isRequired || field.isList;
@@ -108,7 +108,7 @@ const getJSONSchemaForPropertyReference = /* @__PURE__ */ __name((field, { persi
108
108
  }, "getJSONSchemaForPropertyReference");
109
109
  const getItemsByDMMFType = /* @__PURE__ */ __name((field, transformOptions) => {
110
110
  if (field.kind === "scalar" && !field.isList || field.kind === "enum") {
111
- return undefined;
111
+ return void 0;
112
112
  }
113
113
  if (field.kind === "scalar" && field.isList) {
114
114
  return { type: getJSONSchemaScalar(field.type) };
@@ -119,7 +119,7 @@ const isSingleReference = /* @__PURE__ */ __name((field) => field.kind !== "scal
119
119
  const getEnumListByDMMFType = /* @__PURE__ */ __name((modelMetaData) => (field) => {
120
120
  const enumItem = modelMetaData.enums.find(({ name }) => name === field.type);
121
121
  if (!enumItem) {
122
- return undefined;
122
+ return void 0;
123
123
  }
124
124
  return enumItem.values.map((item) => item.name);
125
125
  }, "getEnumListByDMMFType");
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const getJSONSchemaProperty = require('./getJSONSchemaProperty-CQOx1F3i.cjs');
3
+ const getJSONSchemaProperty = require('./getJSONSchemaProperty-Ul9ZXvbT.cjs');
4
4
 
5
5
  var __defProp$1 = Object.defineProperty;
6
6
  var __name$1 = (target, value) => __defProp$1(target, "name", { value, configurable: true });
@@ -1,4 +1,4 @@
1
- import getJSONSchemaProperty from './getJSONSchemaProperty-DzE_Iliv.mjs';
1
+ import getJSONSchemaProperty from './getJSONSchemaProperty-CCMlB6rF.mjs';
2
2
 
3
3
  var __defProp$1 = Object.defineProperty;
4
4
  var __name$1 = (target, value) => __defProp$1(target, "name", { value, configurable: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/prisma-dmmf-transformer",
3
- "version": "2.0.26",
3
+ "version": "2.0.28",
4
4
  "description": "A generator for Prisma to generate a valid JSON Schema v7.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -66,7 +66,7 @@
66
66
  "LICENSE.md"
67
67
  ],
68
68
  "dependencies": {
69
- "@prisma/generator-helper": "6.2.1"
69
+ "@prisma/generator-helper": "6.4.1"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@prisma/client": "3.* || 4.*",