Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit 6b429b9

Browse files
authored
chore(deps): updated all dependencies (#267)
* chore(deps): updated all dependencies * commmit part way code * refactor: cleanup settings * refactor: switching out the molang parser * auto: updated tests * refactor: formatted controller * refactor: updating processors to use a molang harvestere * fix: fixing the import path to the molang harvest * refactor: MolangCarrier is no longer generic * refactor: internal definitions to get rid of SMap * removing smap references * refactor: using sets, better utillizing built in functions
1 parent 3d7c9ef commit 6b429b9

75 files changed

Lines changed: 685 additions & 907 deletions

Some content is hidden

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

.vscode/settings.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
{
2-
"editor.insertSpaces": true,
3-
"tslint.enable": true,
4-
"typescript.tsc.autoDetect": "off",
5-
"typescript.preferences.quoteStyle": "single",
62
"editor.codeActionsOnSave": {
73
"source.fixAll.eslint": "explicit"
8-
}
4+
},
5+
"editor.formatOnSave": true,
6+
"editor.tabSize": 2,
7+
"editor.useTabStops": false,
8+
"editor.insertSpaces": true,
9+
10+
"prettier.printWidth": 180,
11+
"prettier.tabWidth": 2,
12+
"prettier.useTabs": false,
13+
14+
"typescript.preferences.importModuleSpecifier": "relative",
15+
"typescript.preferences.quoteStyle": "single",
16+
"typescript.tsc.autoDetect": "watch",
17+
"typescript.tsserver.experimental.enableProjectDiagnostics": true
918
}

BC-Minecraft-Bedrock-Project.code-workspace

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

package-lock.json

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,23 @@
4141
},
4242
"homepage": "https://github.com/Blockception/BC-Minecraft-Bedrock-Project#readme",
4343
"devDependencies": {
44-
"@eslint/js": "^9.9.1",
44+
"@eslint/js": "^9.32.0",
4545
"@types/eslint__js": "^8.42.3",
4646
"@types/jest": "^30.0.0",
47-
"@types/node": "^24.0.3",
48-
"eslint": "^9.9.1",
47+
"@types/node": "^24.2.0",
48+
"eslint": "^9.32.0",
4949
"eslint-plugin-jest": "^29.0.1",
5050
"rimraf": "^6.0.1",
51-
"ts-jest": "^29.2.5",
51+
"ts-jest": "^29.4.1",
5252
"ts-node": "^10.9.1",
53-
"typescript": "^5.2.2",
54-
"typescript-eslint": "^8.4.0"
53+
"typescript": "^5.9.2",
54+
"typescript-eslint": "^8.39.0"
5555
},
5656
"dependencies": {
5757
"bc-minecraft-bedrock-command": "^1.21.100-0",
5858
"bc-minecraft-bedrock-types": "^1.22.1-11",
5959
"bc-minecraft-bedrock-vanilla-data": "^1.21.80-7",
60-
"bc-minecraft-molang": "^1.21.61-3",
60+
"bc-minecraft-molang": "^1.21.100-1",
6161
"bc-minecraft-project": "^1.21.73-6",
6262
"jsonc": "^2.0.0"
6363
}

src/internal/behavior-pack/animation-controller.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-disable @typescript-eslint/no-empty-object-type */
2-
import { SMap } from "../../types";
3-
import * as General from '../general/controllers/state';
2+
import * as General from "../general/controllers/state";
43
import { FormatVersion } from "../types";
54

65
/** */
@@ -22,7 +21,12 @@ export namespace AnimationControllers {
2221
* @returns
2322
*/
2423
export function is(value: any): value is AnimationControllers {
25-
if (typeof value === "object" && typeof value.format_version === "string" && typeof value.animation_controllers === "object") return true;
24+
if (
25+
typeof value === "object" &&
26+
typeof value.format_version === "string" &&
27+
typeof value.animation_controllers === "object"
28+
)
29+
return true;
2630

2731
return false;
2832
}
@@ -33,7 +37,7 @@ export interface AnimationController {
3337
/** */
3438
initial_state?: string;
3539
/** */
36-
states: SMap<State>;
40+
states: Record<string, State>;
3741
}
3842

3943
/** */
@@ -50,9 +54,7 @@ export namespace AnimationController {
5054
}
5155
}
5256

53-
54-
export interface State extends General.State {
55-
}
57+
export interface State extends General.State {}
5658

5759
/** */
5860
export namespace State {

src/internal/behavior-pack/animation.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { SMap } from "../../types";
21
import { FormatVersion } from "../types";
32

43
/** */
@@ -8,7 +7,7 @@ export interface Animation {
87
/** */
98
loop?: boolean;
109
/** */
11-
timeline?: SMap<string | string[]>;
10+
timeline?: Record<string, string | string[]>;
1211
}
1312

1413
/** */

src/internal/behavior-pack/biome.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ComponentContainer } from 'bc-minecraft-bedrock-types/lib/minecraft/components';
1+
import { ComponentContainer } from "bc-minecraft-bedrock-types/lib/minecraft/components";
22
import { FormatVersion } from "../types/format-version";
33

44
/** */
@@ -8,13 +8,12 @@ export interface Biome extends Readonly<FormatVersion> {
88
/** */
99
"minecraft:biome": {
1010
description: {
11-
identifier: string
12-
},
13-
components: ComponentContainer
11+
identifier: string;
12+
};
13+
components: ComponentContainer;
1414
};
1515
}
1616

17-
1817
/**
1918
*
2019
*/
@@ -25,10 +24,18 @@ export namespace Biome {
2524
* @returns
2625
*/
2726
export function is(value: any): value is Biome {
28-
if (typeof value === "object" && typeof value.format_version === "string" && typeof value["minecraft:biome"] === "object") {
27+
if (
28+
typeof value === "object" &&
29+
typeof value.format_version === "string" &&
30+
typeof value["minecraft:biome"] === "object"
31+
) {
2932
const desc = value["minecraft:biome"].description;
3033

31-
if (typeof desc === "object" && typeof desc.identifier === "string" && typeof value['minecraft:biome'].components === 'object') {
34+
if (
35+
typeof desc === "object" &&
36+
typeof desc.identifier === "string" &&
37+
typeof value["minecraft:biome"].components === "object"
38+
) {
3239
return true;
3340
}
3441
}

src/internal/behavior-pack/block.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { ComponentContainer } from "bc-minecraft-bedrock-types/lib/minecraft/components";
2-
import { SMap } from "../../types";
32
import { FormatVersion } from "../types/format-version";
43

54
export interface Block extends Readonly<FormatVersion> {
@@ -9,11 +8,11 @@ export interface Block extends Readonly<FormatVersion> {
98
identifier: string;
109
register_to_creative_menu?: boolean;
1110
is_experimental?: boolean;
12-
properties?: SMap<string[] | number[] | boolean[]>;
11+
properties?: Record<string, string[] | number[] | boolean[]>;
1312
};
1413
permutations?: Permutation[];
1514
components: ComponentContainer;
16-
events?: SMap<any>;
15+
events?: Record<string, any>;
1716
};
1817
}
1918

src/internal/behavior-pack/entity.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { ComponentContainer, ComponentGroups } from "bc-minecraft-bedrock-types/lib/minecraft/components";
2-
import { SMap } from "../../types";
3-
import { ScriptContainer } from "../types";
42
import { CommandContainer } from "../general/commands";
3+
import { ScriptContainer } from "../types";
54

65
/**The interface that deals with entity events that add or remove component groups*/
76
export interface EntityEventGroup {
@@ -102,9 +101,9 @@ export interface Entity {
102101
/** */
103102
components: ComponentContainer;
104103
/** */
105-
events?: SMap<EntityEvent>;
104+
events?: Record<string, EntityEvent>;
106105
};
107-
uses_beta_features?: boolean
106+
uses_beta_features?: boolean;
108107
}
109108

110109
/** */

src/internal/behavior-pack/item.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { SMap } from "../../types";
21
import { FormatVersion } from "../types/format-version";
32

43
/** */
@@ -17,9 +16,9 @@ export interface Item extends Readonly<FormatVersion> {
1716
is_experimental?: boolean;
1817
};
1918
/** */
20-
components: SMap<any>;
19+
components: Record<string, any>;
2120
/** */
22-
events?: SMap<any>;
21+
events?: Record<string, any>;
2322
};
2423
}
2524

@@ -34,7 +33,11 @@ export namespace Item {
3433
if (value && typeof value.format_version === "string" && typeof value["minecraft:item"] === "object") {
3534
const b = value["minecraft:item"];
3635

37-
if (typeof b.description === "object" && typeof b.description.identifier === "string" && typeof b.components === "object") {
36+
if (
37+
typeof b.description === "object" &&
38+
typeof b.description.identifier === "string" &&
39+
typeof b.components === "object"
40+
) {
3841
return true;
3942
}
4043
}

0 commit comments

Comments
 (0)