Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
19068a9
fix: change default TCP port to 5001
gil0mendes Jan 3, 2025
2542fb1
feat: add support for deno
gil0mendes Jan 3, 2025
0239d07
fix: some import issues
gil0mendes Jan 3, 2025
2962f41
feat: make recursiveDirectoryGlob support ts files
gil0mendes Jan 3, 2025
a144ad2
feat: migrate tcp server to deno
gil0mendes Jan 6, 2025
17eefad
chore: add tests for the chat feature
gil0mendes Jan 6, 2025
edc57f4
feat: convert web server into a ts file
gil0mendes Jan 7, 2025
58363d8
feat: stop using vitest
gil0mendes Jan 7, 2025
978b725
chore: remove node from the environment
gil0mendes Jan 7, 2025
5a93fe3
refactor: remove node fs and url
gil0mendes Jan 7, 2025
601683f
feat: implement http fingerprint
gil0mendes Jan 9, 2025
7491c07
feat: add hostname and port to the finderprint
gil0mendes Jan 9, 2025
24e5a0a
feat: make web server responding to action requests
gil0mendes Jan 10, 2025
375d16b
chore: remove magic names and numbers on the web server
gil0mendes Jan 10, 2025
cc5e6a7
chore: add quality workflow
gil0mendes Jan 10, 2025
b8c8191
chore: add missing install step for node dependencies
gil0mendes Jan 10, 2025
db33ad5
chore: remove old files
gil0mendes Jan 10, 2025
2ebc0b8
chore: remove vitest
gil0mendes Jan 10, 2025
5b82601
chore: remove prettier and adopt deno fmt
gil0mendes Jan 10, 2025
93d956e
feat: add panic function
gil0mendes Jan 22, 2025
eb1f002
feat: implement option type
gil0mendes Jan 22, 2025
746e1b6
refactor: move types
gil0mendes Jan 23, 2025
377f42b
feat: fix file serve logic
gil0mendes Jan 23, 2025
98596fe
refactor: update some imports
gil0mendes Jan 23, 2025
2b3e245
chore: apply the deno formatter to all the files
gil0mendes Jan 23, 2025
59da034
fix: some linting issues
gil0mendes Jan 23, 2025
f12c69c
feat: convert action processor to promise
gil0mendes Jan 27, 2025
328b438
chore: convert example actions to don't use next fn
gil0mendes Jan 27, 2025
f4dab75
fix: issue when resolving actions
gil0mendes Jan 27, 2025
2959778
fix(web): cleanup internal connection before response
gil0mendes Jan 27, 2025
8bf8801
fix: convert more code to use promises
gil0mendes Jan 27, 2025
3041942
fix: support for multi-part form data
gil0mendes Jan 27, 2025
8383ba2
fix(web): some unit tests
gil0mendes Jan 27, 2025
45e7281
fix: adapt web options request handler
gil0mendes Jan 27, 2025
54ec0bf
chore: convert configs to typescript
gil0mendes Feb 8, 2025
5c34559
feat: add new engine types
gil0mendes Feb 8, 2025
ef7c1d6
chore: convert modules logic into TS
gil0mendes Feb 8, 2025
85f7c22
feat: implement result type
gil0mendes Feb 8, 2025
f5e26af
chore: type general options
gil0mendes Feb 8, 2025
ed8ebe8
feat: improve action processor logic with Result type
gil0mendes Feb 9, 2025
015b7c2
chore: address the clearTimeout warning on deno test
gil0mendes Feb 20, 2025
c1b2efe
chore: upgrade node-resque to the latest version
gil0mendes Feb 20, 2025
c6e24dd
chore: migrate api tests
gil0mendes Feb 20, 2025
30d90c7
chore: migrate cache tests
gil0mendes Feb 20, 2025
519376b
chore: migrate errors tests
gil0mendes Feb 20, 2025
319e82f
chore: fix lint issues
gil0mendes Feb 20, 2025
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
67 changes: 33 additions & 34 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
{
"parser": "@typescript-eslint/parser",
"root": true,
"parser": "@typescript-eslint/parser",
"root": true,

"env": {
"browser": false,
"node": true,
"es2021": true
},
"env": {
"browser": false,
"node": true,
"es2021": true
},

"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],

"ignorePatterns": ["**/node_modules", "**/dits", "src/client.js"],
"plugins": ["@typescript-eslint", "prettier", "unused-imports"],
"rules": {
"prettier/prettier": "error",
"prefer-template": "error",
"ignorePatterns": ["**/node_modules", "**/dits", "src/client.js"],
"plugins": ["@typescript-eslint", "unused-imports"],
"rules": {
"prefer-template": "error",

"no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
],

"arrow-parens": 0,
"generator-star-spacing": 0,
"no-useless-escape": 0,
"valid-typeof": 0,
"standard/no-callback-literal": 0
}
"arrow-parens": 0,
"generator-star-spacing": 0,
"no-useless-escape": 0,
"valid-typeof": 0,
"standard/no-callback-literal": 0
}
}
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ $ npm test

