- Derek Wickern (@dwickern)
- Derek Wickern (@dwickern)
- Derek Wickern (@dwickern)
- #484 allow test failures for Ember 4.8 (@dwickern)
- #485 use explicit error responses in tests (@dwickern)
- Derek Wickern (@dwickern)
- #480 fix(changedAttributes): initial value of property which are supposed to be null return a value when the record is in flight (@VincentMolinie)
- Vincent Molinié (@VincentMolinie)
- #479 Add
copy
to type declarations (@charlesfries)
- Charles Fries (@charlesfries)
- #476 changedAttributes still return the dirty attributes until the record has been fully committed (@VincentMolinie)
- Vincent Molinié (@VincentMolinie)
- #474 fix(polymorphism): fix regression introduced with ember-data-model-fragments 6.0.0 where owner is not passed to typeKey function (@VincentMolinie)
- #472 Ensure changing arrays are notified. (@deanmarano)
- #469 Fix issue with reloading array records. (@deanmarano)
- #473 chore(deps): bump semver from 5.7.1 to 5.7.2 (@dependabot[bot])
- Dean Marano (@deanmarano)
- Vincent Molinié (@VincentMolinie)
- #465 chore(deps): bump socket.io-parser from 4.2.2 to 4.2.3 (@dependabot[bot])
- Derek Wickern (@dwickern)
- #462 chore: drop node 12 (@knownasilya)
- #417 record-data implementation for ember-data 3.28+ (@dwickern)
- #458 Fix: trigger error on Ember >= 4.x (@wozny1989)
- #460 Remove dead link from README.md (@deanmarano)
- #456 Convert README.md examples to native classes (@charlesfries)
- #463 Upgrade Ember-CLI (@dwickern)
- #461 chore(deps): bump minimatch from 3.0.4 to 3.1.2 (@dependabot[bot])
- #459 chore(deps): bump minimist from 0.2.1 to 0.2.4 (@dependabot[bot])
- Adam Woźny (@wozny1989)
- Charles Fries (@charlesfries)
- Dean Marano (@deanmarano)
- Derek Wickern (@dwickern)
- Ilya Radchenko (@knownasilya)
- #455 Remove string index from fragment registry (@charlesfries)
- Charles Fries (@charlesfries)
- #445 chore: fix typescript declarations (@charlesfries)
- #443 chore: add typescript definitions files (@VincentMolinie)
- #442 Bump terser from 4.8.0 to 4.8.1 (@dependabot[bot])
- #440 Bump shell-quote from 1.7.2 to 1.7.3 (@dependabot[bot])
- #410 Bump y18n from 4.0.0 to 4.0.3 (@dependabot[bot])
- #426 Bump follow-redirects from 1.14.7 to 1.14.8 (@dependabot[bot])
- Charles Fries (@charlesfries)
- Rich Glazerman (@richgt)
- Vincent Molinié (@VincentMolinie)
- #439 fix(array): allow resetting an array to null (@VincentMolinie)
- #438 fix(polymorphic): update of type of a polymorphic key works (@VincentMolinie)
- #423 Remove assign usage (@charlesfries)
- Charles Fries (@charlesfries)
- Vincent Molinié (@VincentMolinie)
- #432 fix(serializer): fix the deserialization when using a typeKey as a function (@VincentMolinie)
- #434 Remove bowerDependencies warning (@charlesfries)
- Charles Fries (@charlesfries)
- Vincent Molinié (@VincentMolinie)
- #431 fix(dirty state): prevent record from being tagged as dirty when not changed (@VincentMolinie)
- Vincent Molinié (@VincentMolinie)
- #430 feat(polymorphism): add the possibility to compute the type based on owner and data (@VincentMolinie)
- #428 fix: handle current state not yet set (@VincentMolinie)
- #425 Bump mout from 1.2.2 to 1.2.3 (@dependabot[bot])
- #395 Bump elliptic from 6.5.3 to 6.5.4 (@dependabot[bot])
- #424 Add
release-it
to automate releases and add missing entries from CHANGELOG.md (@patocallaghan) - #421 Bump follow-redirects from 1.13.0 to 1.14.7 (@dependabot[bot])
- Pat O'Callaghan (@patocallaghan)
- Vincent Molinié (@VincentMolinie)
- 🐛 Bugfix: Pass arguments to
super.commitWasRejected
to get backDS.Errors
by @enspandi in #412 - 🐛 Bugfix: modelName undefined when serializing fragment and fragment array by @knownasilya in #407
- 🐛 Bugfix: Fix serialization in ember 3.28 by @VincentMolinie in #414
- 🐛 Bugfix: Fix fragment attributes in save response being ignored by @dwickern in #404
- 🏠 Do not fail CI on Ember release by @patocallaghan in #419
- 💥 Breaking fix: respect null on server updates by @ro0gr in #415
- 🐛 Bugfix: Make sure we can update fragments/fragment arrays after they are initially set to null by @patocallaghan in #384
Before v5.0.0-beta.3, when setting a fragment array property to null
from a server response, it wouldn't nullify the attribute. Instead, the fragment array instance just became empty with no items inside. Now updating the fragment array to null
works correctly and is consistent with fragments behaviour. For more details see #415.
- 🐛 Bugfix: #397 Use send('loadedData') instead of loadedData method (@runspired)
- #381 Fix
hasDirtyAttributes
when resetting a property (@VincentMolinie) - #385 Upgrade to Ember 3.20 LTS (@patocallaghan)
- #360 Upgrade to work with Ember Data 3.16 (@richgt, @igorT)
- Ember 3.5.0 compatibility with breaking changes related to
RecordData
. (@cohitre) - Fixed
changedAtributes
with fragments (@Gorzas)
- Update Ember to 3.3.0 (@jakesjews)
- Fixed ember-data compatibility the
fields
property on ember-data model class (@rondale-sc) - Fixed bug with setting array fragment attr to null (@Techn1x)
- Use
ember-copy
instead ofEmber.copy
/Ember.Copyable
(@pauln) - Removed deprecated exports (@jakesjews)
- Replace
exists-sync
package withfs.existsSync
(@jakesjews) - Fix ember-data compatibility with
type.modelName
and_internalModel.modelName
(@JosephHalter) - Prevent infinite recursion on save with fragmentArray (@JosephHalter)
- When
defaultValue
is a function, don't copy (@Techn1x)
- Upgrade to Ember 3.0 (@jakesjews)
- Added support for Ember-Data 3.0 (@rondale-sc, @jakesjews)
- Upgraded to Ember 2.15, 2.16, 2.17 (@jakesjews)
- Switched from NPM to Yarn (@jakesjews)
- Added
cacheKeyForTree
to the build pipeline (@thec0keman)
- Added support for Ember-Data 2.14 (@workmanw)
- Fixed bug with fragments invoking ready callback (@danielspaniel)
- Reverting prior bugfix. Unfortunately the fix resulted in infinite loop in for some users. (@jakesjews)
- Upgrade to Ember 2.13 (@workmanw)
- Fixed Ember-Data 2.13.0 issue related to internalModel caching change. (@workmanw)
- Upgrade to Ember 2.12 (@jakesjews)
- Fixed Ember-Data 2.11.2 issue caused by
modelFactoryFor
change (@workmanw)
- Fixed max call stack error aka Alias Loop (@kobsy, Rob Riebau
<github handle unknown>
) - Replaced JSHint with ESLint (@workmanw)
- Renamed the ES6 module from
model-fragments
toember-data-model-fragments
(@workmanw) - ES6-ified the addon. Utilized ES6 conveniences more throughout the codebase (@workmanw)
- Fixed an Ember-Data 2.12 compatibility issue (@workmanw)
- Removed deprecation from upcoming Ember 2.12 release (@workmanw)
- Updated to ember-cli 2.11.0 (@jakesjews)
- Fixed infinite loop issue caused by deprecation of
store.lookupSerializer
(@runspired, @workmanw) - Added
store.isFragment
for easier detection (@gavinjoyce) - Removed usage of deprecated Ember.K (@cibernox)
- Updated to ember-cli 2.10.0 (@jakesjews)
- Use the
ember-data
initializer as a target instead of the soon to be deprecatedstore
initializer (@bmac) - Fixed issue that caused
internalModel is null
exception (@cesarizu)
- Fixed ember-cli deprecation warning (@jakesjews)
- Fixed issue with deprecated use of
Ember.get
(@jakesjews)
- Fully converted to ember-cli addon (@jakesjews, @workmanw)
- Fixed memory leak caused by fragments not being destroyed (@dwickern)
- Fixed issue with rolling back fragments after adapter error (@workmanw)
- Fixed
isNew
not reporting correct state
- Backported fix for memory leak caused by fragments not being destroyed (@dwickern)
- Backported fix for issue with rolling back fragments after adapter error (@workmanw)
- Backported fix for
isNew
not reporting correct state
- Fixed issue with
store.push
leaving records dirty
- Backported fix for issue with
store.push
leaving records dirty
- Backported fix for issue with
store.push
leaving records dirty
- Updated Ember/ED > v2.1.x
- Fixed initializer argument deprecation
- Fixed issue with looking up application/default serializers with
store#serializerFor
(@thec0keman)
- Backported fix for application/default serializer lookup
- Removed Deprecated APIs
- Fixed breaking changes in Ember 2.0
- Fixed deserialization issue when
isNewSerializerAPI
is not specified
The isDirty
and rollback
methods on fragments and fragment arrays have been removed (use hasDirtyAttributes
and rollbackAttributes
instead).
- Removed deprecated APIs
- Changed default value of fragment array properties to an empty array
- Changed repository name
Deprecated APIs have been removed:
DS.ModelFragment
→MF.Fragment
DS.hasOneFragment
→MF.fragment
DS.hasManyFragments
→MF.fragmentArray
DS.fragmentOwner
→MF.fragmentOwner
Support for non-fragment array properties has been added with the new property MF.array
, which supports transforms:
export default DS.Model.extend({
things: MF.array('string'),
stuff: MF.array('my-custom-transform')
});
The default value of fragment array properties is now an empty array (previously null
):
export default DS.Model.extend({
things: MF.fragmentArray('some-fragment'), // { defaultValue: [] } option is no longer necessary
stuff: MF.array('string') // Defaults to an empty array as well
});
The repository name has changed from ember-data.model-fragments
to ember-data-model-fragments
. This does not affect the NPM package name, but does affect the Bower package. Consequently, when upgrading from v0.4.x to v1.13.x, in addition to making sure the addon blueprint runs, the old Bower package must be removed manually:
$ bower uninstall --save ember-data.model-fragments
- Reverted clearing fragment owner to maintain rollback support
- Fixed issue with record dirtiness when setting with object literal
- Updated API and added deprecation warnings to all outdated APIs
- Fixed issue with initializer arguments in Ember 2.1 (@jakesjews)
- Added support for setting fragment properties with object literals
- Fixed issue with fragment properties not being notified on create
- Fixed falsy default values being clobbered (@christophersansone)
- Fixed bad registry property reference in Ember v2.1 (@abuiles)
- Updated fragment properties to clear owner when releasing fragments
- Added warning about changing default value for array fragment properties
- Added support for copying nested fragments (@louy)
- Fixed broken fragment copying (@jakesjews)
- Updated to support Ember Data v1.13
- Removed deprecations in test suite
- Removed computed property deprecations (@jakesjews)
- Added fragment transform module for unit testing ember-cli apps (@rwjblue)
- Removed duplicate addon definition
- Fixed "properly formatted package" ember-cli warning
- Fixed bad file name in 'fragment' blueprint using pod structure
- Added support for Snapshots to support Ember Data v1.0.0-beta.15
- Added explicit ordering to ember-cli addon
- Fixed infinite loops when reloading observed fragments (@igort)
- Fixed issue with multiple rollbacks failing
- Fixed issue with changed properties not being notified on reload
- Fixed infinite recursion issue after save when observing fragment array props
- Fixed issue with
ember install:addon
not invoking correct blueprint - Fixed issue with Ember CLI including addon dir in JS tree
- Support type checks with
Ember.MODEL_FACTORY_INJECTIONS
set to true - Fixed issue with broken ember-cli install:addon
- Updated to support Ember Data v1.0.0-beta.14 (@igort)
- Added Ember CLI addon
- Updated Ember Data version dependency in Bower package
- Added support for polymorphic fragments (@marcus-nl)
- Fixed infinite recursion issue with nested hasManyFragments
- Fragment array reloads now notify array observers,
- Fix bower runtime dependencies to include Ember Data
- Reformatted/added comments to conform to YUIDoc
- Fixed issue with saving a record with null fragments
- Fixed issue with rollback when fragment is set to null
- Fixed issue with fragment array methods bypassing
replaceContent
- Added support for empty adapter response
- Fixed issue with owner-less fragments on new records
- Added limited support for fragments in
DS.Model#changedAttributes
- Fixed issue with setting a
hasOneFragment
property to null - Fixed issue with
hasOneFragment
default values
- Initial release compatible with original gist