@visulima/prisma-dmmf-transformer 1.0.6 → 1.0.7

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +39 -55
  3. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## @visulima/prisma-dmmf-transformer [1.0.7](https://github.com/visulima/visulima/compare/@visulima/prisma-dmmf-transformer@1.0.6...@visulima/prisma-dmmf-transformer@1.0.7) (2023-06-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Add npm package provenance, see https://docs.npmjs.com/generating-provenance-statements for more info ([9e7da04](https://github.com/visulima/visulima/commit/9e7da0491584e16a806fc7575c00080f192ec15e))
7
+
1
8
  ## @visulima/prisma-dmmf-transformer [1.0.6](https://github.com/visulima/visulima/compare/@visulima/prisma-dmmf-transformer@1.0.5...@visulima/prisma-dmmf-transformer@1.0.6) (2023-05-25)
2
9
 
3
10
 
package/README.md CHANGED
@@ -113,74 +113,58 @@ Into:
113
113
 
114
114
  ```json5
115
115
  {
116
- $schema: 'http://json-schema.org/draft-07/schema#',
116
+ $schema: "http://json-schema.org/draft-07/schema#",
117
117
  definitions: {
118
118
  Post: {
119
119
  properties: {
120
- id: { type: 'integer' },
120
+ id: { type: "integer" },
121
121
  user: {
122
- anyOf: [
123
- { $ref: '#/definitions/User' },
124
- { type: 'null' },
125
- ],
122
+ anyOf: [{ $ref: "#/definitions/User" }, { type: "null" }],
126
123
  },
127
124
  },
128
- type: 'object',
125
+ type: "object",
129
126
  },
130
127
  User: {
131
128
  properties: {
132
129
  biography: {
133
- type: [
134
- 'number',
135
- 'string',
136
- 'boolean',
137
- 'object',
138
- 'array',
139
- 'null'
140
- ],
130
+ type: ["number", "string", "boolean", "object", "array", "null"],
141
131
  },
142
- createdAt: { format: 'date-time', type: 'string' },
132
+ createdAt: { format: "date-time", type: "string" },
143
133
  email: {
144
- description: 'Triple Slash Comment: Will show up in JSON schema [EMAIL]',
145
- type: 'string'
134
+ description: "Triple Slash Comment: Will show up in JSON schema [EMAIL]",
135
+ type: "string",
146
136
  },
147
- id: { type: 'integer' },
148
- is18: { type: ['boolean', 'null'] },
149
- keywords: { items: { type: 'string' }, type: 'array' },
150
- name: { type: ['string', 'null'] },
151
- number: { type: 'integer', default: '34534535435353' },
137
+ id: { type: "integer" },
138
+ is18: { type: ["boolean", "null"] },
139
+ keywords: { items: { type: "string" }, type: "array" },
140
+ name: { type: ["string", "null"] },
141
+ number: { type: "integer", default: "34534535435353" },
152
142
  bytes: {
153
- description: 'Triple Slash Inline Comment: Will show up in JSON schema [BYTES]',
154
- type: 'string'
143
+ description: "Triple Slash Inline Comment: Will show up in JSON schema [BYTES]",
144
+ type: "string",
155
145
  },
156
- favouriteDecimal: { type: 'number' },
146
+ favouriteDecimal: { type: "number" },
157
147
  posts: {
158
- items: { $ref: '#/definitions/Post' },
159
- type: 'array',
148
+ items: { $ref: "#/definitions/Post" },
149
+ type: "array",
160
150
  },
161
151
  predecessor: {
162
- anyOf: [
163
- { $ref: '#/definitions/User' },
164
- { type: 'null' },
165
- ],
152
+ anyOf: [{ $ref: "#/definitions/User" }, { type: "null" }],
166
153
  },
167
- role: { enum: ['USER', 'ADMIN'], type: 'string', default: 'USER' },
154
+ role: { enum: ["USER", "ADMIN"], type: "string", default: "USER" },
168
155
  successor: {
169
- anyOf: [
170
- { $ref: '#/definitions/User' },
171
- { type: 'null' },
172
- ],
156
+ anyOf: [{ $ref: "#/definitions/User" }, { type: "null" }],
173
157
  },
174
- weight: { type: ['integer', 'null'] },
158
+ weight: { type: ["integer", "null"] },
175
159
  },
176
- type: 'object',
160
+ type: "object",
177
161
  },
178
162
  },
179
163
  properties: {
180
- post: { $ref: '#/definitions/Post' },
181
- user: { $ref: '#/definitions/User' },
164
+ post: { $ref: "#/definitions/Post" },
165
+ user: { $ref: "#/definitions/User" },
182
166
  },
183
- type: 'object',
167
+ type: "object",
184
168
  }
185
169
  ```
186
170
 
