Граф коммитов

293 Коммитов

Автор SHA1 Сообщение Дата
ommizrah fdba18e990 fixed a bug where relationships were broken if class names were mangled 2020-04-19 22:44:07 +03:00
omermizr a4fd2ed643
version bump 1.10.1 (#41) 2020-04-19 14:09:09 +03:00
omermizr 1c9d45d236
fixed a bug where 'getItemById' wouldn't use 'parseItem' (#39)
* fixed a bug where 'getItemById' wouldn't use 'parseItem'

* added missing params

* added tests
2020-04-19 14:06:20 +03:00
omermizr 4e1b28159c
version bump 1.10.0 (#40) 2020-04-16 20:28:32 +03:00
dependabot[bot] 6167a00de8
Bump lodash-es from 4.17.10 to 4.17.15 (#35)
Bumps [lodash-es](https://github.com/lodash/lodash) from 4.17.10 to 4.17.15.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.10...4.17.15)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-04-16 18:42:33 +03:00
omermizr b209429553
fixed a bug where relationship repositories' cache key wasn't always unique (#36) 2020-04-16 18:42:13 +03:00
omermizr 9869fff125
added DataQuery to 'modelWith' (#38)
* added DataQuery to 'modelWith'

* added ability to use strings in 'modelWith'
2020-04-16 18:41:42 +03:00
Maor Frankel ef93d9c0e2
Merge pull request #34 from microsoft/clear_allItemsBeingSet$
clear _allItemsBeingSet$ when query is complete to avoid persistent q…
2020-03-19 21:26:35 +02:00
maorfrankel b7d41407fb clear _allItemsBeingSet$ when query is complete to avoid persistent query calls 2020-03-19 17:17:17 +02:00
omermizr 0c6dc525fe
fixed a bug where entities with loadAll would stop working if destination unsubscribes/errors before completion (#32) 2020-01-05 17:03:04 +02:00
Maor Frankel af71cd8c0e
Merge pull request #30 from microsoft/http-interceptor
add intercept options for AjaxRequest
2019-10-16 15:32:04 +03:00
maorfrankel cbc8abbb2a re trigger tests 2019-10-16 15:23:16 +03:00
maorfrankel 226bc7bf63 bring back tests 2019-10-16 15:14:56 +03:00
maorfrankel dca1791684 remove unit test 2019-10-16 15:13:11 +03:00
maorfrankel a993b7c34a fix tests 2019-10-16 15:04:47 +03:00
maorfrankel 3f4b76ce8e fix tests 2019-10-16 14:54:39 +03:00
maorfrankel 6bf3a154c7 add intercept options for AjaxRequest 2019-10-16 14:41:10 +03:00
Shai Rose a08c24ad14 fix (api call): timeout from config should be passed as part of requestOptions (#29)
* fix (api call): timeout from config should be passed as part of requestOptions
2019-10-03 09:37:18 +03:00
Aaron Greenwald 4e8cde0f9f
fix|api call|timeout from config should be passed as part of httpOptions (#28)
* fix|api call|timeout from config should be passed as part of httpOptions
2019-09-16 14:22:21 +03:00
Aaron Greenwald 01d705357c upgrade gulp version 2019-07-25 12:04:57 +03:00
Aaron Greenwald d40e42a7e1
revert breaking changes in 8e9213b, 5225d63 (#27)
these commits accidentally introduce a breaking
change - if you manually set a field in a model
that is a subclass of another model, that field
gets overwritten (typically with null) on model
creation.

Example: `CatModel` and `DogModel` both extend
`AnimalModel` and set the `family` property to
`'canine'` and `'feline'` respectively.

When either `CatModel` or `DogModel` are created,
the `family` field will be overwritten when
the modeldata (which doesn't have a family value)
is copied to the model.
2019-07-25 11:14:37 +03:00
Maor Frankel 6a8f256c4a
Merge pull request #26 from microsoft/reset-config
Add API method to set and reset config
2019-07-16 09:54:46 +03:00
maorfrankel 48c6c9b648 rebuild docs 2019-07-16 09:22:11 +03:00
maorfrankel 87d6e18537 align with PR comments, changed to setConfig and reset config back to default 2019-07-16 09:07:00 +03:00
maorfrankel 28ce564637 fix indentation 2019-07-14 16:13:39 +03:00
maorfrankel 123628f844 Add API method to clear and reset config 2019-07-14 14:11:48 +03:00
Aaron Greenwald a58ff49af9 bump version 2019-06-27 09:46:31 +03:00
Aaron Greenwald 9915805fff
fix(default values)|deep clone defaults before setting the model (#25)
* fix(default values)|deep clone defaults before setting the model

so that modifying the model doesn't modify future created models

* add circle-ci config
2019-06-26 18:44:30 +03:00
Yossi Kolesnicov 33e53ed04d
Bug/separate array params query (#23)
* Assigning a model's data in the modeler rather than in the constructor, to make the modeler work properly with Babel, which doesn't call the parent's constructor of a class.

* Assign data in submodels in modeler, for Babel.

* Bugfix: separateArrayParams wasn't being used properly in queries.

* Set version to 1.6.0.

* Fixed test.
2019-05-03 17:39:42 +03:00
Or Adler 9635d65738
adding Paris.clearApiCallCache method to enable users to clear the apiCalls cache
* adding clearApiCallCache method to enable users to force clearing the apiCalls cache

* upgraded to jest 24 + added caching mechanism tests

* version bump
2019-05-01 16:56:58 +03:00
Yossi Kolesnicov 8e9213b8fd
Assign data in submodels (#22)
* Assigning a model's data in the modeler rather than in the constructor, to make the modeler work properly with Babel, which doesn't call the parent's constructor of a class.

* Assign data in submodels in modeler, for Babel.
2019-05-01 10:59:43 +03:00
Yossi Kolesnicov 5225d63d6d
Assigning a model's data in the modeler rather than in the constructor, to make the modeler work properly with Babel, which doesn't call the parent's constructor of a class. (#21) 2019-04-29 15:22:44 +03:00
Yossi Kolesnicov 62d0e3401e Upgraded jest 2019-04-29 09:08:47 +03:00
Yossi Kolesnicov d49d19a737 Fixing tests 2019-04-28 17:10:25 +03:00
Yossi Kolesnicov 7ee034ee3f Bug fix: If an entity with `loadAll` was being loaded multiple times when the values weren't loaded yet, there would be multiple instances of the same value, while there should be just a single one. 2019-04-28 16:09:41 +03:00
Ben Grynhaus b587ff350a bump version 2019-03-05 17:33:06 +02:00
gibarila 62f7073f0c Expending the usage of custom headers to: remove, removeItems, saveItems, queryItem and getItemById (#19)
* test pass

* small fix

* repair in getById

* pr fixes

* more fixes
2019-03-05 17:32:30 +02:00
Ben Grynhaus 35a180c93a bump version 2019-03-03 10:58:42 +02:00
gibarila 2ecc472dc3 adding support in customHeaders in repository (#18) 2019-03-03 10:57:06 +02:00
Yossi Kolesnicov 7c3869ccf0 Bumped version to 1.4.0. 2019-02-19 09:24:17 +02:00
Itamar 177d05ced0 Add missing EntityField import in readme (#16) 2019-02-17 16:36:13 +02:00
gibarila 14b1c5c1ae Add customHeaders to api call - both for entity and regular apiCall (#15)
* first

* more

* final fixes

* fixed build errors

* change apiVersion to generic solution of custom headers

* work, still need to write tests

* small fixes

* revert

* fix

* code imporvements

* expanding tests

* update tests

* fix

* revert

* fix

* all tests pass

* trial

* trial

* trial

* trial

* trial

* trial

* trial

* problems with two tests

* problems with two tests

* fixes

* try any

* typo

* try

* more

* pr fixes

* fix tests

* fix

* pr fixes

* more classic code

* fix style

* final
2019-02-17 16:35:25 +02:00
Yossi Kolesnicov c49ac6b973 Bumped version. 2019-01-24 11:38:47 +02:00
Shadowglen Elf 300f378784 Support customized ajax service instance implementing same interface (#13)
* Support customized ajax service instance implementing same interface

* Fix test cases

* Fix according comments

* Fix according comments
2019-01-24 11:38:13 +02:00
omermizr 310d2c3f76 added responseType for api calls (#14) 2019-01-16 10:35:21 +02:00
Ben Grynhaus 41d52d2656
Fix type issue in allItems (#12) 2018-12-03 11:47:13 +02:00
Yossi Kolesnicov f37475be25 Added test for modeling an array field with unknown type. 2018-11-26 13:52:24 +02:00
Yossi Kolesnicov 6605b4bb16 Bug fix: serializing nested value objects wasn't working. 2018-11-25 10:52:13 +02:00
Yossi Kolesnicov 899a5e48bf Added parseData to related items. 2018-10-23 13:19:56 +03:00
Ben Grynhaus 0f39f5a2b1 Bump version to 1.3.4 2018-10-22 15:30:18 +03:00