- Adds TypeScript type declarations (generated from typed JSDoc comments)
- Removed the
clone()
method onModel
. - Removed the old
View
type - Removed the old
Events
constructor function and instead added theEventsEmitter
mixin class. - Removed the
Router
andHistory
classes. - All other types (
Model
,Collection
,ElementView
) are now ES6 classes.
- Fix a race condition when setting a localForage driver
- Refactor the sync method to properly call the
fetch
API
- Use the released version of
@converse/localforage-getitems
- Update 3rd party dependencies
- Move code that needs to be bundled to
dependencies
fromdevDependencies
- Update localForage-getItems to fix a build issue on Windows
- Use the
getAll
IndexedDB function, which should result in a significant speedup - Update various 3rd party dependencies.
- #13 Import the default export of localforage
- Don't expect a collection's
model
attribute to have aprototype
. It might be an arrow function, in which case it doesn't. - Update to mergebounce 0.1.0
- Upgrade to lit 2.0.0-rc.2
- Create the
ElementView
, which is like a Backbone View but extendsHTMLElement
and is therefore also a custom element or web component. /home/kalie/src/converse.prosody/src/converse.js/src/headless/core.js: * @property {object} converse.env._ - The instance of lodash-es used by Converse. - Allow writes to the client-side store to be batched (via mergebounce).
This is particularly useful for IndexedDB, which has a very slow writing speed.
To enabled batched writes, pass in
true
for the 3rd parameter of theStorage
constructor.
Initial fork from Backbone
- Removes the dependency on jQuery
- Instead of the
render
method Views can have atoHTML
method which must return a lit-htmlTemplateResult
. - Replaces underscore with lodash
- Imports lodash methods individually to allow for tree-shaking
- Uses the native browser API instead of lodash
- Drops support for older browsers (including IE) and uses ES6+ language features
- Splits models, views and collections into separate modules
- Adds a new
ElementView
class, which is a like a Backbone View, but doubles as an instance of HTMLElement and can be used to register a custom element or web-component.