Skip to content

Commit 2178677

Browse files
authored
Merge pull request #112 from williamhorning/break-node-prior-to-22
BREAKING: remove polyfilles, CJS build, and update dev dependencies
2 parents 26fabc6 + 897df03 commit 2178677

39 files changed

+1482
-2346
lines changed

.eslintrc.json

Lines changed: 0 additions & 49 deletions
This file was deleted.

eslint.config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import eslint from "@eslint/js";
2+
import prettier from "eslint-plugin-prettier/recommended";
3+
import solid from "eslint-plugin-solid/configs/typescript";
4+
import { defineConfig } from "eslint/config";
5+
import tseslint from "typescript-eslint";
6+
7+
export default defineConfig([
8+
eslint.configs.recommended,
9+
tseslint.configs.recommended,
10+
solid,
11+
{
12+
rules: {
13+
"@typescript-eslint/no-unused-vars": [
14+
"warn",
15+
{
16+
caughtErrors: "all",
17+
varsIgnorePattern: "^_",
18+
},
19+
],
20+
},
21+
},
22+
prettier,
23+
]);

package-esm.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 19 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
{
22
"name": "revolt.js",
33
"version": "7.0.5",
4-
"main": "lib/cjs/index.js",
5-
"module": "lib/esm/index.js",
6-
"types": "lib/esm/index.d.ts",
4+
"type": "module",
5+
"module": "lib/index.js",
6+
"types": "lib/index.d.ts",
77
"repository": "https://github.com/revoltchat/revolt.js",
88
"author": "Paul Makles <insrt.uk>",
99
"license": "MIT",
1010
"scripts": {
11-
"build": "pnpm run build:esm && pnpm run build:cjs",
12-
"build:esm": "tsc && cp package-esm.json lib/esm/package.json",
13-
"build:cjs": "tsc -p tsconfig.cjs.json",
11+
"build": "tsc",
1412
"build:watch": "tsc-watch --onSuccess \"node .\"",
1513
"lint": "eslint --ext .ts,.tsx src/",
1614
"lint:fix": "eslint --fix --ext .ts,.tsx src/",
@@ -26,32 +24,23 @@
2624
"description": "Library for interacting with the Revolt API.",
2725
"packageManager": "[email protected]",
2826
"dependencies": {
29-
"@solid-primitives/map": "^0.4.11",
30-
"@solid-primitives/set": "^0.4.11",
31-
"eventemitter3": "^5.0.1",
32-
"isomorphic-ws": "^5.0.0",
33-
"long": "^5.2.3",
27+
"@solid-primitives/map": "^0.6.0",
28+
"@solid-primitives/set": "^0.6.0",
29+
"@vladfrangu/async_event_emitter": "^2.4.6",
3430
"revolt-api": "0.8.3",
3531
"solid-js": "^1.8.15",
36-
"ulid": "^2.3.0",
37-
"ws": "^8.16.0"
32+
"ulid": "^2.3.0"
3833
},
3934
"devDependencies": {
40-
"@mxssfd/typedoc-theme": "^1.1.3",
41-
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
42-
"@types/node": "^18.19.24",
43-
"@types/ws": "^8.5.10",
44-
"@typescript-eslint/eslint-plugin": "^5.62.0",
45-
"@typescript-eslint/parser": "^5.62.0",
46-
"dotenv": "^16.4.5",
47-
"eslint": "^8.57.0",
48-
"eslint-config-prettier": "^8.10.0",
49-
"eslint-plugin-solid": "^0.12.1",
50-
"eslint-plugin-spellcheck": "^0.0.20",
51-
"prettier": "^2.8.8",
52-
"tsc-watch": "^6.0.4",
53-
"typed-emitter": "^2.1.0",
54-
"typedoc": "^0.25.1",
55-
"typescript": "^5.4.2"
35+
"@mxssfd/typedoc-theme": "^1.1.7",
36+
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
37+
"@types/node": "^22.13.10",
38+
"eslint-plugin-prettier": "^5.2.3",
39+
"eslint-plugin-solid": "^0.14.5",
40+
"eslint": "^9.22.0",
41+
"prettier": "^3.5.3",
42+
"typedoc": "^0.27.9",
43+
"typescript-eslint": "^8.26.1",
44+
"typescript": "^5.8.2"
5645
}
57-
}
46+
}

0 commit comments

Comments
 (0)