Skip to content

v0.17.0-beta.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@dgeb dgeb released this 08 May 19:15

This is the third beta release for v0.17. It includes several enhancements and some major modernizations to the build process and build dependencies.

This release finally removes @orbit/store, which has been deprecated for a while. Please update your apps to use @orbit/memory instead.

The @orbit/jsonapi source now supports a new url option, which allows for completely custom URLs to be used for any request (both queries and transforms).

Furthermore, request option handling has been standardized for both queries and transforms. Any option passed at the root level will be merged with options specific to sources (with the specific options taking precedence).

The above changes mean that the following requests will both be treated by a jsonapi source named remote:

source.query(q => q.findRecords('planets'), {
  label: 'Find planets and their moons',
  sources: {
    remote: { 
      include: 'moons',
      url: 'https://example.com/custom/planets'
    }
  }
});

source.query(q => q.findRecords('planets'), {
  label: 'Find planets and their moons',
  include: 'moons',
  url: 'https://example.com/custom/planets'
});

The former will only provide the include and url options to the remote source, while other sources won't be aware of them. For most cases, this level of specificity is not needed since sources typically ignore options they don't recognize.

Changelog

🚀 Enhancement

  • @orbit/jsonapi
    • #746 [jsonapi] Support url request option (@dgeb)
  • @orbit/data, @orbit/indexeddb, @orbit/jsonapi, @orbit/local-storage, @orbit/memory, @orbit/record-cache
    • #742 Standardize request option handling (@dgeb)
  • @orbit/record-cache

🏠 Internal

  • @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

Committers: 2