Dexie v1.3.0 was at last released, six months after the previous release, 1.2.0. There are a lot of news, check out!
New features
-
New WhereClause methods
-
Improved WhereClause methods:
noneOf() Supports large array as argument
notEqual() More efficient -
Support for using yield (as await)
-
New method for improved performance when adding thousands of items into a table:
-
Updated Typescript definition.
Module based instead of global.
Supports latest typescript compiler.
typings attribute in package.json eliminates the need of DefinitelyTyped and tsd.
"typescript.definitions"attribute in package.json makes tsd detect the typings in github. -
Support for the new standard module format "es6" (separate output).
File Structure Update
-
The files in the
dist
directory has been moved.dist/latest
is removed and files are put directly underdist
and are all in lowercase. -
Dist files are removed from the
master
branch. They are only checked in by therelease.sh
script in thereleases
branch so that each release will have them (so that our bower users get happy). -
Addons are no more part of the npm package (or bower package). They are also ES6 based and have their own build system. They are released separately as their own npm modules
npm install dexie-observable --save npm install dexie-syncable --save
-
Bower users can also install the npm modules through:
bower install https://npmcdn.com/dexie-observable@SEMVER/bower.zip bower install https://npmcdn.com/dexie-syncable@SEMVER/bower.zip
...where SEMVER is a version query in semver format, such as 0.1.x, ~0.1.2, ^0.1.3 etc.
Bugfixes
Wow, there's been a lot of small little fixes. 6 months are hard to conclude here. Read the commit log to see the details.
Build-, Test and Release system
Introduced scripts for building, testing and releasing Dexie.js. Source code is migrated to the ES6 module format as a base for further refactoring of Dexie.js into separate modules. Now, to contribute to Dexie.js you will need to:
npm install
npm run build
or npm run watch
And to test in command line (thanks to @YuriSolovyov)
npm test
There's a little guide in README#Contributing on how to use npm link
to symlink you github clone to your app's node_modules/dexie, which works perfectly well on windows systems as well.