Skip to content

BREAKING: remove polyfilles, CJS build, and update dev dependencies #112

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

Merged
merged 6 commits into from
Mar 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
49 changes: 0 additions & 49 deletions .eslintrc.json

This file was deleted.

23 changes: 23 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import eslint from "@eslint/js";
import prettier from "eslint-plugin-prettier/recommended";
import solid from "eslint-plugin-solid/configs/typescript";
import { defineConfig } from "eslint/config";
import tseslint from "typescript-eslint";

export default defineConfig([
eslint.configs.recommended,
tseslint.configs.recommended,
solid,
{
rules: {
"@typescript-eslint/no-unused-vars": [
"warn",
{
caughtErrors: "all",
varsIgnorePattern: "^_",
},
],
},
},
prettier,
]);
3 changes: 0 additions & 3 deletions package-esm.json

This file was deleted.

49 changes: 19 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"name": "revolt.js",
"version": "7.0.5",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"types": "lib/esm/index.d.ts",
"type": "module",
"module": "lib/index.js",
"types": "lib/index.d.ts",
"repository": "https://github.com/revoltchat/revolt.js",
"author": "Paul Makles <insrt.uk>",
"license": "MIT",
"scripts": {
"build": "pnpm run build:esm && pnpm run build:cjs",
"build:esm": "tsc && cp package-esm.json lib/esm/package.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build": "tsc",
"build:watch": "tsc-watch --onSuccess \"node .\"",
"lint": "eslint --ext .ts,.tsx src/",
"lint:fix": "eslint --fix --ext .ts,.tsx src/",
Expand All @@ -26,32 +24,23 @@
"description": "Library for interacting with the Revolt API.",
"packageManager": "[email protected]",
"dependencies": {
"@solid-primitives/map": "^0.4.11",
"@solid-primitives/set": "^0.4.11",
"eventemitter3": "^5.0.1",
"isomorphic-ws": "^5.0.0",
"long": "^5.2.3",
"@solid-primitives/map": "^0.6.0",
"@solid-primitives/set": "^0.6.0",
"@vladfrangu/async_event_emitter": "^2.4.6",
"revolt-api": "0.8.3",
"solid-js": "^1.8.15",
"ulid": "^2.3.0",
"ws": "^8.16.0"
"ulid": "^2.3.0"
},
"devDependencies": {
"@mxssfd/typedoc-theme": "^1.1.3",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^18.19.24",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-solid": "^0.12.1",
"eslint-plugin-spellcheck": "^0.0.20",
"prettier": "^2.8.8",
"tsc-watch": "^6.0.4",
"typed-emitter": "^2.1.0",
"typedoc": "^0.25.1",
"typescript": "^5.4.2"
"@mxssfd/typedoc-theme": "^1.1.7",
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
"@types/node": "^22.13.10",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-solid": "^0.14.5",
"eslint": "^9.22.0",
"prettier": "^3.5.3",
"typedoc": "^0.27.9",
"typescript-eslint": "^8.26.1",
"typescript": "^5.8.2"
}
}
}
Loading
Loading