punctilio 5.0.0 → 5.0.2

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 (2) hide show
  1. package/README.md +2 -4
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -23,9 +23,7 @@ npm install punctilio
23
23
 
24
24
  ## Why punctilio?
25
25
 
26
- As far as I can tell, `punctilio` is the most reliable and feature-complete. I built `punctilio` for [my website](https://turntrout.com/design). I wrote[^wrote] and sharpened the core regexes sporadically over several months, exhaustively testing edge cases. Eventually, I decided to spin off the functionality into its own package.
27
-
28
- [^wrote]: While Claude is the number one contributor to this repository, that’s because Claude helped me port my existing code and added some features. The core regular expressions (e.g. dashes, quotes, multiplication signs) are human-written and were quite delicate. Those numerous commits don’t show in this repo’s history.
26
+ As far as I can tell, `punctilio` is the most reliable and feature-complete. I built `punctilio` for [my website](https://turntrout.com/design). I wrote and sharpened the core regexes sporadically over several months, exhaustively testing edge cases. Eventually, I decided to spin off the functionality into its own package.
29
27
 
30
28
  I tested `punctilio` against [`smartypants`](https://www.npmjs.com/package/smartypants) 0.2.2, [`tipograph`](https://www.npmjs.com/package/tipograph) 0.7.4, [`smartquotes`](https://www.npmjs.com/package/smartquotes) 2.3.2, [`typograf`](https://www.npmjs.com/package/typograf) 7.7.0, and [`retext-smartypants`](https://www.npmjs.com/package/retext-smartypants) 6.2.0.[^python] These other packages have spotty feature coverage and inconsistent impact on text. For example, `smartypants` mishandles quotes after em dashes (though quite hard to see in GitHub’s font) and lacks multiplication sign support.
31
29
 
@@ -232,7 +230,7 @@ A `.pre-commit-hooks.yaml` ships in the package, so [pre-commit](https://pre-com
232
230
  # .pre-commit-config.yaml
233
231
  repos:
234
232
  - repo: https://github.com/alexander-turner/punctilio
235
- rev: v3.10.0
233
+ rev: v5.0.1
236
234
  hooks:
237
235
  - id: punctilio # rewrites *.md / *.html in place
238
236
  - id: punctilio-check # or: fail without writing (CI-friendly)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "punctilio",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
4
  "description": "Smart typography transformations: curly quotes, em-dashes, en-dashes, and more",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -161,7 +161,8 @@
161
161
  "scripts": {
162
162
  "build": "tsc",
163
163
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
164
- "lint": "eslint src",
164
+ "lint": "eslint src scripts",
165
+ "typecheck:scripts": "tsc --noEmit -p tsconfig.scripts.json",
165
166
  "benchmark": "pnpm run build && node benchmark.mjs",
166
167
  "mutation": "STRYKER_RUN=1 stryker run"
167
168
  }