# Changelog

## [1.0.2](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v1.0.1...pocketbase-zod-schema-v1.0.2) (2026-07-28)


### Bug Fixes

* tighten library exports ([81221a6](https://github.com/dastron/pocketbase-zod-schema/commit/81221a6c3d5e8ed28f20a90ea57b862aa00b5713))
* tighten library exports ([b228a10](https://github.com/dastron/pocketbase-zod-schema/commit/b228a105d29e05f24feb266faafeb24e9b091f8d))

## [1.0.1](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v1.0.0...pocketbase-zod-schema-v1.0.1) (2026-07-28)


### Bug Fixes

* bug fixes for schema ([7007f4d](https://github.com/dastron/pocketbase-zod-schema/commit/7007f4dda37bef732cfcdb126e1a8dba79ece120))
* bug fixes for schema ([17bd233](https://github.com/dastron/pocketbase-zod-schema/commit/17bd23392a0455ff5b94d8cb54b30fbdcad7ffbc))

## [1.0.0](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.7.2...pocketbase-zod-schema-v1.0.0) (2026-07-28)


### ⚠ BREAKING CHANGES

* remove the static migration parser, execute migrations only

### Features

* add migration execution engine replacing static analysis ([5fc9e81](https://github.com/dastron/pocketbase-zod-schema/commit/5fc9e8191fb7863dd1b96f87c165a44033f05341))
* add migration execution engine replacing static analysis as default ([eb094c7](https://github.com/dastron/pocketbase-zod-schema/commit/eb094c79f4f57c71402e68223e12122c99b8f474))
* add migration execution engine replacing static analysis as default ([b787cf0](https://github.com/dastron/pocketbase-zod-schema/commit/b787cf0ba4a9e0e3d80f4eb0951e90890bf33ccd))
* deprecation warning for static processor ([865f96d](https://github.com/dastron/pocketbase-zod-schema/commit/865f96db51eefd05fc53ff8e412cd4f49e9853e5))
* **engine:** _migrations awareness, record simulation, goja lint ([ce799d3](https://github.com/dastron/pocketbase-zod-schema/commit/ce799d38d2d50e6596cf7bb880656caff7c5631e))
* **engine:** verify down migrations round-trip ([35509f5](https://github.com/dastron/pocketbase-zod-schema/commit/35509f500ae8034a095115e8263779daef2aed94))
* **engine:** verify down migrations round-trip ([0b74452](https://github.com/dastron/pocketbase-zod-schema/commit/0b74452ff8c564c579de2462407908b2207ff0cb))
* remove the static migration parser, execute migrations only ([b5bb6cb](https://github.com/dastron/pocketbase-zod-schema/commit/b5bb6cb204a7132041b112a1c68051bdd4238a02))


### Bug Fixes

* address review comments ([61e5441](https://github.com/dastron/pocketbase-zod-schema/commit/61e544128d57b49c3377ec9938d06e47d17a3df5))
* e2e test regression ([cb6e166](https://github.com/dastron/pocketbase-zod-schema/commit/cb6e166b0fa4850087344ae999b9e5098950e16b))
* flakey test ([4902cf2](https://github.com/dastron/pocketbase-zod-schema/commit/4902cf23aa944872a072d814f12590bd3182236c))

## [0.7.2](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.7.1...pocketbase-zod-schema-v0.7.2) (2026-07-26)


### Bug Fixes

* add defineView for view collections ([a239a96](https://github.com/dastron/pocketbase-zod-schema/commit/a239a96b9d9e69019be3625db50dbb27919baaee))

## [0.7.1](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.7.0...pocketbase-zod-schema-v0.7.1) (2026-05-06)


### Bug Fixes

* missing autodate fields ([e3d6dc6](https://github.com/dastron/pocketbase-zod-schema/commit/e3d6dc60d2e6b7d0fa9a52b6bace3c2d3addfc84))

## [0.7.0](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.6.1...pocketbase-zod-schema-v0.7.0) (2026-02-13)


### Features

* Add migration filtering and skip destructive changes without force ([8b6f4f1](https://github.com/dastron/pocketbase-zod-schema/commit/8b6f4f1e918c40052ec15390b7c5c4df87e8a871))
* Add migration filtering and skip destructive changes without force ([1a8ea15](https://github.com/dastron/pocketbase-zod-schema/commit/1a8ea15489957ec2407af8b57316f703eb40db57))
* enhance codegen with complex types and strict mutators ([4086561](https://github.com/dastron/pocketbase-zod-schema/commit/4086561aa4ae8f132e965ff7672a581644eaa364))


### Bug Fixes

* remove idOrName:string from typegen ([423dcbb](https://github.com/dastron/pocketbase-zod-schema/commit/423dcbb1a584f9bf3722c797297cc9450ba45325))

## [0.6.1](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.6.0...pocketbase-zod-schema-v0.6.1) (2026-01-26)


### Bug Fixes

* update typegen ([e292f6c](https://github.com/dastron/pocketbase-zod-schema/commit/e292f6c60a71b80b115d1b3896c4908fc0e01295))
* update typegen ([fe9de77](https://github.com/dastron/pocketbase-zod-schema/commit/fe9de778c48660d82a8e2722999bf474e8a376f0))

## [0.6.0](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.5.1...pocketbase-zod-schema-v0.6.0) (2026-01-26)


### Features

* add displayFields support and fix system fields in migrations ([b6048e2](https://github.com/dastron/pocketbase-zod-schema/commit/b6048e2c585e217efe27d0e73c397c8f90724ec5))
* add displayFields support and fix system fields in migrations ([71d9f67](https://github.com/dastron/pocketbase-zod-schema/commit/71d9f678fc839c6c7d7659aa4b23ee33c065f49e))
* improve JSON field type generation from Zod schema ([514a971](https://github.com/dastron/pocketbase-zod-schema/commit/514a971237926af8ec75ae9e5c0fc5613d75b71e))


### Bug Fixes

* **e2e:** resolve migration generation discrepancies ([7056363](https://github.com/dastron/pocketbase-zod-schema/commit/7056363001eee83cb5c2eff5f8fdd205a7694328))
* **migration:** inject auth system fields in generated migrations ([e184a86](https://github.com/dastron/pocketbase-zod-schema/commit/e184a86b0ace05916f0bcfed1b76c255b8e276fc))
* prevent duplicate auth fields in migrations ([d0f57e7](https://github.com/dastron/pocketbase-zod-schema/commit/d0f57e72d2c36cacd2e471c5d8180a2c8d7b9282))
* **type-gen:** prevent empty interfaces and add config support ([cd483da](https://github.com/dastron/pocketbase-zod-schema/commit/cd483dacc76240d236b8d7510958c12bda006be6))
* **type-gen:** prevent empty interfaces and add config support ([3346a04](https://github.com/dastron/pocketbase-zod-schema/commit/3346a045a3485c0a05b933be0b5f7a0d5ee31f32))
* update e2e ([08df146](https://github.com/dastron/pocketbase-zod-schema/commit/08df14628842af77f412e20060eb178ba4f3e850))

## [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)


### Bug Fixes

* Add Column IDs ([e42e4de](https://github.com/dastron/pocketbase-zod-schema/commit/e42e4def0f756afbf6efcf999ca59d079e9c3e82))
* **parser:** support addAt and field updates by ID ([9d38759](https://github.com/dastron/pocketbase-zod-schema/commit/9d387597d3082c2409cdfb9d723a30c0fa63fc08))
* support fields.addAt and generic Field in migration parser ([dfa780e](https://github.com/dastron/pocketbase-zod-schema/commit/dfa780e4daec43a7bae67dfb03fae6f5e3817813))


### Performance Improvements

* optimize toPascalCase regex compilation ([e9b1679](https://github.com/dastron/pocketbase-zod-schema/commit/e9b1679af1033fdfa54332fb4dca6c596f0cdda8))
* Pre-compile regexes and fix escaping ([de78ce1](https://github.com/dastron/pocketbase-zod-schema/commit/de78ce14b495b8dfb34bf0da4d153ea53bc15cf0))

## [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)


### Features

* sort migration creation by relation dependencies ([40a461a](https://github.com/dastron/pocketbase-zod-schema/commit/40a461a9269a167c41f03b53db9ef324f4e266ee))


### Bug Fixes

* refactor migration to be modular ([ae101dc](https://github.com/dastron/pocketbase-zod-schema/commit/ae101dca161bfa378d341f73522cf3d29b114417))

## [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)


### Bug Fixes

* create server export ([fda62fb](https://github.com/dastron/pocketbase-zod-schema/commit/fda62fb7fe359901e346de56247e37294f405f1f))

## [0.4.1](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.4.0...pocketbase-zod-schema-v0.4.1) (2026-01-19)


### Features

* enhance migration generation with collection IDs and rename detection ([074fe14](https://github.com/dastron/pocketbase-zod-schema/commit/074fe1409148c0ea33656e50c5c198bb7d57a853))


### Bug Fixes

* remove typegen unused dep ([86401ef](https://github.com/dastron/pocketbase-zod-schema/commit/86401ef3d7fb8d29f5805099d9b442e7cf22120f))

## [0.4.0](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.3.9...pocketbase-zod-schema-v0.4.0) (2026-01-19)


### Features

* add strongly typed expand support and type generation CLI ([2ca3f39](https://github.com/dastron/pocketbase-zod-schema/commit/2ca3f39d0af6bcf92f212ed64bab20e368c1297d))
* add strongly typed expand support and type generation CLI ([f8a1b4b](https://github.com/dastron/pocketbase-zod-schema/commit/f8a1b4bfbe3da3fc5b98977b53bc211fb3d44f0d))

## [0.3.9](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.3.8...pocketbase-zod-schema-v0.3.9) (2026-01-19)


### Bug Fixes

* recursive unwrap of zod types for correct field type mapping ([212c2d1](https://github.com/dastron/pocketbase-zod-schema/commit/212c2d189ae27b57146075dc4481f794538c7a53))
* update @vitest/coverage-v8 version to match vitest ([f4d0fa6](https://github.com/dastron/pocketbase-zod-schema/commit/f4d0fa6060319742042e250bb7078f34deb1f788))

## [0.3.8](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.3.7...pocketbase-zod-schema-v0.3.8) (2026-01-15)


### Bug Fixes

* remove peer dep ([a5b85f6](https://github.com/dastron/pocketbase-zod-schema/commit/a5b85f65b2acd6e04f93a600e812204066ed5d2e))

## [0.3.7](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.3.6...pocketbase-zod-schema-v0.3.7) (2026-01-15)


### Bug Fixes

* bump deps ([4c36d1c](https://github.com/dastron/pocketbase-zod-schema/commit/4c36d1c0fbe9013ef9fac482c196adbd3878a957))

## [0.3.6](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.3.5...pocketbase-zod-schema-v0.3.6) (2026-01-14)


### Bug Fixes

* trigger release ([f69272a](https://github.com/dastron/pocketbase-zod-schema/commit/f69272a56596583217de5c2e2626399fcd2f8143))

## [0.3.5](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.3.4...pocketbase-zod-schema-v0.3.5) (2026-01-12)


### Bug Fixes

* failing migrations ([019455a](https://github.com/dastron/pocketbase-zod-schema/commit/019455a2d908cf018859525f4bbff622ada622c4))

## [0.3.4](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.3.3...pocketbase-zod-schema-v0.3.4) (2026-01-12)


### Bug Fixes

* run precommit ([ba29ad8](https://github.com/dastron/pocketbase-zod-schema/commit/ba29ad8fed889e70f07d65bc370283decc6a3fd9))

## [0.3.3](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.3.2...pocketbase-zod-schema-v0.3.3) (2026-01-06)


### Bug Fixes

* looping migrations ([faf75ca](https://github.com/dastron/pocketbase-zod-schema/commit/faf75cada22149b262065f078fdffa8f5a9fdacd))

## [0.3.2](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.3.1...pocketbase-zod-schema-v0.3.2) (2026-01-06)


### Bug Fixes

* update field removal method ([f673f5c](https://github.com/dastron/pocketbase-zod-schema/commit/f673f5c06e972ab4f556666469931c3729614bd4))

## [0.3.1](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.3.0...pocketbase-zod-schema-v0.3.1) (2026-01-05)


### Bug Fixes

* add collection id ([2ee0808](https://github.com/dastron/pocketbase-zod-schema/commit/2ee08082f5a27b76a277e37427ba16011046a1cc))
* Add Collection Id on Create ([c911b94](https://github.com/dastron/pocketbase-zod-schema/commit/c911b946b34317387bce06a70ad14f3718658a11))

## [0.3.0](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.2.5...pocketbase-zod-schema-v0.3.0) (2026-01-04)


### Features

* create multiple migration files ([999a109](https://github.com/dastron/pocketbase-zod-schema/commit/999a109046ce33e0df609d9cacb61dbabd4876e3))
* create multiple migration files ([00fac04](https://github.com/dastron/pocketbase-zod-schema/commit/00fac046d8899466d940a0d974ee1b2edb3fa598))

## [0.2.5](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.2.4...pocketbase-zod-schema-v0.2.5) (2026-01-03)


### Bug Fixes

* Add Field Helpers ([bbe8185](https://github.com/dastron/pocketbase-zod-schema/commit/bbe81850a9fd6eba9c73d08cb0b21c7f944a6673))

## [0.2.4](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.2.3...pocketbase-zod-schema-v0.2.4) (2026-01-03)


### Bug Fixes

* Create E2E test for Package ([8b554df](https://github.com/dastron/pocketbase-zod-schema/commit/8b554dfebb8b360cf4d482e0bb789ddee1541f0e))

## [0.2.3](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.2.2...pocketbase-zod-schema-v0.2.3) (2025-12-20)


### Bug Fixes

* include default system fields (id, updated, created) ([d89ef2e](https://github.com/dastron/pocketbase-zod-schema/commit/d89ef2ec7c3dec52cafce826c12e4e9288d05255))

## [0.2.2](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.2.1...pocketbase-zod-schema-v0.2.2) (2025-12-20)


### Bug Fixes

* update base schema ([98aaaef](https://github.com/dastron/pocketbase-zod-schema/commit/98aaaef365f3de350837c2390adb6870758781a2))

## [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)


### Bug Fixes

* remove analyzer console logs ([f632a96](https://github.com/dastron/pocketbase-zod-schema/commit/f632a96ad1d212587b712498e7061662f675bfc9))

## [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)


### Features

* Add `defineCollection` to wrap schema definition ([8dbcbfa](https://github.com/dastron/pocketbase-zod-schema/commit/8dbcbfae1833509578a63e942847349cceea6cf3))

## [0.1.4](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.1.3...pocketbase-zod-schema-v0.1.4) (2025-12-20)


### Bug Fixes

* Migrations Ignored When Snapshot Exists ([5f9ee2b](https://github.com/dastron/pocketbase-zod-schema/commit/5f9ee2bd0739030fb200302caa40b219f48723d0))

## [0.1.3](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.1.2...pocketbase-zod-schema-v0.1.3) (2025-12-19)


### Bug Fixes

* Add Relationship Field ([7cc8ff4](https://github.com/dastron/pocketbase-zod-schema/commit/7cc8ff4264219014feeb6ca0a8d8a411dca02eb2))
* Repair Initial State and Generated Files ([4cd5c62](https://github.com/dastron/pocketbase-zod-schema/commit/4cd5c62ed995f3150ec7eacd39ddeaf1958b2f07))

## [0.1.2](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.1.1...pocketbase-zod-schema-v0.1.2) (2025-12-19)


### Bug Fixes

* Update Readme ([b1194fe](https://github.com/dastron/pocketbase-zod-schema/commit/b1194fe518b0c124730071e8f91c7aa4111ab8d2))
* Update README ([526f378](https://github.com/dastron/pocketbase-zod-schema/commit/526f37843ec4cdba0ddae06bf0156447671c1641))

## [0.1.1](https://github.com/dastron/pocketbase-zod-schema/compare/pocketbase-zod-schema-v0.1.0...pocketbase-zod-schema-v0.1.1) (2025-12-19)


### Bug Fixes

* broken tests ([059ae92](https://github.com/dastron/pocketbase-zod-schema/commit/059ae92415c0705fa3c4372a27de98de047d150d))
* github actions ([2e29d48](https://github.com/dastron/pocketbase-zod-schema/commit/2e29d4894f4ecb70acf0c2a613268df461c64acd))
* Github Actions ([b0b6a54](https://github.com/dastron/pocketbase-zod-schema/commit/b0b6a54f9cae5e4fb6c573e5bddd9baba682b333))
