wuira 0.1.10 → 0.2.0
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.
- package/CHANGELOG.md +12 -0
- package/docs/spells.md +2 -4
- package/lib/index.d.ts +0 -1
- package/lib/index.lua +0 -4
- package/package.json +1 -1
- package/tools/build-library.mjs +4 -0
- package/lib/Spells.d.ts +0 -43
- package/lib/Spells.lua +0 -81
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ with the release date and highlight breaking changes explicitly.
|
|
|
7
7
|
|
|
8
8
|
## Unreleased
|
|
9
9
|
|
|
10
|
+
## 0.2.0 — 2026-10-15
|
|
11
|
+
|
|
12
|
+
### Removed
|
|
13
|
+
|
|
14
|
+
- **Breaking:** Remove the legacy Spells enum. Use the generated categorized
|
|
15
|
+
enums from wuira/spells, such as PaladinSpells, instead.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Clean library output before compilation so removed modules are excluded from
|
|
20
|
+
published packages.
|
|
21
|
+
|
|
10
22
|
## 0.1.10 — 2026-10-15
|
|
11
23
|
|
|
12
24
|
### Added
|
package/docs/spells.md
CHANGED
|
@@ -26,10 +26,8 @@ Forever client's tables. Use KnownSpells for a character's learned abilities.
|
|
|
26
26
|
|
|
27
27
|
Every ID has an explicit ID-suffixed member. Rank labels come from the client.
|
|
28
28
|
Short aliases select the lowest linked rank; ambiguous unranked names require
|
|
29
|
-
the explicit member.
|
|
30
|
-
|
|
31
|
-
their IDs do not occur in this snapshot; they are not added to the generated
|
|
32
|
-
Forever catalog.
|
|
29
|
+
the explicit member. The legacy Spells enum has been removed; import the
|
|
30
|
+
appropriate categorized enum instead, such as PaladinSpells from wuira/spells.
|
|
33
31
|
|
|
34
32
|
These are const enums: TypeScriptToLua replaces accesses with literal numbers,
|
|
35
33
|
so the entire catalog is not allocated as Lua tables. They support static
|
package/lib/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export { wuira } from "./wuira";
|
|
|
4
4
|
export type { CommandCallback } from "./platform/SlashCommands";
|
|
5
5
|
export { AddonSettings } from "./platform/AddonSettings";
|
|
6
6
|
export { Encoding } from "./platform/Encoding";
|
|
7
|
-
export { Spells } from "./Spells";
|
|
8
7
|
export { DruidSpells, GeneralSpells, HunterSpells, MageSpells, PaladinSpells, PetSpells, PriestSpells, ProfessionSpells, RacialSpells, RogueSpells, ShamanSpells, WarlockSpells, WarriorSpells, WorldSpells, BindingActions, } from "./spells/index";
|
|
9
8
|
export { BlizzardUI } from "./platform/BlizzardUI";
|
|
10
9
|
export { ActionBars } from "./platform/ActionBars";
|
package/lib/index.lua
CHANGED
|
@@ -13,10 +13,6 @@ do
|
|
|
13
13
|
local ____Encoding = require("platform.Encoding")
|
|
14
14
|
____exports.Encoding = ____Encoding.Encoding
|
|
15
15
|
end
|
|
16
|
-
do
|
|
17
|
-
local ____Spells = require("Spells")
|
|
18
|
-
____exports.Spells = ____Spells.Spells
|
|
19
|
-
end
|
|
20
16
|
do
|
|
21
17
|
local ____BlizzardUI = require("platform.BlizzardUI")
|
|
22
18
|
____exports.BlizzardUI = ____BlizzardUI.BlizzardUI
|
package/package.json
CHANGED
package/tools/build-library.mjs
CHANGED
|
@@ -4,6 +4,10 @@ import { spawnSync } from "node:child_process";
|
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
const require = createRequire(import.meta.url);
|
|
6
6
|
const root = path.resolve(import.meta.dirname, "..");
|
|
7
|
+
// Discard previous build artifacts so deleted modules cannot enter the package.
|
|
8
|
+
const output = path.join(root, "lib");
|
|
9
|
+
if (path.dirname(output) !== root) throw new Error("Library output must remain inside the project");
|
|
10
|
+
fs.rmSync(output, { recursive: true, force: true });
|
|
7
11
|
const result = spawnSync(process.execPath, [require.resolve("typescript-to-lua/dist/tstl.js"), "-p", "tsconfig.lib.json"], { cwd: root, stdio: "inherit" });
|
|
8
12
|
if (result.status !== 0) process.exit(result.status || 1);
|
|
9
13
|
fs.mkdirSync(path.join(root, "lib/platform"), { recursive: true });
|
package/lib/Spells.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/** Legacy aliases. Prefer the generated class enums for build-pinned Forever IDs. */
|
|
2
|
-
export declare enum Spells {
|
|
3
|
-
Judgement = 20271,
|
|
4
|
-
HolyStrike = 679,
|
|
5
|
-
Consecration = 26573,
|
|
6
|
-
HolyShock = 20473,
|
|
7
|
-
Exorcism = 879,
|
|
8
|
-
DivineFavor = 20216,
|
|
9
|
-
LayOnHands = 633,
|
|
10
|
-
BlessingOfProtection = 1022,
|
|
11
|
-
BlessingOfFreedom = 1044,
|
|
12
|
-
BlessingOfMight = 19740,
|
|
13
|
-
BlessingOfWisdom = 19742,
|
|
14
|
-
BlessingOfKings = 20217,
|
|
15
|
-
BlessingOfLight = 19977,
|
|
16
|
-
BlessingOfSalvation = 1038,
|
|
17
|
-
/** @deprecated Absent from Forever 1.60.1.70374; retained for source compatibility. */
|
|
18
|
-
BlessingOfSanctuary = 20911,
|
|
19
|
-
BlessingOfSacrifice = 6940,
|
|
20
|
-
GreaterBlessingOfMight = 25782,
|
|
21
|
-
GreaterBlessingOfWisdom = 25894,
|
|
22
|
-
GreaterBlessingOfKings = 25898,
|
|
23
|
-
GreaterBlessingOfLight = 25890,
|
|
24
|
-
GreaterBlessingOfSalvation = 25895,
|
|
25
|
-
/** @deprecated Absent from Forever 1.60.1.70374; retained for source compatibility. */
|
|
26
|
-
GreaterBlessingOfSanctuary = 25899,
|
|
27
|
-
DevotionAura = 465,
|
|
28
|
-
RetributionAura = 7294,
|
|
29
|
-
ConcentrationAura = 19746,
|
|
30
|
-
ShadowResistanceAura = 19876,
|
|
31
|
-
FrostResistanceAura = 19888,
|
|
32
|
-
FireResistanceAura = 19891,
|
|
33
|
-
SanctityAura = 20218,
|
|
34
|
-
VoiceOfTruth = 1310897,
|
|
35
|
-
HammerOfJustice = 853,
|
|
36
|
-
SealOfRighteousness = 21084,
|
|
37
|
-
SealOfTheCrusader = 21082,
|
|
38
|
-
SealOfCommand = 20375,
|
|
39
|
-
SealOfJustice = 20164,
|
|
40
|
-
SealOfLight = 20165,
|
|
41
|
-
SealOfWisdom = 20166,
|
|
42
|
-
SealOfFury = 20163
|
|
43
|
-
}
|
package/lib/Spells.lua
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
-
local ____exports = {}
|
|
3
|
-
--- Legacy aliases. Prefer the generated class enums for build-pinned Forever IDs.
|
|
4
|
-
____exports.Spells = ____exports.Spells or ({})
|
|
5
|
-
____exports.Spells.Judgement = 20271
|
|
6
|
-
____exports.Spells[____exports.Spells.Judgement] = "Judgement"
|
|
7
|
-
____exports.Spells.HolyStrike = 679
|
|
8
|
-
____exports.Spells[____exports.Spells.HolyStrike] = "HolyStrike"
|
|
9
|
-
____exports.Spells.Consecration = 26573
|
|
10
|
-
____exports.Spells[____exports.Spells.Consecration] = "Consecration"
|
|
11
|
-
____exports.Spells.HolyShock = 20473
|
|
12
|
-
____exports.Spells[____exports.Spells.HolyShock] = "HolyShock"
|
|
13
|
-
____exports.Spells.Exorcism = 879
|
|
14
|
-
____exports.Spells[____exports.Spells.Exorcism] = "Exorcism"
|
|
15
|
-
____exports.Spells.DivineFavor = 20216
|
|
16
|
-
____exports.Spells[____exports.Spells.DivineFavor] = "DivineFavor"
|
|
17
|
-
____exports.Spells.LayOnHands = 633
|
|
18
|
-
____exports.Spells[____exports.Spells.LayOnHands] = "LayOnHands"
|
|
19
|
-
____exports.Spells.BlessingOfProtection = 1022
|
|
20
|
-
____exports.Spells[____exports.Spells.BlessingOfProtection] = "BlessingOfProtection"
|
|
21
|
-
____exports.Spells.BlessingOfFreedom = 1044
|
|
22
|
-
____exports.Spells[____exports.Spells.BlessingOfFreedom] = "BlessingOfFreedom"
|
|
23
|
-
____exports.Spells.BlessingOfMight = 19740
|
|
24
|
-
____exports.Spells[____exports.Spells.BlessingOfMight] = "BlessingOfMight"
|
|
25
|
-
____exports.Spells.BlessingOfWisdom = 19742
|
|
26
|
-
____exports.Spells[____exports.Spells.BlessingOfWisdom] = "BlessingOfWisdom"
|
|
27
|
-
____exports.Spells.BlessingOfKings = 20217
|
|
28
|
-
____exports.Spells[____exports.Spells.BlessingOfKings] = "BlessingOfKings"
|
|
29
|
-
____exports.Spells.BlessingOfLight = 19977
|
|
30
|
-
____exports.Spells[____exports.Spells.BlessingOfLight] = "BlessingOfLight"
|
|
31
|
-
____exports.Spells.BlessingOfSalvation = 1038
|
|
32
|
-
____exports.Spells[____exports.Spells.BlessingOfSalvation] = "BlessingOfSalvation"
|
|
33
|
-
____exports.Spells.BlessingOfSanctuary = 20911
|
|
34
|
-
____exports.Spells[____exports.Spells.BlessingOfSanctuary] = "BlessingOfSanctuary"
|
|
35
|
-
____exports.Spells.BlessingOfSacrifice = 6940
|
|
36
|
-
____exports.Spells[____exports.Spells.BlessingOfSacrifice] = "BlessingOfSacrifice"
|
|
37
|
-
____exports.Spells.GreaterBlessingOfMight = 25782
|
|
38
|
-
____exports.Spells[____exports.Spells.GreaterBlessingOfMight] = "GreaterBlessingOfMight"
|
|
39
|
-
____exports.Spells.GreaterBlessingOfWisdom = 25894
|
|
40
|
-
____exports.Spells[____exports.Spells.GreaterBlessingOfWisdom] = "GreaterBlessingOfWisdom"
|
|
41
|
-
____exports.Spells.GreaterBlessingOfKings = 25898
|
|
42
|
-
____exports.Spells[____exports.Spells.GreaterBlessingOfKings] = "GreaterBlessingOfKings"
|
|
43
|
-
____exports.Spells.GreaterBlessingOfLight = 25890
|
|
44
|
-
____exports.Spells[____exports.Spells.GreaterBlessingOfLight] = "GreaterBlessingOfLight"
|
|
45
|
-
____exports.Spells.GreaterBlessingOfSalvation = 25895
|
|
46
|
-
____exports.Spells[____exports.Spells.GreaterBlessingOfSalvation] = "GreaterBlessingOfSalvation"
|
|
47
|
-
____exports.Spells.GreaterBlessingOfSanctuary = 25899
|
|
48
|
-
____exports.Spells[____exports.Spells.GreaterBlessingOfSanctuary] = "GreaterBlessingOfSanctuary"
|
|
49
|
-
____exports.Spells.DevotionAura = 465
|
|
50
|
-
____exports.Spells[____exports.Spells.DevotionAura] = "DevotionAura"
|
|
51
|
-
____exports.Spells.RetributionAura = 7294
|
|
52
|
-
____exports.Spells[____exports.Spells.RetributionAura] = "RetributionAura"
|
|
53
|
-
____exports.Spells.ConcentrationAura = 19746
|
|
54
|
-
____exports.Spells[____exports.Spells.ConcentrationAura] = "ConcentrationAura"
|
|
55
|
-
____exports.Spells.ShadowResistanceAura = 19876
|
|
56
|
-
____exports.Spells[____exports.Spells.ShadowResistanceAura] = "ShadowResistanceAura"
|
|
57
|
-
____exports.Spells.FrostResistanceAura = 19888
|
|
58
|
-
____exports.Spells[____exports.Spells.FrostResistanceAura] = "FrostResistanceAura"
|
|
59
|
-
____exports.Spells.FireResistanceAura = 19891
|
|
60
|
-
____exports.Spells[____exports.Spells.FireResistanceAura] = "FireResistanceAura"
|
|
61
|
-
____exports.Spells.SanctityAura = 20218
|
|
62
|
-
____exports.Spells[____exports.Spells.SanctityAura] = "SanctityAura"
|
|
63
|
-
____exports.Spells.VoiceOfTruth = 1310897
|
|
64
|
-
____exports.Spells[____exports.Spells.VoiceOfTruth] = "VoiceOfTruth"
|
|
65
|
-
____exports.Spells.HammerOfJustice = 853
|
|
66
|
-
____exports.Spells[____exports.Spells.HammerOfJustice] = "HammerOfJustice"
|
|
67
|
-
____exports.Spells.SealOfRighteousness = 21084
|
|
68
|
-
____exports.Spells[____exports.Spells.SealOfRighteousness] = "SealOfRighteousness"
|
|
69
|
-
____exports.Spells.SealOfTheCrusader = 21082
|
|
70
|
-
____exports.Spells[____exports.Spells.SealOfTheCrusader] = "SealOfTheCrusader"
|
|
71
|
-
____exports.Spells.SealOfCommand = 20375
|
|
72
|
-
____exports.Spells[____exports.Spells.SealOfCommand] = "SealOfCommand"
|
|
73
|
-
____exports.Spells.SealOfJustice = 20164
|
|
74
|
-
____exports.Spells[____exports.Spells.SealOfJustice] = "SealOfJustice"
|
|
75
|
-
____exports.Spells.SealOfLight = 20165
|
|
76
|
-
____exports.Spells[____exports.Spells.SealOfLight] = "SealOfLight"
|
|
77
|
-
____exports.Spells.SealOfWisdom = 20166
|
|
78
|
-
____exports.Spells[____exports.Spells.SealOfWisdom] = "SealOfWisdom"
|
|
79
|
-
____exports.Spells.SealOfFury = 20163
|
|
80
|
-
____exports.Spells[____exports.Spells.SealOfFury] = "SealOfFury"
|
|
81
|
-
return ____exports
|