@spyglassmc/nbt 0.3.3 → 0.3.5

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.
@@ -57,8 +57,9 @@ const key = (children, src, ctx) => {
57
57
  const node = core.string({
58
58
  colorTokenType: 'property',
59
59
  escapable: {},
60
- // No single quotes: https://bugs.mojang.com/browse/MC-175504
61
- quotes: ['"'],
60
+ // Single quotes supported since 1.20 Pre-release 2 (roughly pack format 15)
61
+ // https://bugs.mojang.com/browse/MC-175504
62
+ quotes: ['"', "'"],
62
63
  unquotable: {
63
64
  blockList: new Set([
64
65
  '\n',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spyglassmc/nbt",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -25,8 +25,8 @@
25
25
  "url": "https://github.com/SpyglassMC/Spyglass/issues"
26
26
  },
27
27
  "dependencies": {
28
- "@spyglassmc/core": "0.4.2",
29
- "@spyglassmc/locales": "0.3.2",
30
- "@spyglassmc/mcdoc": "0.3.3"
28
+ "@spyglassmc/core": "0.4.4",
29
+ "@spyglassmc/locales": "0.3.4",
30
+ "@spyglassmc/mcdoc": "0.3.5"
31
31
  }
32
32
  }