- Skip
..
inpath()
- Resolve duplicate type imports in logic files
- Fix missing logic in connect.
- Sort printed unions and type literals in actions, reducers, etc. This is to keep the output deterministic.
- Fix deprecations and upgrade TypeScript
- Support kea-forms's paths in path cleanup.
- Also support
@types/
imports by removing@types/
- Clean up paths in generated import files
- Convert
../../node_modules/*
to just*
- Convert
../../node_modules/.pnpm/pkg@version/node_modules/*
to just*
- Convert
- Add
--delete
to delete unusedlogicTypes.ts
files
- Fix "... n more ..." case. Thanks @Twixes
- Add
asyncActions
- Add
--show-ts-errors
- Support
extraLogicFields
in parsedLogic to add any type to the generated logicType.ts
- Fix babel import error.
- Remove support for importing local types by adding to the end of
logicType
inkea<logicType<Something, Other, Another>>(...)
- Instead,
export
all local types, and typegen will import them inlogicType.ts
just like other types, even if they're declared inlogic.ts
. - This will bring a circular import in your code
logic.ts <-> logicType.ts
, buttsc
seems not to care.
- Works with Kea 3.0
- Add
--add-ts-nocheck
option.
- Internal: plugins can specify which types they want to import from 'kea'
- Fix bug introduced with 1.4.1 if your
tsconfig.json
file does not contain atypes
array.
- Adds new option,
ignoreImportPaths
, to specify a list of files or folders that typegen will never import from, when adding imports insidelogicType.ts
files. - Automatically skips adding imports for global types, as specified via the
types
array intsconfig.json
. Each entry in the array (e.g.node
) will add an import ignore path for./node_modules/@types/node
. To revert this, set"importGlobalTypes": true
inside.kearc
or via the CLI.
- Support TypeScript 4.5+.
- Now adds new type imports with
type
, such as:import type { logicType } from './logicType
. - Refactor internals to create nodes newer
ts.factory
methods.
- Write paths into logics with
--write-paths
. Can be configured in.kearc
withwritePaths: true
- Loaders: Make the
payload
parameter on theSuccess
action optional.
- Improve
kea-loaders
0.5.0 support
- Support
kea-loaders
0.5.0, addpayload
to the success action anderrorObject
to the failure action.
- Support reducers with actions like
[otherLogic().actionTypes.bla]
- Fix bug with string constant types in action properties when connected with
connect
.
- Support declaring
props: {} as SomeInterface
- Bugfixes
- Export types and
runTypeGen
function
- Fix main field in package.json
- Experimental support for typegen plugins
- Fix regression
- Fix regression
- Use explicitly specified function return types if present for actions and selectors (vs detection via compiler api).
- This helps with namespaced types like
This.That
, as the namespace information is lost in detected types.
- Republish as 1.0.0 on npm is actually 0.7.2
- Only import
A
when encountering complex types likeA.B
- Support auto-importing referenced types into logic types
- Support actions that return payloads with over 16 properties (fix ".. 4 more .." in the generated type).
- Improve error display, condense logs
- Fix various bugs from last version.
- Run with
--no-import
to skip automatically adding imports to logic types.
- Automatically add
import { logicType } from './logicType'
statements - Automatically add the type to
kea<logicType>()
- 0.6.0 and 0.6.1 had some bugs, don't use.
- Support reducers with selectors as defaults
- Fix type bug with selectors
- Skip first comment line in generated types when comparing for overwrites
- Update deps
- Update and clean up copy
- Fix
kea-typegen write
recursive updates
- Fix "Record<...>" style shortened types in selectors
- Add names to selectors
- Fixed support for TypeScript 4.1