comment-block-replacer 0.1.19 → 0.1.23

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
@@ -3,6 +3,38 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.1.23](https://github.com/DavidWells/markdown-magic/compare/comment-block-replacer@0.1.22...comment-block-replacer@0.1.23) (2026-06-23)
7
+
8
+ **Note:** Version bump only for package comment-block-replacer
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.1.22](https://github.com/DavidWells/markdown-magic/compare/comment-block-replacer@0.1.21...comment-block-replacer@0.1.22) (2026-06-23)
15
+
16
+ **Note:** Version bump only for package comment-block-replacer
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.1.21](https://github.com/DavidWells/markdown-magic/compare/comment-block-replacer@0.1.20...comment-block-replacer@0.1.21) (2026-06-23)
23
+
24
+ **Note:** Version bump only for package comment-block-replacer
25
+
26
+
27
+
28
+
29
+
30
+ ## [0.1.20](https://github.com/DavidWells/markdown-magic/compare/comment-block-replacer@0.1.19...comment-block-replacer@0.1.20) (2026-06-23)
31
+
32
+ **Note:** Version bump only for package comment-block-replacer
33
+
34
+
35
+
36
+
37
+
6
38
  ## [0.1.19](https://github.com/DavidWells/markdown-magic/compare/comment-block-replacer@0.1.18...comment-block-replacer@0.1.19) (2026-05-30)
7
39
 
8
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comment-block-replacer",
3
- "version": "0.1.19",
3
+ "version": "0.1.23",
4
4
  "description": "Process files with comment block replacements",
5
5
  "main": "src/index.js",
6
6
  "types": "types/index.d.ts",
@@ -15,7 +15,7 @@
15
15
  "release:major": "pnpm run build && pnpm version major && pnpm publish"
16
16
  },
17
17
  "dependencies": {
18
- "comment-block-transformer": "0.8.0",
18
+ "comment-block-transformer": "0.8.4",
19
19
  "is-valid-path": "^0.1.1"
20
20
  },
21
21
  "devDependencies": {
@@ -25,5 +25,5 @@
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
- "gitHead": "a4b2188aaa9c6c2cc82cf81a0d6b1df249453d4a"
28
+ "gitHead": "af6399c4247586b9c8c74cd09327b842ebf5a9c2"
29
29
  }
package/types/index.d.ts DELETED
@@ -1,70 +0,0 @@
1
- export type ProcessContentConfig = import("comment-block-transformer").ProcessContentConfig;
2
- export type ProcessContentResult = import("comment-block-transformer").ProcessContentResult;
3
- /**
4
- * Extended configuration for processing files with additional file-specific options
5
- */
6
- export type ProcessFileOptions = ProcessContentConfig & {
7
- content?: string;
8
- srcPath?: string;
9
- parsedBlocks?: any;
10
- outputPath?: string;
11
- dryRun?: boolean;
12
- patterns?: {
13
- openPattern?: RegExp;
14
- closePattern?: RegExp;
15
- };
16
- output?: {
17
- directory?: string;
18
- };
19
- outputDir?: string;
20
- applyTransformsToSource?: boolean;
21
- open?: string;
22
- close?: string;
23
- };
24
- /**
25
- * Result of processing a file with comment block replacements
26
- */
27
- export type ProcessFileResult = {
28
- /**
29
- * - Whether the content was modified
30
- */
31
- isChanged: boolean;
32
- /**
33
- * - Whether srcPath differs from outputPath
34
- */
35
- isNewPath: boolean;
36
- /**
37
- * - Whether comments should be stripped from output
38
- */
39
- stripComments: boolean;
40
- /**
41
- * - Source file path used
42
- */
43
- srcPath?: string;
44
- /**
45
- * - Output file path used
46
- */
47
- outputPath?: string;
48
- /**
49
- * - Array of transforms that were applied
50
- */
51
- transforms: any[];
52
- /**
53
- * - Array of transforms that were not found
54
- */
55
- missingTransforms: any[];
56
- /**
57
- * - Original input content
58
- */
59
- originalContents: string;
60
- /**
61
- * - Processed output content
62
- */
63
- updatedContents: string;
64
- };
65
- /**
66
- * Process a file with comment block replacements using configured transforms
67
- * @param {ProcessFileOptions} [opts={}] - Processing options
68
- * @returns {Promise<ProcessContentResult>} Result object with processed content and metadata
69
- */
70
- export function processFile(opts?: ProcessFileOptions): Promise<ProcessContentResult>;