Documentation
Changelog

CHANGELOG

This is the log of notable changes to the tsdk that are developer-facing.

0.2.4 2024/10/20 (Not Published Yet)

  • Feat: double check @nest/cli is installed or not
  • Feat: add payload to onErrorHandler
  • Chore: change snippet of import api config

0.2.3 2024/10/9

  • Feat: react hooks support custom handler
  • Feat: add Expand types to API
  • Fix: fix from field issue when run sync command
  • Chore: update deps

0.2.2 2024/9/22

  • Fix(types): support custom handler in fe-sdk

0.2.1 2024/9/21

  • Feat: support custom handler in fe-sdk
  • Chore: remove unnecessary code when httpLib is xior in fe-sdk
  • Chore: bump deps to latest

0.2.0 2024/7/18

  • Chore: update xior to latest version 0.5.3
  • Chore: update axios to latest version 1.7.2

0.1.16 2024/5/10

  • Feat: socket.io handle emit support FormData

0.1.15 2024/5/9

  • Feat: support scripts config in tsdk.config.ts

0.1.14 2024/5/8

  • Feat: API support FormData
  • Feat: onErrorHandler add apiConfig as config
  • Chore: bump deps to latest

0.1.13 2024/3/25

  • Feat: bump xior to 0.3.0 and deps to latest

0.1.12 2024/3/17

  • Feat: bump xior to 0.2.1 and add isGet pass to xior instance options.

0.1.11 2024/3/5

  • Fix: nest webpack build file end with .js keep original filename
  • Fix: delete method shouldn't have body

0.1.10 2024/3/4

  • Chore: bump xior to 0.1.1

0.1.9 2024/2/27

  • Chore: bump xior to 0.0.7

0.1.8 2024/2/23

  • Fix: RequestConfig type in gen-api.ts should be XiorRequestConfig when httpLib: 'xior'
  • Fix: run sync-sdk error, fe-sdk-template add "lib": ["DOM", "ES2015", "ES5"], to tsconfig.json

0.1.7 2024/2/20

  • Chore: bump xior version to v0.0.5

0.1.6

0.1.5

0.1.4 2024/01/20

  • Fix: windows build

0.1.3 2024/01/20

  • Fix: sync shared files should include JSON files like *.json or *.shared.json

0.1.2 2024/01/20

  • Chore: add incremental: true in fe-sdk template's tsconfig.json
  • Chore: add resolveJsonModule: true in fe-sdk template's tsconfig.json

0.1.1 2024/01/05

  • Breaking Change: genRoute callback first two arguments swap for better experience

0.0.35 2024/01/3

  • Refactor: nest-webpack.ts improve error message
  • Fix: transform paths process error in some case

0.0.34 2024/01/2

  • Refactor: nest-webpack.ts monorepoRoot use config from tsdk.config.js

0.0.33 2023/12/31

  • Fix: copy dir content not transform correctly when has import 'module-name';

0.0.32 2023/12/22

  • Feat: Generate React Query and SWR hooks support undefined payload
  • Fix: Generate React Query hooks error: Multiple exports of name 'setQueryClient'

0.0.31 2023/12/17

  • Performance: check before run transformTypeormEntity to improve performance
  • Chore: bump React Query version to 5.14.0 from 5.10.0

0.0.30 2023/12/15

  • Chore: add comment to generated SWR or ReactQuery hooks

0.0.29 2023/12/11

  • Feat: respect isGet is true or false value

0.0.28 2023/12/8

  • Feat: add isGet in APIConfig for sometimes backend provide API's http method are all POST

0.0.27 2023/12/6

  • Chore: remove dep safe-eval, use eval to parse tsconfig.json instead
  • Feat: support url params, add paramsInUrl in APIConfig

0.0.26 2023/12/4

  • Fix generate SWR mutation hook wrong types

0.0.22-0.0.25 2023/12/2

  • Feat: add DrizzleORM in .tsdkrc's entityLibName
  • Refactor: remove unused code
  • Add devDependencies config in .tsdkrc
  • Deprecated .tsdkrc, use tsdk.config.js
  • Chore: remove useless sdkWhiteList in tsdk.config.js

0.0.21 2023/12/1

  • 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

0.0.20 2023/11/25

  • Feat: fe-sdk generate doc add types hover popover feature
  • Feat: support custom dependencies in .tsdkrc, remove axiosVersion / kyselyVersion / swrVersion / reactQueryVersion
  • Chore: update README, and add repo and description to package.json

0.0.20-beta.15 2023/11/18

  • 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

0.0.20-beta.14 2023/11/17

  • 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 missing name field
  • Feat: add dataHookLib field in .tsdkrc, support generate SWR or React Query hooks
  • Breaking Change: delete sdk folder when run sync command

0.0.20-beta.13 2023/11/15

  • Breaking Change(tsdk-server-adapters): change gen-route paramters sort gen-route-factory.ts
  • Chore: sync-sdk script no need npm run or pnpm as prefix

0.0.20-beta.12 2023/10/31

  • 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

0.0.20-beta.11 2023/10/30

  • Fix: first time run tsdk --sync automatic execute install inside the sdk module
  • Feat: detect npm or pnpm to adjust the run command

0.0.20-beta.10 2023/10/19

  • Chore: keep sync-sdk script when sync
  • Chore: documentation just use typedoc

0.0.20-beta.9 2023/9/28

  • Fix: isObject add FormData check
  • Build: generate package.json add cross-env NODE_ENV=production to scripts
  • Chore: ignore SDK generate markdown files docs/api
  • Feat: api config type common support in tsdk-server-adapters

0.0.20-beta.9 2023/9/13

  • Feat: onErrorHandler add apiConfig for better debug
  • Fix: tsdk onErrorHandler improve send payload type

0.0.20-beta.5

  • Fix tsdk docs build error

0.0.20-beta.4

  • Fix tsdk docs lint error

0.0.20-beta.3

  • Fix tsdk docs build error

0.0.20-beta.2

0.0.20-beta.1 2023/9/3

  • bump deps

0.0.20-beta.0 2023/7/31

  • bump deps
  • add honojs support

0.0.19-beta.16 2023/5/16

  • fix: trimAndRemoveUndefined should only for object (not array and null) data

2023/7/17

  • bump deps

0.0.19-beta.15 2023/5/16

  • fix: _id overwrite by data with property _id
  • fix: when request params is not object wrong data

0.0.19-beta.14 2023/3/23

  • bump webpack version

2023/4/18

  • bump deps

0.0.19-beta.13 2023/2/13

  • 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 to configs/ from /packages and change the prefix from @acme/ to @configs/

0.0.19-beta.12 2023/2/9

  • Sort files before export content to avoid repeat files change

0.0.19-beta.11 2023/2/8

  • Ignore commented import string warn, because it's commented
  • Fix windows build

0.0.19-beta.10 2023/2/5

  • Fix socket.io getID wrong method logic
  • Refactor getID logic

0.0.19-beta.9 2023/2/1

  • Support kysely
  • Fix some bugs

0.0.19-beta.8 2023/1/23

  • fe-sdk throw custom error

0.0.19-beta.7 2023/1/23

  • Generate and change fe-sdk docs name, fix confilict in dev.
  • Skip tsdk-types.ts import in shared index, fix type dulicaped error.

0.0.19-beta.6 2022/11/23

  • fix broken for old tsdk project

0.0.19-beta.5 2022/11/12

  • tsdk export permissions.json with organize structure

2022/11/22

  • tsdk support APIs SDK Docs export

0.0.19-beta.4 2022/11/07

  • tsdk-server-adapters's getReqInfo support Promise function