Skip to content

Commit feeb236

Browse files
authored
🔀 Merge #519: 🔖 version/1.10.1
2 parents ab78a9e + 9db24e8 commit feeb236

10 files changed

Lines changed: 67 additions & 17 deletions

File tree

.scripts/esbuild.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ const COMMON_CONFIG: esbuild.BuildOptions = {
233233
svelte: 'svelte',
234234
module: './.scripts/fakeModule.js',
235235
'node:module': './.scripts/fakeModule.js',
236+
'node:fs': './src/constants.ts',
236237
},
237238
format: 'iife',
238239
define: DEFINES,

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"title": "Animated Java",
55
"icon": "icon.svg",
66
"description": "Effortlessly craft complex animations for Minecraft: Java Edition",
7-
"version": "1.10.0",
7+
"version": "1.10.1",
88
"min_blockbench_version": "5.1.4",
99
"variant": "desktop",
1010
"tags": [
@@ -105,7 +105,7 @@
105105
"firebase": "^9.19.0",
106106
"jiti": "^2.6.1",
107107
"js-yaml": "^4.1.0",
108-
"mc-build": "^4.1.2",
108+
"mc-build": "^4.1.3",
109109
"node-modules-vscode-problems-patch": "^1.0.9",
110110
"octokit": "^5.0.3",
111111
"prettier": "^3.8.2",

src/constants.ts

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,42 @@
11
import PACKAGEJSON from '../package.json'
2-
import { localize as translate } from './util/lang'
2+
import { localize } from './util/lang'
33
export const PACKAGE: typeof PACKAGEJSON = PACKAGEJSON
44

55
let cachedFsModule: ScopedFS | null = null
66
export function getFsModule() {
7+
debugger
78
cachedFsModule ??= requireNativeModule('fs', {
8-
message: translate('require.fs'),
9+
message: localize('require.fs'),
910
optional: false,
1011
})!
1112
return cachedFsModule
1213
}
14+
15+
// Super lazy-loading of properties, so that we don't load the fs or fs.promises module until it's actually used by a dependency.
16+
export default new Proxy(
17+
{},
18+
{
19+
get(target, prop) {
20+
if (prop === 'promises') {
21+
return new Proxy(
22+
{},
23+
{
24+
get(target, prop) {
25+
return (...args: any[]) => {
26+
// @ts-expect-error
27+
return getFsModule().promises[prop as keyof ScopedFS['promises']](
28+
...args
29+
)
30+
}
31+
},
32+
}
33+
)
34+
}
35+
36+
return (...args: any[]) => {
37+
// @ts-expect-error
38+
return getFsModule()[prop as keyof ScopedFS](...args)
39+
}
40+
},
41+
}
42+
)

src/formats/blueprint/formatPage.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@
2121
</h3>
2222

2323
<p>
24-
<a href="https://animated-java.dev/docs/getting-started/creating-a-blueprint"
25-
>Check out the Docs</a
26-
> to learn how to use Animated Java.
24+
<a href="https://animated-java.dev/docs/getting-started/installing">Check out the Docs</a> to learn
25+
how to use Animated Java.
2726
</p>
2827

2928
<div class="button_bar">

src/lang/en.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,13 @@ animated_java:
282282
The targeted Resource Pack must contain a `pack.mcmeta` file.
283283
warning:
284284
no_assets: Selected folder does not contain an assets folder.
285-
error:
286-
empty: Resource Pack folder is required.
287-
invalid_path: 'Failed to resolve path: %s'
288-
does_not_exist: Selected path does not exist.
289-
not_a_dir: Selected path is not a directory.
290-
no_pack_mcmeta: Selected folder does not contain a pack.mcmeta file.
285+
folder:
286+
error:
287+
empty: Resource Pack folder is required.
288+
invalid_path: 'Failed to resolve path: %s'
289+
does_not_exist: Selected path does not exist.
290+
not_a_dir: Selected path is not a directory.
291+
no_pack_mcmeta: Selected folder does not contain a pack.mcmeta file.
291292
data_pack_settings:
292293
title: Data Pack
293294
data_pack:

src/plugin.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ BBPlugin.register(PACKAGE.name, {
1111
version: PACKAGE.version,
1212
min_version: PACKAGE.min_blockbench_version,
1313
tags: ['Minecraft: Java Edition', 'Animation', 'Display Entities'],
14+
repository: 'https://github.com/animated-java/animated-java',
15+
bug_tracker: 'https://github.com/animated-java/animated-java/issues',
16+
website: 'https://animated-java.dev',
1417
await_loading: true,
1518
onload() {
1619
console.log(

src/pluginPackage/about.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@
6767

6868
<p>
6969
To learn the basics of Animated Java, check out our <a
70-
href="https://animated-java.dev/docs/getting-started/installing-animated-java"
71-
>Getting Started</a
70+
href="https://animated-java.dev/docs/getting-started/installing">Getting Started</a
7271
> guide.
7372
</p>
7473

src/pluginPackage/changelog.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,5 +852,22 @@
852852
]
853853
}
854854
]
855+
},
856+
"1.10.1": {
857+
"title": "v1.10.1",
858+
"author": "Titus Evans (SnaveSutit)",
859+
"date": "2026-06-24",
860+
"categories": [
861+
{
862+
"title": "Fixes",
863+
"list": [
864+
"Fixed broken website links.",
865+
"Fixed plugin data desyncs.",
866+
"Fixed missing translations for resource pack folder path.",
867+
"Fixed missing message for file access request.",
868+
"Fixed dependencies requiring node:fs early in the plugin load process."
869+
]
870+
}
871+
]
855872
}
856873
}

src/popups/installed/installed.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<h2>Not Sure Where to Start?</h2>
1616
<p>
1717
Check out our <a
18-
href="https://animated-java.dev/docs/getting-started/creating-a-blueprint"
18+
href="https://animated-java.dev/docs/getting-started/your-first-blueprint"
1919
>getting started</a
2020
> page to learn how to use Animated Java!
2121
</p>

src/systems/datapackCompiler/tellraw.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ namespace TELLRAW {
161161
],
162162
},
163163
CREATE_TELLRAW_HELP_LINK(
164-
'https://animated-java.dev/docs/rigs/controlling-a-rig-instance'
164+
'https://animated-java.dev/docs/core-concepts/tags#practical-selector-examples'
165165
),
166166
])
167167
}

0 commit comments

Comments
 (0)