Conversation
CodeDredd
marked this pull request as ready for review
July 20, 2026 17:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
👀 Highlights
2.0.0is finally here! 🎉 This release modernizes the whole stack: standard ECMAScript decorators, pinia 3 & 4, Nuxt 4, Node 22 — plus a bunch of long requested query features. If you are upgrading from 1.x, read the migration guide.⚡ Standard ECMAScript decorators
The decorators are now standard TC39 decorators — no more
experimentalDecoratorsflag, TypeScript >= 5.2 required. Fields are declared with!instead ofdeclare:class User extends Model { static entity = 'users' - @Uid() declare id: string - @Str('') declare name: string + @Uid() id!: string + @Str('') name!: string }A codemod migrates your models automatically. Bonus: decorated fields are now registered through decorator metadata, which is inherited along the class hierarchy — derived STI models finally see the decorated fields of their base classes.
🧰 New query & repository features
fresh()now fires thesaving/creatingandsaved/createdlifecycle hooks (opt out with{ raw: true }), single table inheritance resolves nested discriminators (Document -> File -> Video), and the axios plugin gotpersistBy: 'fresh'to make the API response the single source of truth.🏗️ Modern stack
>= 3), vue properly declared as peer dependency@pinia-orm/nuxtincl. automatic dependency optimization (no more "new dependencies optimized" dev server reloads)🐛 Long standing bugs fixed
baseURL,dataKey) applies from the first repository useis not a numberwarningsposts?: Post[])WeakRefis unavailable (Cloudflare Workers)📚 Docs
New migration guide, a cookbook with Vue Query & axios recipes, and a version switcher to jump between the 1.x and 2.x documentation.
👉 Changelog
compare changes
🚀 Enhancements
🩹 Fixes
hasManyThroughdoesn't work correctly with mulitple model instances (16950b0)📖 Documentation
🏡 Chore
🤖 CI
❤️ Contributors