redux-restify v0.16.4
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
- Added
validateAllform config option
10.10.2017
- Added error message for bad-set pagination property
25.10.2017
- Added orderableFormFieldName to options. No forms and arrays can be ordered by any field.
- Added getEndpoint() selector to models and forms
- Added opporunity to load model by empty id(for singltone models - just loads the endpoint and save the schema)
31.10.2017
- Fixed unregistered field warning for custom idField
- Added
transformBeforeSubmitoption to form config
2.11.2017
- Added
getByUrlandasyncGetByUrlmethods to EntityList. Also, you can defineapiNamein config
7.11.2017
transformBeforeSubmitcan be a function (formValues) => data. Can be used to send arrays
9.11.2017
- Added opportunity to pass RegExp to
getForm(and others) selectors. Returns object with matched form name keys - Added opportunity to pass form names array to
getFormActions. Returns object with form name keys
19.11.2017
- Now
RestifyForeignKeyandRestifyForeignKeysArraycan be set for plain id fields, or even for changing behaviour from model to id fields. They will return model by auto-request anyway - Added
mapServerDataToIdsoption to form config.applyServerDatanow can respects form model field and map models into ids for sending to server
23.11.2017
- Added
allowIdRequestsoption to api model
30.11.2017
getTokencan now return Promise
20.12.2017
- Now
getIsLoadingByIdandgetIsLoadingArrrayreturns true, if the url is not registered inloadsManager
20.02.2018
- Now
allowNestedparam for foreign key respects all models, not only self-recursive
06.03.2018
- Added
clearDataaction to entityManager, so we can clear all api data for model. Useful for cases, when we want to forget some corrupted entities loaded. - Added
clearDataOnRouteChangesetting for model, so we can clear all model data on route changes
04.04.2018
- Added
fetchConfigto RestifyLinkedModel. This config will be applied in linkedModel.getById(, fetchConfig)
13.04.2018
- Added
transformArrayResponseandgetEntityUrlto api and model configs
17.04.2018
- Added
crudActionandspecialActiontogetEntityUrl, nowgetEntityUrlcan return an object with utl and method - Added
transformEntityResponseto api and model configs
19.04.2018
- Added
$modelTypefield to all restify models
24.04.2018
- Added
clearPagesOnRouteChangesetting for model, so we can config default clearing pages on route changes
21.05.2018
- Added
modelConfigsetting forgetArrayand other array getters, allowing to tweak model config for given request
19.06.2018
- Added
RestifyFieldbase field class. Does not have any functionality yet, but can be used to give a field a verbose name and default values - Added
warnAboutUnregisteredFieldsoption to model config
04.07.2018
- Added
onXhrReadycallback for api calls
27.07.2018
- Added
RestifyGenericForeignKeyfor gereric relations
31.08.2018
- Added
forceLoadoption for arrays
27.09.2018
- Added
getPaginationQueryoption for model and api config
01.11.2018
- Added
getHeadersoption for xhr adapter
07.11.2018
- Added
trasformedValuesargument totransformBeforeSubmitfunction, so you can use values with applied fakeId, submitExclude and other default transforms
26.11.2018
- Added
queryparam into form config, so you can send forms to endpoints with query params - Added
authMethodoption to api config
30.11.2018
- Added
withCredentialsparam for api config
02.11.2018
- Added
skipLoadsManagerconfig param for grneral api actions
06.11.2018
- Added
useSnakeCaseapi parameter, so we can disable snake_case convertation for api
09.11.2018
- Now
asyncGetByIdalso has async getters for missing model fields
23.04.2019
- Now creating a new entity clears pages carefully, caching old version and serving it, while new request is in process
28.04.2019
- Added typescript typings
01.07.2019
- Added
transformErrorResponsefunction
05.07.2019
- Added
useOptimisticUpdateconfig to form
20.07.2019
- Added
parentEntitiesconfig to getById
02.08.2019
- Added
hasByIdselector
09.08.2019
- Added
keyanddataparams to generic fields
12.08.2019
- Added config and
useOptimisticparameter todeleteByIdaction. Use, if you want to show element deletion progress.
13.08.2019
- Added modelName parameter to transform Response functions
24.10.2019
- Added
retriesretryTimeoutMsoptions to restify config, so user can define default reties behaviour
06.12.2019
- Added
trackDirtyFieldsandsubmitOnlyDirtyFieldsoptions to form config (see docs)
12.12.2019
- Added
apiConfigfield to form config, allowing to override api settings, likegetTokenetc.
13.01.2020
- Added
updateRestifyfor dynamic add models and formsupdateRestify({ apiDefinitions, modelsDefinitions, formsDefinitions, onUpdateRestify: () => { RESTIFY_CONFIG.store.replaceReducer(getReducer()) }, })
31.01.2020 (0.5.0)
- Added boolean
clearOldPagesparameter(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)
- Return a Promise resolving to
truefrom httpCodesCallback to retry a request
07.03.2020 (0.7.0)
- Added boolean
clearOldSingleEntitiesparameter(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)
- Added support for unregistered parents for models
13.04.2020 (0.9.0)
- Added $old key to RestifyModel, for detecting old data being updated at the moment
04.06.2020 (0.10.0)
- Added opportunity to return promise from onXhrReady
20.07.2020 (0.11.0)
- Added pagination parameter to
getPaginationQueryoption
27.07.2020 (0.11.2)
- Added request data to code callbacks function call
12.08.2020 (0.12.0)
- Added
preventAutoGettersoption togetById
21.09.2020 (0.13.0)
- Added
invokeBaseCallbackstohttpCodesCallbacksapi config option for easier overrides
26.09.2020 (0.13.1)
- Export low-level api
calculateValidationResultfor validation customisation
25.10.2020 (0.14.0)
- Added
updateEntityManagerDataaction
29.10.2020 (0.15.0)
- Added
withPagesandapiConfigoptions toRestifyForeignKeysArrayaction, allowing to store model fields with links to custom filtering configs
28.11.2020 (0.16.0)
- Added
preventLoadoption togetArrayConfig - Added
useRequestsLockapi andwithRequestsLockoption toRestifyForeignKeysArray
3 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago