pocketbase-zod-schema 0.2.0 → 0.2.1
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 +7 -0
- package/dist/cli/index.cjs +2 -5
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +2 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/migrate.cjs +2 -5
- package/dist/cli/migrate.cjs.map +1 -1
- package/dist/cli/migrate.js +2 -5
- package/dist/cli/migrate.js.map +1 -1
- package/dist/index.cjs +2 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -5
- package/dist/index.js.map +1 -1
- package/dist/migration/analyzer.cjs +2 -5
- package/dist/migration/analyzer.cjs.map +1 -1
- package/dist/migration/analyzer.js +2 -5
- package/dist/migration/analyzer.js.map +1 -1
- package/dist/migration/index.cjs +2 -5
- package/dist/migration/index.cjs.map +1 -1
- package/dist/migration/index.js +2 -5
- package/dist/migration/index.js.map +1 -1
- package/dist/migration/snapshot.cjs.map +1 -1
- package/dist/migration/snapshot.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.1](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.2.0...pocketbase-zod-schema-v0.2.1) (2025-12-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* remove analyzer console logs ([f632a96](https://github.com/dastron/pocketbase-zod-schema/commit/f632a96ad1d212587b712498e7061662f675bfc9))
|
|
9
|
+
|
|
3
10
|
## [0.2.0](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.1.4...pocketbase-zod-schema-v0.2.0) (2025-12-20)
|
|
4
11
|
|
|
5
12
|
|
package/dist/cli/index.cjs
CHANGED
|
@@ -1310,11 +1310,8 @@ function buildFieldDefinition(fieldName, zodType) {
|
|
|
1310
1310
|
// Default to false, can be configured later
|
|
1311
1311
|
};
|
|
1312
1312
|
if (fieldDef.options) {
|
|
1313
|
-
const { min, max, pattern, ...relationSafeOptions } = fieldDef.options;
|
|
1314
|
-
|
|
1315
|
-
console.log("max", max);
|
|
1316
|
-
console.log("pattern", pattern);
|
|
1317
|
-
fieldDef.options = Object.keys(relationSafeOptions).length > 0 ? relationSafeOptions : void 0;
|
|
1313
|
+
const { min: _min, max: _max, pattern: _pattern, ...relationSafeOptions } = fieldDef.options;
|
|
1314
|
+
fieldDef.options = Object.keys(relationSafeOptions).length ? relationSafeOptions : void 0;
|
|
1318
1315
|
}
|
|
1319
1316
|
}
|
|
1320
1317
|
return fieldDef;
|