Socket
Socket
Sign inDemoInstall

redux-orm

Package Overview
Dependencies
7
Maintainers
4
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous134567Next

0.14.0-rc.1

Diff

haveyaseen
published 0.14.0-rc.0 •

haveyaseen
published 0.13.3 •

Changelog

Source

0.13.3

  • Prevent caching selectors if individual records accessed via index have changed. (#255, 02edce9)
  • Also filter by non-PK attributes when user specifies a PK in filter object. (69a87f8)
  • Replace usage of lodash/mapValues by ES8 Object.entries.reduce.
haveyaseen
published 0.13.2 •

Changelog

Source

0.13.2

Optimized full bundles using babel-plugin-lodash and lodash-webpack-plugin:

  • dist/redux-orm.min.js decreased from 67.7 kB to 48.5 kB.
  • Gzipped size decreased from 18.5 kB to 13.1 kB.
haveyaseen
published 0.13.1 •

Changelog

Source

0.13.1

  • Don't filter needlessly after applying foreign key indexes. Prevents applying object-based filters again after already fully satisfying their conditions using indexes. (41ece84)
  • Remove attributes already looked up via index from filter clauses. After applying indexes, if additional filtering needs to occur, strip away the indexed columns from the filter object. (278ff6f)

Removed tests, coverage reports and other unneeded files from NPM package builds. This decreased our NPM package size to around 700 kB.

haveyaseen
published 0.13.0 •

Changelog

Source

0.13.0

  • Automatically index foreign keys. Queries will be fulfilled by using foreign key indexes if possible. Only works for direct FK relationships. For instance, book.authors will be optimized if the Author model has a fk({ to: 'Book', 'relatedName': 'authors' }) field. (#250, b9c1635)

This release should be non-breaking, however it does slightly decrease performance of writes. Many-to-many queries (e.g. child.parents) are also less performant, but in theory it is now possible to optimize them by an order of magnitude (similar to SQL joins).

haveyaseen
published 0.12.4 •

Changelog

Source

0.12.4

  • Fixed a bug with memoization when specifying a custom mapName using Model.options. (0fb2aca)
  • Optimized memoization by not scanning entire tables for equality but relying on the propagated table identity instead. (0fb2aca)
  • Optimized model initialization by using Object.keys() instead of Object.entries(). (e371ac7)
haveyaseen
published 0.12.3 •

Changelog

Source

0.12.3

  • Updated dependencies, most notably Babel v7.
  • Set sideEffects: false in package.json for tree-shaking.
  • Replaced some internal usage of lodash by ES6 methods.
haveyaseen
published 0.12.2 •

Changelog

Source

0.12.2

  • Fixed self-referencing many-to-many relationships. They previously caused errors during initialization. (#226)
  • Throw error when user attempts to register a model class without a modelName set. (#231)
  • Throw error when user attempts to interact with the database without a session. (#237)
  • Fixed tests not running on Windows. (abe8723)
  • Drastically increased test coverage and split up tests to make them easier to digest. (#220, 294d5f2)
  • Removed unused methods from Model. (f9efb8b)
haveyaseen
published 0.12.1 •

Changelog

Source

0.12.1

  • Our exported ES module in es/ (pkg.module) is now ES5 compatible. (#216, #221)
  • You can supply an as option to foreign key fields (fk()) to have Redux-ORM create a separate field for their accessors so as to not override foreign key references (#219):
class Movie extends Model {};
Movie.fields = {
    publisherId: fk({
        to: 'Publisher',
        as: 'publisher',
        relatedName: 'movies',
    }),
};

Publisher.create({ id: 123 });
const movie = Movie.create({ publisherId: 123 });

movie.publisherId // 123
movie.publisher.id === movie.publisherId // true
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc