X Tutup
Skip to content

Commit aaea6c3

Browse files
committed
Update dependencies
1 parent 77e9ddd commit aaea6c3

File tree

126 files changed

+2037
-3282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+2037
-3282
lines changed

biome.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.2/schema.json",
3-
"organizeImports": {
4-
"enabled": true,
5-
"include": ["packages/examples", "packages/debug-plugin"]
6-
},
2+
"$schema": "https://biomejs.dev/schemas/2.3.14/schema.json",
3+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
74
"files": {
8-
"ignore": ["docs/", "build/", ".turbo", "**/examples/**/assets/**/*"]
5+
"includes": [
6+
"**",
7+
"!**/docs",
8+
"!**/build",
9+
"!**/.turbo",
10+
"!**/examples/**/assets/**/*"
11+
]
912
},
1013
"formatter": { "enabled": true },
1114
"linter": {
@@ -14,6 +17,6 @@
1417
"recommended": true,
1518
"nursery": { "recommended": true }
1619
},
17-
"include": ["packages/examples", "packages/debug-plugin"]
20+
"includes": ["**/packages/examples/**", "**/packages/debug-plugin/**"]
1821
}
1922
}

eslint.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import eslint from "@eslint/js";
12
import jsdoc from "eslint-plugin-jsdoc";
3+
import reactRefresh from "eslint-plugin-react-refresh";
24
import globals from "globals";
35
import tseslint from "typescript-eslint";
4-
import eslint from "@eslint/js";
5-
import reactRefresh from "eslint-plugin-react-refresh";
66

77
const jsDocConfig = jsdoc.configs["flat/recommended-typescript-error"];
88

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,30 @@
99
"build": "turbo build",
1010
"dev": "turbo dev",
1111
"lint": "turbo build && eslint && biome check && turbo test:types",
12-
"test": "turbo build && vitest",
12+
"test": "turbo build && vitest --config packages/melonjs/vitest.config.ts",
1313
"doc": "pnpm -F melonjs doc",
1414
"publish-melonjs": "pnpm lint && pnpm biome check && pnpm publish --filter melonjs",
1515
"publish-debug-plugin": "pnpm lint && pnpm biome check && pnpm publish --filter debug-plugin"
1616
},
1717
"packageManager": "pnpm@9.5.0",
1818
"dependencies": {
19-
"@biomejs/biome": "1.8.3",
20-
"@eslint/js": "^9.9.0",
21-
"@types/eslint__js": "^8.42.3",
22-
"@types/node": "^22.2.0",
23-
"@vitest/browser": "^2.0.5",
24-
"eslint": "^9.9.0",
25-
"eslint-plugin-jsdoc": "^48.11.0",
26-
"globals": "^15.9.0",
27-
"lefthook": "^1.7.12",
28-
"tsconfig": "workspace:latest",
29-
"turbo": "^2.0.12",
30-
"typescript": "^5.5.4",
31-
"typescript-eslint": "^8.0.1",
32-
"vitest": "^2.0.5"
19+
"@biomejs/biome": "2.3.14",
20+
"@eslint/js": "^10.0.1",
21+
"@types/node": "^25.2.1",
22+
"@vitest/browser": "^4.0.18",
23+
"@vitest/browser-playwright": "^4.0.18",
24+
"eslint": "^10.0.0",
25+
"eslint-plugin-jsdoc": "^62.5.3",
26+
"globals": "^17.3.0",
27+
"lefthook": "^2.1.0",
28+
"tsconfig": "workspace:^",
29+
"turbo": "^2.8.3",
30+
"typescript": "^5.9.3",
31+
"typescript-eslint": "^8.54.0",
32+
"vitest": "^4.0.18"
3333
},
3434
"devDependencies": {
35-
"eslint-plugin-react-refresh": "^0.4.11",
36-
"playwright": "^1.46.0"
35+
"eslint-plugin-react-refresh": "^0.5.0",
36+
"playwright": "^1.58.2"
3737
}
3838
}

packages/debug-plugin/package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,21 @@
4141
"exports": {
4242
".": "./build/index.js"
4343
},
44-
"files": ["build/", "package.json", "README.md"],
44+
"files": [
45+
"build/",
46+
"package.json",
47+
"README.md"
48+
],
4549
"peerDependencies": {
4650
"melonjs": ">=15.12.0"
4751
},
4852
"devDependencies": {
49-
"concurrently": "^8.2.2",
50-
"esbuild": "^0.23.0",
53+
"concurrently": "^9.2.1",
54+
"esbuild": "^0.27.3",
5155
"melonjs": "workspace:*",
5256
"tsconfig": "workspace:*",
53-
"tsx": "^4.16.2",
54-
"typescript": "^5.5.3"
57+
"tsx": "^4.21.0",
58+
"typescript": "^5.9.3"
5559
},
5660
"scripts": {
5761
"dev": "concurrently --raw \"pnpm build:watch\" \"pnpm tsc:watch\"",

packages/debug-plugin/src/debugPanel.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ import {
22
BitmapText,
33
Camera2d,
44
Container,
5-
Entity,
6-
ImageLayer,
7-
Rect,
8-
Renderable,
9-
Text,
105
collision,
6+
Entity,
117
event,
128
game,
9+
ImageLayer,
1310
input,
1411
math,
1512
plugin,
1613
pool,
14+
Rect,
15+
Renderable,
16+
Text,
1717
timer,
1818
utils,
1919
video,
@@ -161,7 +161,7 @@ export class DebugPanel extends Renderable {
161161
// patch renderable.js
162162
plugin.patch(Renderable, "postDraw", function (renderer) {
163163
// call the original Renderable.postDraw function
164-
// biome-ignore lint/style/noArguments: <explanation>
164+
// biome-ignore lint/complexity/noArguments: needed to forward all arguments to patched method
165165
this._patched.apply(this, arguments);
166166

167167
// increment the sprites counter
@@ -238,7 +238,7 @@ export class DebugPanel extends Renderable {
238238

239239
plugin.patch(BitmapText, "draw", function (renderer) {
240240
// call the original Sprite.draw function
241-
// biome-ignore lint/style/noArguments: <explanation>
241+
// biome-ignore lint/complexity/noArguments: needed to forward all arguments to patched method
242242
this._patched.apply(this, arguments);
243243

244244
// draw the font rectangle
@@ -270,7 +270,7 @@ export class DebugPanel extends Renderable {
270270
// patch text.js
271271
plugin.patch(Text, "draw", function (renderer) {
272272
// call the original Text.draw function
273-
// biome-ignore lint/style/noArguments: <explanation>
273+
// biome-ignore lint/complexity/noArguments: needed to forward all arguments to patched method
274274
this._patched.apply(this, arguments);
275275

276276
if (_this.visible && _this.checkbox.renderHitBox.selected) {
@@ -368,7 +368,7 @@ export class DebugPanel extends Renderable {
368368
}
369369
}
370370
// call the original Entity.postDraw function
371-
// biome-ignore lint/style/noArguments: <explanation>
371+
// biome-ignore lint/complexity/noArguments: needed to forward all arguments to patched method
372372
this._patched.apply(this, arguments);
373373
});
374374
}

packages/debug-plugin/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class DebugPanelPlugin extends plugin.BasePlugin {
4646

4747
this.panel = new DebugPanel(debugToggle);
4848

49-
this.keyHandler = event.on(event.KEYDOWN, (action, keyCode) => {
49+
this.keyHandler = event.on(event.KEYDOWN, (_action, keyCode) => {
5050
if (keyCode === this.debugToggle) {
5151
this.toggle();
5252
}

packages/examples/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
"test:types": "tsc"
99
},
1010
"dependencies": {
11-
"@types/react": "^18.3.3",
12-
"@types/react-dom": "^18.3.0",
13-
"@vitejs/plugin-react": "^4.3.1",
11+
"@melonjs/debug-plugin": "workspace:*",
12+
"@types/react": "^19.2.13",
13+
"@types/react-dom": "^19.2.3",
14+
"@vitejs/plugin-react": "^5.1.3",
1415
"melonjs": "workspace:^",
15-
"react": "^18.3.1",
16-
"react-dom": "^18.3.1",
17-
"react-router-dom": "^6.24.1",
16+
"react": "^19.2.4",
17+
"react-dom": "^19.2.4",
18+
"react-router-dom": "^7.13.0",
1819
"tsconfig": "workspace:^",
19-
"typescript": "^5.2.2",
20-
"vite": "^5.3.5",
21-
"@melonjs/debug-plugin": "workspace:*"
20+
"typescript": "^5.9.3",
21+
"vite": "^7.3.1"
2222
}
2323
}

packages/examples/src/examples/benchmark/ExampleBenchmark.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import { DebugPanelPlugin } from "@melonjs/debug-plugin";
22
import {
3-
ScaleMethods,
43
device,
54
event,
65
game,
76
input,
87
loader,
98
plugin,
9+
ScaleMethods,
1010
video,
1111
} from "melonjs";
1212
import { createExampleComponent } from "../utils";
13-
import { Fruit } from "./Fruit";
1413
import { assets } from "./assets";
14+
import { Fruit } from "./Fruit";
1515

1616
const FRUIT_STEP = 50;
1717

packages/examples/src/examples/benchmark/Fruit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Sprite, game, math } from "melonjs";
1+
import { game, math, Sprite } from "melonjs";
22

33
export class Fruit extends Sprite {
44
gravity: number;

packages/examples/src/examples/deviceTest/ExampleDeviceTest.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import {
22
type CanvasRenderer,
33
ColorLayer,
4-
Renderable,
5-
Text,
6-
type WebGLRenderer,
74
device,
85
game,
96
input,
107
math,
8+
Renderable,
9+
Text,
1110
video,
11+
type WebGLRenderer,
1212
} from "melonjs";
1313
import { createExampleComponent } from "../utils";
1414

0 commit comments

Comments
 (0)
X Tutup