Skip to content

Releases: MrZillaGold/RawJSONBuilder

2.1.1

17 Jul 04:41
Compare
Choose a tag to compare
  • Provide ESM export for parse method

2.1.0

17 Jul 03:05
Compare
Choose a tag to compare
  • Make extra field optional for components. (Fix for 1.17+)

2.0.2

11 Jul 16:36
Compare
Choose a tag to compare
  • Provide ESM export for parser const.

2.0.1

11 Jul 16:33
Compare
Choose a tag to compare
  • Provide ESM exports for fabric methods

2.0.0

06 Jun 21:23
Compare
Choose a tag to compare

🌟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

09 May 13:44
Compare
Choose a tag to compare
  • Fix ESM imports.

1.1.18

09 May 13:08
Compare
Choose a tag to compare
  • Enums

1.1.17

08 May 17:21
Compare
Choose a tag to compare
  • Fix toJSON method.

1.1.16

08 May 16:55
Compare
Choose a tag to compare
  • Customize log style.

1.1.15

08 May 16:35
Compare
Choose a tag to compare
  • Fix toJSON method.
  • Fix types.