@decimalturn/toml-patch 0.3.7 → 0.4.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.
package/package.json CHANGED
@@ -1,13 +1,17 @@
1
1
  {
2
2
  "name": "@decimalturn/toml-patch",
3
- "version": "0.3.7",
3
+ "version": "0.4.0",
4
4
  "contributors": [
5
5
  "Tim Hall <tim.hall.engr@gmail.com>",
6
6
  "Martin Leduc <31558169+DecimalTurn@users.noreply.github.com>"
7
7
  ],
8
8
  "license": "MIT",
9
- "description": "Patch, parse, and stringify TOML while preserving comments.",
9
+ "description": "Patch, parse, and stringify TOML while preserving comments and formatting.",
10
10
  "homepage": "https://github.com/DecimalTurn/toml-patch",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/DecimalTurn/toml-patch"
14
+ },
11
15
  "publishConfig": {
12
16
  "access": "public"
13
17
  },
@@ -25,39 +29,45 @@
25
29
  "browser": "dist/toml-patch.umd.min.js",
26
30
  "types": "dist/toml-patch.d.ts",
27
31
  "scripts": {
32
+ "dev": "npm run typecheck && npm run build && npm-run-all2 --parallel test:all specs",
28
33
  "test": "jest",
34
+ "test:js": "jest src/__tests__/__js__ --testRegex=\"/__tests__/.*\\.[jt]sx?$\"",
35
+ "test:all": "npm run test && npm run test:js",
29
36
  "typecheck": "tsc",
30
37
  "specs": "jest --config specs.config.js",
31
- "benchmark": "node benchmark/index.js",
38
+ "benchmark": "npm-run-all2 bench:*",
39
+ "benchmark:example": "npm-run-all2 \"bench:* -- --example\"",
40
+ "bench:parse": "node benchmark/parse-benchmark.js",
41
+ "bench:stringify": "node benchmark/stringify-benchmark.js",
32
42
  "build": "rimraf dist && rollup -c",
33
43
  "prepublishOnly": "npm run build"
34
44
  },
35
45
  "devDependencies": {
46
+ "@decimalturn/toml-patch": "npm:@decimalturn/toml-patch@0.3.8",
36
47
  "@rollup/plugin-terser": "^0.4.4",
37
48
  "@rollup/plugin-typescript": "^12.1.2",
38
49
  "@types/dedent": "^0.7.2",
39
- "@types/glob": "^9.0.0",
40
- "@types/jest": "^29.0.0",
41
- "@types/js-yaml": "^3",
50
+ "@types/jest": "^30.0.0",
51
+ "@types/js-yaml": "^4.0.0",
42
52
  "benchmark": "^2",
43
53
  "dedent": "^1.5.3",
44
- "glob": "^11.0.0",
45
- "jest": "^29.7.0",
46
- "js-yaml": "^3",
54
+ "glob": "^13.0.0",
55
+ "jest": "^30.0.0",
56
+ "js-yaml": "^4.0.0",
47
57
  "mri": "^1",
48
58
  "npm-run-all2": "^8.0.0",
49
59
  "rimraf": "^6.0.0",
50
- "rollup": "^4.38.0",
60
+ "rollup": ">=4.0.0 <4.53.0 || >4.53.0",
51
61
  "rollup-plugin-dts": "^6.2.1",
52
62
  "rollup-plugin-filesize": "^10",
53
63
  "ts-jest": "^29",
54
64
  "tslib": "^2.0.0",
55
- "typescript": "5.8"
65
+ "typescript": "5.9"
56
66
  },
57
67
  "jest": {
58
68
  "testEnvironment": "node",
59
69
  "preset": "ts-jest",
60
- "testRegex": "/__tests__/.*\\.[jt]sx?$",
70
+ "testRegex": "/__tests__/(?!__js__).*\\.[jt]sx?$",
61
71
  "snapshotFormat": {
62
72
  "escapeString": true,
63
73
  "printBasicPrototype": true