Changelog
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.Changelog
0.13.1
Removed tests, coverage reports and other unneeded files from NPM package builds. This decreased our NPM package size to around 700 kB.
Changelog
0.13.0
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).
Changelog
0.12.4
mapName
using Model.options
. (0fb2aca)Object.keys()
instead of Object.entries()
. (e371ac7)Changelog
0.12.3
sideEffects: false
in package.json
for tree-shaking.Changelog
0.12.2
modelName
set. (#231)session
. (#237)Changelog
0.12.1
es/
(pkg.module
) is now ES5 compatible. (#216, #221)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