This is the log of notable changes to the tsdk
that are developer-facing.
- Feat: Support
FormData
type in react mutation hooks - Chore: bump deps
- Feat: double check
@nest/cli
is installed or not - Feat: add
payload
toonErrorHandler
- Chore: change snippet of import api config
- Feat: react hooks support custom handler
- Feat: add
Expand
types to API - Fix: fix
from
field issue when run sync command - Chore: update deps
- Fix(types): support custom handler in
fe-sdk
- Feat: support custom handler in
fe-sdk
- Chore: remove unnecessary code when
httpLib
isxior
infe-sdk
- Chore: bump deps to latest
- Chore: update
xior
to latest version0.5.3
- Chore: update
axios
to latest version1.7.2
- Feat: socket.io handle emit support FormData
- Feat: support
scripts
config intsdk.config.ts
- Feat: API support
FormData
- Feat: onErrorHandler add apiConfig as
config
- Chore: bump deps to latest
- Feat: bump
xior
to 0.3.0 and deps to latest
- Feat: bump
xior
to 0.2.1 and addisGet
pass to xior instance options.
- Fix: nest webpack build file end with
.js
keep original filename - Fix:
delete
method shouldn't have body
- Chore: bump
xior
to 0.1.1
- Chore: bump xior to 0.0.7
- Fix:
RequestConfig
type ingen-api.ts
should beXiorRequestConfig
whenhttpLib: 'xior'
- Fix: run sync-sdk error,
fe-sdk-template
add"lib": ["DOM", "ES2015", "ES5"],
totsconfig.json
- Chore: bump
xior
version to v0.0.5
- Feat: add httpLib config in
tsdk.config.js
, More detail https://tsdk.dev/docs/guide/tsdk.config - Chore: bump webpack version
- Chore: add
XiorRequestConfig
in generate code
- Feat: add fetch support (use xior, similar axios API: https://www.npmjs.com/package/xior)
- Chore: bump deps
- Chore: update documentation, add
xior
part and fix some typo
- Fix: windows build
- Fix: sync shared files should include JSON files like
*.json
or*.shared.json
- Chore: add
incremental: true
in fe-sdk template's tsconfig.json - Chore: add
resolveJsonModule: true
in fe-sdk template's tsconfig.json
- Breaking Change:
genRoute
callback first two arguments swap for better experience
- Refactor:
nest-webpack.ts
improve error message - Fix: transform paths process error in some case
- Refactor:
nest-webpack.ts
monorepoRoot useconfig
fromtsdk.config.js
- Fix: copy dir content not transform correctly when has
import 'module-name';
- Feat: Generate
React Query
andSWR
hooks supportundefined
payload - Fix: Generate
React Query
hooks error:Multiple exports of name 'setQueryClient'
- Performance: check before run
transformTypeormEntity
to improve performance - Chore: bump
React Query
version to 5.14.0 from 5.10.0
- Chore: add comment to generated
SWR
orReactQuery
hooks
- Feat: respect
isGet
istrue
orfalse
value
- Feat: add
isGet
inAPIConfig
for sometimes backend provide API's http method are allPOST
- Chore: remove dep safe-eval, use eval to parse tsconfig.json instead
- Feat: support url params, add
paramsInUrl
inAPIConfig
- Fix generate SWR mutation hook wrong types
- Feat: add
DrizzleORM
in.tsdkrc
'sentityLibName
- Refactor: remove unused code
- Add
devDependencies
config in.tsdkrc
- Deprecated
.tsdkrc
, usetsdk.config.js
- Chore: remove useless
sdkWhiteList
intsdk.config.js
- Chore:
.tsdkrc
add"removeFields": []
when generate config - Chore: bump deps
- Fix: When no
*.apiconf.ts
, fix sync script error - Fix: React Query hook error: No QueryClient set, use QueryClientProvider to set one
- Feat:
fe-sdk
generate doc add types hover popover feature - Feat: support custom dependencies in
.tsdkrc
, removeaxiosVersion
/kyselyVersion
/swrVersion
/reactQueryVersion
- Chore: update README, and add repo and description to
package.json
- Chore: add
swrVersion
,reactQueryVersion
,kyselyVersion
in.tsdkrc
- Chore: add try prettier code script after run sync command
- Chore: Install only run once when run sync command (before run twice)
- Fix: fix next build error: Collecting page data ..TypeError: (0 , o.withMiddleware) is not a function
- Chore: refactor types in
fe-sdk-template/shared/tsdk-types
, make more sense - Fix: make
removeFields`` in
.tsdkrc` work correctly - Chore: fix entry not found error if retry entry file exists
- Fix: getData in adapters support async
- Fix: generate
permissions.json
add missingname
field - Feat: add
dataHookLib
field in.tsdkrc
, support generateSWR
orReact Query
hooks - Breaking Change: delete sdk folder when run sync command
- Breaking Change(tsdk-server-adapters): change
gen-route
paramters sortgen-route-factory.ts
- Chore:
sync-sdk
script no neednpm run
orpnpm
as prefix
- chore: ignore
name
in APIConfig - chore: change snippets
/src/*
to@/src/*
- fix: path alias start with
@/
sync-sdk error - fix: tsconfig.json is not a valid json
- fix:
shared-refs.ts
include*.shared.ts
- feat: support custom axios version
- Fix: first time run
tsdk --sync
automatic execute install inside the sdk module - Feat: detect
npm
orpnpm
to adjust the run command
- Chore: keep
sync-sdk
script when sync - Chore: documentation just use
typedoc
- Fix:
isObject
add FormData check - Build: generate
package.json
addcross-env NODE_ENV=production
toscripts
- Chore: ignore SDK generate markdown files
docs/api
- Feat: api config type
common
support intsdk-server-adapters
- Feat: onErrorHandler add apiConfig for better debug
- Fix: tsdk onErrorHandler improve send payload type
- Fix tsdk docs build error
- Fix tsdk docs lint error
- Fix tsdk docs build error
- typedoc don't support typescript@5.2, fix to 5.1.6
- bump deps
- bump deps
- add honojs support
- fix:
trimAndRemoveUndefined
should only for object (not array and null) data
2023/7/17
- bump deps
- fix:
_id
overwrite by data with property_id
- fix: when request params is not object wrong data
- bump webpack version
2023/4/18
- bump deps
- socket.io protocol methods use index to save data transfer
2023/2/15
- Sync overwrite with fe-sdk-template files and you should not change files by generate tsdk, but you can create custom files. You can pass tsdk --sync --no-overwrite keep old behavior(but don't recommend.)
- Monorepo: seperate
@acme/test-config
as a package could share buy others
2023/2/16
@acme/ts-config
,@acme/eslint-config
,@acme/test-config
move toconfigs/
from/packages
and change the prefix from@acme/
to@configs/
- Sort files before export content to avoid repeat files change
- Ignore commented import string warn, because it's commented
- Fix windows build
- Fix socket.io getID wrong method logic
- Refactor getID logic
- Support
kysely
- Fix some bugs
fe-sdk
throw custom error
- Generate and change
fe-sdk docs
name, fix confilict in dev. - Skip
tsdk-types.ts
import in shared index, fix type dulicaped error.
- fix broken for old
tsdk
project
tsdk
exportpermissions.json
with organize structure
2022/11/22
tsdk
support APIs SDK Docs export
tsdk-server-adapters
'sgetReqInfo
support Promise function