0.16.4 • Published 1 year ago

redux-restify v0.16.4

Weekly downloads
135
License
MIT
Repository
github
Last release
1 year ago

redux-restify

This is a redux based framework for managering api entities and application forms.

Check out the docs for more info.

Change log

04.10.2017

  1. Added validateAll form config option

10.10.2017

  1. Added error message for bad-set pagination property

25.10.2017

  1. Added orderableFormFieldName to options. No forms and arrays can be ordered by any field.
  2. Added getEndpoint() selector to models and forms
  3. Added opporunity to load model by empty id(for singltone models - just loads the endpoint and save the schema)

31.10.2017

  1. Fixed unregistered field warning for custom idField
  2. Added transformBeforeSubmit option to form config

2.11.2017

  1. Added getByUrl and asyncGetByUrl methods to EntityList. Also, you can define apiName in config

7.11.2017

  1. transformBeforeSubmit can be a function (formValues) => data. Can be used to send arrays

9.11.2017

  1. Added opportunity to pass RegExp to getForm(and others) selectors. Returns object with matched form name keys
  2. Added opportunity to pass form names array to getFormActions. Returns object with form name keys

19.11.2017

  1. Now RestifyForeignKey and RestifyForeignKeysArray can be set for plain id fields, or even for changing behaviour from model to id fields. They will return model by auto-request anyway
  2. Added mapServerDataToIds option to form config. applyServerData now can respects form model field and map models into ids for sending to server

23.11.2017

  1. Added allowIdRequests option to api model

30.11.2017

  1. getToken can now return Promise

20.12.2017

  1. Now getIsLoadingById and getIsLoadingArrray returns true, if the url is not registered in loadsManager

20.02.2018

  1. Now allowNested param for foreign key respects all models, not only self-recursive

06.03.2018

  1. Added clearData action to entityManager, so we can clear all api data for model. Useful for cases, when we want to forget some corrupted entities loaded.
  2. Added clearDataOnRouteChange setting for model, so we can clear all model data on route changes

04.04.2018

  1. Added fetchConfig to RestifyLinkedModel. This config will be applied in linkedModel.getById(, fetchConfig)

13.04.2018

  1. Added transformArrayResponse and getEntityUrl to api and model configs

17.04.2018

  1. Added crudAction and specialAction to getEntityUrl, now getEntityUrl can return an object with utl and method
  2. Added transformEntityResponse to api and model configs

19.04.2018

  1. Added $modelType field to all restify models

24.04.2018

  1. Added clearPagesOnRouteChange setting for model, so we can config default clearing pages on route changes

21.05.2018

  1. Added modelConfig setting for getArray and other array getters, allowing to tweak model config for given request

19.06.2018

  1. Added RestifyField base field class. Does not have any functionality yet, but can be used to give a field a verbose name and default values
  2. Added warnAboutUnregisteredFields option to model config

04.07.2018

  1. Added onXhrReady callback for api calls

27.07.2018

  1. Added RestifyGenericForeignKey for gereric relations

31.08.2018

  1. Added forceLoad option for arrays

27.09.2018

  1. Added getPaginationQuery option for model and api config

01.11.2018

  1. Added getHeaders option for xhr adapter

07.11.2018

  1. Added trasformedValues argument to transformBeforeSubmit function, so you can use values with applied fakeId, submitExclude and other default transforms

26.11.2018

  1. Added query param into form config, so you can send forms to endpoints with query params
  2. Added authMethod option to api config

30.11.2018

  1. Added withCredentials param for api config

02.11.2018

  1. Added skipLoadsManager config param for grneral api actions

06.11.2018

  1. Added useSnakeCase api parameter, so we can disable snake_case convertation for api

09.11.2018

  1. Now asyncGetById also has async getters for missing model fields

23.04.2019

  1. Now creating a new entity clears pages carefully, caching old version and serving it, while new request is in process

28.04.2019

  1. Added typescript typings

01.07.2019

  1. Added transformErrorResponse function

05.07.2019

  1. Added useOptimisticUpdate config to form

20.07.2019

  1. Added parentEntities config to getById

02.08.2019

  1. Added hasById selector

09.08.2019

  1. Added key and data params to generic fields

12.08.2019

  1. Added config and useOptimistic parameter to deleteById action. Use, if you want to show element deletion progress.

13.08.2019

  1. Added modelName parameter to transform Response functions

24.10.2019

  1. Added retries retryTimeoutMs options to restify config, so user can define default reties behaviour

