Skip to content

v0.16.0-beta.9

Pre-release
Pre-release
Compare
Choose a tag to compare
@dgeb dgeb released this 09 Jul 22:31

This is a big release containing a wide variety of enhancements, bug fixes, and internal cleanup.

Some additions of particular note:

  • The @orbit/jsonapi source now supports the Updatable interface, which can be more user-friendly to directly interact with than the Pullable interface. #667

  • filter | sort | page support has been added to findRelatedRecords queries and all the standard implementations. #669

  • Explicit source activate and deactivate methods have been added to provide hooks to ensure that sources have performed any setup and teardown steps prior to processing. These hooks are automatically called as part of coordinator activation / deactivation, and sources themselves will auto-activate by default (note that this is an async process that can be watched via the new activated property). #671

  • Whenever tasks are cancelled and removed from a queue (such as a source's requestQueue or syncQueue), the promise associated with that task will now always be rejected (if it hasn't already settled). You can control the rejection error or use the default error. #673

Thanks to @tchak, @lukemelia, and @dgeb for all the hard work!

Changelog

🚀 Enhancement

  • @orbit/core
    • #673 Ensure that cancelled tasks in queues have promises rejected (@dgeb)
  • @orbit/jsonapi
    • #668 Expose meta and links from processors to source (@tchak)
    • #667 Add Updatable interface to jsonapi source (@tchak)
  • @orbit/coordinator, @orbit/data, @orbit/integration-tests
    • #671 Introduce explicit source activation + deactivation (@tchak)
  • @orbit/data, @orbit/jsonapi, @orbit/record-cache
    • #669 Add filter|sort|page support to findRelatedRecords queries (@tchak)
  • @orbit/data
    • #662 Warn if naive singularize method receives a word that doesn't end in "s" (@lukemelia)

🐛 Bug Fix

  • @orbit/core
    • #673 Ensure that cancelled tasks in queues have promises rejected (@dgeb)
  • @orbit/coordinator, @orbit/data, @orbit/integration-tests
    • #671 Introduce explicit source activation + deactivation (@tchak)

🏠 Internal

  • @orbit/coordinator, @orbit/core, @orbit/data, @orbit/identity-map, @orbit/indexeddb-bucket, @orbit/indexeddb, @orbit/integration-tests, @orbit/jsonapi, @orbit/local-storage-bucket, @orbit/local-storage, @orbit/memory, @orbit/record-cache, @orbit/store
    • #672 Clean up yarn.lock interdependencies (@dgeb)
  • @orbit/data, @orbit/jsonapi, @orbit/record-cache, @orbit/utils
  • @orbit/indexeddb, @orbit/local-storage, @orbit/memory, @orbit/record-cache
    • #666 Refactor @orbit/record-cache with a stricter TS config (@tchak)
  • @orbit/coordinator, @orbit/core, @orbit/data, @orbit/identity-map, @orbit/immutable, @orbit/indexeddb-bucket, @orbit/indexeddb, @orbit/integration-tests, @orbit/jsonapi, @orbit/local-storage-bucket, @orbit/local-storage, @orbit/memory, @orbit/record-cache, @orbit/serializers, @orbit/store, @orbit/utils
    • #664 Upgrade npm dependencies (mostly prettier) (@tchak)

Committers: 3