Releases: orbitjs/ember-orbit
v0.17.0-beta.7
v0.17.0-beta.6
This is a major upgrade of ember-orbit to use the latest v0.17 beta packages. This largely insulates users of ember-orbit from the largest breaking change in v0.17.0-beta.9, since ember-orbit largely eliminates the need to reference @orbit/data
or the new @orbit/records
packages in app code. However, check your imports.
There are a couple other breaking changes to be aware of:
-
[BREAKING] In ember-orbit, the
store
is no longer injected into routes and controllers by default. This change is in keeping with the deprecation of implicit injections in Ember itself. Now, if you want access to thestore
service from anywhere, use the@service
decorator. -
[BREAKING] ember-orbit's dependency on ember-inflector has been removed. Orbit itself no longer handle inflections at the schema layer. If you're relying on the schema's
pluralize
andsingularize
methods, see the recommendations here for moving sources like@orbit/jsonapi
over to the new serializers and inflectors. -
[BREAKING] A breaking change has been made in orbit v0.17.0-beta.9 to allow for consistent handling of "not found" errors across sources. The default behavior is to now return
undefined
for queries instead of raising aRecordNotFoundException
. This makes it possible to issue multiple query expressions at once without worrying that a single record not found will prevent access to the rest of the results. If you'd like to continue to raiseRecordNotFoundException
in these cases, use theraiseNotFoundExceptions: true
option. This can be set per-query, or per-expression, or as a default option for a source via thedefaultQueryOptions
setting.
There are also significant enhancements that came with the latest orbit v0.17 betas, including:
-
Adds support for more detailed, full responses from requests. Using the
fullResponse: true
option, you can now request details such as the full response document for JSONAPISource queries and updates. See #794 for details. -
Ensures consistency between the
query
andupdate
interfaces used by both caches and sources (with the exception that synchronous caches of course still return results immediately). Thepatch
method has been deprecated for caches. Again, part of #794. -
Support for parallel fetch requests for multi-expression queries and multi-operation updates made to the JSONAPISource. By default, queries will be run in parallel now, while transform operations will still run in series. See #806.
More details and examples will be provided in the full v0.17 release notes.
Changelog
π₯ Breaking Change
- #325 Update to orbit v0.17.0-beta.11 (@dgeb)
- #317 Remove ember-inflector singularize/pluralize (@rwwagner90)
π Enhancement
π Bug Fix
- #306 Hotfix for using ember computed macros based on model attributes (@chbonser)
- #310 Fix prototype leakage on inheritance (@tchak)
- #309 Store schema information on prototype to fix model inheritance (@tchak)
π Internal
- #318 Upgrade Ember 3.23 (@rwwagner90)
- #308 Update dependencies (@tchak)
Committers: 4
- Chris Bonser (@chbonser)
- Dan Gebhardt (@dgeb)
- Paul Chavard (@tchak)
- Robert Wagner (@rwwagner90)
v0.16.9
Bumps Orbit dependencies. @orbit/data
v0.16.7 addresses an issue in mergeOperations
in which addRecord
and updateRecord
operations were not being merged with subsequent updateRecord
operations for the same record.
Changelog
π Bug Fix
Committers: 1
- Dan Gebhardt (@dgeb)
v0.17.0-beta.1
This is the first v0.17 beta release of ember-orbit, based on beta.5 of orbit itself.
ember-orbit has been almost completely refactored to take advantage of new glimmer and orbit primitives.
Changelog
π₯ Breaking Change
π Enhancement
- #287 Fix immutable record exceptions (@tchak)
- #286 Expose base store on forked stores (@tchak)
- #274 Make records on non forked stores readonly (@tchak)
- #277 Migrate initializers to ts (@tchak)
- #276 Implement liveQuery (@tchak)
- #271 Refactor has many to be a readonly array (@tchak)
- #272 Fix decorators for use in typescript (@tchak)
- #267 Convert factories to typescript (@tchak)
- #262 Support polymorphic relationships. Issue #257 (@derekwsgray)
- #259 Remove ember 3.4 support (@tchak)
π Bug Fix
π Documentation
- #265 Add doc for polymorphic relationships. (@derekwsgray)
π Internal
- #293 Fix typing in modules-of-type (@dgeb)
- #292 Update orbit and ember-source, as well as imports (@dgeb)
- #291 Bump elliptic from 6.5.2 to 6.5.3 (@dependabot[bot])
- #290 Remove redundant @types/ember-test-helpers (@tchak)
- #289 Use proper import for destroyable polyfill (@tchak)
- #288 Update dependencies (@tchak)
- #284 Bump lodash from 4.17.15 to 4.17.19 (@dependabot[bot])
- #273 Use glimmer cache API (@tchak)
- #275 disable deprecations during tests (@tchak)
- #268 Use new destroyable api (@tchak)
- #270 Add has many rendering test (@tchak)
- #263 Bump websocket-extensions from 0.1.3 to 0.1.4 (@dependabot[bot])
- #255 Prettier2 (@tchak)
Committers: 3
- Dan Gebhardt (@dgeb)
- Derek W. S. Gray (@derekwsgray)
- Paul Chavard (@tchak)
v0.16.8
v0.16.7
This patch release includes new support for polymorphic relationships, which has been backported from the v0.17 beta by @derekwsgray in #264. You can now declare multiple potential types in an array in hasOne
or hasMany
relationships. π
The codebase has also been reformatted with Prettier v2. Thanks @tchak!
Changelog
π Enhancement
- #264 Support Polymorphic Relationships (0.16 backport) (@derekwsgray)
π Internal
Committers: 2
- Derek W. S. Gray (@derekwsgray)
- Paul Chavard (@tchak)
v0.16.6
This patch release includes some dependency updates and minor DX improvements.
Perhaps the biggest improvement is the addition of an ember-cli-addon-docs site by @rwwagner90, which will be launched soon! π
Changelog
π Enhancement
- #253 Bump Orbit deps (@dgeb)
- #252 Update ember-cli (@tchak)
- #251 Small DX improvement (@pangratz)
- #250 Export types from addon index (@tchak)
π Documentation
- #249 Add ember-cli-addon-docs site (@rwwagner90)
Committers: 4
- Clemens MοΏ½ller (@pangratz)
- Dan Gebhardt (@dgeb)
- Paul Chavard (@tchak)
- Robert Wagner (@rwwagner90)
v0.16.5
This is a minor patch release with some typing improvements and several internal tweaks.
Changelog
π Enhancement
π Documentation
π Internal
Committers: 2
v0.16.4
This patch release upgrades Ember and Orbit dependencies and fixes a couple configuration-specific problems.
Thanks to @devotox and @tchak for their work on this π―
Changelog
π Enhancement
π Bug Fix
- #234 Allow ember-orbit to be used in addons (@devotox)
- #235 Fix app reference in addon index (@tchak)