@xata.io/pgroll
Advanced tools
Comparing version 0.4.4 to 0.5.0-next.0
# @xata.io/pgroll | ||
## 0.5.0-next.0 | ||
### Minor Changes | ||
- [#1372](https://github.com/xataio/client-ts/pull/1372) [`db01bea`](https://github.com/xataio/client-ts/commit/db01bead243bee3910895d391abe21a80b252a8f) Thanks [@SferaDev](https://github.com/SferaDev)! - Bump pgroll version to match v0.5.0 | ||
## 0.4.4 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@xata.io/pgroll", | ||
"version": "0.4.4", | ||
"version": "0.5.0-next.0", | ||
"description": "Migration tool for PostgreSQL", | ||
@@ -29,7 +29,7 @@ "type": "module", | ||
"zod": "^3.22.4", | ||
"zod-to-json-schema": "^3.21.4" | ||
"zod-to-json-schema": "^3.22.4" | ||
}, | ||
"devDependencies": { | ||
"ts-morph": "^21.0.1", | ||
"tsx": "^4.1.2" | ||
"tsx": "^4.7.1" | ||
}, | ||
@@ -36,0 +36,0 @@ "scripts": { |
@@ -13,2 +13,3 @@ import fs from 'fs/promises'; | ||
properties: Record<string, Definition>; | ||
oneOf?: unknown[]; | ||
required?: string[]; | ||
@@ -34,2 +35,4 @@ description?: string; | ||
properties: z.record(DefinitionSchema), | ||
// TODO: Add full support for oneOf | ||
oneOf: z.array(z.any()).optional(), | ||
required: z.array(z.string()).optional(), | ||
@@ -151,3 +154,4 @@ description: z.string().optional(), | ||
async function main() { | ||
const response = await fetch(PGROLL_JSON_SCHEMA_URL).then((response) => response.json()); | ||
const url = process.env.PGROLL_JSON_SCHEMA_URL ?? PGROLL_JSON_SCHEMA_URL; | ||
const response = await fetch(url).then((response) => response.json()); | ||
const schema = JSONSchema.parse(response); | ||
@@ -154,0 +158,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
233703
4874
Updatedzod-to-json-schema@^3.22.4