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: v4 #361

Merged
merged 91 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from 78 commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
30230d4
step 1
jacoobes Apr 28, 2024
6228f53
Refactorings
jacoobes Apr 28, 2024
599a02c
command modules do not depend on anything but itself
jacoobes Apr 28, 2024
3d10ee1
tearing it up
jacoobes Apr 28, 2024
76ee9c6
Remove module store, manager, and Intializable type
jacoobes Apr 29, 2024
f5136ba
consolidate interfaces in single file
jacoobes Apr 29, 2024
9faae7e
consolidate default services in single file
jacoobes Apr 29, 2024
6105f7b
TEAR IT UP
jacoobes Apr 29, 2024
68c5f09
fix text compile
jacoobes Apr 29, 2024
071d5ea
the end of sern init??
jacoobes Apr 29, 2024
e6fba9d
Presence namespaced types removed
jacoobes Apr 29, 2024
821de65
internal namespace
jacoobes Apr 29, 2024
87c5631
clean up dependencies
jacoobes Apr 29, 2024
6c61ae7
fix test
jacoobes Apr 29, 2024
52d1b5a
fix circular dependency
jacoobes Apr 29, 2024
5b33a9d
still broken but progress
jacoobes Apr 30, 2024
d6eedb1
remove barrel for core/structs
jacoobes May 1, 2024
e8cfcc2
reffactor
jacoobes May 1, 2024
0488f45
refactor allat
jacoobes May 1, 2024
219eda9
more refactoring
jacoobes May 1, 2024
d3245c8
prototyping linking static handler
jacoobes May 2, 2024
d7ebdb2
cleanup tests, codegen, and importing handler
jacoobes May 2, 2024
545105e
some refactor
jacoobes May 3, 2024
b0e9d15
generify partition
jacoobes May 3, 2024
cd92b54
for now copy paste new ioc system
jacoobes May 3, 2024
f762033
removeiti
jacoobes May 3, 2024
08ef805
fdsfD
jacoobes May 4, 2024
ffb2872
ensure container is init'd
jacoobes May 10, 2024
4d74e63
fix absPath gen
jacoobes May 10, 2024
8554eea
working on bun compat
jacoobes May 10, 2024
6e2f4b6
refactor and clean up and reenter v3 module loading
jacoobes May 13, 2024
0a05cbb
dsfsd
jacoobes May 13, 2024
880311f
refactor, add cron types, reinstante module loader
jacoobes May 14, 2024
a7aea4b
ready handler revamped so much cleaner
jacoobes May 15, 2024
eb8ba67
fdssdf
jacoobes May 15, 2024
ec45f80
refactor deps list
jacoobes May 15, 2024
16a84e8
add more tests, polish up ioc
jacoobes May 15, 2024
0d82658
up to speed with event modules
jacoobes May 15, 2024
d905f08
i think cron works
jacoobes May 15, 2024
203e8c8
cron works now, poc
jacoobes May 15, 2024
44c072f
ksdjkldsfld
jacoobes May 16, 2024
d3227e5
updating ioc api, experimenting with cron
jacoobes May 16, 2024
ca9b84b
save b4 thunder and lightning
jacoobes May 17, 2024
6717672
plugin data reduction & args changes
jacoobes May 17, 2024
960f90c
freeze module after plugins, updateModule, and more
jacoobes May 18, 2024
699adf2
simplify plugin args and prepare for reduction among plugins
jacoobes May 18, 2024
0beeb4c
add deps to plugin calls and execute
jacoobes May 20, 2024
735a9e3
plugin system loking better, tbd type
jacoobes May 20, 2024
15511a4
porg
jacoobes May 20, 2024
e0f6a4c
initplugins inject deps, inconspicuos
jacoobes May 20, 2024
e700297
fix faiklling test
jacoobes May 21, 2024
88598b0
fix initPlugins not reassigning
jacoobes May 21, 2024
7f4004e
parsingParams kinda
jacoobes May 21, 2024
814fc4f
proper mapping
jacoobes May 21, 2024
327e56f
dynamic customIds
jacoobes May 22, 2024
1de21b8
handling customId params working
jacoobes May 23, 2024
86dd0cd
testing n shi
jacoobes May 23, 2024
76d9db7
inlineinignsd
jacoobes May 24, 2024
af0f909
consolidate fmt
jacoobes May 24, 2024
12a8f0c
once on eventModules
jacoobes May 25, 2024
fb418c0
refact,simplf
jacoobes May 25, 2024
792015a
readd vitest and Asset fn
jacoobes May 27, 2024
c823033
fix typings
jacoobes May 28, 2024
898fdf5
assets fn complete
jacoobes May 31, 2024
2120b18
more intuitive context.options and Asset typings
jacoobes Jun 3, 2024
4566529
add init hooks not firing
jacoobes Jun 4, 2024
bf071b7
-file,-updateModule,publish?
jacoobes Jun 8, 2024
67bb4d4
fix: ioc deps not created correctly
jacoobes Jun 10, 2024
222ecd9
documentation, add json for Asset
jacoobes Jun 11, 2024
30feb79
remove asset
jacoobes Jun 13, 2024
19abb7c
ss
jacoobes Jun 13, 2024
c764de1
finish ioc transition
jacoobes Jun 13, 2024
9c358e1
nvm, now i did
jacoobes Jun 13, 2024
2f778f4
s
jacoobes Jun 13, 2024
90f5ea7
update locals api, docs, tests
jacoobes Jun 15, 2024
7c8e39d
fix tests
jacoobes Jun 15, 2024
1d8dbb8
fix up tests and cleanup
jacoobes Jun 22, 2024
3e9b922
Merge branch 'main' into feat/v4
jacoobes Jun 22, 2024
908d584
fix
jacoobes Jun 25, 2024
14e8001
Update src/core/functions.ts
jacoobes Jun 30, 2024
3128b44
better documentation
jacoobes Jun 30, 2024
e0f631a
temp fix
jacoobes Jun 30, 2024
92ca9eb
namespace presence types again
jacoobes Jul 4, 2024
c252854
revising cron modules and better error messages
jacoobes Jul 5, 2024
210aa41
scheduler ids
jacoobes Jul 5, 2024
8709720
more descriptive errors
jacoobes Jul 5, 2024
4821057
refactor to not type leak and job cancellation
jacoobes Jul 5, 2024
2014e0e
refactor n better signatures for task scheduler
jacoobes Jul 6, 2024
5d0260a
documentation
jacoobes Jul 7, 2024
c35337c
fix swap not accepting functions
jacoobes Jul 17, 2024
d1680e5
change task signature
jacoobes Jul 18, 2024
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
39 changes: 15 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,20 @@
"version": "3.3.4",
"description": "A complete, customizable, typesafe, & reactive framework for discord bots.",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
"import": "./dist/index.js",
"require": "./dist/index.js"
}
},
"scripts": {
"watch": "tsup --watch",
"watch": "tsc --watch",
"lint": "eslint src/**/*.ts",
"format": "eslint src/**/*.ts --fix",
"build:dev": "tsup --metafile",
"build:prod": "tsup ",
"prepare": "npm run build:prod",
"build:dev": "tsc",
"build:prod": "tsc",
"prepare": "tsc",
"pretty": "prettier --write .",
"tdd": "vitest",
"test": "vitest --run",
Expand All @@ -37,30 +35,23 @@
"author": "SernDevs",
"license": "MIT",
"dependencies": {
"@sern/ioc": "^1.0.4",
"callsites": "^3.1.0",
"iti": "^0.6.0",
"deepmerge": "^4.3.1",
"node-cron": "^3.0.3",
"rxjs": "^7.8.0",
"ts-results-es": "^4.1.0"
},
"devDependencies": {
"@faker-js/faker": "^8.0.1",
"@types/node": "^18.15.11",
"@types/node": "^20.0.0",
"@types/node-cron": "^3.0.11",
"@typescript-eslint/eslint-plugin": "5.58.0",
"@typescript-eslint/parser": "5.59.1",
"discord.js": "^14.11.0",
"discord.js": "^14.x.x",
"eslint": "8.39.0",
"prettier": "2.8.8",
"tsup": "^6.7.0",
"typescript": "5.0.2",
"vitest": "latest"
},
"prettier": {
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 100,
"tabWidth": 4,
"arrowParens": "avoid"
"vitest": "^1.6.0"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
Expand Down Expand Up @@ -95,7 +86,7 @@
"url": "git+https://github.com/sern-handler/handler.git"
},
"engines": {
"node": ">= 18.16.x"
"node": ">= 20.0.x"
},
"homepage": "https://sern.dev"
}
10 changes: 0 additions & 10 deletions src/core/_internal.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/core/contracts/emitter.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/core/contracts/error-handling.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/core/contracts/hooks.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/core/contracts/index.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/core/contracts/logging.ts

This file was deleted.

34 changes: 0 additions & 34 deletions src/core/contracts/module-manager.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/core/contracts/module-store.ts

This file was deleted.

72 changes: 0 additions & 72 deletions src/core/create-plugins.ts

This file was deleted.

Loading
Loading