1.4.4 (2020-01-01)
- genericDefault: add support for default generics on declaration and extensions (#126) (a9df32a)
- importequal: add support for export equals and remove webpack env types that were conflicting with types node (#124) (990ecf1)
- intersectionsfunction: add support for function intersections and parenthesised type in intersections (#127) (5572631)
- registerMock: add registerMock functionality to register custom mocks per project (#125) (0feb05a)
1.4.3 (2019-12-27)
1.4.2 (2019-12-22)
- constructorType: Add constructor type descriptor (#115) (8f26218)
- constructSignature: add construct signature (#116) (b0aa18a)
- import: add import equals support and make sure transformer test run in a context so the cache system will work (f23039d)
- indexedAccess: add indexed access support for mocks (#119) (a3e9841)
1.4.1 (2019-11-30)
- enum: add module declaration enum support (4642520)
1.4.0 (2019-11-26)
1.3.1 (2019-11-21)
1.3.0 (2019-11-21)
- genericReuse: add types with generic to mock factory (ddd94b0)
- genericReuse: extensions (Provider) provideMethod will be deprecated in future releases in favour of provideMethodWithDeferredValue
Provider.provideMethod is deprecated changed: Before:
Provider.instance.provideMethod((name: string, value: any) => {
...
});
After:
Provider.instance.provideMethodWithDeferredValue((name: string, value: () => any) => {
...
});
Read the documentation for more information
1.2.1 (2019-10-29)
1.2.0 (2019-08-18)
1.1.4 (2019-07-06)
- log: add test script that will output logs (d577cf8)
1.1.3 (2019-06-29)
- log: logging feature, remove npm i logs for ci (0cdfa27)
1.1.2 (2019-05-18)
1.1.1 (2019-04-27)
1.1.0 (2019-04-27)
- modules: make sure transformer is exported in the right folder (832afc1)
1.0.0 (2019-04-27)
- module division: modules divisions (54575a7)
- module division: extensions (On, method) are in a separate modules, mockFactory changed interface, name (Provider) and module
Importing On, method changed:
Before:
import { On, method } from "ts-auto-mock";
After:
import { On, method } from "ts-auto-mock/extension";
MockFactory changed name, module and interface:
Before:
import { MockFactory } from "ts-auto-mock";
MockFactory.instance.registerFactory((name: string, value: any) => {
...
});
After:
import { Provider } from "ts-auto-mock/extension";
Provider.instance.provideMethod((name: string, value: any) => {
...
});
0.0.27 (2019-04-07)
- tslinttest: fix another unit test (5b84a55)