-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# v1.0.0-BETA.0 ## Yes, we are finally in beta! 🎉 This release includes a lot of changes and improvements, so check the changelog to see what's new. - [BREAKING] Drop support for all versions below Node.js v16.20.0 - Our build system was improved and can't build in version 14 or lower anymore - Also, our load system uses features from Node.js v16.20.0, so we can't support older versions anymore - [BREAKING] Message system was refactored - Instead of a crazy irc-inspired message system, we now use simple json objects - The send method was changed, and you will need to update your code to use the new one - Legacy "command" and "args" properties are now optional, and you probably won't need to use them anymore - New parameter "content" was added, this accepts anything and will be sent as the message content - The property "type" in message doesn't mean the client type anymore, now it means the message type (update your code to reflect this change) - Various other changes were made, so check IMessage interface to see all changes - [BREAKING] ArunaCore is now an ES module - This doesn't affect the api, so your code probably will work without issues - [DEPRECATED] Various methods from `WebSocketParser` were deprecated - They will be removed in some future version, so update your code to use the new methods - [CHANGE] We changed the project structure - Say goodbye to multiples `node_modules` folders (we now use a single in the root and another in api only) - Now we use a single `package.json` file in the root of the project (and another in api only) - Now we use a single `tsconfig.json` file in the root of the project (and another in api only) - This reduces significantly the project size and build time (and also makes it easier to maintain) - [CHANGE] Build system was improved - Since we have abandoned the multiple modules structure, we can now use a single build system - This includes the api (you don't need to build it separately anymore) - [CHANGE] Increase WebSocket payload size limit - Now we support payloads up to 512kb - [NEW] Add configuration system - Now you can configure the system (including server port) editing the `bundle/config/config.json` file - You can also use enviroment `ARUNACORE_<PROPERTY>` variables to override the configuration file - [NEW] Add `masterkey` to allow access to restricted endpoints and commands - You can set the masterkey in the configuration file or in the enviroment variable `ARUNACORE_MASTERKEY` - If a masterkey is not provided, all restricted endpoints and commands will be disabled and will return a `503` error - [NEW] Create a connection structure - Usefull to store and manipulate connections - [FIX] Timeouts not being cleared - This also reduces test time - [FIX] HTTP server not responding unknown endpoints - Now it returns a `404` error _(as expected)_ instead just doing nothing and waiting for a timeout - [FIX] HTTP doesn't support body - Since the default node http server doesn't support body, we've implemented a custom parser to support it - [FIX] HTTP server routes begin case sensitive - Now all routes are case insensitive - [CHORE] Update dependencies - [CHORE] Improve documentation - [CHORE] Create a changelog file to keep track of changes - Probably includes all changes from previous versions
- Loading branch information
Showing
98 changed files
with
3,975 additions
and
18,194 deletions.
There are no files selected for viewing
This file contains 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,8 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 |
This file contains 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,4 @@ | ||
src/scripts/* | ||
build/**/* | ||
dist/**/* | ||
out/**/* |
This file contains 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 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 |
---|---|---|
|
@@ -12,22 +12,25 @@ jobs: | |
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install Node v12 | ||
|
||
- name: Install Node v16 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 12.x | ||
node-version: 16.x | ||
|
||
- name: Enforce npm 8 | ||
run: npm install -g [email protected] | ||
- name: Run CI-Setup | ||
working-directory: ./bundle | ||
run: npm run cisetup | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run ESLint | ||
working-directory: ./bundle | ||
run: npm run eslint:fix | ||
|
||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v4 | ||
with: | ||
add: . | ||
message: "(lint): Auto-fix linting errors" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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 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 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 |
---|---|---|
|
@@ -9,18 +9,21 @@ jobs: | |
|
||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16, 18, 20] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Node v12 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 12.x | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Update NPM | ||
run: npm install -g [email protected] | ||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run Test | ||
working-directory: ./bundle | ||
run: npm run test |
This file contains 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 |
---|---|---|
|
@@ -119,5 +119,3 @@ configs/ | |
# Misc | ||
.breakpoints | ||
.replit | ||
package.json | ||
!*/package.json |
This file contains 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,8 @@ | ||
{ | ||
"extends": [ | ||
"development" | ||
], | ||
"hints": { | ||
"typescript-config/is-valid": "off" | ||
} | ||
} |
This file contains 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 @@ | ||
lts/Iron |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.