@aforemendude/prettier-plugin-wrap-comments 1.1.0 → 1.2.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.
Files changed (35) hide show
  1. package/README.md +80 -6
  2. package/dist/comments/comment-body.js +2 -2
  3. package/dist/comments/comment-directives.js +4 -0
  4. package/dist/comments/comment-eligibility.d.ts +1 -0
  5. package/dist/comments/comment-eligibility.js +4 -1
  6. package/dist/comments/comment-location.js +24 -6
  7. package/dist/comments/embedded-expression-ranges.d.ts +2 -3
  8. package/dist/comments/embedded-expression-ranges.js +39 -27
  9. package/dist/comments/jsx-expression-layout.d.ts +2 -2
  10. package/dist/comments/jsx-expression-layout.js +16 -19
  11. package/dist/comments/prettier-ignore.d.ts +2 -1
  12. package/dist/comments/prettier-ignore.js +110 -16
  13. package/dist/comments/printer-layout.d.ts +1 -0
  14. package/dist/comments/printer-layout.js +1 -0
  15. package/dist/comments/wrap-block-comment.d.ts +1 -0
  16. package/dist/comments/wrap-block-comment.js +3 -1
  17. package/dist/comments/wrap-comments.js +75 -7
  18. package/dist/comments/wrap-trailing-line-comment.d.ts +1 -1
  19. package/dist/index.d.ts +6 -2
  20. package/dist/index.js +4 -1
  21. package/dist/plugin/create-parsers.js +92 -5
  22. package/dist/plugin/create-printers.js +23 -2
  23. package/dist/plugin/get-printer-layout-source.js +10 -2
  24. package/dist/plugin/plugin-name.d.ts +1 -0
  25. package/dist/plugin/plugin-name.js +1 -0
  26. package/dist/utils/ast.d.ts +6 -0
  27. package/dist/utils/ast.js +43 -0
  28. package/dist/utils/display-width.d.ts +1 -1
  29. package/dist/utils/display-width.js +3 -3
  30. package/dist/utils/format-markdown.js +50 -11
  31. package/dist/utils/source-lines.d.ts +1 -0
  32. package/dist/utils/source-lines.js +3 -0
  33. package/dist/utils/whitespace.d.ts +1 -0
  34. package/dist/utils/whitespace.js +4 -0
  35. package/package.json +15 -6
package/package.json CHANGED
@@ -7,11 +7,18 @@
7
7
  "devDependencies": {
8
8
  "@types/node": "20.19.43",
9
9
  "prettier": "3.9.6",
10
- "prettier-plugin-wrap-comments-stable": "npm:@aforemendude/prettier-plugin-wrap-comments@1.0.6",
10
+ "prettier-plugin-jsdoc": "1.8.1",
11
+ "prettier-plugin-wrap-comments-stable": "npm:@aforemendude/prettier-plugin-wrap-comments@1.1.1",
11
12
  "typescript": "7.0.2",
12
- "vite": "8.1.5",
13
+ "vite": "8.2.0",
13
14
  "vitest": "4.1.10"
14
15
  },
16
+ "devEngines": {
17
+ "runtime": {
18
+ "name": "node",
19
+ "version": ">=22.12.0"
20
+ }
21
+ },
15
22
  "engines": {
16
23
  "node": ">=20.0.0"
17
24
  },
@@ -46,18 +53,20 @@
46
53
  "url": "git+https://github.com/aforemendude/prettier-plugin-wrap-comments.git"
47
54
  },
48
55
  "scripts": {
56
+ "benchmark": "vitest bench --run",
49
57
  "build": "npm run clean && tsc -p tsconfig.build.json",
50
58
  "clean": "node scripts/clean.mjs",
51
- "format": "prettier --write .",
52
- "format:check": "prettier --check .",
59
+ "format": "prettier --write --cache --cache-strategy metadata .",
60
+ "format:check": "prettier --check --cache --cache-strategy metadata .",
61
+ "format:nocache": "prettier --write .",
53
62
  "prepack": "npm install && git diff --exit-code -- package-lock.json && npm run verify",
54
63
  "test": "vitest run",
55
64
  "test:integration": "vitest run test/integration",
56
65
  "test:unit": "vitest run test/unit",
57
66
  "typecheck": "tsc -p tsconfig.json",
58
- "verify": "npm run format:check && npm run typecheck && npm run build && npm run test"
67
+ "verify": "prettier --check . && npm run typecheck && npm run build && npm run test"
59
68
  },
60
69
  "type": "module",
61
70
  "types": "./dist/index.d.ts",
62
- "version": "1.1.0"
71
+ "version": "1.2.0"
63
72
  }