- **`example`**: contains a sample application to be used in the test environment and as an example for developers.

- **`test`**: contains all testes. The unit testes are run using [Vitest](https://vitest.dev/).
- **`test`**: contains all testes. The unit and integration tests are run using Deno itself.

- **`src`**: contains the source code, obviously. The codebase is written in ES6.

Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Remove the template from below and provide thoughtful commentary *and code sampl
-->

<!-- BUG REPORT TEMPLATE -->

### Running System

- Stellar Version: `1.0.x`
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Quality
on:
push:
branches:
- master
pull_request:
branches:
- master

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: denoland/setup-deno@v2
with:
deno-version: v2.x

- run: deno fmt --check

- run: deno lint

test:
runs-on: ubuntu-latest
env:
DENO_DIR: deno-cache-dir
steps:
- uses: actions/checkout@v4

- uses: denoland/setup-deno@v2
with:
deno-version: v2.x

- name: Cache Deno dependencies
uses: actions/cache@v4
with:
path: |
${{ env.DENO_DIR }}
.node_modules
key: ${{ hashFiles('deno.lock') }}

- name: Install Node dependencies
run: deno install

- run: deno test --allow-all --coverage=cov/

complete:
permissions:
contents: none
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- run: echo "Done! 🙌"
111 changes: 0 additions & 111 deletions .github/workflows/test.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"name": "Stellar Debug",
"program": "${workspaceFolder}/bin/stellar run",
"preLaunchTask": "npm: build",
"outFiles": ["${workspaceFolder}/lib/**/*.js"],
"outFiles": ["${workspaceFolder}/src/**/*.js"],
"outputCapture": "std"
}
]
Expand Down
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"deno.enable": true,
"[typescript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "denoland.vscode-deno"
}
}
20 changes: 10 additions & 10 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ The following table shows the current versions covered with security updates:
| Version | Supported |
| ------- | ------------------ |
| >1.4.x | :white_check_mark: |
| <1.4.x | :x: |
| <1.4.x | :x: |

## Reporting a Vulnerability

Reporting vulnerabilities on Stellar is really important for the project
and to keep everyone safe. It's normal all pieces of technology have
vulnerabilities and need security patches over time.
Reporting vulnerabilities on Stellar is really important for the project
and to keep everyone safe. It's normal all pieces of technology have
vulnerabilities and need security patches over time.

When you find a vulnerability on stellar please send an email to
[general@stellar-framework.com](general@stellar-framework.com) with the
title "SECURITY: <short description>" and as the email, body add a long
description of the issues and if possible an example/steps to reproduce
When you find a vulnerability on stellar please send an email to
[general@stellar-framework.com](general@stellar-framework.com) with the
title "SECURITY: <short description>" and as the email, body add a long
description of the issues and if possible an example/steps to reproduce
the issues.

Usually, we will answer between 2 and 5 days and always give an update on
the matter. Please, don't share the vulnerability or post details online
Usually, we will answer between 2 and 5 days and always give an update on
the matter. Please, don't share the vulnerability or post details online
while we don't give you feedback on the possible issue.
7 changes: 4 additions & 3 deletions bin/Command.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import path from "path";
import { spawn } from "child_process";
import path from "node:path";
import { spawn } from "node:child_process";
import { Command as NativeCommand } from "commander";

import Engine from "../lib/engine.js";
import Engine from "../src/engine.ts";

import { getStellarMetadata } from "./utils.js";
import process from "node:process";

/**
* All command extends this class in order to initialize Stellar and
Expand Down
3 changes: 2 additions & 1 deletion bin/commands/console.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import REPL from "repl";
import REPL from "node:repl";

import { Command } from "../Command.js";
import process from "node:process";

class ConsoleCommand extends Command {
constructor() {
Expand Down
1 change: 1 addition & 0 deletions bin/commands/dockerIt.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Command } from "../Command.js";
import { exists, generateFileFromTemplate } from "../utils.js";
import process from "node:process";

class dockerItCommand extends Command {
constructor() {
Expand Down
Loading