appwrite-utils-cli 0.9.56 → 0.9.57

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/README.md CHANGED
@@ -124,6 +124,7 @@ This updated CLI ensures that developers have robust tools at their fingertips t
124
124
 
125
125
  ## Changelog
126
126
 
127
+ - 0.9.57: Changed generated schema type of `$createdAt` and `$updatedAt` to string from `string | Date` cause honestly if you want a date just parse it
127
128
  - 0.9.56: Changed the updateAttribute so it doesn't always update attributes and hopefully fixed the required error
128
129
  - 0.9.55: Updated to use `node-appwrite@14` for appwrite 1.6.0
129
130
  - 0.9.54: Added small delay (`100ms`) between collection deletions, reduced other delays from `1000` to `500/250ms`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "appwrite-utils-cli",
3
3
  "description": "Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.",
4
- "version": "0.9.56",
4
+ "version": "0.9.57",
5
5
  "main": "src/main.ts",
6
6
  "type": "module",
7
7
  "repository": {
@@ -301,8 +301,8 @@ export class SchemaGenerator {
301
301
  let schemaString = `${imports}\n\n`;
302
302
  schemaString += `export const ${pascalName}SchemaBase = z.object({\n`;
303
303
  schemaString += ` $id: z.string().optional(),\n`;
304
- schemaString += ` $createdAt: z.date().or(z.string()).optional(),\n`;
305
- schemaString += ` $updatedAt: z.date().or(z.string()).optional(),\n`;
304
+ schemaString += ` $createdAt: z.string().optional(),\n`;
305
+ schemaString += ` $updatedAt: z.string().optional(),\n`;
306
306
  for (const attribute of attributes) {
307
307
  if (attribute.type === "relationship") {
308
308
  continue;