包详细信息

@vuex-orm/core

vuex-orm50.2kMIT0.36.4

The Vuex plugin to enable Object-Relational Mapping access to the Vuex Store.

vue, vuex, vuex-plugin, vuex-orm

自述文件

Vuex ORM

Vuex ORM

Travis CI codecov npm JavaScript Style Guide License


:fire: HEADS UP! Currently, Vuex ORM Next project is on going, and we are hoping it is going to be the foundation of the version 1.0.0 release. We're not planning to add features to current v0.36.3 due to focusing more on Vuex ORM Next development. If you're new to Vuex ORM, please try out Vuex ORM Next.


Vuex ORM is a plugin for Vuex to enable Object-Relational Mapping access to the Vuex Store. Vuex ORM lets you create "normalized" data schema within Vuex Store with relationships such as "Has One" and "Belongs To Many" like any other usual ORM library. It also provides fluent API to get, search and update Store state.

Vuex ORM is heavily inspired by Redux recipe of "Normalizing State Shape" and "Updating Normalized Data". Learn more about the concept and motivation of Vuex ORM at What is Vuex ORM?.

Sponsors

Vuex ORM is sponsored by awesome folks. Big love to all of them from whole Vuex ORM community :two_hearts:

Super Love Sponsors

Peter Tóth Mario Kolli Cannikan Andy Koch Dylan Copeland

Big Love Sponsors

geraldbiggs Cue Kazuya Kawaguchi jShaf ibrainventures

A Love Sponsors

George Chaduneli bpuig John mean-cj Jeffrey Soong

Documentation

You can check out the full documentation for Vuex ORM at https://vuex-orm.org.

Questions & Discussions

Join us on our Slack Channel for any questions and discussions.

Although there is the Slack Channel, do not hesitate to open an issue for any question you might have. We're always more than happy to hear any feedback, and we don't care what kind of form they are.

Examples

You can find example applications built using Vuex ORM at;

Plugins

Vuex ORM can be extended via plugins to add additional features. Here is a list of available plugins.

Also, you can find a list of awesome things related to Vuex ORM at Awesome Vuex ORM.

Contribution

We are excited that you are interested in contributing to Vuex ORM! Anything from raising an issue, submitting an idea of a new feature, or making a pull request is welcome! Before submitting your contribution though, please make sure to take a moment and read through the following guidelines.

Pull Request Guidelines

When submitting a new pull request, please make sure to follow these guidelines:

  • For feature requests: Checkout a topic branch from dev branch, and merge back against dev branch.
  • For bug fixes: Checkout a topic branch from master branch, and merge back against master branch.

These rules also apply to the documentation. If you're submitting documentation about a new feature that isn't released yet, you must checkout the dev branch, but for non-functional updates, such as fixing a typo, you may checkout and commit to the master branch.

Scripts

There are several scripts to help with development.

$ yarn build

Compile files and generate bundles in dist directory.

$ yarn lint

Lint files using a rule of Standard JS.

$ yarn test

Run the test using Jest.

$ yarn test:watch

Run the test in watch mode.

$ yarn test:perf

Run the performance test.

$ yarn coverage

Generate test coverage in coverage directory.

$ yarn docs

Build and boot documentation server with VuePress.

License

The Vuex ORM is open-sourced software licensed under the MIT License.

更新日志

0.36.4 (2021-05-07)

