@xata.io/pgroll
Advanced tools
Comparing version 0.0.0-alpha.v30bae1502296d0f516b151c6092d927401f3f0a5 to 0.0.0-alpha.v31dbe5685abd6f4a3c317fbd38e6e562613dcc52
# @xata.io/pgroll | ||
## 0.0.0-alpha.v30bae1502296d0f516b151c6092d927401f3f0a5 | ||
## 0.0.0-alpha.v31dbe5685abd6f4a3c317fbd38e6e562613dcc52 | ||
### Patch Changes | ||
- [#1250](https://github.com/xataio/client-ts/pull/1250) [`9d42040`](https://github.com/xataio/client-ts/commit/9d42040be7c1e3c04be572d8368e2b3391b985a9) Thanks [@SferaDev](https://github.com/SferaDev)! - Add new package for pgroll migrations | ||
- Force canary build | ||
## 0.4.4 | ||
### Patch Changes | ||
- [#1250](https://github.com/xataio/client-ts/pull/1250) [`9a6af72`](https://github.com/xataio/client-ts/commit/9a6af72ba4dd7880e8196a0a57d4133930957add) Thanks [@SferaDev](https://github.com/SferaDev)! - Add new package for pgroll migrations |
{ | ||
"name": "@xata.io/pgroll", | ||
"version": "0.0.0-alpha.v30bae1502296d0f516b151c6092d927401f3f0a5", | ||
"version": "0.0.0-alpha.v31dbe5685abd6f4a3c317fbd38e6e562613dcc52", | ||
"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.0" | ||
}, | ||
@@ -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
228616
4784
Updatedzod-to-json-schema@^3.22.4