Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!:(2.0 global services) #156

Merged
merged 151 commits into from
Dec 28, 2022
Merged
Show file tree
Hide file tree
Changes from 142 commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
4323be4
style: prettier line feed changes
jacoobes Aug 19, 2022
74e004d
style: prettier line feed changes
jacoobes Aug 19, 2022
8626add
feat: prototyping module manager
jacoobes Aug 21, 2022
2b6335f
feat: removing unused types
jacoobes Aug 22, 2022
7162ccb
feat: update location of module typings
jacoobes Aug 22, 2022
b94a9e9
revert: port back to original interaction type checkers
jacoobes Aug 23, 2022
6565697
revert: port back to original interaction type checkers
jacoobes Aug 23, 2022
c98425d
revert: remove unneeded type predicates
jacoobes Aug 23, 2022
4092b9b
feat: moving modules to its own contained class
jacoobes Aug 23, 2022
2830370
feat: getting global plugins some typings and adding contracts
jacoobes Aug 25, 2022
8c6fb27
chore: fixing up and cleaning code
jacoobes Aug 26, 2022
3c0da26
feat: adding ModuleConfiguration helper fn and default module manager
jacoobes Aug 26, 2022
a4301dc
feat: solidifying contract
jacoobes Aug 26, 2022
e85eb81
revert: delete files
jacoobes Aug 26, 2022
0c2f1b5
chore: saving for later
jacoobes Aug 28, 2022
813ba09
feat: prototyping module manager
jacoobes Aug 21, 2022
fd9dc35
feat: removing unused types
jacoobes Aug 22, 2022
b0e5512
feat: update location of module typings
jacoobes Aug 22, 2022
23edd5b
revert: port back to original interaction type checkers
jacoobes Aug 23, 2022
3b0b94b
revert: port back to original interaction type checkers
jacoobes Aug 23, 2022
a0ab415
revert: remove unneeded type predicates
jacoobes Aug 23, 2022
2f10b0e
feat: moving modules to its own contained class
jacoobes Aug 23, 2022
651f4aa
feat: getting global plugins some typings and adding contracts
jacoobes Aug 25, 2022
9b51fc0
chore: fixing up and cleaning code
jacoobes Aug 26, 2022
f993e3f
feat: adding ModuleConfiguration helper fn and default module manager
jacoobes Aug 26, 2022
e2471d3
feat: solidifying contract
jacoobes Aug 26, 2022
a40c7ef
revert: delete files
jacoobes Aug 26, 2022
8c12576
chore: saving for later
jacoobes Aug 28, 2022
3f6ce51
Merge remote-tracking branch 'origin/feat_of_module-manager' into fea…
jacoobes Aug 29, 2022
aca8ae2
feat: more merge conflicts
jacoobes Aug 29, 2022
3558659
feat: starting from scratch, add new typings
jacoobes Aug 29, 2022
8183e95
feat: refactor ScopedPlugin typing
jacoobes Aug 29, 2022
59a956f
feat: strengthening contracts
jacoobes Aug 31, 2022
2189a06
chore: edit eslint
jacoobes Sep 9, 2022
1b830d4
feat: add addDependencies
jacoobes Sep 9, 2022
a0f4184
feat: add iti di
jacoobes Sep 9, 2022
fe1b7e4
feat: constfn util
jacoobes Sep 9, 2022
a8f218f
revert: delete old files
jacoobes Sep 9, 2022
13cdb8b
remove: ModuleConfiguration
jacoobes Sep 9, 2022
4d3e29e
feat: add sanity checker
jacoobes Sep 13, 2022
ed5d6e7
feat: add new error and update dependency
jacoobes Sep 14, 2022
98d62fa
feat: add sanity check for iti
Sep 16, 2022
bce6195
feat: add function helpers for di
Sep 16, 2022
2a36569
feat: add POC for sern di IOC
Sep 16, 2022
cf7f993
feat: refactor DependenciesMap
Sep 16, 2022
766d86f
revert: remove old code
Sep 16, 2022
22ecb1a
feat: refactor makeDependencies fn
Sep 16, 2022
a0adbd0
chore(deps): update dependency @typescript-eslint/parser to v5.36.1 (…
renovate[bot] Sep 3, 2022
70bed82
chore(deps): update dependency @typescript-eslint/eslint-plugin to v5…
renovate[bot] Sep 3, 2022
350f4e9
docs: Fix the code example (#128)
Murtatrxx Sep 3, 2022
7fc0850
chore(deps): update dependency @typescript-eslint/eslint-plugin to v5…
renovate[bot] Sep 11, 2022
2d7fb13
chore(deps): update dependency @typescript-eslint/parser to v5.36.2 (…
renovate[bot] Sep 11, 2022
c9a20d5
feat: allow constructable modules (#133)
trueharuu Sep 13, 2022
5b4bfe0
revert: feat of allow constructable modules (#138)
Murtatrxx Sep 13, 2022
68a60c6
feat: update CODEOWNERS
jacoobes Sep 13, 2022
d84f7b0
feat: classmodules@arcs (#143)
jacoobes Sep 28, 2022
ed99dfc
chore(main): release 1.2.0 (#145)
github-actions[bot] Sep 28, 2022
ae56fd4
fix(autocomplete): now support multiple autocomplete options (#147)
EvolutionX-10 Oct 3, 2022
a082147
chore(main): release 1.2.1 (#148)
github-actions[bot] Oct 3, 2022
2395997
feat: update location of module typings
jacoobes Aug 22, 2022
84d3876
feat: getting global plugins some typings and adding contracts
jacoobes Aug 25, 2022
b8d28be
feat: adding ModuleConfiguration helper fn and default module manager
jacoobes Aug 26, 2022
51df5e7
feat: solidifying contract
jacoobes Aug 26, 2022
fc03d7d
feat: removing unused types
jacoobes Aug 22, 2022
f7b1a7b
feat: update location of module typings
jacoobes Aug 22, 2022
67fc87d
feat: moving modules to its own contained class
jacoobes Aug 23, 2022
815516b
feat: getting global plugins some typings and adding contracts
jacoobes Aug 25, 2022
de6ff6d
feat: solidifying contract
jacoobes Aug 26, 2022
f920b55
revert: delete files
jacoobes Aug 26, 2022
09abe38
chore: saving for later
jacoobes Aug 28, 2022
6d800d8
feat: more merge conflicts
jacoobes Aug 29, 2022
aba2329
feat: starting from scratch, add new typings
jacoobes Aug 29, 2022
35f108d
feat: strengthening contracts
jacoobes Aug 31, 2022
069e064
feat: add sanity check for iti
Sep 16, 2022
3d76471
feat: refactor DependenciesMap
Sep 16, 2022
9c4c017
feat: adding POC back
Sep 19, 2022
25da0c6
docs: add some deprecation warnings
Sep 19, 2022
900ec8e
feat: remove client and sernEmitter
Sep 19, 2022
6b61dfb
feat: rebase global_services
jacoobes Oct 4, 2022
970dea0
chore: oops rebase pkgjson fix
jacoobes Oct 4, 2022
4b17ea2
fix: typings
jacoobes Oct 4, 2022
d74f765
feat: iti update and getting di working
jacoobes Oct 11, 2022
10c83ec
feat: adding contracts and default provider
jacoobes Oct 21, 2022
cc7a0ac
feat: update typings and change logger
jacoobes Oct 21, 2022
0d17b24
fix: MapDeps typings and useContainer typings
jacoobes Oct 23, 2022
19e496e
feat: moving handlers to 2.0
jacoobes Oct 24, 2022
73ab317
feat: injecting crash handler
jacoobes Nov 2, 2022
0f0818e
feat: alpha logging injection?
jacoobes Nov 2, 2022
bc9bf3e
feat: injecting modulemanager in interactionhandler
Nov 3, 2022
c5d3be7
fix: typos and fixups
jacoobes Nov 3, 2022
969e590
fix: typos and fixups
jacoobes Nov 3, 2022
f6db85a
Merge remote-tracking branch 'origin/feat_of_module-manager' into glo…
jacoobes Nov 3, 2022
1a405ae
feat: moduleManager injection
jacoobes Nov 3, 2022
e491d8c
fix: crash on no module
jacoobes Nov 3, 2022
fb22dd5
feat: i think optional dependencies work
jacoobes Nov 5, 2022
d27c416
feat: add more optional support
jacoobes Nov 5, 2022
1e9f6fb
feat: make exclusion optional
jacoobes Nov 5, 2022
1248631
perf: simplify typings and reduce compile time
jacoobes Nov 5, 2022
0ef9d42
fix: some typings adjustment, deprecating a field
jacoobes Nov 5, 2022
e93256a
perf: simplifying plugin typings
jacoobes Nov 5, 2022
5769cf4
feat: remove addExternal
jacoobes Nov 5, 2022
03a0028
feat: more simplifying typings
jacoobes Nov 5, 2022
d212d33
perf: allow any and interfacify some types
jacoobes Nov 5, 2022
e12163f
revert: remove horrendous Override type
jacoobes Nov 5, 2022
aafef6b
revert: delete interaction type predicates
jacoobes Nov 5, 2022
ab3f152
fix: unchecked cast to EventEmitter
jacoobes Nov 5, 2022
37ae02a
perf: remove unneeded creation of instance members
jacoobes Nov 6, 2022
7c7cba4
feat: init test dir
jacoobes Nov 6, 2022
c887127
refactor: rename fn and short circuit name fn
jacoobes Nov 6, 2022
1223557
refactor: insert function
jacoobes Nov 7, 2022
7dbafd3
feat: starting event module onEvent plugins and log payload
jacoobes Nov 8, 2022
fc529f9
feat: basic eventmodule event plugins?
jacoobes Nov 11, 2022
705781f
refactor: DRY
jacoobes Nov 11, 2022
e5173df
feat: unify warning typing
jacoobes Nov 11, 2022
c09fd40
fix: typings
jacoobes Nov 11, 2022
0bd0859
feat: more progress on new eventModules
jacoobes Nov 15, 2022
3400075
feat: event modules with plugins!!?!?
jacoobes Nov 17, 2022
73ec1b7
feat: making sernEmitter create default!!, readjust typings
jacoobes Nov 23, 2022
0102fd3
feat: inject sernEmitter emits and catch possible errors
jacoobes Nov 23, 2022
7d5eff4
feat: add optionality to Logger dep type
jacoobes Dec 1, 2022
e2645c2
feat: context upgrade, fix circular emissions, crap ton of shit
jacoobes Dec 1, 2022
6e82746
feat!: Module -> AnyModule, Added new SelectMenuInteractions, Changed…
jacoobes Dec 1, 2022
423767a
feat: rudimentary onClick handler
jacoobes Dec 4, 2022
a101be3
feat!: rename select menu command types, no distinguishing between te…
jacoobes Dec 5, 2022
efd6895
docs: adding docs
jacoobes Dec 5, 2022
7cbcd19
fix: forgot to change
jacoobes Dec 6, 2022
edd76f1
fix: logging undefined
jacoobes Dec 6, 2022
376535a
revert: remove spreadparams
jacoobes Dec 6, 2022
644ffa2
feat: export useContainerRaw function and fix smol bug
jacoobes Dec 9, 2022
795e1c3
feat: add iti DI disposeAll on crash
jacoobes Dec 9, 2022
8ed38fa
fix: deferred execute
jacoobes Dec 9, 2022
b9bea54
feat!: rename BasePlugin -> Plugin
jacoobes Dec 9, 2022
6e47b44
feat: commandplugins for event modules, ill test later
jacoobes Dec 9, 2022
0f46aad
refactor: rename
jacoobes Dec 14, 2022
e628912
refactor: remove import
jacoobes Dec 14, 2022
eb2924c
feat: add deprecation warnings
jacoobes Dec 14, 2022
1206d12
feat: update documentation comments
jacoobes Dec 15, 2022
3daacfc
perf: static'ify command plugin and event plugin typings
jacoobes Dec 15, 2022
f0d8075
refactor: remove redundant assignment
jacoobes Dec 15, 2022
be47924
feat: switch to pnpm
jacoobes Dec 15, 2022
6df8bc6
Merge remote-tracking branch 'origin/main' into global_services
jacoobes Dec 19, 2022
1b04cae
chore: update pnpm lock
jacoobes Dec 19, 2022
2abcbe6
fix: errors crashing and completing subscription
jacoobes Dec 20, 2022
f671f05
feat: update example
jacoobes Dec 23, 2022
0cff252
fix: overriding dependencies no matter what
jacoobes Dec 23, 2022
f8f88f6
Merge remote-tracking branch 'origin/global_services' into global_ser…
jacoobes Dec 23, 2022
7ab1274
fix: bad rxjs docs
jacoobes Dec 24, 2022
ea461b0
refactor: destructuring
jacoobes Dec 24, 2022
32b4935
feat: update typings for addDisposer
jacoobes Dec 24, 2022
adc839f
feat: update packageManager field in package.json
jacoobes Dec 24, 2022
ece421a
feat: grammar
jacoobes Dec 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"@typescript-eslint/no-non-null-assertion": "off",
"quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"semi": ["error", "always"],
"@typescript-eslint/no-empty-interface": 0
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/ban-types" : 0,
"@typescript-eslint/no-explicit-any": "off"
jacoobes marked this conversation as resolved.
Show resolved Hide resolved
}
}
4,878 changes: 0 additions & 4,878 deletions package-lock.json

This file was deleted.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sern/handler",
"version": "1.2.1",
"version": "2.0.0",
"description": "A customizable, batteries-included, powerful discord.js framework to automate and streamline bot development.",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.mjs",
Expand All @@ -17,7 +17,8 @@
"lint": "eslint src/**/*.ts",
"format": "eslint src/**/*.ts --fix",
"build": "tsup && node scripts/mkjson.mjs dist/cjs dist/esm && tsup --dts-only --outDir dist",
"publish": "npm run build && npm publish"
"publish": "npm run build && npm publish",
"pretty": "prettier --write ."
},
"keywords": [
"sern-handler",
Expand All @@ -31,6 +32,7 @@
"author": "SernDevs",
"license": "MIT",
"dependencies": {
"iti": "^0.5.0",
"rxjs": "^7.5.6",
"ts-pattern": "^4.0.2",
"ts-results-es": "^3.5.0"
Expand All @@ -41,10 +43,10 @@
"eslint": "8.25.0",
"prettier": "2.7.1",
"tsup": "^6.1.3",
"typescript": "^4.8.3"
"typescript": "4.9.4"
},
"peerDependencies": {
"discord.js": "^14.5.x"
"discord.js": ">= ^14.7.x"
},
"repository": {
"type": "git",
Expand Down
Loading