podlite 0.0.91 → 0.0.92
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.podlite +20 -0
- package/esm/assemble/index.d.ts +2 -0
- package/esm/assemble/index.js +404 -57
- package/esm/assemble/index.js.map +1 -1
- package/esm/cli.js +5 -1
- package/esm/cli.js.map +1 -1
- package/esm/lint/grammar/lint.js +914 -181
- package/esm/lint/grammar/lint.js.map +1 -1
- package/esm/lint/rules/include-resolves.js +30 -17
- package/esm/lint/rules/include-resolves.js.map +1 -1
- package/esm/lint/rules/index.js +6 -0
- package/esm/lint/rules/index.js.map +1 -1
- package/esm/lint/rules/item-hierarchy.d.ts +3 -0
- package/esm/lint/rules/item-hierarchy.js +65 -0
- package/esm/lint/rules/item-hierarchy.js.map +1 -0
- package/esm/lint/rules/markup-code-too-deep.d.ts +3 -0
- package/esm/lint/rules/markup-code-too-deep.js +16 -0
- package/esm/lint/rules/markup-code-too-deep.js.map +1 -0
- package/esm/lint/rules/table-column-width.js +14 -6
- package/esm/lint/rules/table-column-width.js.map +1 -1
- package/esm/lint/rules/test-under-rule.d.ts +3 -0
- package/esm/lint/rules/test-under-rule.js +135 -0
- package/esm/lint/rules/test-under-rule.js.map +1 -0
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/lib/assemble/index.d.ts +2 -0
- package/lib/assemble/index.js +406 -58
- package/lib/assemble/index.js.map +1 -1
- package/lib/cli.js +5 -1
- package/lib/cli.js.map +1 -1
- package/lib/lint/grammar/lint.js +914 -181
- package/lib/lint/grammar/lint.js.map +1 -1
- package/lib/lint/rules/include-resolves.js +29 -16
- package/lib/lint/rules/include-resolves.js.map +1 -1
- package/lib/lint/rules/index.js +6 -0
- package/lib/lint/rules/index.js.map +1 -1
- package/lib/lint/rules/item-hierarchy.d.ts +3 -0
- package/lib/lint/rules/item-hierarchy.js +68 -0
- package/lib/lint/rules/item-hierarchy.js.map +1 -0
- package/lib/lint/rules/markup-code-too-deep.d.ts +3 -0
- package/lib/lint/rules/markup-code-too-deep.js +19 -0
- package/lib/lint/rules/markup-code-too-deep.js.map +1 -0
- package/lib/lint/rules/table-column-width.js +14 -6
- package/lib/lint/rules/table-column-width.js.map +1 -1
- package/lib/lint/rules/test-under-rule.d.ts +3 -0
- package/lib/lint/rules/test-under-rule.js +138 -0
- package/lib/lint/rules/test-under-rule.js.map +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +8 -8
package/CHANGELOG.podlite
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
=head1 Upcoming
|
|
4
4
|
|
|
5
|
+
=head1 0.0.92
|
|
6
|
+
|
|
7
|
+
=item an C<=include> with no source, as C<=include VERSION>, brings the blocks of the document itself: every such include selects from the document with its includes of other sources in and its own includes with no source as written, so none of them brings what another one brought, and one that would bring a block it stands inside brings nothing, with a C<cycle> reported. Before, the selector could not be read. C<hasSameDocumentInclude> tells whether a tree holds one, and C<assembleIncludes> takes C<onlySameDocument> for a host with no files to give; C<podlite lint> resolves such includes in text given with no files
|
|
8
|
+
|
|
9
|
+
=item C<podlite convert> says in its error output when markup codes nest deeper than 32 levels and the deeper ones go out as text, and C<podlite lint> adds rule C<markup-code-too-deep> (warning) for the same; a self-expanding alias and a thousand nested codes no longer overflow the stack in C<convert>
|
|
10
|
+
|
|
11
|
+
=item C<podlite lint> adds rule C<test-under-rule> (warning): a C<=test> with no block above it that it could check, where the page draws it with no rule, such as a test right under a heading or one that opens its block. Tests brought by C<=include> are checked where they land and reported at the C<=include> line
|
|
12
|
+
|
|
13
|
+
=item C<podlite test> reports as skipped a test whose assertion is followed at once by a block it does not know, which before was taken into the assertion
|
|
14
|
+
|
|
15
|
+
=item C<podlite lint> rule C<table-column-width> ends an abbreviated table where the parser ends it: at a directive line, and at a blank line inside a delimited table too
|
|
16
|
+
|
|
17
|
+
=item the help of C<podlite> describes C<lint> without calling it a work in progress
|
|
18
|
+
|
|
19
|
+
=item C<podlite lint> rule C<attr-nested-angle> no longer reports a hash with values in angles, such as C«:key{:a<x>, :b<z>}»: the bracket of the next option is not taken for a stray C«>»
|
|
20
|
+
|
|
21
|
+
=item C<podlite lint> rule C<attr-nested-angle> no longer reports a value in angles that holds a quoted string, such as C«:caption<'a B<b>'>»: it reads the value the way the parser does
|
|
22
|
+
|
|
23
|
+
=item C<podlite lint> adds rule C<item-hierarchy> (warning): an C<=item2> with no C<=item1> before it in the same block, and so on for each level, as the specification requires. Markdown files are not checked
|
|
24
|
+
|
|
5
25
|
=head1 0.0.91
|
|
6
26
|
|
|
7
27
|
=item C<podlite lint> reads an attribute value in angles to the end of its line, and only in the configuration of a directive: an unclosed C«<» in running text no longer hides the next C<=begin> from rule C<delimited-block-balance>, and rule C<attr-nested-angle> no longer checks a colon inside a markup code or inside a value written in quotes, such as C<:caption('…')>
|
package/esm/assemble/index.d.ts
CHANGED
|
@@ -50,10 +50,12 @@ export type AssembleOptions = {
|
|
|
50
50
|
onCopy?: (from: object, to: object) => void;
|
|
51
51
|
tolerant?: boolean;
|
|
52
52
|
reportCycles?: boolean;
|
|
53
|
+
onlySameDocument?: boolean;
|
|
53
54
|
};
|
|
54
55
|
export declare const isWarning: (problem: IncludeProblem) => boolean;
|
|
55
56
|
export declare const externalMessage: (sources: Source[], written: string) => string;
|
|
56
57
|
export declare const silently: <T>(work: () => T) => T;
|
|
58
|
+
export declare const hasSameDocumentInclude: (tree: any) => boolean;
|
|
57
59
|
export declare const assembleIncludes: (tree: any, opts: AssembleOptions) => any;
|
|
58
60
|
export { sourcesFromFiles } from './files';
|
|
59
61
|
export { assembleAsync, createSourceStore } from './async';
|