pocketbase-zod-schema 0.4.2 → 0.5.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.
Files changed (68) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cli/index.cjs +2353 -2200
  3. package/dist/cli/index.cjs.map +1 -1
  4. package/dist/cli/index.d.cts +2 -3
  5. package/dist/cli/index.d.ts +2 -3
  6. package/dist/cli/index.js +2352 -2199
  7. package/dist/cli/index.js.map +1 -1
  8. package/dist/cli/migrate.cjs +2363 -2208
  9. package/dist/cli/migrate.cjs.map +1 -1
  10. package/dist/cli/migrate.js +2359 -2205
  11. package/dist/cli/migrate.js.map +1 -1
  12. package/dist/cli/utils/index.d.cts +2 -3
  13. package/dist/cli/utils/index.d.ts +2 -3
  14. package/dist/{fields-BNoZgcfw.d.cts → fields-xO0SgOQA.d.cts} +71 -1
  15. package/dist/{fields-BNoZgcfw.d.ts → fields-xO0SgOQA.d.ts} +71 -1
  16. package/dist/index.d.cts +1 -2
  17. package/dist/index.d.ts +1 -2
  18. package/dist/migration/analyzer.cjs +249 -216
  19. package/dist/migration/analyzer.cjs.map +1 -1
  20. package/dist/migration/analyzer.d.cts +63 -46
  21. package/dist/migration/analyzer.d.ts +63 -46
  22. package/dist/migration/analyzer.js +247 -217
  23. package/dist/migration/analyzer.js.map +1 -1
  24. package/dist/migration/diff.cjs +184 -161
  25. package/dist/migration/diff.cjs.map +1 -1
  26. package/dist/migration/diff.d.cts +118 -57
  27. package/dist/migration/diff.d.ts +118 -57
  28. package/dist/migration/diff.js +178 -162
  29. package/dist/migration/diff.js.map +1 -1
  30. package/dist/migration/generator.cjs +352 -247
  31. package/dist/migration/generator.cjs.map +1 -1
  32. package/dist/migration/generator.d.cts +204 -99
  33. package/dist/migration/generator.d.ts +204 -99
  34. package/dist/migration/generator.js +340 -248
  35. package/dist/migration/generator.js.map +1 -1
  36. package/dist/migration/index.cjs +1060 -751
  37. package/dist/migration/index.cjs.map +1 -1
  38. package/dist/migration/index.d.cts +77 -5
  39. package/dist/migration/index.d.ts +77 -5
  40. package/dist/migration/index.js +1055 -751
  41. package/dist/migration/index.js.map +1 -1
  42. package/dist/migration/snapshot.cjs +21 -5
  43. package/dist/migration/snapshot.cjs.map +1 -1
  44. package/dist/migration/snapshot.d.cts +2 -3
  45. package/dist/migration/snapshot.d.ts +2 -3
  46. package/dist/migration/snapshot.js +21 -5
  47. package/dist/migration/snapshot.js.map +1 -1
  48. package/dist/migration/utils/index.cjs +78 -0
  49. package/dist/migration/utils/index.cjs.map +1 -1
  50. package/dist/migration/utils/index.d.cts +23 -3
  51. package/dist/migration/utils/index.d.ts +23 -3
  52. package/dist/migration/utils/index.js +78 -2
  53. package/dist/migration/utils/index.js.map +1 -1
  54. package/dist/schema.d.cts +2 -3
  55. package/dist/schema.d.ts +2 -3
  56. package/dist/server.cjs +884 -720
  57. package/dist/server.cjs.map +1 -1
  58. package/dist/server.d.cts +4 -5
  59. package/dist/server.d.ts +4 -5
  60. package/dist/server.js +879 -720
  61. package/dist/server.js.map +1 -1
  62. package/dist/{type-mapper-BlewDZpG.d.cts → type-mapper-CpnRi9Af.d.cts} +1 -1
  63. package/dist/{type-mapper-DkIy07Eb.d.ts → type-mapper-bhinINZI.d.ts} +1 -1
  64. package/dist/{types-CzLguhyw.d.ts → types-DyfYCbKO.d.cts} +2 -2
  65. package/dist/{types-BbrRUsMM.d.cts → types-I_9WhpBJ.d.ts} +2 -2
  66. package/package.json +1 -1
  67. package/dist/permissions-ZHafVSIx.d.cts +0 -71
  68. package/dist/permissions-ZHafVSIx.d.ts +0 -71
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.1](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.5.0...pocketbase-zod-schema-v0.5.1) (2026-01-26)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Add Column IDs ([e42e4de](https://github.com/dastron/pocketbase-zod-schema/commit/e42e4def0f756afbf6efcf999ca59d079e9c3e82))
9
+ * **parser:** support addAt and field updates by ID ([9d38759](https://github.com/dastron/pocketbase-zod-schema/commit/9d387597d3082c2409cdfb9d723a30c0fa63fc08))
10
+ * support fields.addAt and generic Field in migration parser ([dfa780e](https://github.com/dastron/pocketbase-zod-schema/commit/dfa780e4daec43a7bae67dfb03fae6f5e3817813))
11
+
12
+
13
+ ### Performance Improvements
14
+
15
+ * optimize toPascalCase regex compilation ([e9b1679](https://github.com/dastron/pocketbase-zod-schema/commit/e9b1679af1033fdfa54332fb4dca6c596f0cdda8))
16
+ * Pre-compile regexes and fix escaping ([de78ce1](https://github.com/dastron/pocketbase-zod-schema/commit/de78ce14b495b8dfb34bf0da4d153ea53bc15cf0))
17
+
18
+ ## [0.5.0](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.4.2...pocketbase-zod-schema-v0.5.0) (2026-01-23)
19
+
20
+
21
+ ### Features
22
+
23
+ * sort migration creation by relation dependencies ([40a461a](https://github.com/dastron/pocketbase-zod-schema/commit/40a461a9269a167c41f03b53db9ef324f4e266ee))
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * refactor migration to be modular ([ae101dc](https://github.com/dastron/pocketbase-zod-schema/commit/ae101dca161bfa378d341f73522cf3d29b114417))
29
+
3
30
  ## [0.4.2](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.4.1...pocketbase-zod-schema-v0.4.2) (2026-01-21)
4
31
 
5
32