@lazy-node/semver-ampersand 3.0.10 → 3.0.12

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 (80) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/README.md +61 -20
  3. package/lib/Range.d.ts +111 -0
  4. package/lib/Range.js +136 -0
  5. package/lib/Range.js.map +1 -1
  6. package/lib/comparator/detect.d.ts +14 -0
  7. package/lib/comparator/detect.js +14 -0
  8. package/lib/comparator/detect.js.map +1 -1
  9. package/lib/const.d.ts +38 -0
  10. package/lib/const.js +38 -0
  11. package/lib/const.js.map +1 -1
  12. package/lib/handleAmpersandAndSpaces.d.ts +16 -0
  13. package/lib/handleAmpersandAndSpaces.js +16 -0
  14. package/lib/handleAmpersandAndSpaces.js.map +1 -1
  15. package/lib/internal/parseOptionsOrLoose.d.ts +20 -0
  16. package/lib/internal/parseOptionsOrLoose.js +20 -0
  17. package/lib/internal/parseOptionsOrLoose.js.map +1 -1
  18. package/lib/maxSatisfying.d.ts +15 -0
  19. package/lib/maxSatisfying.js +15 -0
  20. package/lib/maxSatisfying.js.map +1 -1
  21. package/lib/minSatisfying.d.ts +15 -0
  22. package/lib/minSatisfying.js +15 -0
  23. package/lib/minSatisfying.js.map +1 -1
  24. package/lib/range/buildRangeSet.d.ts +13 -0
  25. package/lib/range/buildRangeSet.js +15 -0
  26. package/lib/range/buildRangeSet.js.map +1 -1
  27. package/lib/range/cache.d.ts +10 -0
  28. package/lib/range/cache.js +10 -0
  29. package/lib/range/cache.js.map +1 -1
  30. package/lib/range/fixComparatorSet.d.ts +50 -0
  31. package/lib/range/fixComparatorSet.js +50 -0
  32. package/lib/range/fixComparatorSet.js.map +1 -1
  33. package/lib/range/normalizeRangeInput.d.ts +14 -0
  34. package/lib/range/normalizeRangeInput.js +16 -0
  35. package/lib/range/normalizeRangeInput.js.map +1 -1
  36. package/lib/range/options.d.ts +38 -0
  37. package/lib/range/options.js +38 -0
  38. package/lib/range/options.js.map +1 -1
  39. package/lib/range/parseRange.d.ts +67 -0
  40. package/lib/range/parseRange.js +84 -0
  41. package/lib/range/parseRange.js.map +1 -1
  42. package/lib/range/stringifyRangeSet.d.ts +12 -0
  43. package/lib/range/stringifyRangeSet.js +12 -0
  44. package/lib/range/stringifyRangeSet.js.map +1 -1
  45. package/lib/range/toRangeString.d.ts +12 -0
  46. package/lib/range/toRangeString.js +12 -0
  47. package/lib/range/toRangeString.js.map +1 -1
  48. package/lib/range/util.d.ts +133 -0
  49. package/lib/range/util.js +213 -0
  50. package/lib/range/util.js.map +1 -1
  51. package/lib/satisfies.d.ts +17 -0
  52. package/lib/satisfies.js +17 -0
  53. package/lib/satisfies.js.map +1 -1
  54. package/lib/simplifyRange.d.ts +15 -0
  55. package/lib/simplifyRange.js +15 -0
  56. package/lib/simplifyRange.js.map +1 -1
  57. package/lib/types.d.ts +30 -0
  58. package/lib/types.js.map +1 -1
  59. package/lib/util/array.d.ts +14 -0
  60. package/lib/util/array.js +14 -0
  61. package/lib/util/array.js.map +1 -1
  62. package/lib/util/assert.d.ts +42 -0
  63. package/lib/util/assert.js +42 -0
  64. package/lib/util/assert.js.map +1 -1
  65. package/lib/util/fixBooleanProperty.d.ts +15 -0
  66. package/lib/util/fixBooleanProperty.js +18 -0
  67. package/lib/util/fixBooleanProperty.js.map +1 -1
  68. package/lib/util/index.d.ts +24 -0
  69. package/lib/util/index.js +24 -0
  70. package/lib/util/index.js.map +1 -1
  71. package/lib/util/split.d.ts +17 -0
  72. package/lib/util/split.js +17 -0
  73. package/lib/util/split.js.map +1 -1
  74. package/lib/util/stringifyComparators.d.ts +18 -0
  75. package/lib/util/stringifyComparators.js +18 -0
  76. package/lib/util/stringifyComparators.js.map +1 -1
  77. package/lib/validRange.d.ts +15 -1
  78. package/lib/validRange.js +15 -1
  79. package/lib/validRange.js.map +1 -1
  80. package/package.json +14 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazy-node/semver-ampersand",