@@ -210,39 +194,39 @@ Output:
210
194
 
211
195
  ```json5
212
196
  {
213
- $schema: 'http://json-schema.org/draft-07/schema#',
197
+ $schema: "http://json-schema.org/draft-07/schema#",
214
198
  definitions: {
215
199
  User: {
216
200
  properties: {
217
- id: { type: 'string' },
201
+ id: { type: "string" },
218
202
  photos: {
219
- items: { $ref: '#/definitions/Photo' },
220
- type: 'array',
203
+ items: { $ref: "#/definitions/Photo" },
204
+ type: "array",
221
205
  },
222
206
  },
223
- type: 'object',
207
+ type: "object",
224
208
  },
225
209
  Photo: {
226
210
  properties: {
227
211
  height: {
228
- type: 'integer',
212
+ type: "integer",
229
213
  default: 200,
230
214
  },
231
215
  width: {
232
- type: 'integer',
216
+ type: "integer",
233
217
  default: 100,
234
218
  },
235
219
  url: {
236
- type: 'string',
220
+ type: "string",
237
221
  },
238
222
  },
239
- type: 'object',
223
+ type: "object",
240
224
  },
241
225
  },
242
226
  properties: {
243
- user: { $ref: '#/definitions/User' },
227
+ user: { $ref: "#/definitions/User" },
244
228
  },
245
- type: 'object',
229
+ type: "object",
246
230
  }
247
231
  ```
248
232
 
@@ -272,5 +256,5 @@ The visulima prisma-dmmf-transformer is open-sourced software licensed under the
272
256
  [typescript-url]: "typescript"
273
257
  [license-image]: https://img.shields.io/npm/l/@visulima/prisma-dmmf-transformer?color=blueviolet&style=for-the-badge
274
258
  [license-url]: LICENSE.md "license"
275
- [npm-image]: https://img.shields.io/npm/v/@visulima/prisma-dmmf-transformer/alpha.svg?style=for-the-badge&logo=npm
276
- [npm-url]: https://www.npmjs.com/package/@visulima/prisma-dmmf-transformer/v/alpha "npm"
259
+ [npm-image]: https://img.shields.io/npm/v/@visulima/prisma-dmmf-transformer/latest.svg?style=for-the-badge&logo=npm
260
+ [npm-url]: https://www.npmjs.com/package/@visulima/prisma-dmmf-transformer/v/latest "npm"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/prisma-dmmf-transformer",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "A generator for Prisma to generate a valid JSON Schema v7.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -59,7 +59,7 @@
59
59
  "build:prod": "cross-env NODE_ENV=production tsup",
60
60
  "clean": "rimraf node_modules dist .eslintcache",
61
61
  "coverage": "vitest run --coverage",
62
- "dev": "pnpm predev && pnpm run build --watch",
62
+ "dev": "pnpm run build --watch",
63
63
  "lint:eslint": "cross-env NO_LOGS=true eslint . --ext js,jsx,ts,tsx --max-warnings=0 --config .eslintrc.cjs --cache --cache-strategy content .",
64
64
  "lint:eslint:fix": "pnpm run lint:eslint --fix",
65
65
  "test": "vitest run",
@@ -74,11 +74,11 @@
74
74
  "@anolilab/semantic-release-preset": "^2.2.1",
75
75
  "@prisma/client": "4.14.1",
76
76
  "@rushstack/eslint-plugin-security": "^0.6.0",
77
- "@types/json-schema": "7.0.11",
77
+ "@types/json-schema": "7.0.12",
78
78
  "@types/micromatch": "^4.0.2",
79
- "@types/node": "18.16.14",
80
- "@typescript-eslint/eslint-plugin": "^5.59.7",
81
- "@typescript-eslint/parser": "^5.59.7",
79
+ "@types/node": "18.16.16",
80
+ "@typescript-eslint/eslint-plugin": "^5.59.8",
81
+ "@typescript-eslint/parser": "^5.59.8",
82
82
  "@vitest/coverage-c8": "^0.31.1",
83
83
  "ajv": "8.12.0",
84
84
  "ajv-formats": "2.1.1",
@@ -107,7 +107,6 @@
107
107
  "eslint-plugin-you-dont-need-momentjs": "^1.6.0",
108
108
  "prettier": "^2.8.8",
109
109
  "prisma": "4.14.1",
110
- "read-pkg": "^8.0.0",
111
110
  "rimraf": "^5.0.1",
112
111
  "semantic-release": "^21.0.2",
113
112
  "tsup": "^6.7.0",
@@ -122,6 +121,7 @@
122
121
  "node": ">=16.18.0 <=20.*"
123
122
  },
124
123
  "publishConfig": {
125
- "access": "public"
124
+ "access": "public",
125
+ "provenance": true
126
126
  }
127
127
  }