Jacob Nguyen
33f14467ec
feat!: simpler plugins ( #193 )
...
* feat: experimental plugin changes
* more refactors and name changes
* feat: update name usage and update dispatchers.ts
* fix:naming
* feat: slightly safer typings than any[]
* fix: forgot to destructure arguments
* feat: add special function
* fix: typings
* feat: SUPER SIMPLIFY!!!
* refactor: move promisifiedPlugins closer to call site
* refactor: typings
* refactor: typings
* refactor: consolidate resolving initplugins into one function
* refactor: better types
* revert: remove unneeded function
* revert: remove unneeded function
* feat: dispatch work, simplify
* feat: move some observableHandling function to operators for clarity
* feat: simplify and document
* feat: simplifying sern and docs
* fix: typings
* docs: clarity of function name
* docs: add documentation for executeModule
* feat: contextArgs overloads
* docs: found out why
* fix: typings
* feat: shorten operators signature
* refactor: switch to correct convention
* refactor: take(1) -> first()
* refactor: revert
* refactor: safer typings (less any) and more accurate typings
* style: prettier and short type aliases
* fix: typings
* fix: typings
* docs: add deprecations
* refactor: organization and moving stuff
* pretty: prettey
* docs: describe file
* chore: update dependencies and version
* docs: fix link for docasaurus
* refactor: using a more appropriate operator function for closing an observable on crash
* fix!: changing single and many
* refactor: typings and simplifying composeRoot
* fix: re-add logger into handleError
* docs: comment
* docs: new section
* feat: help mitigate breaking changes
* feat: help mitigate breaking changes
* feat: help mitigate breaking changes and function overloads
* feat: deprecate instead of remove
* feat: partial remove and deprecate old symbols
* revert: trying to accommodate old plugins is too difficult
* docs: add many as deprecated
* docs: update
* feat: partial backwards compatability
* refactor: renaming, docs, and exports more clean
* refactor: context got a lot simpler
* refactor: imports
* docs: explain methods
2023-01-26 12:06:04 -06:00
github-actions[bot]
8d18c4b182
style: pretty please ( #162 )
...
* style: pretty please
* feat: no package.lock.json anymore
Co-authored-by: jacoobes <jacoobes@users.noreply.github.com >
Co-authored-by: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com >
2022-12-28 14:40:19 -06:00
Jacob Nguyen
14556223fd
feat!:(2.0 global services) ( #156 )
...
* style: prettier line feed changes
* style: prettier line feed changes
* feat: prototyping module manager
* feat: removing unused types
* feat: update location of module typings
* revert: port back to original interaction type checkers
* revert: port back to original interaction type checkers
* revert: remove unneeded type predicates
* feat: moving modules to its own contained class
* feat: getting global plugins some typings and adding contracts
* chore: fixing up and cleaning code
* feat: adding ModuleConfiguration helper fn and default module manager
* feat: solidifying contract
* revert: delete files
* chore: saving for later
* feat: prototyping module manager
* feat: removing unused types
* feat: update location of module typings
* revert: port back to original interaction type checkers
* revert: port back to original interaction type checkers
* revert: remove unneeded type predicates
* feat: moving modules to its own contained class
* feat: getting global plugins some typings and adding contracts
* chore: fixing up and cleaning code
* feat: adding ModuleConfiguration helper fn and default module manager
* feat: solidifying contract
* revert: delete files
* chore: saving for later
* feat: more merge conflicts
* feat: starting from scratch, add new typings
* feat: refactor ScopedPlugin typing
* feat: strengthening contracts
* chore: edit eslint
* feat: add addDependencies
* feat: add iti di
* feat: constfn util
* revert: delete old files
* remove: ModuleConfiguration
* feat: add sanity checker
* feat: add new error and update dependency
* feat: add sanity check for iti
* feat: add function helpers for di
* feat: add POC for sern di IOC
* feat: refactor DependenciesMap
* revert: remove old code
* feat: refactor makeDependencies fn
* chore(deps): update dependency @typescript-eslint/parser to v5.36.1 (#127 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(deps): update dependency @typescript-eslint/eslint-plugin to v5.36.1 (#126 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* docs: Fix the code example (#128 )
* chore(deps): update dependency @typescript-eslint/eslint-plugin to v5.36.2 (#130 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com >
* chore(deps): update dependency @typescript-eslint/parser to v5.36.2 (#131 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com >
* feat: allow constructable modules (#133 )
* Update readFile.ts
* Update userDefinedEventsHandling.ts
* Update readyHandler.ts
* fix: ts error
Co-authored-by: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com >
Co-authored-by: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com >
* revert: feat of allow constructable modules (#138 )
Revert "feat: allow constructable modules (#133 )"
This reverts commit 03936eb2ea .
* feat: update CODEOWNERS
* feat: classmodules@arcs (#143 )
* feat: add class based commands
* docs: add deprecation warnings
* feat: add deprecation warnings
* feat: add more deprecation warnings
* feat: add prototype ClassModule abstract class
* feat: add EventModuleClass prototype, change names
* feat: more flexible contract
* feat: EventExecutable
* fix: typo
* feat: made abstract classes because of defaults
* fix: typings
* feat: update Context typings, update to djs v15
* chore: update typescript dependency
* chore: bump version
* chore: update ignore
* chore: prettier
* docs: change readme to be docusaurus compliant
* chore(main): release 1.2.0 (#145 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* fix(autocomplete): now support multiple autocomplete options (#147 )
* chore(main): release 1.2.1 (#148 )
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* feat: update location of module typings
* feat: getting global plugins some typings and adding contracts
* feat: adding ModuleConfiguration helper fn and default module manager
* feat: solidifying contract
* feat: removing unused types
* feat: update location of module typings
* feat: moving modules to its own contained class
* feat: getting global plugins some typings and adding contracts
* feat: solidifying contract
* revert: delete files
* chore: saving for later
* feat: more merge conflicts
* feat: starting from scratch, add new typings
* feat: strengthening contracts
* feat: add sanity check for iti
* feat: refactor DependenciesMap
* feat: adding POC back
* docs: add some deprecation warnings
* feat: remove client and sernEmitter
* feat: rebase global_services
* chore: oops rebase pkgjson fix
* fix: typings
* feat: iti update and getting di working
* feat: adding contracts and default provider
* feat: update typings and change logger
* fix: MapDeps typings and useContainer typings
* feat: moving handlers to 2.0
* feat: injecting crash handler
* feat: alpha logging injection?
* feat: injecting modulemanager in interactionhandler
* fix: typos and fixups
* fix: typos and fixups
* feat: moduleManager injection
* fix: crash on no module
* feat: i think optional dependencies work
* feat: add more optional support
* feat: make exclusion optional
* perf: simplify typings and reduce compile time
* fix: some typings adjustment, deprecating a field
* perf: simplifying plugin typings
* feat: remove addExternal
* feat: more simplifying typings
* perf: allow any and interfacify some types
* revert: remove horrendous Override type
* revert: delete interaction type predicates
* fix: unchecked cast to EventEmitter
* perf: remove unneeded creation of instance members
* feat: init test dir
* refactor: rename fn and short circuit name fn
* refactor: insert function
* feat: starting event module onEvent plugins and log payload
* feat: basic eventmodule event plugins?
* refactor: DRY
* feat: unify warning typing
* fix: typings
* feat: more progress on new eventModules
* feat: event modules with plugins!!?!?
* feat: making sernEmitter create default!!, readjust typings
* feat: inject sernEmitter emits and catch possible errors
* feat: add optionality to Logger dep type
* feat: context upgrade, fix circular emissions, crap ton of shit
* feat!: Module -> AnyModule, Added new SelectMenuInteractions, Changed some CommandType names
* feat: rudimentary onClick handler
* feat!: rename select menu command types, no distinguishing between text and alias
* docs: adding docs
* fix: forgot to change
* fix: logging undefined
* revert: remove spreadparams
* feat: export useContainerRaw function and fix smol bug
* feat: add iti DI disposeAll on crash
* fix: deferred execute
* feat!: rename BasePlugin -> Plugin
* feat: commandplugins for event modules, ill test later
* refactor: rename
* refactor: remove import
* feat: add deprecation warnings
* feat: update documentation comments
* perf: static'ify command plugin and event plugin typings
* refactor: remove redundant assignment
* feat: switch to pnpm
* chore: update pnpm lock
* fix: errors crashing and completing subscription
* feat: update example
* fix: overriding dependencies no matter what
* fix: bad rxjs docs
* refactor: destructuring
* feat: update typings for addDisposer
* feat: update packageManager field in package.json
* feat: grammar
Co-authored-by: jacoobes <jacobnguyend@gmail.com >
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com >
Co-authored-by: Arcs <73959934+HighArcs@users.noreply.github.com >
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Evo <85353424+EvolutionX-10@users.noreply.github.com >
2022-12-28 14:18:36 -06:00
Jacob Nguyen
50288867a5
feat: classmodules@arcs ( #143 )
...
* feat: add class based commands
* docs: add deprecation warnings
* feat: add deprecation warnings
* feat: add more deprecation warnings
* feat: add prototype ClassModule abstract class
* feat: add EventModuleClass prototype, change names
* feat: more flexible contract
* feat: EventExecutable
* fix: typo
* feat: made abstract classes because of defaults
* fix: typings
* feat: update Context typings, update to djs v15
* chore: update typescript dependency
* chore: bump version
* chore: update ignore
* chore: prettier
* docs: change readme to be docusaurus compliant
2022-09-28 11:52:25 -05:00
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
48737efea3
feat: remove copyright bloat
2022-05-30 12:58:41 -05:00
xxDeveloper
163e48f3eb
feat(*): Revamp Docs ( #47 )
...
* style: Formatted 17 files & changes messageHelper util
* style: Formatted HTML and CSS files
* Revert "style: Formatted 17 files & changes messageHelper util"
This reverts commit 988d7fa6d2 .
* style(style.css): Formatted main style file with tabwidth 2
* chore: Added docs maintainer
* chore: Changed typedoc configration
* chore(README.md): Removed coming soon from links
* chore: Updated Prettier formatter tab width
* docs(readme): Improved Readme readability
* docs(README): Fixed installation box
* style(README.md): Improved readability
* chore: Added CONTRIBUTING.md
* docs(README.md): Removed old repo link and it's line
* docs(README): Updated Intents to djs v14
Co-authored-by: EvolutionX <85353424+EvolutionX-10@users.noreply.github.com >
* docs: Updated README example to djs v14
* docs: Formatted README examples
* Update README.md
* docs: Updated organization description
* docs(README): Rename 'fixed' to 'patched'
* chore: Updated LICENSE
* chore: Updated LICNESE
* chore: Changed license to MIT
* Delete LICENSE.md
* chore: Recreated LICENSE
* chore: First License boilerplate preview
* style(index.ts): Added a space
* chore(index.ts): First license boilerplate preview
* chore(PRETTIER): Re-updated the tab width
* chore(SECURITY): Updated security.md file
* docs(README): Improved readability
* fix(README): Fixed typo
* style: Updated license boilerplate
* style(*): Updated license boilerplate
* style: Updated license boilerplate
* style: Updated license boilerplate
* style: Updated license boilerplate
* style: Updated License boilerplate
* style: Updated License boilerplate
* docs(README): Added stats
* docs(README): Temporarily or permanently removed stats
* refactor: DRY Principles
* feat: finished interactionCreate.ts handling? (need test)
* chore: Updated CONTRIBUTING.md file
* chore: Updated credits
* chore(NPM): Prepared package.json for release
* revert: Some changes
* revert: Revert back to MIT LICENSE (#50 )
* chore: Updated LICENSE boilerplate
* style: Improved comments
* style: Updated comments
* fix: Non-exhaustiveness led to commands not registering readyEvent.ts
* feat: Add DefinetlyDefined type, more todo statements
* feat: Aliases optional
* feat: Optional plugins to reduce bloat
* feat: better looking typings for modules
* refactor: Simplify sernModule handler signature
* refactor: make ApplicationCommandOptions optional
* refactor: make description optional
* refactor: Bring CommandType and PluginType to top level
* fix: Fix return type of sernModule
* refactor: Why is that not assignable bruh
* revert: Re-add plugins overload
* fix(CODE_OF_CONDUCT): Removed unusual dot
* Update package.json
* fix: Resolve conflicts
* fix: Resolve conflicts
* feat: should be able to register other nodejs event emitters
* fix: Standard for of does not resolve promises. Switched to for await
* feat: Adding sern event listeners, overriding and typing methods
* feat: Edited event names for more conciseness, finished basic event emitters
* style: Run prettier
* fix: didn't run prettier, now i am
* fix: linting issue in markup.ts
* fix: prettier wants lf line ending
* fix: prettier changes again
* feat: add .prettierignore and ignore README.md
* feat: add externallyUsed.ts and support BothCommands again
* feat: remove comments about prev commit
* style: change prettier print width and reformat
* feat: adding modal and autocomplete support
* feat: Finishing up autocomplete, need to test
* feat: Making name required in auto cmp interactions
* feat: move name and description out of OptionsData[]
* feat: finishing optionData for autocomplete changes, adding class for builder
* feat: finishing autocomplete!!
* refactor: Simplifying logic of message filter
* feat: Adding docs to some data structures, moving to default from export files
* refactor: cleaning up code, removing unuseds
* feat: adding refactoring for repetitive event plugin processing
* feat: adding better typings, refactoring
* refactor: remove unnecessary nullish short circuit
* refactor: remove unnecessary nullish short circuit
* feat: add docs/ to npmignore
* style: Formatted 17 files & changes messageHelper util
* style: Formatted HTML and CSS files
* Revert "style: Formatted 17 files & changes messageHelper util"
This reverts commit 988d7fa6d2 .
* style(style.css): Formatted main style file with tabwidth 2
* chore: Added docs maintainer
* chore: Changed typedoc configration
* chore(README.md): Removed coming soon from links
* docs(readme): Improved Readme readability
* chore: Added CONTRIBUTING.md
* docs(README): Fixed installation box
* style(README.md): Improved readability
* docs(README.md): Removed old repo link and it's line
* docs: Updated README example to djs v14
* docs(README): Updated Intents to djs v14
Co-authored-by: EvolutionX <85353424+EvolutionX-10@users.noreply.github.com >
* docs: Formatted README examples
* Update README.md
* chore: Updated LICENSE
* chore: Updated LICNESE
* chore: Changed license to MIT
* Delete LICENSE.md
* chore: Recreated LICENSE
* chore: First License boilerplate preview
* style(index.ts): Added a space
* chore(index.ts): First license boilerplate preview
* chore(SECURITY): Updated security.md file
* style: Updated license boilerplate
* docs(README): Added stats
* chore: Updated CONTRIBUTING.md file
* chore: Updated credits
* chore(NPM): Prepared package.json for release
* revert: Some changes
* revert: Revert back to MIT LICENSE (#50 )
* fix(CODE_OF_CONDUCT): Removed unusual dot
* fix: Resolve conflicts
* fix: Resolve conflicts
Co-authored-by: EvolutionX <85353424+EvolutionX-10@users.noreply.github.com >
Co-authored-by: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com >
2022-05-30 20:54:23 +03:00
Jacob Nguyen
f90342d6b1
feat: add docs/ to npmignore
2022-05-29 15:01:35 -05:00
Jacob Nguyen
475b0736d5
feat: adding refactoring for repetitive event plugin processing
2022-05-28 20:29:23 -05:00
Jacob Nguyen
115d1a49b5
feat: Adding sern event listeners, overriding and typing methods
2022-05-19 22:29:45 -05:00
Jacob Nguyen
61fe8534b5
refactor: Adding more top level imports and move partition
2022-05-15 01:03:57 -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
0dd95be59a
feat(sern.ts) Add basic event manager
2022-03-08 16:36:51 -06:00
Jacob Nguyen
15ab87aac5
refactor(handler): exported the option builder v0.0.1
2022-02-20 10:48:45 -06:00
jacoobes
ad86658e11
dir name fix, lowercase lint
2022-02-13 13:12:14 -06:00
xxDeveloper
350c070b43
Rnamed some directories & format code
2022-02-13 21:35:56 +03:00
xxDeveloper
3b15b27803
Format & improve src files
2022-02-12 22:41:55 +03:00
jacoobes
0781ab200a
moving handler files
2022-02-07 01:10:31 -06:00
jacoobes
38336590f1
instal eslint and prettierconfic, applied to files
2022-02-07 00:48:04 -06:00
jacoobes
f15bb13204
refactoring handler types, added ctx handler class
2022-02-06 23:17:57 -06:00
jacoobes
2e352ebf0c
fixed export errors
2022-01-29 08:20:49 -06:00
jacoobes
4d85c8928a
adding Util import
2022-01-27 11:27:23 -06:00
jacoobes
5a729b635d
added arg preprocessors
2022-01-26 13:02:04 -06:00
jacoobes
8118a88522
some bug fixes
2022-01-25 16:45:21 -06:00
jacoobes
0f50d5779c
exporting
2022-01-24 20:55:02 -06:00
jacoobes
8b428f7ff1
first commit
2022-01-24 20:48:18 -06:00