Properly support Node 16 (#119)

pull/120/head
Josh Moore 2 years ago committed by GitHub
parent 1ec26c3bde
commit 86c5999ca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
.github/README.md vendored

@ -192,7 +192,7 @@ docker-compose up --force-recreate --build -d && docker image prune -f # && dock
<summary><em>Expand for local installation steps</em></summary> <summary><em>Expand for local installation steps</em></summary>
<br> <br>
1. You should have **Node.js 14.17** & **npm 8 or later** installed. 1. You should have **Node.js 16** & **npm 8 or later** installed.
2. Clone this repo using `git clone https://github.com/tycrek/ass.git && cd ass/` 2. Clone this repo using `git clone https://github.com/tycrek/ass.git && cd ass/`
3. Run `npm i -g typescript` to install TypeScript globally 3. Run `npm i -g typescript` to install TypeScript globally
4. Run `npm i --save-dev` to install the required dependencies (`--save-dev` is **required** for compilation) 4. Run `npm i --save-dev` to install the required dependencies (`--save-dev` is **required** for compilation)
@ -403,7 +403,7 @@ ass has a number of pre-made npm scripts for you to use. **All** of these script
| `docker-resetup` | Alias for `docker-compose exec ass npm run setup && docker-compose restart` | | `docker-resetup` | Alias for `docker-compose exec ass npm run setup && docker-compose restart` |
[tlog Socket plugin]: https://github.com/tycrek/tlog#socket [tlog Socket plugin]: https://github.com/tycrek/tlog#socket
[`FORCE_COLOR`]: https://nodejs.org/dist/latest-v14.x/docs/api/cli.html#cli_force_color_1_2_3 [`FORCE_COLOR`]: https://nodejs.org/dist/latest-v16.x/docs/api/cli.html#cli_force_color_1_2_3
## Flameshot users (Linux) ## Flameshot users (Linux)

@ -12,11 +12,11 @@ jobs:
# Checkout repo # Checkout repo
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# Set up Node 14 # Set up Node 16
- name: Setup Node.js environment - name: Setup Node.js environment
uses: actions/setup-node@v2.4.1 uses: actions/setup-node@v2.4.1
with: with:
node-version: 14.17.5 node-version: 16.14.0
# Install npm 8 & TypeScript # Install npm 8 & TypeScript
- name: Install global packages - name: Install global packages

@ -3,8 +3,8 @@
# - tycrek <t@tycrek.com> (https://tycrek.com/) # - tycrek <t@tycrek.com> (https://tycrek.com/)
# - Zusier <zusier@pm.me> (https://github.com/Zusier) # - Zusier <zusier@pm.me> (https://github.com/Zusier)
# Node 14 image # Node 16 image
FROM node:14.17.5 FROM node:16.14.0
# Set working directory # Set working directory
WORKDIR /opt/ass/ WORKDIR /opt/ass/

22
package-lock.json generated

@ -10,7 +10,7 @@
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@skynetlabs/skynet-nodejs": "^2.3.0", "@skynetlabs/skynet-nodejs": "^2.3.0",
"@tsconfig/node14": "^1.0.1", "@tsconfig/node16": "^1.0.1",
"@tycrek/express-nofavicon": "^1.0.3", "@tycrek/express-nofavicon": "^1.0.3",
"@tycrek/isprod": "^2.0.2", "@tycrek/isprod": "^2.0.2",
"@tycrek/log": "^0.5.9", "@tycrek/log": "^0.5.9",
@ -55,8 +55,8 @@
"@types/ws": "^7.4.7" "@types/ws": "^7.4.7"
}, },
"engines": { "engines": {
"node": ">=14.7.x <16", "node": ">=16.14.x",
"npm": ">=8.1.x" "npm": ">=8.3.x"
}, },
"funding": { "funding": {
"type": "patreon", "type": "patreon",
@ -600,10 +600,10 @@
"node": ">=4.0.0" "node": ">=4.0.0"
} }
}, },
"node_modules/@tsconfig/node14": { "node_modules/@tsconfig/node16": {
"version": "1.0.1", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.1.tgz", "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz",
"integrity": "sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==" "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA=="
}, },
"node_modules/@tycrek/express-nofavicon": { "node_modules/@tycrek/express-nofavicon": {
"version": "1.0.3", "version": "1.0.3",
@ -4399,10 +4399,10 @@
} }
} }
}, },
"@tsconfig/node14": { "@tsconfig/node16": {
"version": "1.0.1", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.1.tgz", "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz",
"integrity": "sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==" "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA=="
}, },
"@tycrek/express-nofavicon": { "@tycrek/express-nofavicon": {
"version": "1.0.3", "version": "1.0.3",

@ -4,8 +4,8 @@
"description": "The superior self-hosted ShareX server", "description": "The superior self-hosted ShareX server",
"main": "ass.js", "main": "ass.js",
"engines": { "engines": {
"node": ">=14.7.x <16", "node": ">=16.14.x",
"npm": ">=8.1.x" "npm": ">=8.3.x"
}, },
"scripts": { "scripts": {
"dev": "npm run build && npm start", "dev": "npm run build && npm start",
@ -38,7 +38,7 @@
}, },
"dependencies": { "dependencies": {
"@skynetlabs/skynet-nodejs": "^2.3.0", "@skynetlabs/skynet-nodejs": "^2.3.0",
"@tsconfig/node14": "^1.0.1", "@tsconfig/node16": "^1.0.1",
"@tycrek/express-nofavicon": "^1.0.3", "@tycrek/express-nofavicon": "^1.0.3",
"@tycrek/isprod": "^2.0.2", "@tycrek/isprod": "^2.0.2",
"@tycrek/log": "^0.5.9", "@tycrek/log": "^0.5.9",

@ -1,5 +1,5 @@
{ {
"extends": "@tsconfig/node14/tsconfig.json", "extends": "@tsconfig/node16/tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "./dist", "outDir": "./dist",
"lib": [ "lib": [

Loading…
Cancel
Save