Skip to content

Latest commit

 

History

History
241 lines (129 loc) · 4.8 KB

CHANGELOG.md

File metadata and controls

241 lines (129 loc) · 4.8 KB

Changelog

11.0.0

  • Breaking: Collection's get method return type is now typed to T | undefined.

10.0.1

  • Fixed: optimistic destroys for models in collections.

10.0.0

  • Simplify Collection and Model api, removing the Request wrapper.

9.0.2

  • Add missing fromEntries polyfill (second try)

9.0.1

  • Add missing fromEntries polyfill

9.0.0

  • Remove decorators
  • Added missing actions

8.0.1

  • Fix the issue #101 caused by generated declaration files path changes

8.0.0

  • Migrated to mobx 6

7.1.1

  • Added path option to Collection#create, Model#destroy and Model#save

7.1.0

  • Added Collection#last method

7.0.1

  • One more performance improvement by optimizing Collection#constructor to just reset the collection

7.0.0

  • Breaking: Moved indexes as getters so they are available during the first Collection#set call in the constructor
  • Refactored Collection#set to batch all the additions so indexes are not recalculated for each addition.
  • Refactored Model#constructor to directly set the attributes instead of initialize with an empty map and replace it.

6.0.1

  • Fix peformance regression for set introduced in 4.0.0 with the addition of indexes: We were creating a model just to call the primaryKey method instead of just calling the prototype.

6.0.0

  • Remove mustFind and mustGet methods

5.0.7

  • Improved error messages when an invariant fails.

5.0.6

  • Defend some cases when data is not present.

5.0.5

  • Avoids add adding duplicated records and switches model.save to use add instead of set

5.0.3

  • Fixes another edge case when passing a model to collection.set

5.0.2

  • Fixes edge case when a request fails and no collection was given

5.0.1

  • Fixes edge case where a model without id would make collection.set fail.

5.0.0

  • Made set accept models too, not only attributes.
  • Now, save will add the model to the collection if one is assigned. This allows people to use collection.build + save effectively.

4.0.2

  • Fixes filter throwing errors when targeting non-existing attributes.

4.0.1

  • Allow a default primary key if model didn't return a class

4.0.0

  • Added indexes to optimize filter and find

3.0.5

  • Rollback default patch flag value to true.

3.0.0

New features 🎩:

  • Reimplemented mustFind and mustGet methods in Collection.
  • Brought back the request attribute in Model. The attribute tracks the last issued request.
  • Brought back onProgress hook in save method.

Solved bugs 🐛:

What's changed 💅:

  • Migrated to Typescript
  • Made RPC label optional with a default fetching value

Breaking changes ☢️:

  • Migrated to Mobx 5+
  • Rollback default keepChanges flag value to false.
  • Compatible adapters need to implement data as their second argument as such.

3.0.0.alpha

Full description here: #39 Kudos to @rdiazv

2.2.5

💅

  • Remove flow-typed
  • Improve bundle size with babel-lodash (kudos @ryedin)

2.2.4

🎩

  • Fixed reset on models. Use mobx replace

2.2.3

🎩

  • Added reset to models.

2.2.2

🎩

  • Added length for conveniently checking the length of the collection

2.2.1

🎩

  • Added reset for conveniently resetting a whole collection

2.2.0

💅

  • Defined mobx as a peerDependency

2.1.9

🐛

  • Fixed: Nested attributes couldn't be saved. (kudos to @rdiazv)

2.1.8

🐛

  • Fixed: Creating a new model didn't merge the attribute in some cases. (kudos to @rdiazv)

2.1.7

🎩

  • Added mustGet and mustFind as whinny versions of get and find

2.1.6

💅

  • Added flow types in the build process
  • Updated dependencies

2.1.5

💅

  • Improved error handling (kudos to @p3drosola)

2.1.4

🐛 Bugfix:

  • Stop publishing babelrc since it breaks React native

2.1.3

🐛 Bugfix:

  • Fix models not being observable after add

2.1.2

🐛 Fixes:

  • Added transform-runtime

2.1.1

🐛 Fixes:

  • Removed need for a runtime by using babel's transform-async-to-generator

2.1.0

🚀 New features:

  • Add isRequest for models (it was already in Collection).
  • Add primaryKey so you can use a different key than 'id'.

🔧 Tooling:

  • Add prettier-standard
  • Add flow linting
  • Set test coverage