prismarine-chat 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/HISTORY.md +3 -0
  2. package/index.js +1 -6
  3. package/package.json +1 -1
package/HISTORY.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## History
2
2
 
3
+ ### 1.4.1
4
+ * Remake ChatMessage#clone (@u9g)
5
+
3
6
  ### 1.4.0
4
7
  * Add a example (@u9g)
5
8
  * Add hex color code support (@U5B)
package/index.js CHANGED
@@ -205,12 +205,7 @@ class ChatMessage {
205
205
  * @return {ChatMessage}
206
206
  */
207
207
  clone () {
208
- return Object.assign(
209
- Object.create(
210
- Object.getPrototypeOf(this)
211
- ),
212
- this
213
- )
208
+ return new ChatMessage(JSON.parse(JSON.stringify(this.json)))
214
209
  }
215
210
 
216
211
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prismarine-chat",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Wrapper for a minecraft chat message",
5
5
  "main": "index.js",
6
6
  "scripts": {