Skip to content

Conversation

SnaveSutit added 30 commits May 8, 2025 17:49
`isRelativePath` just wasn't checking for backslashes.
Improves maintainability by reducing complexity.
Related issues:
- Fixed #443
- Fixed #441
- Fixed #435
- Fixed #434
- Fixed #427
- Fixed #421
- Fixed #441
Seriously, how do I keep missing these? I scan through all my changes and always seem to find another case I've missed...
Unfortunately svelte doesn't support it yet, and is throwing errors. Will add it back when it's supported by svelte.
`getRawAsset` now actually returns a Buffer.
Also move `BLUEPRINT_CODEC` into it's own file.
- Moved `systems/modelDataFixerUpper.ts` -> `formats/blueprint/dfu.ts`
- Moved `blueprintSettings.ts` -> `formats/blueprint/settings.ts`
- Also fix linting errors / warnings in `textDisplay.ts`
- Started using TS Enums over objects and string unions where possible.
- Added support for 1.21.9 and above JSON text components.
- Made JsonText accept any JSON text version as input, and transform the output depending on the target MC version.
- Greatly improved JsonText parsing, error messages, and stringification.
- Added tests for JsonTextParser.
- Added quite a few syntax sugar features to JsonText parser.
- Added validation for 95% of Json TextObject formats.

The `jsonText/parser.ts` file is now 2281 lines long 💀.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment