-
Notifications
You must be signed in to change notification settings - Fork 12
Switch to Bun and websockets #106
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
Closed
Closed
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
514d60d
Switch to Bun
Protonull 62164a9
Switch to bun:sqlite
Protonull 3e2db02
Fix server port compilation issue
Protonull b85a19f
Update BufWriter to use ArrayBufferSink
Protonull a63ce4d
Switch to Bun.listen()
Protonull ee41818
Fix type-import warnings
Protonull 8c03847
Add compile-to-executable build script
Protonull 037628e
Minor fixup of packet serialisation
Protonull 29baa44
Move encryption and ciphers to crypto file
Protonull ffe097d
Update typescript version
Protonull e79d43c
Resolve ProtocolHandler cleanup todo
Protonull 3c6e558
Consolidate packets into single file
Protonull 0956769
Consolidate buffer helper classes into single file
Protonull d26820d
Run prettier
Protonull d75a4a4
Slight reorganisation
Protonull 13b09aa
Switch handshake and auth to a state model
Protonull d429342
Switch to websockets
Protonull b0f377f
Drastically improve database performance
Protonull 1810c87
Set max frame/payload length to max u16 value
Protonull e7e5700
Turns out where-in is WAY more efficient than where-and-or-chaining
Protonull 26bae6b
Fix Zod dependency error
Protonull 632bca3
Add gen prefixes to columns and add transactions
Protonull 003df47
Add database migrations
Protonull 71ba397
Update workflows
Protonull de077a4
Create database test
Protonull 8de3cb4
Destaticify database connection
Protonull 5261d2b
Fix websocket close handler
Protonull File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: "Publishing to release" | ||
|
|
||
| on: | ||
| release: | ||
| types: | ||
| - "published" | ||
|
|
||
| permissions: | ||
| contents: "write" | ||
|
|
||
| jobs: | ||
| release-mod: | ||
| runs-on: "ubuntu-latest" | ||
| steps: | ||
| - uses: "actions/checkout@v4" | ||
|
|
||
| - name: "Setting up JDK 17" | ||
| uses: "actions/setup-java@v4" | ||
| with: | ||
| java-version: "17" | ||
| distribution: "adopt" | ||
|
|
||
| - name: "Building mods" | ||
| working-directory: "./mod" | ||
| run: "./gradlew build" | ||
|
|
||
| - name: "Publishing mods" | ||
| working-directory: "./mod" | ||
| run: | | ||
| for file in $(find "dist/" -maxdepth 1 -type f -name "*.jar"); do | ||
| echo "Uploading $file" | ||
| gh release upload ${{ github.event.release.tag_name }} "$file" --clobber | ||
| done | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you ever fix the config thing we talked about? i forget the specifics but I remember there being some issue with it in docker.