Commit Graph

58 Commits

Author SHA1 Message Date
PalmDevs
c9b788dc51 build(Needs bump): do not minify builds 2024-07-31 02:12:31 +07:00
semantic-release-bot
9b9bb1e1e6 chore(release): 1.0.0-dev.6 [skip ci]
# @revanced/bot-websocket-api [1.0.0-dev.6](https://github.com/revanced/revanced-helper/compare/@revanced/bot-websocket-api@1.0.0-dev.5...@revanced/bot-websocket-api@1.0.0-dev.6) (2024-07-30)

### Bug Fixes

* **bots/discord:** hanging process when disconnecting from API too many times ([d31616e](d31616ebcb))
2024-07-30 14:32:03 +00:00
PalmDevs
d31616ebcb fix(bots/discord): hanging process when disconnecting from API too many times 2024-07-30 21:30:54 +07:00
semantic-release-bot
4bb965e9ff chore(release): 1.0.0-dev.5 [skip ci]
# @revanced/bot-websocket-api [1.0.0-dev.5](https://github.com/revanced/revanced-helper/compare/@revanced/bot-websocket-api@1.0.0-dev.4...@revanced/bot-websocket-api@1.0.0-dev.5) (2024-07-23)
2024-07-23 20:30:32 +00:00
PalmDevs
96a6540434 build(Needs bump): revert building with bun explicitly
Building with only Bun causes compatibility issues, like Drizzle Kit not being to generate any schema for the database of the Discord bot.
2024-07-24 03:25:30 +07:00
semantic-release-bot
164570d176 chore(release): 1.0.0-dev.4 [skip ci]
# @revanced/bot-websocket-api [1.0.0-dev.4](https://github.com/revanced/revanced-helper/compare/@revanced/bot-websocket-api@1.0.0-dev.3...@revanced/bot-websocket-api@1.0.0-dev.4) (2024-07-23)

### Bug Fixes

* **apis/websocket:** hardcoded paths in tesseract worker builds ([38e00eb](38e00eb4e5))
2024-07-23 15:42:10 +00:00
PalmDevs
38e00eb4e5 fix(apis/websocket): hardcoded paths in tesseract worker builds 2024-07-23 22:38:23 +07:00
semantic-release-bot
5db076aee5 chore(release): 1.0.0-dev.3 [skip ci]
# @revanced/bot-websocket-api [1.0.0-dev.3](https://github.com/revanced/revanced-helper/compare/@revanced/bot-websocket-api@1.0.0-dev.2...@revanced/bot-websocket-api@1.0.0-dev.3) (2024-07-23)

### Bug Fixes

* **apis/websocket:** build and runtime issues ([89d8ab1](89d8ab1ee5))
2024-07-23 14:05:57 +00:00
PalmDevs
89d8ab1ee5 fix(apis/websocket): build and runtime issues 2024-07-23 21:01:02 +07:00
semantic-release-bot
f142c2b82e chore(release): 1.0.0-dev.2 [skip ci]
# @revanced/bot-websocket-api [1.0.0-dev.2](https://github.com/revanced/revanced-helper/compare/@revanced/bot-websocket-api@1.0.0-dev.1...@revanced/bot-websocket-api@1.0.0-dev.2) (2024-07-22)

### Bug Fixes

* **apis/websocket:** also include tesseract core files in build ([7dfbf6c](7dfbf6c92c))
2024-07-22 17:46:37 +00:00
PalmDevs
7dfbf6c92c fix(apis/websocket): also include tesseract core files in build 2024-07-23 00:44:08 +07:00
semantic-release-bot
df3fee96fe chore(release): 1.0.0-dev.1 [skip ci]
# @revanced/bot-websocket-api 1.0.0-dev.1 (2024-07-22)

### Bug Fixes

* **apis/websocket:** builds not working due to dynamic import requirement ([fc7be22](fc7be22c6c))
* **apis/websocket:** don't bundle `tesseract.js` ([51a6fb6](51a6fb65f0))
* **apis/websocket:** fix forever stuck Promise ([168f40d](168f40def6))
* **apis/websocket:** fix undefined error ([2f03800](2f03800c61))
* **apis/websocket:** improve logging and error handling ([b6cbe9d](b6cbe9d64c))
* remove error cb handling for `socket.send()` calls ([29544d4](29544d4e01))
* **types:** fix issues with typings ([669e24c](669e24ca81))

### chore

* fix more build issues ([77fefb9](77fefb9bef))

### Features

* **apis/websocket:** clear old client sessions and instances ([43bd0a0](43bd0a021c))
* **packages/shared:** add logger factory ([17c6be7](17c6be7bee))

### BREAKING CHANGES

* In `@revanced/discord-bot`, its environment variable
                 `DATABASE_URL` has been renamed to `DATABASE_PATH`
                 and the `file:` prefix is no longer needed