3
- "version": "3.0.10",
3
+ "version": "3.0.12",
4
4
  "description": "支援 ampersand (&) 語法的 semver 範圍處理工具庫 - Semver range handling utilities with ampersand (&) syntax support for yarn/npm workspaces",
5
5
  "keywords": [
6
6
  "semver",
@@ -32,34 +32,36 @@
32
32
  "author": "bluelovers",
33
33
  "main": "index.js",
34
34
  "scripts": {
35
- "coverage": "yarn run test -- --coverage",
35
+ "coverage": "pnpm run test -- --coverage",
36
36
  "lint": "ynpx --quiet eslint -- **/*.ts",
37
- "test": "yarn run test:jest",
37
+ "test": "node --run test:node",
38
38
  "test:jest": "jest",
39
- "test:jest:coverage": "yarn run test:jest -- --coverage",
40
- "test:jest:snapshot": "yarn run test:jest -- -u",
41
- "test:snapshot": "yarn run test -- -u",
39
+ "test:jest:coverage": "pnpm run test:jest -- --coverage",
40
+ "test:jest:snapshot": "pnpm run test:jest -- -u",
41
+ "test:node": "tsx --test --test-update-snapshots **/*.node-spec.ts **/*.node-test.ts **/*.spec.ts **/*.test.ts",
42
+ "test:snapshot": "pnpm run test -u",
43
+ "test:tsc": "tsc --noEmit & echo typescript check done",
42
44
  "test:tsd": "ynpx tsd",
43
- "preversion": "yarn run test",
45
+ "preversion": "pnpm run test",
44
46
  "prepublishOnly": "echo prepublishOnly",
45
- "prepublishOnly:update": "yarn run ncu && yarn run sort-package-json",
47
+ "prepublishOnly:update": "pnpm run ncu && pnpm run sort-package-json",
46
48
  "ncu": "yarn-tool ncu -u",
47
49
  "sort-package-json": "yarn-tool sort",
48
50
  "tsc:showConfig": "ynpx get-current-tsconfig -p"
49
51
  },
50
52
  "dependencies": {
51
- "array-hyper-unique": "^2.1.8",
53
+ "array-hyper-unique": "^2.1.10",
52
54
  "class-without-call-parent-constructor": "^2.0.5",
53
55
  "lru-cache2": "^6.0.7",
54
56
  "split-smartly2": "^2.0.1",
55
- "ts-type": "^3.0.13",
57
+ "ts-type": "^3.0.18",
56
58
  "tslib": ">=2.8.1"
57
59
  },
58
60
  "peerDependencies": {
59
- "semver": "^7.7.4"
61
+ "semver": "^7.8.5"
60
62
  },
61
63
  "publishConfig": {
62
64
  "access": "public"
63
65
  },
64
- "gitHead": "8c939a673ef0f088d4a3aa8a240ed6c28d390f98"
66
+ "gitHead": "471c63ee11851f0ac3487f23d1c472936f99b460"
65
67
  }