Releases: CodeDredd/pinia-orm
v2.0.0-alpha.2
👉 Changelog
🩹 Fixes
- pinia-orm: Peerdependencies are causing issues resolves #2000 (#2000)
- axios: Peerdependencies are causing issues resolves #1997 (#1997)
- nuxt: Wrong static import causing installation problems (0a6c91f)
- pinia-orm: Boolean Type not casting truthy values (#1994)
🏡 Chore
- Use v2 tags for changelog gen (cb0f4c0)
- Remove lerna (ac17289)
- Update eslint (be8604a)
- Remove nuxt2comp playground (aaaa426)
❤️ Contributors
- Gregor Becker (@CodeDredd)
v2.0.0-alpha.1
Pinia ORM 2
Starting with v2 of pinia-orm. There a lot of breaking changes with not much impact to most of you because it's mostly the same breaking changes as with pinia v3.
👉 Changelog
🚀 Enhancements
- pinia-orm:
⚠️ Moving to Pinia v3 (#1981)
💅 Refactors
- nuxt: Make sure to use correct pinia/nuxt version (#1986)
- pinia-orm: Remove nanoid async in test setup (0485786)
🏡 Chore
- Update vitest (4bc658f)
- Update changelog gen script (791eaa3)
- Fix changelog script (4863481)
- Fix changelog script (8e1d2d4)
- Add correct author fetching in changelog (3ec4e6e)
- Update bump edge script (8ca41be)
⚠️ Remove vue2 support (5fa7bf1)- nuxt:
⚠️ Remove nuxt2 support (c52f99a) - pinia-orm:
⚠️ RemovemapReposcomposable (a613861) - pinia-orm:
⚠️ Update to nanoid v5 and removeAsyncCastresolves #1656 (#1656)
✅ Tests
- pinia-orm: Remove nanoid async test (a86dc5d)
🤖 CI
- Corepack is causing an error actions/setup-node#1222 (45f5631)
⚠️ Breaking Changes
- pinia-orm:
⚠️ Moving to Pinia v3 (#1981) ⚠️ Remove vue2 support (5fa7bf1)- nuxt:
⚠️ Remove nuxt2 support (c52f99a) - pinia-orm:
⚠️ RemovemapReposcomposable (a613861) - pinia-orm:
⚠️ Update to nanoid v5 and removeAsyncCastresolves #1656 (#1656)
❤️ Contributors
- Gregor Becker (@CodeDredd)
v1.10.2
👉 Changelog
🩹 Fixes
- nuxt: Cannot install @pinia-orm/nuxt using NPM (#1985)
🏡 Chore
- Update vitest (4bc658f)
🤖 CI
- Corepack is causing an error actions/setup-node#1222 (45f5631)
❤️ Contributors
- Gregor Becker (@CodeDredd)
v1.10.1
👉 Changelog
🩹 Fixes
- pinia-orm: Failed to resolve import "vue-demi" (#1965)
🏡 Chore
- Fix release action failing cause of nuxt (63bdd2f)
- Update ci to node 20 (7a65169)
- nuxt: Fix nuxt ci build with "import.meta" (31cb11d)
- nuxt: Move to nuxt-module-build (30eb1f0)
- nuxt: Change build command (d21e0c5)
- Update playground to newest pinia-orm version (8c7389d)
❤️ Contributors
- Gregor Becker (@CodeDredd)
v1.10.0
👀 Highlights
Now pinia-orm has finally all functions and relations from vuex-orm/core 🎈
Also i added the support for pinia setup store syntax. 💯 So now you are getting even more flexibility.
💊 Plugins fixed
I know the plugin system was still buggy. Either the types were wrong or the configs weren't working. It's finally doing well.
But the plugin regestration changed. Since it haven't worked well yet it should be not a big breaking change.
You now need to register plugins that way:
- const piniaOrm = createORM()
- piniaOrm().use(createPiniaOrmAxios({
- axios,
- }))
+ const piniaOrm = createORM({
+ plugins: [
+ createPiniaOrmAxios({
+ axios,
+ }),
+ ],
+ })🚀 Pina Setup Store Option
You can now also use the pina setup syntax in pinia-orm. You only need to change your piniaOrm options
createPiniaORM({ pinia: { storeType: 'setupStore' } })class User extends Model {
static entity = 'users'
static piniaOptions = {
newData: ref('1'),
}
static piniaExtend = {
persist: true,
}
@Attr(0) declare id: number
@Str('') declare name: string
@Str('') declare username: string
}
console.log(userRepo.piniaStore().newData) // 1👉 Changelog
🚀 Enhancements
- pinia-orm: Add
morphedByManyas relation (#1897) - pinia-orm: Add option for custom pivotKey for relations with pivot (#1907)
- pinia-orm: Pinia setup store syntax support (#1905)
🩹 Fixes
- pinia-orm: Change plugin registration to be still compatible with pinia types (#1902)
- axios: Axios instance is not found (29a91b0)
- pinia-orm: Data was wrong for
belongsTo&hasOnewith composite key (#1904) - pinia-orm: BelongsToMany relation returns a toplevel 'pivot' reation (#1909)
- pinia-orm:
pivothelper fields are not deleted or removed. (#1911) - pinia-orm: Model original data is overwritten by different namspace models with same ID (#1954)
- pinia-orm: UID Decorator: Setting Custom Alphabet Results in "undefined" Instead of Characters in UIDs (#1956)
- pinia-orm: Ordering sometimes wrong with Query.orderBy and UseCollect.sortBy (#1957)
💅 Refactors
- pinia-orm: Replace
relation.getKeywithrelation.getResolvedKey(ad91ce6)
📖 Documentation
- pinia-orm: MorphToMany example Taggable is missing primaryKey (#1959)
🏡 Chore
- Update sponsors (2eed564)
- normalizr: Add missing types export for bundler usage (220b093)
- pinia-orm: Move to moduleResolution
bundler(#1906) - pinia-orm: Update
WeakCachetypes for newest typescript version (dc9d711) - Add .eslintcache to gitignore (3d6c378)
✅ Tests
- axios: Correct axios is not set test (93359fd)
❤️ Contributors
- Gregor Becker (@CodeDredd)
- petrmifek (@petrmifek)
v1.9.2
Again some bug fixes from last release
👉 Changelog
🩹 Fixes
- pinia-orm: Two same
belongsToManywith inverse keys on same model are causing wrong saved data (#1860) - pinia-orm:
.findreturning typeanywhen usinguseRepo(#1865) - pinia-orm: Avoid attr default value modification by reference (#1869)
- pinia-orm: Serialization was wrong with custom cast with custom serialization (#1866)
- pinia-orm: Export missing composable
useSortBy(#1882) - pinia-orm: Namespace + BelongsToMany throws error on query (#1883)
💅 Refactors
- pinia-orm: Returning type of find is still any (#1876)
❤️ Contributors
- Gregor Becker (@CodeDredd)
- B. Jonson (@who-jonson)
- Graphmaxer (@Graphmaxer)
v1.9.1
Small bugfixes from 1.9.0 release
👉 Changelog
🩹 Fixes
- pinia-orm: Typings of
useRepowith Repository are broken (#1848) - pinia-orm: Mutators/Casts on related models with belongsToMany were wrong (#1851)
🏡 Chore
- Make release executable (3250493)
- Correct release script (2d9db02)
- Simplify PR template & update existing ones (fab5a76)
🤖 CI
❤️ Contributors
- Gregor Becker (@CodeDredd)
v1.9.0
👀 Highlights
This is possibly the second last minor release before pinia-orm v2, and so many bug fixes and some new nice features are inside! ✨
If you wonder why i skipped v1.8.0...well that happend because i now implemented an auto changelog gen and i didn't wanted to change my git history because of a simple mistake. 😄
💪 Typing improvements
Big thanks @dev1437 for his prework
First of all some type fixes were made so you shouldn't get any errors anymore. Along of this there some nice type support features now
Models throw an error if you try to accesss an not existing property
Autocomplete for with()
Autocomplete for where()
🚀 Edge Channel
There is now a edge channel so you don't have to wait to try out new merged commits. The edge builds are also made for the other packages axios, normalizr & nuxt
Opting into the edge channel
Update pinia-orm dependency inside package.json:
{
"devDependencies": {
- "pinia-orm": "^1.0.0"
+ "pinia-orm": "npm:pinia-orm-edge@latest"
}
}Remove lockfile (package-lock.json, yarn.lock, or pnpm-lock.yaml) and reinstall dependencies.
Opting out from the edge channel
Update pinia-orm dependency inside package.json:
{
"devDependencies": {
- "pinia-orm": "npm:pinia-orm-edge@latest"
+ "pinia-orm": "^1.0.0"
}
}Remove lockfile (package-lock.json, yarn.lock, or pnpm-lock.yaml) and reinstall dependencies.
👉 Changelog
[email protected]
🚀 Enhancements
- pinia-orm: Change orderBy execution (#1809)
- pinia-orm: Improve DateCast & orderBy for Dates (#1825)
- pinia-orm: Add
where(Not)Nulland(or)where(Not)In(#1831) - pinia-orm:: Attribute autocompletion in where and with (#816)
- pinia-orm: Fallback added for not existing type prop in STI Models (#1835)
🩹 Fixes
- pinia-orm: Export for "dist" is broken (a3c734e)
- pinia-orm: Update vue 2 reactivity (#1773)
- pinia-orm: Fix eager load relations with complex foreign/local keys (#1798)
- nuxt: Import nuxt composables from #imports (#1729)
- pinia-orm: Updates were wrong for hydrated cache for casts & mutators (#1823)
- pinia-orm: Get mutators were wrong for updated models (#1824)
- pinia-orm:
saving,updatinghooks second param had wrong values (#1826) - pinia-orm: Get mutator was called twice (#1827)
- pinia-orm: Mutators still don't apply on update consistently (#1828)
- pinia-orm: Relations don't use namespace to make/retrieve related model (#1834)
- pinia-orm:
$isDirty()in hooks on model had wrong state (4ecf93f)
💅 Refactors
- pinia-orm:
createORM()had wrong type (#1830)
📖 Documentation
- pinia-orm: Fix typo on axios setup guide (#1797)
- Add edge channel to documentation (0696a1a)
- Axios setup example was wrong (8cb2648)
- axios: Update docs and type descriptions for
delete(#1838)
🏡 Chore
- Add edge release (6a0d649)
- Add changelogen config (401a35f)
- Add bump and start 1.8.0 (ae3b7f2)
- Trigger edge release only on packages changes (a8f07ca)
- Update linting so it works again (11ee966)
- axios: Build was failing cause of importing pinia (becc438)
- axios: Linting (fc105f0)
- Add changelog auto generation (67517dd)
- Small fix changelog generation (89ad5c2)
- Wrong rep owner for changelog gen (35880c8)
- Change changelog gen condition (e0643e7)
- Broken workflow (b8cabe3)
- Add getContributors to utils (be51347)
- Clean up playgrounds (b4b0a4f)
- Renovate should also include pin and digest (45f87aa)
- Post more info for changelog generation for debugging (6ff54cd)
✅ Tests
- axios: Test were failing because pinia instance was not set (9c8f86d)
- pinia-orm: Add belongsToMany self relation test (#1807)
🤖 CI
- Fix workflow errors for cache (6b61206)
- Fix cache issue in workflows (b812020)
- Wrong versions (a7b864a)
- Change branch master to main (ac1cc11)
- Wrong tag release branch (dba5cda)
- Change node version (3728fc5)
- Add checkout (173a71c)
- Fix build step in release ci (4a2ee8a)
- Fix broken workflow (498b532)
- Fix broken workflow (934a436)
- Fix broken workflow (6d02a54)
- Update permission (c1cf3e6)
- Remove examples (db59d22)
- Add changelogen (c95f4c8)
- Update versions used for workflow (bbb8bab)
- Fix changelog version check (4b0b95a)
- Fix changeloggen currentPR not found (2ee4656)
- Remove currenPR console log (3da6251)
- Add release workflow (744fcaf)
- Update changelog gen script to get the right PR (8ac3119)
- Script update changelog is failing (5e6a2f0)
- Ensure correct PR is found in changelog gen (de5a38e)
❤️ Contributors
- Gregor Becker (@CodeDredd)
- dev1437 (@dev1437)
- Daniel Roe (@danielroe)
- Christopher Reeve (@hi-reeve)
- Max Kut (@max-kut)
- Graphmaxer (@Graphmaxer)
[email protected]
v1.7.2
Hotfix release for v1.7.1 which broke imports for old "dist"
🩹 Fixes
- pinia-orm: Proper exports for collection and uid helpers (a3c734e)
❤️ Contributors
- Gregor Becker ([email protected])
[email protected]
v1.7.1
Hotfix release
🩹 Fixes
- pinia-orm: Proper exports for collection and uid helpers (#1681)
❤️ Contributors
- Sergey Danilchenko ([email protected])