2024-07-22 16:03:59 +00:00
PalmDevs
b76e223f07 ci(release): don't patch MSR anymore, add npm semantic release plugin 2024-07-22 22:41:33 +07:00
PalmDevs
3ad0f7b19d ci(release): reinstall packages before building 2024-07-22 22:00:46 +07:00
PalmDevs
af9cfa1384 ci(release): explicitly build with bun 2024-07-22 22:00:44 +07:00
PalmDevs
73b2169a5a ci(release): add docker tags, fix unnested plugins array, verbose logs for docker builds 2024-07-22 22:00:34 +07:00
PalmDevs
57891428a2 ci(release): use correct credentials 2024-07-22 22:00:27 +07:00
PalmDevs
f1a169fb6b ci(release): release and trigger portainer webhooks in different steps 2024-07-20 23:30:10 +07:00
Palm
a20f8345b7 ci(release): trigger container build and portainer webhook for specific projects and branches 2024-07-20 23:30:04 +07:00
PalmDevs
43bd0a021c feat(apis/websocket): clear old client sessions and instances 2024-07-14 00:24:32 +07:00
PalmDevs
2f03800c61 fix(apis/websocket): fix undefined error 2024-07-14 00:20:24 +07:00
oSumAtrIX
5aeade122b ci: Publish Docker images (#41)
Co-authored-by: PalmDevs <git@palmdevs.me>
2024-07-13 14:57:29 +02:00
Palm
77fefb9bef chore: fix more build issues
BREAKING CHANGE: In `@revanced/discord-bot`, its environment variable
                 `DATABASE_URL` has been renamed to `DATABASE_PATH`
                 and the `file:` prefix is no longer needed
2024-07-08 17:48:45 +00:00
PalmDevs
9b6ba56d99 chore: use alternative ways to bundle 2024-07-08 19:43:03 +07:00
PalmDevs
51a6fb65f0 fix(apis/websocket): don't bundle tesseract.js 2024-06-24 23:33:31 +07:00
PalmDevs
fc7be22c6c fix(apis/websocket): builds not working due to dynamic import requirement 2024-06-24 18:23:39 +07:00
PalmDevs
f2abae2350 chore: revert mistakenly replaced links 2024-06-24 18:23:38 +07:00
PalmDevs
6109842897 chore: change old contact info 2024-06-24 18:23:38 +07:00
PalmDevs
32a7fea294 chore: update dependencies 2024-06-24 18:23:38 +07:00
PalmDevs
154bdbde3e chore: update and add README for projects 2024-06-24 18:23:36 +07:00
PalmDevs
b6cbe9d64c fix(apis/websocket): improve logging and error handling 2024-06-24 18:23:33 +07:00
PalmDevs
e25fc7d3c5 chore: update contributor email 2024-06-24 18:23:33 +07:00
PalmDevs
669e24ca81 fix(types): fix issues with typings 2024-06-24 18:23:33 +07:00
PalmDevs
3f8d0fd8ec chore: remove unused dependencies 2024-06-24 18:23:32 +07:00
PalmDevs
29544d4e01 fix: remove error cb handling for socket.send() calls
Fixes promise not ever being resolved
2024-06-24 18:23:31 +07:00
PalmDevs
b3b7723b4f feat!: big feature changes
BREAKING CHANGES:
- Heartbeating removed
- `config.consoleLogLevel` -> `config.logLevel`

NEW FEATURES:
- Training messages
- Sequence number system
- WebSocket close codes used instead of disconnect packets

FIXES:
- Improved error handling
- Some performance improvements
- Made code more clean
- Updated dependencies
2024-06-24 18:23:27 +07:00
PalmDevs
da02140f19 docs(apis/websocket): fix broken reference links 2024-06-24 18:23:26 +07:00
PalmDevs
680f00722f chore: clean up tsconfigs and use bun-types 2024-06-24 18:23:25 +07:00
PalmDevs
526d514443 docs: move environment setup to monorepo root 2024-06-24 18:23:23 +07:00
PalmDevs
97c5bd5634 chore(apis/websocket): stop using fastify as a wrapper 2024-06-24 18:23:23 +07:00
PalmDevs
168f40def6 fix(apis/websocket): fix forever stuck Promise 2024-06-24 18:23:22 +07:00
PalmDevs
a6907b16c4 chore(apis/websocket)!: change default port 2024-06-24 18:23:22 +07:00
Pun Butrach
e600cc56f7 chore(apis/websocket): remove unneccessary packages and edit build target 2024-06-24 18:23:22 +07:00
Pun Butrach
d40a9d78cb docs(apis/websocket): minor improvements 2024-06-24 18:23:21 +07:00
PalmDevs
26ad4afc18 chore(apis/websocket): use config.json as example config 2024-06-24 18:23:19 +07:00
PalmDevs
a90e59edb8 refactor(apis/websocket): clean up imports, format, and fix issues 2024-06-24 18:23:19 +07:00
PalmDevs
3e84821c23 chore(apis/websocket): update config schema 2024-06-24 18:23:18 +07:00
PalmDevs
fd7388ac3d chore(apis/websocket): bump dependencies 2024-06-24 18:23:18 +07:00
PalmDevs
05176fbf26 docs(apis/websocket): update docs 2024-06-24 18:23:18 +07:00
PalmDevs
e9638a7713 feat(packages/shared)!: switch to less resource-intensive logger 2024-06-24 18:23:17 +07:00