wq.app 1.0 beta 2
wq.app 1.0 beta 2 brings a lot of cleanup and a few new features. Note that this release is no longer compatible with Internet Explorer 8.
API Improvements
- Flatten the per-page configuration for wq/map.js to make it more managable. Instead of:
config.pages[page].map[mode].maps.main.layers = [...];
you can just do
config.pages[page].map = {
'mode': mode,
'map': 'main', // optional
'layers': [...]
};
Also added the option to pre-register an oneach function (not unlike the pre-registered layer types) so it can be referenced from a JSON configuration object.
- Make it so wq/outbox.js items are accessible via foreign key references even before they are synced. The sync process now automatically determines the proper order to send records to the server and updates the references on the fly. To assign labels to items in the outbox (since the Python
__str__
function is not available), a newlabel_template
property is now supported on the configuration object. See the release notes for wq.db 1.0.0b3 for more information. - Use a recursive in-place serializer for files saved in
localForage
(see localForage/localForage#603). Note that the new store uses a different naming convention and the contents of the old offline cache will not be automatically transferred to the new one. - Support lookups for foreign keys within natural keys, and plugins on server-rendered non-list pages.
Third Party Libraries
- Update Leaflet from 0.7 to 1.0
- Update d3.js from 3.5 to 4.2
- Drop es5-shim and support for IE8
- Drop jquery.validate, proj4, proj4leaflet, and rbush (all rarely used in production wq applications)
- Add leaflet.wms and localforage-memoryStorageDriver
- Update most other libraries (except jQuery Mobile which will be updated in a future release)
For the full set of changes, compare the list in wq.app 1.0.0b1 vs. wq.app 1.0.0b2.
Other modules
- Update
wq/markdown.js
andwq/progress.js
to work as wq/app.js plugins - Add
wq/chartapp.js
, a wq/app.js plugin combining wq/chart.js and wq/pandas.js - Drop
wq/appcache.js
,wq/online.js
, andwq/owl.js