06.12.2019

  1. Added trackDirtyFields and submitOnlyDirtyFields options to form config (see docs)

12.12.2019

  1. Added apiConfig field to form config, allowing to override api settings, like getToken etc.

13.01.2020

  1. Added updateRestify for dynamic add models and forms
     updateRestify({
       apiDefinitions,
       modelsDefinitions,
       formsDefinitions,
       onUpdateRestify: () => {
         RESTIFY_CONFIG.store.replaceReducer(getReducer())
       },
     })

31.01.2020 (0.5.0)

  1. Added boolean clearOldPages parameter(default - true) to clearPages actions. If passed false, oldPages are not cleared by this actions, so data can still be displayed, while loading new one.

10.02.2020 (0.6.0)

  1. Return a Promise resolving to true from httpCodesCallback to retry a request

07.03.2020 (0.7.0)

  1. Added boolean clearOldSingleEntities parameter(default - true) to clearData actions. If passed false, oldSingleEntities are not cleared by this actions, so data can still be displayed, while loading new one.

06.04.2020 (0.8.0)

  1. Added support for unregistered parents for models

13.04.2020 (0.9.0)

  1. Added $old key to RestifyModel, for detecting old data being updated at the moment

04.06.2020 (0.10.0)

  1. Added opportunity to return promise from onXhrReady

20.07.2020 (0.11.0)

  1. Added pagination parameter to getPaginationQuery option

27.07.2020 (0.11.2)

  1. Added request data to code callbacks function call

12.08.2020 (0.12.0)

  1. Added preventAutoGetters option to getById

21.09.2020 (0.13.0)

  1. Added invokeBaseCallbacks to httpCodesCallbacks api config option for easier overrides

26.09.2020 (0.13.1)

  1. Export low-level api calculateValidationResult for validation customisation

25.10.2020 (0.14.0)

  1. Added updateEntityManagerData action

29.10.2020 (0.15.0)

  1. Added withPages and apiConfig options to RestifyForeignKeysArray action, allowing to store model fields with links to custom filtering configs

28.11.2020 (0.16.0)

  1. Added preventLoad option to getArrayConfig
  2. Added useRequestsLock api and withRequestsLock option to RestifyForeignKeysArray
0.16.4

1 year ago

0.16.3

3 years ago

0.16.2

3 years ago

0.16.1

3 years ago

0.16.0

3 years ago

0.15.5

3 years ago

0.15.4

3 years ago

0.15.2

3 years ago

0.15.3

3 years ago

0.15.1

3 years ago

0.15.0

3 years ago

0.14.1

4 years ago

0.14.0

4 years ago

0.13.2

4 years ago

0.13.1

4 years ago

0.13.0

4 years ago

0.12.3

4 years ago

0.12.2

4 years ago

0.12.1

4 years ago

0.12.0

4 years ago

0.11.3

4 years ago

0.11.2

4 years ago

0.11.0

4 years ago

0.11.1

4 years ago

0.10.5

4 years ago

0.10.4

4 years ago

0.10.3

4 years ago

0.10.2

4 years ago

0.10.1

4 years ago

0.10.0

4 years ago

0.9.5

4 years ago

0.9.4

4 years ago

0.9.3

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.6

4 years ago

0.6.5

4 years ago

0.6.4

4 years ago

0.6.3

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.10

4 years ago

0.5.9

4 years ago

0.5.8

4 years ago

0.5.6

4 years ago

0.5.5

4 years ago

0.5.7

4 years ago

0.5.4

4 years ago

0.5.3

4 years ago

0.5.0

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.55

5 years ago

0.0.54

5 years ago

0.0.53

5 years ago

0.0.52

5 years ago

0.0.51

5 years ago

0.0.50

5 years ago

0.0.49

5 years ago

0.0.48

5 years ago

0.0.47

5 years ago

0.0.46

5 years ago

0.0.45

5 years ago

0.0.44

5 years ago

0.0.43

5 years ago

0.0.42

5 years ago

0.0.41

5 years ago

0.0.40

5 years ago

0.0.39

5 years ago

0.0.38

5 years ago

0.0.37

5 years ago

0.0.36

5 years ago

0.0.35

5 years ago

0.0.34

5 years ago

0.0.33

5 years ago

0.0.32

5 years ago

0.0.31

5 years ago

0.0.30

5 years ago

0.0.29

5 years ago

0.0.28

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago