Commit Graph

41 Commits

Author SHA1 Message Date
github-actions[bot]
ff5c161469 stlye: pretty please (#124)
Co-authored-by: EvolutionX-10 <EvolutionX-10@users.noreply.github.com>
2022-08-29 07:12:33 +05:30
Jacob Nguyen
74378f0f12 feat: shrink package size, improve dev deps, esm and cjs support (#98)
* chore: fix tsc predicate type checking

* build: add tsup as bundler

* chore: revert text

* chore: fix predicates.ts, update dependencies, bump version

* docs: update example

* build: update dependencies

* fix: crash on collectors (#89)

* fix: crash on collectors

* feat: bump version for bug fix

* fix: crash on collectors pt

* docs: adding some documentation for docasaurus

* docs: add errors.ts comments

* docs: refactor comments

* docs: adding examples

* feat: refresh package-lock.json

* refactor: destructure and clean namespaces

* feat: add regen package.json script

* feat: add tsup, remove tsc, add scripts

* feat: update ts-results import style

* feat: readd typescript because idk if i should

* feat: breakup tsconfigs and add tsup config

* feat: add esm json tsconfig to git

* build: update dependencies and move to ts-result-es

* feat: remove unused function

* feat: update ts-results for esm/cjs interop!

* revert: remove version.txt

* build: goodbye tsc, hello tsup

* build: moving discord.js as dev dependency

* style: requested changes

* feat: add tsc back ( i missed you )

* build: bump version -> 1.0.0

* feat: syncing to main

* style: pretty

* feat: fix tsconfig issues with tsup

* revert: remove ExternallyUsed

* feat: update scripts

* build: update tsup and pkg-lock.json

* feat: refresh package-lock.json

* feat: test
2022-08-06 15:51:19 -05:00
Jacob Nguyen
17eb816ec9 refactor(events): use of classes for scalability & maintainability (#83)
Co-authored-by: EvolutionX-10 <evolutionx9777@gmail.com>
2022-07-16 23:38:11 +05:30
Jacob Nguyen
e71b63d261 feat(*)!: improve quality of code, refactorings, QOL intellisense (#64)
* feat: remove unit testing

* feat: make command modules return Awaitable void | unknown

* feat: more clear error for access message or interaction

* feat: make TextCommand and SlashCommand return more specific arg type

* feat: make TextCommand and SlashCommand return more specific arg type

* fix: Remove type reduction to never in onReady.ts

* feat: narrow typings for args Text and SlashCommand x3

* feat: make description optional, default is '...'

* feat: add sern events natively register in sern.init

* feat: remove jest.config.ts

* fix: forget to add SernEvent to Wrapper declaration

* feat: Make name and description defined when making plugins!

* Update README.md

* docs: Highly encourage to use cli

* chore: Improved package.json

* feat: Add .edit method and let .reply accept string

* fix: intellij warnings

* build: update discord.js to latest

* chore(deps): Removed typedoc

Removed typedoc dependency due we won't use it anymore

* fix: Fixed typo at SECURITY.md file

* feat: remove edit context method for future

* feat: remove docs folder

* feat: loading strategy slightly changed, does not throw error on finding no module in file

* feat: change typings of sern emitter

* feat: add generic to readFile.ts buildData, adding different event loading strategies

* feat: add events.ts for more customizable event handling

* refactor: type changes to adjust to event commands

* feat: revamp module types to support event plugins

* feat: rolling out more event loading support

* style: Improved plugin.ts comments

* style: Improved plugin.ts comments

* style: Improved readyEvent.ts comments

* feat: more support for event loading!!

* fix: re add import after rebase

* feat: more event handling progress

* feat: Cleaning up types

* refactor: Cleaning up and adding docs

* feat: Changing types of wrapper for external and sern emitter

* refactor: Adding some type aliases

* feat:  switch to match expression, add docs

* feat: more progress on event handling

* fix: complying to djs v14 build

* feat: Add basic event handling, no plugins checked yet!

* fix: Crash on interactionCreate event

* build(package.json): bump version

* build: bump to 1.0.4-beta

* feat: move new things to top level import

* feat: Separating events from command modules, leads separation of responsibility

* feat: add enum for event modules

* feat: Add more typings for event modules

* feat: Add more plugin definitions

* refactor: add asyncResolveArray.ts to resolve Awaitables easier

* feat: throw error on plugin usage for event listeners

* feat: throw error on plugin usage for event listeners

* feat: change from client -> wrapper

* style: eslint

* style: add comment

* feat: add absPath into commandPlugins!

* build: remove 'tests' exclude

* build: delete test.yml, change .prettierignore

* build: bump version to 1.1.0-beta

* docs(sern.ts): add comments for addExternal

* fix: forgot to add required type property in comment

* fix: load external event emitters correctly

* chore: rebased api update branch (#65)

Co-authored-by: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com>
Co-authored-by: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com>

Co-authored-by: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com>
Co-authored-by: Evo <85353424+EvolutionX-10@users.noreply.github.com>
2022-06-28 12:38:01 -05:00
Jacob Nguyen
0ae541daba feat: Adding docs to some data structures, moving to default from export files 2022-05-25 17:17:55 -05:00
Jacob Nguyen
77856ce5d0 feat: adding modal and autocomplete support 2022-05-22 02:08:24 -05:00
Jacob Nguyen
a76099cbcb refactor: change loading strategy, eliminate bloat 2022-05-15 19:18:19 -05:00
Jacob Nguyen
df1808cfb5 style: Reformat w/ prettier 2022-05-15 16:00:05 -05:00
Jacob Nguyen
b6bf08f673 refactor: Remove PluggedModule, change Module signature to support event plugins 2022-05-15 15:58:54 -05:00
jacoobes
6ac9720260 feat: Adding TextInput map & starting event plugins for message components 2022-05-13 23:40:52 -05:00
jacoobes
3dedba3493 chore: prettier reformat 2022-05-13 14:45:06 -05:00
Jacob Nguyen
99a5a3c93a chore: cleanup code and delete unused files 2022-05-10 00:04:27 -05:00
Jacob Nguyen
46b3b9574a chore: eslint formattting 2022-05-09 15:01:10 -05:00
Jacob Nguyen
4448d5a1be feat : strict commandType checking transition for ergonomics 2022-04-29 15:52:14 -05:00
Jacob Nguyen
2c8fdce7e1 fix(messageEvent) : fix access location for messages 2022-04-29 15:33:18 -05:00
Jacob Nguyen
9e05090214 feat : partitioning command stores for better event mapping, more
refactoring
2022-04-29 14:11:10 -05:00
Jacob Nguyen
3e0a5b3b3b fix(handler) : turning readFiles to observable; refactor readyevent 2022-04-20 20:56:42 -05:00
Jacob Nguyen
f213e88a5d feat(handler) more plugin work, refactoring rxjs pipes 2022-04-13 01:34:25 -05:00
Jacob Nguyen
2dd41834f4 feat : can register plugin modules now 2022-04-10 02:00:43 -05:00
Jacob Nguyen
490d6403d7 refactor : change naming conventions to PascalCase 2022-04-08 13:10:46 -05:00
Jacob Nguyen
e21508ca4f feat(handler) moving and organizing files, refactor context api 2022-04-04 17:40:51 -05:00
Jacob Nguyen
ef8e3961d1 feat(handler) run formatter and made message prefixes case insensitive 2022-04-03 17:13:13 -05:00
Jacob Nguyen
4ef0b87de7 feat(handler) Add button and select menu support! 2022-04-03 12:01:50 -05:00
Jacob Nguyen
1b7c46518d feat(handler) context class updates and more minor additions 2022-04-02 22:55:48 -05:00
Jacob Nguyen
b326a91d10 feat(interactionCreate) add basic context menu handling 2022-03-29 00:39:38 -05:00
Jacob Nguyen
b0d4f96900 feat : add typings for ctx menus 2022-03-26 02:34:36 -05:00
Jacob Nguyen
c002c2782b refactor : exports now simplified, removed default arg parsers as parse
method removed
2022-03-26 01:34:36 -05:00
Jacob Nguyen
d34c1881bd feat(handler) add basic interaction handling and add error for not
detecting modules
2022-03-21 19:52:24 -05:00
Jacob Nguyen
5b53d4203e feat : update module loader for extensibility 2022-03-16 14:41:22 -05:00
Jacob Nguyen
ecf7ecc92c feat(handler) finish loading command functionality, adjust properties
per cmd type
2022-03-11 17:31:44 -06:00
Jacob Nguyen
f1ffff48c8 feat(command.ts) Add command class 2022-03-11 15:07:43 -06:00
Jacob Nguyen
08f593792e feat(handler) new ready event handling
Also added new enum errors,
removed useless promise fn sign,
and more
2022-03-09 00:44:29 -06:00
Jacob Nguyen
9e4adf8bcf refactor(structures) create structures dir 2022-03-08 00:30:18 -06:00
Jacob Nguyen
36831def0f chore(module.ts) Move Command Modules to different file, change context objs to class counterparts 2022-03-07 23:49:38 -06:00
jacoobes
40fb723143 feat(sern.ts): changed how module is passed around, now has name property at runtime 2022-02-21 02:00:12 -06:00
EvolutionX
f6b85d8763 chore: add back @Townsy45's credits 2022-02-19 20:03:40 +05:30
xxDeveloper
dad3042a64 feat: Improved TypeScript experince 2022-02-16 22:57:40 +03:00
jacoobes
38963ffa19 rf 2022-02-14 09:21:32 -06:00
jacoobes
3d660fea71 Merge branch 'main' of https://github.com/EvolutionX-10/Sern 2022-02-14 09:21:13 -06:00
EvolutionX
a648f347f1 finished formatting 2022-02-14 13:18:14 +05:30
EvolutionX
9193ede266 will it work 2022-02-14 09:53:40 +05:30