3.7.4 (2024-08-24)
3.7.3 (2024-04-13)
- negativeNumbers: convert negative literal numbers to unary expression with minus token (#1580) (5b9289d)
3.7.2 (2023-12-25)
- typescript: add support to typescript 5.3 (8913b86)
3.7.1 (2023-06-19)
- typescript: improve typings for partials (28ad22a)
3.7.0 (2023-05-11)
- typescript5: Add compatibility to typescript 5 (7378ad7)
- typescript5: Typescript 4 is not longer supported
3.6.4 (2022-12-08)
- ci: update names on ci and fix workflow (a1a09d7)
3.6.3 (2022-12-08)
- typescript: add support to typescript 4.9.3 (77bfaba)
3.6.2 (2022-05-06)
- node: downgrade the engine strict version to 14 because is still supported by node js in maintenance (263e870)
3.6.1 (2022-05-04)
- nodejstypes: node globals types are now excluded when analyzing type properties (2f025b7), closes /github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V16.md#2021-07-29-version-1660 /github.com/DefinitelyTyped/DefinitelyTyped/commit/dca7357e90ef804954aaf042ed158220bcd09079#diff-2696281f8832b1227bb41483a7525a8ccd9399bb4b1704f69c8c54bb1346d8edR80
3.6.0 (2022-04-30)
- (dependencies: update typescript to version 4.6.4 (1a83487)
- dependencies: update winston to version 3.7.2 (9286731)
3.5.1 (2022-04-26)
- update typescrpt to 4.6.3 (365d851)
3.5.0 (2021-09-12)
- arrowfunctionliteraltypes: add some compatibility for arrow functions without type definitions (b2fb8de)
3.4.0 (2021-09-02)
- functionliteraltypes: add some compatibility for functions without type definitions! (#889) (a21e012)
3.3.6 (2021-08-28)
- vulnerability: fix some vulnerabilities (53a13e5)
3.3.5 (2021-08-08)
- typescript: upgrade to latest version of typescript (69e52e1)
3.3.4 (2021-08-08)
- husky: remove husky from post install because it will be required for consumers of the packages (83498e2)
3.3.3 (2021-08-08)
- dependencies: run husky installation only when installing not when publishing the package (#871) (9fea5d4)
3.3.2 (2021-08-08)
3.3.1 (2021-08-08)
- dependencies: update ts-auto-mock dependencies to the latest version (46fbacf)
3.3.0 (2021-06-24)
3.2.3 (2021-06-17)
3.2.2 (2021-05-22)
3.2.1 (2021-05-20)
3.2.0 (2021-05-19)
- getAccessor: correctly mock get accessors for mocked classes (3530039)
3.1.3 (2021-04-21)
3.1.2 (2021-03-15)
3.1.1 (2021-02-18)
- typeReference: log warning when type definition does not exists and cannot be located (#618) (5750def)
3.1.0 (2021-01-06)
- hydrate-mocks: add create-hydrated-mock functionality (aa2ebad)
3.0.0 (2020-12-25)
- typescript: typescript >= 4.0.2 is required to use ts-auto-mock Update your typescript dependency to version >= 4.0.2
2.7.0 (2020-12-08)
- registerMock: allow use of mocked generics in register mock factory (512e150)
2.6.5 (2020-10-08)
- createMockList: count the number of create mock list on runtime instead of relying on a numeric literal (eec45dd), closes #595
2.6.4 (2020-09-18)
- transformer: apply null and warning when property type cannot be identified (7cc1ec0)
- typescript: restore support for typescript 3 (825cc01)
2.6.3 (2020-09-17)
- transformer: do not fail when accessing index of extended this for a computed property (02e7b12)
2.6.2 (2020-09-15)
- definitelyTyped: do not fail on mocking module declarations (4660f58)
2.6.1 (2020-09-15)
2.6.0 (2020-09-15)
- fileFilter: add config option to specify files with mocks (526d677)
2.5.3 (2020-09-15)
- properties: create property when undefined/void, do not emit property only when optional (70d65ed)
2.5.2 (2020-09-13)
- enum: fix enum constant computed properties (9c96a53)
2.5.1 (2020-09-12)
- mockValues: assign, not merge, override value when is a mock to prevent maximum callstack size exceeded errors (7431d80)
2.5.0 (2020-09-11)
- logs: ensure logs tests work on windows (a160a87)
- transformer: tuple type now gets mocked as an instance of specified tuple, add keyof warning, support readonly array/tuple Pmyl 23 minutes ago (af9df91)
2.4.0 (2020-09-09)
2.3.5 (2020-08-29)
- createMock: PartialDeep to ignore object prototype properties (37cb34d)
2.3.4 (2020-08-09)
- partial: improve deep partial type to ensure compilation without errors when passing default values to create mock and create mock list (7463501)
2.3.3 (2020-07-11)
- typeof-module: prevent unsupported declaration to be transformer when mocking typeof of a module that uses exports = (09aa3b3)
2.3.2 (2020-07-05)
- upgrade gatsby-plugin-google-analytics from 2.3.1 to 2.3.3 (52c1b88)
2.3.1 (2020-07-05)
- upgrade typescript from 3.9.3 to 3.9.5 (82bf1b8)
2.3.0 (2020-06-27)
- transformer: error when running tests with no transformer installation (16506e5)
- transformer: extract repeated error in a constant, fixed error wording (dd73b57)
2.2.8 (2020-06-14)
2.2.7 (2020-06-10)
2.2.6 (2020-06-06)
- release: create a release every time there are new changes on master (0013c9d)
2.2.5 (2020-05-31)
- indexedAccessType: ensure compiler doesn't break for unsupported indexed access type (2ef31c7)
2.2.4 (2020-05-31)
- release: ensure develop will be up to date after a release (613b5ed)
2.2.3 (2020-05-31)
- token: ensure performance and definitely typed pull requests are created with the right token (869fa37)
2.2.1 (2020-05-31)
- release: test release pipeline version (b8f78dd)
2.2.0 (2020-05-31)
- release: adjust automated pr to create a valid commit msg (#354) (1600788)
- release: change owner to uittorio attempting to fix npm authentication problem (9092ff6)
- release: ensure correct folder will be published to npm (9664b3d)
- release: ensure library its build before publishing (fb5535b)
- release: fix syntax in release.yml (ef97ae5)
- release: revert owner and add token registration (169cc76)
- release: semantic release test (#351) (996b5a9)
- random: add enum random support (eeceea2)
2.1.22 (2020-05-25)
2.1.21 (2020-05-25)
- random: enable random feature for primitives types (9666efc)
2.0.0 (2020-05-13)
2.0.0 (2020-05-13)
- transformer: Ensure mocked interfaces don't extend themselves infinitely if passed as generic argument (#312) (9911d94)
- union: ensure union type with null or unknown will mock the first type (#322) (a2d58ad)
- union: union types that resolve in null or unknown will now not be converted to undefined.
before
type = string | null // undefined
after
type = string | null // '' (empty string)
1.6.2 (2020-05-11)
1.6.2 (2020-05-11)
1.6.1 (2020-05-10)
1.6.0 (2020-04-11)
1.5.891 (2020-04-11)
1.5.891 (2020-04-11)
1.5.89 (2020-04-11)
1.5.88 (2020-04-11)
1.5.88 (2020-04-11)
1.5.87 (2020-04-11)
1.5.87 (2020-04-11)
1.5.86 (2020-04-11)
1.5.85 (2020-04-11)
1.5.85 (2020-04-11)
1.5.84 (2020-04-11)
1.5.84 (2020-04-11)
1.5.83 (2020-04-11)
1.5.83 (2020-04-11)
1.5.82 (2020-04-11)
1.5.82 (2020-04-11)
1.5.81 (2020-04-11)
1.5.63 (2020-04-11)
1.5.62 (2020-04-11)
1.5.61 (2020-04-11)
1.5.6 (2020-04-11)
1.5.5 (2020-04-11)
- upgrade gatsby-plugin-google-analytics from 2.1.35 to 2.2.2 (#299) (b8335d5)
- upgrade ttypescript from 1.5.8 to 1.5.10 (#298) (7e7bd59)
- extendsMappedType: make sure extending mapped types do not prevent to compile (#241) (627b9bc)
- set: add Set support as a type (#233) (446c090)
- typescript: add support for typescript 3.8 (#246) (2a18bed)
1.5.4 (2020-02-08)
- transformer: export definitely typed for transformer so it will be easier to read the documentation while developing (#222) (37b4b7e)
- typeof-alias-export: make sure alias exports will be transformed correctly (#214) (27ae136)
- typequery: add support for typequery undefined (#227) (0b835b1)
1.5.1 (2020-01-31)
1.5.0 (2020-01-31)
- definitelyTyped: add node types in generated tsconfig (#186) (19caa94)
- definitelyTyped: copy compiler option "paths" from processed type (#185) (6265fde)
- definitelyTyped: use ts-ignore before createMock so that value type modules don't fail (acd2c6f)
- genericNotProvided: make sure required generic will default to null when are not provided (#180) (ad76471)
- mockProperty: make sure a falsy value can be assigned to a mock property (#208) (0b37699)
- ui: use index as key of list of components to make sure the ui doesn't fail when a type gets processed multiple times (#178) (84a52a1)
- constructorType: Add constructor type descriptor (#115) (8f26218)
- constructSignature: add construct signature (#116) (b0aa18a)
- DefinitelyTyped: add process with ui to run createMock on every type of DefinitelyTyped repository (#136) (445f31e)
- genericDefault: add support for default generics on declaration and extensions (#126) (a9df32a)
- import: add import equals support and make sure transformer test run in a context so the cache system will work (f23039d)
- importequal: add support for export equals and remove webpack env types that were conflicting with types node (#124) (990ecf1)
- indexedAccess: add indexed access support for mocks (#119) (a3e9841)
- intersectionsfunction: add support for function intersections and parenthesised type in intersections (#127) (5572631)
- multipledeclaration-bigint: add support for multiple declarations functions for types and values and biging (#163) (00d9904)
- registerMock: add registerMock functionality to register custom mocks per project (#125) (0feb05a)
- typeQuery: add support for typeof of an imported module (#128) (a9e25a3)
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)
- 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 DOCS for more information
-
add global scope and move type reference cache in the scope
-
remove space
-
init scope
-
add first version - extend generic still doesnt work
-
remove unused method
-
add back the new generic tests
-
remove unused file, disable extensions, intersection and ts lib (WIP)
-
simplify generic function
-
merge generic tests and add reuse test
-
remove unused files
-
re enable working tests and add some info for this branch
-
add test and comment to find test to fix
-
add enumerable to object so it will have the correct output and add support to recursive call signatures
-
fix type generic case
-
restric interface to specific types so it will be easier to extend it
-
rename function
-
first working version generic extends
-
remove unused descriptor and add more test to support types
-
add more tests
-
make sure factory cache is not exposed, divide caches
-
refactor type parameter
-
add more test and refactor the mess in mock factory call
-
add more tests
-
add more tests
-
added back promises implementation and all test
-
remove comment we will write test scenario when available
-
add direct type test mock
-
remove unused import
-
remove comments
-
remove unused field
-
document playground command
-
Update README.md
-
remove unnecessary code, rename text and simplify for
-
remove unnecessary create mock in the test
-
remove unnecessary if
-
deprecate getMethod and add new method to make sure with don't introduce breaking changes
-
update deprecated comment
-
update
0.0.2 (2019-09-21)
0.0.1 (2019-09-21)
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)