@vttforge/cli 0.10.0 → 0.11.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 CHANGED
@@ -1,5 +1,28 @@
1
1
  # @vttforge/cli
2
2
 
3
+ ## 0.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5aae89d: `vttforge migrate --data-models` writes a data model per `template.json` type: one class per type, one function per shared template that the types spread, the `documentTypes` block for the manifest and the registration for `init`. `--style plain` needs nothing installed; `--style sdk` builds on `@vttforge/core`. What it guessed (empty arrays, nulls, a template a type lists that is not defined) it reports.
8
+ - 4361bcd: What the first run over seven v13 projects taught the audit and the migrate command.
9
+
10
+ - `audit` gains `VTTF-AUDIT-017` (the jQuery `renderChatMessage` hook, removed in v15) and `VTTF-AUDIT-018` (a class on an Application v1 base, removed in v16).
11
+ - `VTTF-AUDIT-007` resolves the token attributes against `template.json` too, so a system that still declares its types there is not flagged for a bar that works.
12
+ - Both commands skip minified bundles (`*.min.js`): a vendored library is not the author's to fix.
13
+ - `migrate` rewrites `rollMode: <expression>` to `messageMode: Roll._mapLegacyRollMode(<expression>)` instead of asking, handles a template-literal deletion key such as `` [`flags.${id}.-=old`] ``, and notes every `renderChatMessage` handler.
14
+ - 89f9013: The bare v13 global aliases (`renderTemplate`, `ActorSheet`, `Actors`, `TextEditor`, `ChatLog` and about ninety more) warn on v14 and throw on v15. `vttforge audit` reports them as `VTTF-AUDIT-019`, and `vttforge migrate` renames each to its `foundry.*` path, which is the same object. A name the file declares or imports, an object key, a property, and a word inside a string are left alone.
15
+
16
+ ### Patch Changes
17
+
18
+ - 66aaf98: `vttforge migrate` no longer renames the keys of a Dialog button, or of a class body that happens to hold a context-menu entry. An entry is an object whose own keys include `callback` and `name` or `condition`; a button has `icon`, `label` and `callback`, and keeps `callback` on v14.
19
+
20
+ ## 0.10.1
21
+
22
+ ### Patch Changes
23
+
24
+ - 60d3222: `vttforge audit` rules 011 to 016 and `vttforge migrate` no longer match inside comments. A call quoted in a JSDoc block or a `// TODO` line was a finding, and `migrate` rewrote it.
25
+
3
26
  ## 0.10.0
4
27
 
5
28
  ### Minor Changes