Bug Fixes

  • database: improve performance with entity lookup (#718) (8b5f104)
  • withAll should observe constraints (f3fdf02)

0.36.3 (2020-03-12)

Bug Fixes

  • 455 $update function not working with a composite primary key.

  • 596 Fix persist methods failing to create an array of records in the Nuxt server-side environment.

Improvements

  • 590 Add support for composite primary keys in whereId and whereIdIn clause.

0.36.2 (2020-03-08)

Bug Fixes

  • findIn should respect relations just as find does. (57b8ed0)
  • Query: findIn should resolve relations like it's counterpart find. (11b0994)
  • findIn should respect relations just as find does. (0642bb5)
  • hasManyBy orderBy constraint (4306839)
  • lint (44f23b9)
  • deps: breaking changes in Normalizr 3.5 (3c64272), closes #553 #516 #564

0.36.1 (2020-03-04)

0.36.0 (2020-03-03)

Bug Fixes

Features

  • plugin: expose database to plugin method (#557) (cb54710)
  • insert data into pivot models for belongs to many relationships (b2d2729)
  • insert pivot data into many to many relations default key pivot (d79f42f)
  • retrieve many to many relations with pivot data (bf13add)

0.35.2 (2020-02-01)

0.35.1 (2020-01-28)

0.35.0 (2020-01-27)

Bug Fixes

  • Has Many By wrong words (4f5db04)
  • pivot table composite key can be in any order (6b0fe34)
  • remove index id from toJson method result (772d4a1)

Features

  • add context based model access feature (5a56866)

Reverts

  • Revert "refactor: move schemas interface declaration to database" (bcfc984)

0.34.1 (2019-11-26)

0.34.0 (2019-11-25)

Reverts

  • Revert "Vuex orm build" (e322b23)

0.33.0 (2019-10-30)

0.32.5 (2019-10-21)

0.32.4 (2019-10-08)

Bug Fixes

0.32.3 (2019-10-02)

0.32.2 (2019-09-02)

0.32.1 (2019-07-23)

0.32.0 (2019-07-10)

0.31.13 (2019-07-08)

Bug Fixes

  • i made null not included in addEagerConstraintForRelated.query.whereFk.getKeys (9538461)

0.31.12 (2019-05-23)

0.31.11 (2019-05-14)

0.31.10 (2019-04-23)

Bug Fixes

  • create nested data with composite key (ec02683)

0.31.9 (2019-04-16)

0.31.8 (2019-04-08)

Bug Fixes

  • Object.assign is not defined in IE11 (6f0b430)

0.31.7 (2019-03-26)

Bug Fixes

  • lost pivot record with field data (76815a5)

0.31.6 (2019-02-25)

Bug Fixes

  • morphMany is return [] if nothing references record (6610e60)
  • resolve reference by localKey (baf97d9)

0.31.5 (2019-02-19)

Bug Fixes

  • belongsToMany is return [] if nothing references records (e30347d)
  • retrieving relation by empty key (4a75fa0)

Features

  • add beforeRelations & afterRelations hooks (fb1625e)

0.31.4 (2019-02-12)

Bug Fixes

  • duplicate insert pivot record if call insertOrUpdate twice (40246e4)

0.31.3 (2019-02-03)

0.31.2 (2018-12-25)

0.31.1 (2018-12-04)

0.31.0 (2018-12-03)

0.30.0 (2018-11-08)

Bug Fixes

  • change judgment logic of related property (de01042)
  • Change the object to be returned to the updated object (7a3bf25)
  • not save relation (6c41de4)
  • return fill insertOrUpdate data (a98d876)

Features

  • save method to model class (6c8e68d)

0.29.0 (2018-10-30)

Reverts

0.28.0 (2018-10-26)

0.27.0 (2018-10-11)

0.26.3 (2018-10-04)

0.26.2 (2018-09-25)

Bug Fixes

  • change path solution to multiple environments (ce7b87a)

Features

  • install cross-env to support multiple environments (7c72c2b)

0.26.1 (2018-08-22)

0.26.0 (2018-08-20)

0.25.7 (2018-08-14)

Bug Fixes

  • pivot table set primary key id if ignore createPivotRecord (184d279)

0.25.6 (2018-07-18)

0.25.5 (2018-07-11)

0.25.4 (2018-06-30)

0.25.3 (2018-06-26)

0.25.2 (2018-06-21)

0.25.1 (2018-05-21)

0.25.0 (2018-04-30)

0.24.5 (2018-04-24)

0.24.4 (2018-04-16)

0.24.3 (2018-04-11)

0.24.2 (2018-04-05)

0.24.1 (2018-04-03)

0.24.0 (2018-04-03)

Bug Fixes

  • HasManyThrough Relation only last record (cdf3765)

0.23.4 (2018-03-25)

0.23.3 (2018-03-21)

0.23.2 (2018-03-17)

0.23.1 (2018-03-16)

0.23.0 (2018-03-13)

Bug Fixes

  • Return empty model object none related (02fb245)

0.22.0 (2018-03-04)

0.21.1 (2018-03-01)

0.21.0 (2018-02-28)

0.20.2 (2018-02-24)

0.20.1 (2018-02-23)

0.20.0 (2018-02-19)

0.19.0 (2018-02-14)

0.18.0 (2018-02-09)

0.17.0 (2018-02-04)

0.16.3 (2018-01-31)

0.16.2 (2018-01-26)

0.16.1 (2018-01-23)

0.16.0 (2018-01-23)

0.15.0 (2018-01-14)

0.14.2 (2018-01-04)

0.14.1 (2018-01-03)

0.14.0 (2018-01-03)

0.13.4 (2017-12-26)

0.13.3 (2017-12-20)

0.13.2 (2017-12-19)

0.13.1 (2017-12-07)

0.13.0 (2017-12-01)

0.12.0 (2017-12-01)

0.11.5 (2017-11-23)

0.11.4 (2017-11-18)

0.11.3 (2017-11-17)

0.11.2 (2017-11-08)

0.11.1 (2017-11-06)

0.11.0 (2017-10-29)

0.8.1 (2017-10-21)

0.8.0 (2017-10-21)

0.7.2 (2017-10-21)

0.7.1 (2017-10-18)

0.7.0 (2017-10-17)

0.6.0 (2017-10-17)

0.5.0 (2017-10-17)

0.4.0 (2017-10-16)

0.3.1 (2017-09-29)

0.3.0 (2017-09-26)

0.2.2 (2017-09-20)

0.2.1 (2017-09-02)

0.2.0 (2017-08-26)

0.1.1 (2017-06-16)

0.1.0 (2017-06-16)