Releases: MrZillaGold/RawJSONBuilder
Releases · MrZillaGold/RawJSONBuilder
2.1.1
2.1.0
- Make
extra
field optional for components. (Fix for 1.17+)
2.0.2
- Provide
ESM
export forparser
const.
2.0.1
- Provide
ESM
exports for fabric methods
2.0.0
🌟Highlights
Now all the components are in separate classes.
Each component has its own factory function for quickly creating a component.
Example:
import { text, TextComponent } from "rawjsonbuilder"; // ESM
// OR
const { text, TextComponent } = require("rawjsonbuilder"); // CommonJS
text("Hello World!", "black")
.toRawString(); // §0Hello World!
const builder = new TextComponent()
.setText("Hello World!")
.setBold()
.addSpace()
.addExtra(
text("Nice to meet you!", "red")
)
.toRawString(); // §lHello World! §cNice to meet you!
All available classes & methods can be viewed in the docs.
🚀 Features
- Class components:
TextComponent
,NBTComponent
,TranslateComponent
,ScoreComponent
,SelectorComponent
,KeybindComponent
. - Enums:
Component
,ColorCode
,Markdown
.
⚠️ BREAKING CHANGES
RawJSONBuilder
class was removed.
1.1.19
- Fix ESM imports.
1.1.18
- Enums
1.1.17
- Fix
toJSON
method.
1.1.16
- Customize log style.
1.1.15
- Fix
toJSON
method. - Fix types.