Commit Graph

17 Commits

Author SHA1 Message Date
Sancha Pereira 537a2f5e30 Support any type in the pushOrRemove array method 2018-08-24 16:48:47 +01:00
Sancha Pereira 1445408e11 Add new array method 2018-08-22 23:51:25 +01:00
Kai Moseley 4925c77728 refactor(prettier): Apply prettier styling 2018-06-13 08:29:54 +01:00
Kai Moseley 4ff81b4035 feat(object-reducers): replace will now shallow merge with initial state 2017-10-17 17:28:25 +01:00
Kai Moseley 89ca4bf8fa feat(object-reducer): object reducer reset payloads can be provided
The payload for an object reset action will be applied on top of the default
state of an object.
2017-10-17 17:19:22 +01:00
Kai Moseley c0429059e8 fix(Object): Prevent removed wildcard object properties persisting when replacing/resetting 2017-09-01 11:44:22 +01:00
Kai Moseley 09e5b9c922 fix(object): retain deletions to properties/array elements 2017-08-08 16:10:41 +01:00
Kai Moseley 3afd314f5a 1.1.0 2017-08-07 08:29:46 +01:00
Kai Moseley cf0ed297a2 update batchUpdate to createCombinedAction 2017-08-07 08:25:43 +01:00
Kai Moseley 6bedb267da Implement batched updates and custom types 2017-08-06 18:06:01 +01:00
Kai Moseley a5875b273f feat(reducers): Introduce unique id to reducer actions 2017-05-07 19:01:32 +01:00
Kai Moseley b33e21d0b9 Prevent the wildcard key adding a default value 2017-02-27 17:26:53 +00:00
Kai Moseley bfa06ac17f Add wildcardKey type
Being able to type a known structure ahead of time is super useful. Sometimes, however, this isn't possible. What if
your application has an entirely dynamic portion, where you use data from the server to build, day, a form? In this situation
it'd be great to still be able to type. This commit introduces the basic implementation of the 'wildcardKey' type, for use
in defining an object property. At the moment, every object can have one wildcardKey which specifies a specific type (including any()) which the reducer will happily accept, if an unknown property has it. The aim is to introduce regex to this type, and the ability to use multiple instances of the type, in order to specifically craft dynamic reducer structures (e.g. all properties with _date in them will be assigned to the Type.any(), but all others must be Type.string()).
2017-02-23 09:56:43 +00:00
Kai Moseley e910c66b5f Adjust lodash imports to reduce bundle size when transpiled 2017-02-21 09:31:20 +00:00
Kai Moseley de67a74ac3 Tweak to removeAtIndex interface 2017-01-24 16:25:11 +00:00
Kai Moseley 1cd4cbf6bf Add new array methods, and remove unnecessary validation calls 2017-01-22 20:13:28 +00:00
Kai Moseley 7ddee47d9d Restructure for publshing 2016-12-20 10:39:23 +00:00