This is the changelog, you can see the migration guide from the v2.2here.
This update mainly focus on 3 things:
developer experience
refactoring and cleaning the codebase
keeping the dependencies and ecosystem up to date
[!WARNING]
If you want to see the changes coming alongside this PR, check commit per commit because we've ran the new code formater and it has changed by default the style of nearly all the files.
Features
HMR (Hot Module Replacement) on commands and events files (#131)
Logs auto-archiving and retention policies (#143)
Linting and formatting through an eslint config using antfu/eslint-config as base (#128)
Lint stage in github actions workflows
Environment variables validation (#130)
Created wrapper @Service decorator for @singleton, which can take a keepInstanceAfterHmr parameter in order to keep the instance state between HMR reloads (e.g: Store service)
Created wrappers @Injectable and @AutoInjectable of respectively @injectable and @autoInjectable to uniformize names and import source (@/decorators instead of tsyringe)
TSCord template v2.3
This is the changelog, you can see the migration guide from the
v2.2
here.This update mainly focus on 3 things:
Features
antfu/eslint-config
as base (#128)@Service
decorator for@singleton
, which can take akeepInstanceAfterHmr
parameter in order to keep the instance state between HMR reloads (e.g:Store
service)@Injectable
and@AutoInjectable
of respectively@injectable
and@autoInjectable
to uniformize names and import source (@/decorators
instead oftsyringe
)discordx
client config in thesrc/client.ts
file (https://github.com/barthofu/tscord/commit/6f83ffb040cb3fd1cf4a6272e7870d5e28e1b380)Refactor
swc
totsc
in order to improve stability at the cost of little speed deperdition (#135)@<module_name>
to@/<module_name>
(e.g:@services
->@/services
)botOnline
api middleware HTTP request (https://github.com/barthofu/tscord/commit/80600432a1177dc9a565386fad751132ad103189)eval
from the code, for security concerns (https://github.com/barthofu/tscord/commit/60baa42300ce65c56e37460cfa33db05a5e19613)typesafe-i18n
logs at startup (https://github.com/barthofu/tscord/commit/c570dded0c569fb5a22e5b0d3f3b1206d7662ff7)Bug fixes
isJSONEncodable isn't a function at startup
(https://github.com/barthofu/tscord/commit/65338ea451a987d5daee529ee83c051166c14c1f)Chores