@heroiclands/package-build 10.0.0 → 10.0.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.
- package/CHANGELOG.md +27 -0
- package/engine/frontmatter-lint.mjs +8 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @heroiclands/package-build
|
|
2
2
|
|
|
3
|
+
## 10.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5bc08b6: **A frontmatter reference resolves as an address, never as an alias.**
|
|
8
|
+
|
|
9
|
+
The resolver's third argument chooses the namespace and has no fallback (#131,
|
|
10
|
+
#144). The frontmatter lint's `ref:` check omitted it, so every reference was
|
|
11
|
+
looked up as an _alias_ — and `type-shortcode` is never an alias, so every
|
|
12
|
+
value a `ref:` field carried was reported as naming a note nothing declares:
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
Spirit.md:7:60: error: `sohl.assocSkillCode` names skill "spirit", and no note
|
|
16
|
+
or vendored manifest declares it
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The skill existed, in the same tree, with exactly that shortcode.
|
|
20
|
+
|
|
21
|
+
A frontmatter reference is a bare address by construction — there is no pipe to
|
|
22
|
+
read intent from, and the field supplies the type — so the check now says so.
|
|
23
|
+
|
|
24
|
+
The suite stayed green because its index stub ignored the argument and resolved
|
|
25
|
+
whatever it was handed. It no longer does, which is the part that keeps this
|
|
26
|
+
fixed.
|
|
27
|
+
|
|
28
|
+
Closes #176
|
|
29
|
+
|
|
3
30
|
## 10.0.0
|
|
4
31
|
|
|
5
32
|
### Major Changes
|
|
@@ -642,9 +642,16 @@ export function lintNote(note, { schemas, index, vocabulary, systems = DEFAULT_S
|
|
|
642
642
|
// link index's own resolver, so a cross-package reference answered by a
|
|
643
643
|
// vendored manifest lands exactly as the same address in a wikilink
|
|
644
644
|
// would — rather than through a second, subtly different rule.
|
|
645
|
+
//
|
|
646
|
+
// **As an address, always.** The resolver's third argument chooses the
|
|
647
|
+
// namespace and has no fallback (#144): omitted, it reads the target as
|
|
648
|
+
// an *alias*, and `type-shortcode` is never an alias, so every value a
|
|
649
|
+
// `ref:` field carries was reported unresolvable (#176). A frontmatter
|
|
650
|
+
// reference is a bare address by construction — there is no pipe to
|
|
651
|
+
// read intent from, and the field supplies the type — so it says so.
|
|
645
652
|
if (field.ref && index && typeof value === "string" && value) {
|
|
646
653
|
const target = `${field.ref}-${value}`;
|
|
647
|
-
if (!index.resolve(note, target) && !index.manifestHit(target)) {
|
|
654
|
+
if (!index.resolve(note, target, true) && !index.manifestHit(target)) {
|
|
648
655
|
findings.push({
|
|
649
656
|
file: note.file,
|
|
650
657
|
...at(head, value),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heroiclands/package-build",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"description": "Shared toolchain for building and shipping a HeroicLands Foundry VTT package — content compilation, manifest, localization, staging, bundle, release and deployment.",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"type": "module",
|