remark-mdat 1.0.2 → 1.0.4

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.
@@ -1,6 +1,6 @@
1
1
  import type { Root } from 'mdast';
2
2
  import type { VFile } from 'vfile';
3
- import { type Rules } from '../mdat/rules';
3
+ import type { Rules } from '../mdat/rules';
4
4
  export type Options = {
5
5
  addMetaComment: boolean;
6
6
  closingPrefix: string;
@@ -1,5 +1,5 @@
1
1
  import type { Root } from 'mdast';
2
- import { type VFile } from 'vfile';
2
+ import type { VFile } from 'vfile';
3
3
  export type Options = {
4
4
  closingPrefix: string;
5
5
  keywordPrefix: string;
@@ -1,6 +1,6 @@
1
1
  import type { Root } from 'mdast';
2
2
  import type { VFile } from 'vfile';
3
- import { type Rules } from '../mdat/rules';
3
+ import type { Rules } from '../mdat/rules';
4
4
  export type Options = {
5
5
  addMetaComment: boolean;
6
6
  closingPrefix: string;
@@ -1,6 +1,6 @@
1
1
  import type { Root } from 'mdast';
2
- import { type VFile } from 'vfile';
3
- import { type Rules } from '../mdat/rules';
2
+ import type { VFile } from 'vfile';
3
+ import type { Rules } from '../mdat/rules';
4
4
  export type Options = {
5
5
  addMetaComment: boolean;
6
6
  closingPrefix: string;
@@ -1,5 +1,5 @@
1
1
  import type { Node } from 'unist';
2
- import { type VFile } from 'vfile';
2
+ import type { VFile } from 'vfile';
3
3
  /**
4
4
  * Tries to provide a simpler wrapper to vfile.message
5
5
  */
@@ -1,5 +1,5 @@
1
+ import type { Root } from 'mdast';
1
2
  import type { JsonValue, Merge, MergeDeep, SetOptional, Simplify } from 'type-fest';
2
- import { type Root } from 'mdast';
3
3
  import { z } from 'zod';
4
4
  export type SimplifyDeep<T> = Simplify<MergeDeep<T, T>>;
5
5
  /**
@@ -1,7 +1,7 @@
1
1
  import type { Root } from 'mdast';
2
2
  import type { Plugin } from 'unified';
3
3
  import { z } from 'zod';
4
- import { type Options as MdatOptions } from './mdast-utils/mdast-util-mdat';
4
+ import type { Options as MdatOptions } from './mdast-utils/mdast-util-mdat';
5
5
  export type Options = Partial<MdatOptions>;
6
6
  export declare const optionsSchema: z.ZodObject<{
7
7
  addMetaComment: z.ZodOptional<z.ZodBoolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remark-mdat",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "A remark plugin implementing the Markdown Autophagic Template (MDAT) system.",
5
5
  "keywords": [
6
6
  "mdat",
@@ -35,18 +35,18 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@types/mdast": "^4.0.4",
38
- "@types/node": "^18.19.79",
38
+ "@types/node": "^18.19.100",
39
39
  "@types/unist": "^3.0.3",
40
- "type-fest": "^4.36.0",
40
+ "picocolors": "^1.1.1",
41
+ "type-fest": "^4.41.0",
41
42
  "unified": "^11.0.5",
42
43
  "vfile": "^6.0.3",
43
- "zod": "^3.24.2"
44
+ "zod": "^3.24.4"
44
45
  },
45
46
  "devDependencies": {
46
- "@kitschpatrol/shared-config": "^5.2.0",
47
- "@microsoft/api-extractor": "^7.51.1",
48
- "bumpp": "^10.0.3",
49
- "chalk": "^5.4.1",
47
+ "@kitschpatrol/shared-config": "^5.4.0",
48
+ "@microsoft/api-extractor": "^7.52.7",
49
+ "bumpp": "^10.1.0",
50
50
  "cli-table3": "^0.6.5",
51
51
  "deepmerge-ts": "^7.1.5",
52
52
  "hast-util-from-html": "^2.0.3",
@@ -54,10 +54,10 @@
54
54
  "remark": "^15.0.1",
55
55
  "remark-gfm": "^4.0.1",
56
56
  "tsup": "^8.4.0",
57
- "typescript": "~5.7.3",
57
+ "typescript": "~5.8.3",
58
58
  "unist-util-visit": "^5.0.0",
59
59
  "vfile-message": "^4.0.2",
60
- "vitest": "^3.0.7"
60
+ "vitest": "^3.1.3"
61
61
  },
62
62
  "engines": {
63
63
  "node": "^18.19.0 || >=20.5.0"
package/readme.md CHANGED
@@ -137,8 +137,9 @@ console.log(markdownOutput.toString())
137
137
  If you wanted to replace `<!-- time -->` comments in your Markdown file with the current time, you could pass in a rule:
138
138
 
139
139
  ```ts
140
+ import type { Rules } from 'remark-mdat'
140
141
  import { remark } from 'remark'
141
- import remarkMdat, { type Rules } from 'remark-mdat'
142
+ import remarkMdat from 'remark-mdat'
142
143
 
143
144
  // Create the rule
144
145
  const rules: Rules = {