Releases

v1.9.1

Description

Small bugfixes from 1.9.0 release

๐Ÿ‘‰ Changelog

compare changes

๐Ÿฉน Fixes

  • pinia-orm: Typings of useRepo with 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

  • Use correct auth token for release (040e51b)
  • Use correct auth token for release (37e7354)

โค๏ธ Contributors

v1.9.0

Description

๐Ÿ‘€ 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

image

Autocomplete for with()

image

Autocomplete for where()

image

๐Ÿš€ 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:

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:

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

pinia-orm@1.7.1...v1.9.0

compare changes

๐Ÿš€ Enhancements

  • pinia-orm: Change orderBy execution (#1809)
  • pinia-orm: Improve DateCast & orderBy for Dates (#1825)
  • pinia-orm: Add where(Not)Null and (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, updating hooks 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

pinia-orm@1.7.2

Description

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

pinia-orm@1.7.1

Description

v1.7.1

Hotfix release

๐Ÿฉน Fixes

  • pinia-orm: Proper exports for collection and uid helpers (#1681)

โค๏ธ Contributors

pinia-orm@1.7.0

Description

v1.7.0 - ๐Ÿฆ

This update is a huge one. I think the biggest change people always asked about is the axios plugin. It's fiinally there. But most importantly now you are able to extend pinia-orm like you want with the plugin system.

๐Ÿš€ Enhancements

  • pinia-orm: Add options for uid, nanoid/uid and uuid/uid (#1510)
  • pinia-orm: Allow composite key lookup (#1206)
  • pinia-orm: Add namespace option for the store (#1618)
  • pina-orm: Add plugin system (#1603)
  • axios: Create new plugin package for axios (#1603)
  • pinia-orm: Add setModel for Repository (d0cd5e6)
  • pinia-orm: Throw an error when trying to save a list into a 1:1 relationship (#1670)
  • pinia-orm: Add HMR support (dcbc02e)
  • pinia-orm: Composite primary key can now be used with destroy and onDelete (#1671)

๐Ÿฉน Fixes

  • pinia-orm: Wrong behaviour of $getOriginal (#1576)
  • pinia-orm: Repository pinaStore instance was wrong on STI models (#1618)
  • pinia-orm: Uncaught TypeError: parent.$fields()[key] is undefied when inserting nested data with polymorphic relationships (#1648)

๐Ÿ”ฅ Performance

  • pinia-orm: Improve lookup performance for huge datasets (#1206)
  • pinia-orm: Improve performance by mutating the state (#1604)

๐Ÿ’… Refactors

  • pinia-orm: useRepo was having the wrong type for repositories (be3c4f4)
  • pinia-orm: Add correct operation for insert (25090ec)
  • pinia-orm: Make nanoid async uuid deprecated (4d1a21e)

๐Ÿ“– Documentation

  • Typo with vuex-orm instead of pinia-orm (#1577)
  • Removed duplicate Relationsihps > Getting Started > Loading Nested Relationship (#1369)
  • Couple of typos (#1183)
  • Typo in docs examples: form -> from (#1590)
  • Broken link or missing reference (#1596)
  • Fixed insert incorrect example (#1628)
  • Update dependencies & fix small display errors (#1627)
  • Adapt STI docs to be more correctly (7c5a23e)

๐Ÿก Chore

  • Update lint rules & packages (be0ca45)
  • Remove lerna for building and just use pnpm (#1618)
  • Change renovate cycle (5284a7b)
  • Remove agolia workflow (43f0dcc)
  • Issue template improvement (#1636)

โค๏ธ Contributors

pinia-orm@1.6.7

Description

v1.6.7

๐Ÿฉน Fixes

  • pinia-orm: Build broken cause of missing files (ecaed0f)

โค๏ธ Contributors

  • Gregor Becker

pinia-orm@1.6.6

Description

v1.6.6

๐Ÿฉน Fixes

  • nuxt: Nuxt 3 throws error on build & dev (#1136)
  • nuxt: Types wrong exported (#1136)

โค๏ธ Contributors

  • Gregor Becker

pinia-orm@1.6.5

Description

v1.6.5

๐Ÿฉน Fixes

  • pinia-orm: Improve Date serialization in Model class (#1121)
  • pinia-orm: $refresh() is not working (#1125)

โค๏ธ Contributors

  • Gregor Becker
  • sergerdn

pinia-orm@1.6.4

Description

v1.6.4

๐Ÿฉน Fixes

  • pinia-orm: DateCast still causing unexpected result (519681c)

โค๏ธ Contributors

  • Gregor Becker

pinia-orm@1.6.3

Description

v1.6.3

๐Ÿฉน Fixes

  • pinia-orm: DateCast with null causes type error with empty object (2caa97a)

โค๏ธ Contributors

  • Gregor Becker

pinia-orm@1.6.2

Description

v1.6.2

๐Ÿฉน Fixes

  • pinia-orm: Shared hydration cache was not working correctly (#1113)
  • pinia-orm: Hooks are not triggering casts(#1113)
  • pinia-orm: new() is not cached in the hydration cache (#1113)
  • pinia-orm: save() results weren't cached in the hydration cache (#1113)

๐Ÿ’… Refactors

  • pinia-orm: use model $getKey for id creation instead of custom logic (#1113)

โค๏ธ Contributors

  • Gregor Becker

pinia-orm@1.6.1

Description

v1.6.1

๐Ÿš€ Enhancements

  • pinia-orm: Add the option for new() not to persist the model (#1107)

๐Ÿ“– Documentation

  • Add target blank to link
  • Fix query examples (d59ad1d)

โค๏ธ Contributors

  • Gregor Becker

pinia-orm@1.6.0

Description

v1.6.0 - ๐Ÿฆ•

๐Ÿš€ Enhancements

  • pinia-orm: Add morphToMany relation (#1060)
  • pinia-orm: Pinia actions triggering repo actions (#1066)
  • nuxt: Add nuxt devtools support (#1100)
  • nuxt: Add autoimports with default useRepo (#1100)

๐Ÿฉน Fixes

  • pinia-orm: Types in hooks were conflicting (#1074)
  • nuxt: Add missing config options (#1100)

๐Ÿ”ฅ Performance

  • pinia-orm: Shared hydration cache (#1066)

๐Ÿ’… Refactors

  • nuxt: Use nuxt kit resolver instead of node resolver (#1100)

๐Ÿ“– Documentation

  • Fixed syntax of 'Global Lifecycle Hooks' section (#1057)
  • Changed :::tip for ::alert{type='info'} (#1053)
  • Remove not correct await (#1087)
  • Add "what is pinia orm" (4ca4b8e)

๐Ÿก Chore

  • pinia-orm: Resolve conflict with eslint config upgrade (#1092)
  • nuxt: Update build configuration (#1100)
  • Add Sponsorkit (#1097)

โค๏ธ Contributors

  • Gregor Becker
  • Carlos Gamez

pinia-orm@1.5.1

Description

v1.5.1

๐Ÿ”ฅ Performance

  • pinia-orm: Improve find speed for huge data (1714d7a)

โค๏ธ Contributors

  • Gregor Becker

pinia-orm@1.5.0

Description

v1.5.0 - ๐Ÿฆ–

๐Ÿš€ Enhancements

  • pinia-orm: Support of composite key for some relations (#885)

๐Ÿฉน Fixes

  • pinia-orm: new doesnt fire creating or created hook (#808)

๐Ÿ”ฅ Performance

  • pinia-orm: Querying models with belongsToMany relation are extremely slow (#876)
  • pinia-orm: Improve caching for hydrated models #889

๐Ÿ“– Documentation

  • Add missing new to api (#808)

๐Ÿก Chore

  • normalizr: Add unpkg & jsdelivr support(c41f89d)

โค๏ธ Contributors

  • Gregor Becker

pinia-orm@1.4.0

Description

v1.4.0 -๐ŸŽ„- Merry Christmas

๐ŸŽ Enhancements

  • pinia-orm: add hasManyThrough relation (#678)
  • pinia-orm: Add the possibility to rollback changed models. Adding $isDirty(), $getOriginal() and $refresh. (#757)

๐Ÿ•ฏ๏ธ Fixes

  • pinis-orm: Update hook not triggered with update method (fb1694f)
  • pinis-orm: @OnDelete on same model attrs leads to undefined error (#754)
  • pinia-orm: Don't delete relations bind with onDelete if hook returns false (3531a06)

๐Ÿคถ Performance

  • pinia-orm: Improve hydrating check (#679)
  • pinia-orm: Remove JSON.stringfy() for comparing objects (300482d)

โ˜ƒ๏ธ Refactors

  • pinia-orm: Improve typescript handling with piniaStore() (a8628c8)

๐ŸŽ… Documentation

  • Add some missing model functions to api (ce54b23)

โค๏ธ Contributors

  • Gregor Becker
  • Santa Clause

pinia-orm@1.3.0

Description

v1.3.0 - ๐Ÿฒ

๐Ÿš€ Enhancements

  • pinia-orm: Add the option to sort case insensitive with sortBy (#636)

๐Ÿฉน Fixes

  • pinia-orm: Query constraints with nested relations in m:m relations broken (#625)

๐Ÿ’… Refactors

  • normalizr: Reduce code used by orm (#641)

๐Ÿ”ฅ Performance

  • pinia-orm: Save hydrated models if not updated (#671)

๐Ÿ“– Documentation

  • Add requirements info for nuxt 2 users (#638)
  • Typo in example of quick-start.md (#652)

โค๏ธ Contributors

  • Gregor Becker
  • yyydevf

pinia-orm@1.2.2

Description

v1.2.2

๐Ÿฉน Fixes

  • pinia-orm: null is casted in DateCast (#565)

๐Ÿ“– Documentation

โœ… Tests

  • pinia-orm: Fix number cast test for notNullable (#564)

โค๏ธ Contributors

  • Gregor Becker
  • Thomas Klaas

pinia-orm@1.2.1

Description

v1.2.1

๐Ÿฉน Fixes

  • pinia-orm: Delete on cascade doesn't work with n:m relations (#562)

๐Ÿ“– Documentation

  • Fix typos + minor tweaks (#558)

๐Ÿ“ฆ Build

  • Trigger only ci in packages directory (59d55c4)

โค๏ธ Contributors

  • Gregor Becker
  • Paolo Dina

pinia-orm@1.2.0

Description

v1.2.0 - ๐Ÿ‰

๐Ÿš€ Enhancements

  • pinia-orm: Add the possibility to delete by cascade (#529)
  • pinia-orm: Enhance whereIn to support Set as values (#537)
  • pinia-orm: Attributes can now accept closures for default value (#544)
  • pinia-orm: Add simple DateCast (#546)

๐Ÿฉน Fixes

  • docs: Docs broken with nuxt3.0.0-rc.13 (#543)
  • pinia-orm: Using childRepo (STI) for saving without type defined (#555)

๐Ÿ’… Refactors

  • pinia-orm: Remove unnecessary fallback since config is always set (#555)

๐Ÿ“– Documentation

  • Fixed some broken links (#529)
  • Added missing delete and destroy methods to api (#529)
  • Added decorator example for STI (#555)
  • Fix broken cards on index (bb99b49)

โœ… Tests

  • pinia-orm: Add a missing test for throwError (#529)

โค๏ธ Contributors

  • Gregor Becker

pinia-orm@1.1.0

Description

v1.1.0 - ๐Ÿฆ

๐Ÿš€ Enhancements

  • pinia-orm: Add record field to saving hooks (#491)

๐Ÿ’… Refactors

  • pinia-orm: Made all relation class properties public so they can be accessed (#491)

๐Ÿ“– Documentation

  • Updated to current docus version & using new nuxt static generate (#473)
  • Wrong chaining example with groupBy (#482)
  • Correct STI example for simple inhertance (09b9dcf)

๐Ÿ“ฆ Build

  • Removed Algolia CI Crawler since pages are crawled by generate now. (82b9cc4)

โœ… Tests

  • pinia-orm: Finish skipped test for error handling (40cf182)

โค๏ธ Contributors

  • Gregor Becker
  • Thomas Klaas

pinia-orm@1.0.4

Description

๐Ÿฉน Fixes

  • pinia-orm: pivot are not correctly loaded (#438)

๐Ÿก Chore

  • nuxt: Updated files to new package versions (#438)

โค๏ธ Contributors

  • Gregor Becker
  • Carsten Ruetz

pinia-orm@1.0.3

Description

๐Ÿฉน Fixes

  • pinia-orm: Multiple belongsToMany relations still wrong saved (#373)

โค๏ธ Contributors

  • Gregor Becker

pinia-orm@1.0.2

Description

๐Ÿฉน Fixes

  • pinia-orm: Multiple belongsTo relationships between 2 entities lead to unintended outcome (#369)

โค๏ธ Contributors

  • Gregor Becker

pinia-orm@1.0.1

Description

๐Ÿฉน Fixes

  • pinia-orm: Fallback for "Buffer is not defined" & fix cache config (#360)

โค๏ธ Contributors

  • Gregor Becker

pinia-orm@1.0.0

Description

v1.0.0 - ๐Ÿ’ฏ

Enjoy a stable and feature rich orm for pinia ! ๐Ÿ

๐Ÿš€ Enhancements

  • pinia-orm: Add an option to make fields hidden (#240)
  • pinia-orm: Add _meta field for models containing metadata (#240)
  • pinia-orm: Add global configuration options (#240)
  • nuxt: Add global configuration options (#240)
  • pinia-orm: Add helper composables for collection (#259)

๐Ÿฉน Fixes

  • pinia-orm: (where)has queries are not working with 1:1 relations (#342)
  • playground: Remove vue-hako since it breaks with new vueuse version (#343)

๐Ÿ’… Refactors

  • pinia-orm: Renamed internally ModelOption field from mutator to operation (#240)

๐Ÿ“– Documentation

  • Add configuration options to api (#266)
  • Add missing icons (#266)
  • Update readme comparison (#266)
  • Collapse side nav items (#266)

๐Ÿ”ฅ Performance

  • pinia-orm: Add optional caching for same get requests (#272)

โœ… Tests

  • pinia-orm: Add missing tests for better coverage (#257)

โค๏ธ Contributors

  • Gregor Becker

pinia-orm@1.0.0-rc.6

Description

Warning There are slight API changes with this release candidate.

๐Ÿš€ Enhancements

  • pinia-orm: Add groupBy method to query (#213)
  • pinia-orm: Added bundles for uid libs nanoid & uuid (#215)
  • pinia-orm: Add the possibility to use useRepo outside of setup() (#228)

๐Ÿฉน Fixes

  • pinia-orm: The set method of casts is not called (#215)
  • pinia-orm: Nuxt 2 has problems with nullish coalescing operator (#228)

๐Ÿ’… Refactors

  • pinia-orm: โš ๏ธ Moved decorators to pinia-orm/dist/decorators (#185)
  • pinia-orm: โš ๏ธ Moved casts to pinia-orm/dist/casts (#215)
  • pinia-orm: โš ๏ธ Removed "string casting" with string, array, number and boolean (#215)
  • pinia-orm: โš ๏ธ Make field per default nullable(#229)

๐Ÿ“– Documentation

  • Add playground (#157)
  • Add missing load to api (#153)
  • Fix small typo (6f26c40)

๐Ÿ”ฅ Performance

๐Ÿก Chore

  • pinia-orm: Update package.json for better file imports (ac4dd70)
  • pinia-orm: Improve typings for piniaOptions, useDataStore, useStoreActions and piniaStore (#204)
  • Switch from lerna to lerna-lite for workspace support
  • nuxt: Dependencies updates
  • pinia-orm: Dependencies updates

๐Ÿ“ฆ Build

  • normalizr: Added own normalizr package (#191 )
  • pinia-orm: move from normalizr to @pinia-orm/normalizr (#192)

โœ… Tests

โค๏ธ Contributors

  • Gregor Becker

v@pinia-orm/nuxt@1.0.18

Description

Please refer to CHANGELOG.md for details.

pinia-orm@1.0.0-rc.5

Description

Warning There are slight API changes with this release candidate.

๐Ÿš€ Enhancements

  • pinia-orm: make in repositories can create now multiple records (#133)
  • pinia-orm: Add retrieved life cycle hook (#145)

๐Ÿฉน Fixes

  • nuxt: Adept changes from @pinia/nuxt (#150)
  • docs: Invalid layout fluid selected in docs

๐Ÿ’… Refactors

  • pinia-orm: โš ๏ธ Change PiniaORM.install() to createORM() (902f4c2)
  • pinia-orm: โš ๏ธ Remove findIn since find does the same (#144)

๐Ÿ“– Documentation

  • Update documentation for nuxt2 (#137)
  • Adding algolia search (#139)

๐Ÿ”ฅ Performance

๐Ÿก Chore

  • Update release script (0b71a7d)
  • Remove default export in indexes and create build config for cjs (#142)

๐Ÿ“ฆ Build

  • Move to unbuild (#142)

โœ… Tests

โค๏ธ Contributors

  • Gregor Becker

Please refer to CHANGELOG.md for details.

pinia-orm@1.0.0-rc.4

Description

Please refer to CHANGELOG.md for details.

pinia-orm@1.0.0-rc.3

Description

Please refer to CHANGELOG.md for details.

v@pinia-orm/nuxt@1.0.17

Description

Please refer to CHANGELOG.md for details.

pinia-orm@1.0.0-rc.2

Description

Please refer to CHANGELOG.md for details.

pinia-orm@1.0.0-rc.1

Description

Please refer to CHANGELOG.md for details.

pinia-orm@1.0.0-alpha.2

Description

Please refer to CHANGELOG.md for details.

v@pinia-orm/nuxt@1.0.16

Description

Please refer to CHANGELOG.md for details.

pinia-orm@1.0.0-alpha.1

Description

Please refer to CHANGELOG.md for details.

pinia-orm@0.14.0

Description

Please refer to CHANGELOG.md for details.

v@pinia-orm/nuxt@1.0.15

Description

Please refer to CHANGELOG.md for details.

pinia-orm@0.13.0

Description

Please refer to CHANGELOG.md for details.

v@pinia-orm/nuxt@1.0.14

Description

Please refer to CHANGELOG.md for details.

pinia-orm@0.12.1

Description

Please refer to CHANGELOG.md for details.

pinia-orm@0.12.0

Description

Please refer to CHANGELOG.md for details.

pinia-orm@0.11.0

Description

Please refer to CHANGELOG.md for details.

v@pinia-orm/nuxt@1.0.13

Description

Please refer to CHANGELOG.md for details.

v@pinia-orm/nuxt@1.0.12

Description

Please refer to CHANGELOG.md for details.

pinia-orm@0.10.0

Description

Please refer to CHANGELOG.md for details.

v@pinia-orm/nuxt@1.0.11

Description

Please refer to CHANGELOG.md for details.

pinia-orm@0.9.3

Description

Please refer to CHANGELOG.md for details.

v@pinia-orm/nuxt@1.0.10

Description

Please refer to CHANGELOG.md for details.

pinia-orm@0.9.2

Description

Please refer to CHANGELOG.md for details.

v@pinia-orm/nuxt@1.0.9

Description

Please refer to CHANGELOG.md for details.

pinia-orm@0.9.1

Description

Please refer to CHANGELOG.md for details.

v@pinia-orm/nuxt@1.0.8

Description

Please refer to CHANGELOG.md for details.

pinia-orm@0.9.0

Description

Please refer to CHANGELOG.md for details.

v@pinia-orm/nuxt@1.0.7

Description

Please refer to CHANGELOG.md for details.

pinia-orm@0.8.4

Description

Please refer to CHANGELOG.md for details.

pinia-orm@0.8.0

Description

First release

v@pinia-orm/nuxt@1.0.5

Description

Please refer to CHANGELOG.md for details.