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
Ben Grynhaus
cc76fbf322
Fix `modelWith` causing an infinite recursion ( #10 )
2018-10-22 15:29:37 +03:00
Ben Grynhaus
50dd9e9564
Fix `modelWith` causing an infinite recursion
2018-10-22 15:28:53 +03:00
Yossi Kolesnicov
95e04403b2
Changed description in package.json.
2018-09-17 09:46:52 +03:00
Yossi Kolesnicov
8b00d8a12f
Fixed missing 'next' in DataSet.
2018-09-16 17:08:21 +03:00
Yossi Kolesnicov
5c3550872c
Bumped version to 1.3.2.
2018-09-02 21:53:50 +03:00
Yossi Kolesnicov
b3a4e5719b
Fixed a bug in modeling, when receiving a sub model as ID with value 0, the value wouldn't get modeled.
2018-09-02 21:53:04 +03:00
Ben Grynhaus
50aa362b2d
Merge pull request #8 from Microsoft/fix-hashing-circular-dep
...
Fix hashing when passing an object with circular dependencies to an ApiCall as a parameter
2018-09-02 15:02:58 +03:00
Ben Grynhaus
dbff13ad35
Added tests
2018-09-02 11:58:27 +03:00
Ben Grynhaus
34b857f0d9
1.3.1
2018-09-02 11:58:26 +03:00
Ben Grynhaus
6d61188143
Replace cache key generation with 'json-stringify-safe'
2018-09-02 11:58:18 +03:00
Ben Grynhaus
91dcc1fda8
Add 'json-stringify-safe' as bundledDependency to allow cycles inside objects passed to ApiCall
2018-09-02 11:39:04 +03:00
Yossi Kolesnicov
405bf832ba
Modeler ( #9 )
...
* Added the Modeler class.
* Optimized imports
* Simplifying ReadonlyRepository and Modeler for a better API and adding unit tests.
* Adding unit tests for modeling and some refactoring
* Added some unit tests.
* Folder reorg, added some tests
* Added SaveRequestMethod for specifying POST/PUT/PATCH HTTP methods.
* Added Travis build file
* Removing unused files
* Fixed tests
* Bumped version to 1.3.0, docs.
* Bug fix - sub-modeling of value objects failed.
* Some bug fixes and unit tests
* Added more unit tests, fixed some bugs.
* Added modeler docs
* Removed codecov badge (for now). Added npm package version badge to readme.
* Removed codecov badge (for now). Added npm package version badge to readme.
2018-09-01 22:36:41 +03:00
Ben Grynhaus
bc22f257d7
Merge pull request #6 from Microsoft/fix-build-issue
...
fix build issue due to TS bug
2018-08-20 13:58:35 +03:00
Yossi Kolesnicov
f651e8a262
Create CODE_OF_CONDUCT.md
2018-08-19 14:40:38 +03:00
Ben Grynhaus
0a9ea3cbe0
fix build issue due to TS bug
2018-08-16 20:19:49 +03:00
Ben Grynhaus
c462eb34ab
Merge pull request #5 from Microsoft/model-with
...
Add ability to model any number of subclasses for a given entity
2018-08-13 15:56:27 +03:00
Ben Grynhaus
773e347689
Rename & added better docs for getModelData
2018-08-13 15:21:48 +03:00
Ben Grynhaus
a62f3ef387
Enhanced docs for `modelWith`
2018-08-13 15:13:07 +03:00
Ben Grynhaus
0f2d40e1da
Added Omer Mizrachi as contributor
2018-08-13 15:13:07 +03:00
Ben Grynhaus
5f11da5496
1.2.0
2018-08-13 15:13:07 +03:00
Ben Grynhaus
376003edcb
Added contributors
2018-08-13 15:13:07 +03:00
Ben Grynhaus
2cd6ed19e5
Add support for `modelWith`
...
# Conflicts:
# .vscode/settings.json
2018-08-13 15:13:06 +03:00
Ben Grynhaus
6b03d15e1a
Merge pull request #4 from Microsoft/jest
...
Replace mocha + karma + chai with jest
2018-08-13 13:50:34 +03:00
Ben Grynhaus
825d83e90d
Added a note about testing using Jest
2018-08-13 13:50:25 +03:00
Ben Grynhaus
2d00bf7c8c
Fixed outdated readme
2018-08-13 13:48:39 +03:00
Yossi Kolesnicov
218d15d904
Added Jest ignore pattern for /dist folder.
2018-08-13 11:01:08 +03:00
Ben Grynhaus
f1cc7c2c46
Replace mocha + karma + chai with jest
2018-08-12 18:30:54 +03:00
Yossi Kolesnicov
4a4b6a7dbf
Bug fix - didn't check for undefined when usigin parseDataSet.
2018-08-08 14:41:24 +03:00
Yossi Kolesnicov
54c4faffc3
Adding npm ignore for .tgz files, to avoid publishing by mistake npm pack results.
2018-08-07 16:34:18 +03:00