uom-types 5.0.1 → 5.1.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,6 +1,6 @@
1
1
  {
2
2
  "name": "uom-types",
3
- "version": "5.0.1",
3
+ "version": "5.1.0",
4
4
  "description": "Typesafe units with no runtime overhead.",
5
5
  "keywords": [
6
6
  "uom",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",
17
- "url": "git+https://github.com/RebeccaStevens/uom-types"
17
+ "url": "git+https://github.com/RebeccaStevens/uom-types.git"
18
18
  },
19
19
  "funding": [
20
20
  {
@@ -34,12 +34,38 @@
34
34
  "sideEffects": false,
35
35
  "type": "module",
36
36
  "exports": {
37
- "types": {
38
- "import": "./dist/index.d.mts",
39
- "require": "./dist/index.d.cts"
37
+ ".": {
38
+ "types": {
39
+ "require": "./dist/index.d.cts",
40
+ "default": "./dist/index.d.mts"
41
+ },
42
+ "require": "./dist/index.cjs",
43
+ "default": "./dist/index.mjs"
40
44
  },
41
- "import": "./dist/index.mjs",
42
- "require": "./dist/index.cjs"
45
+ "./converters": {
46
+ "types": {
47
+ "require": "./dist/converters.d.cts",
48
+ "default": "./dist/converters.d.mts"
49
+ },
50
+ "require": "./dist/converters.cjs",
51
+ "default": "./dist/converters.mjs"
52
+ },
53
+ "./math": {
54
+ "types": {
55
+ "require": "./dist/math.d.cts",
56
+ "default": "./dist/math.d.mts"
57
+ },
58
+ "require": "./dist/math.cjs",
59
+ "default": "./dist/math.mjs"
60
+ },
61
+ "./types": {
62
+ "require": "./dist/types.d.cts",
63
+ "default": "./dist/types.d.mts"
64
+ },
65
+ "./units": {
66
+ "require": "./dist/units.d.cts",
67
+ "default": "./dist/units.d.mts"
68
+ }
43
69
  },
44
70
  "files": [
45
71
  "dist/",
@@ -51,104 +77,99 @@
51
77
  "scripts": {
52
78
  "build": "pnpm run build-pre && pnpm run build:js",
53
79
  "build-pre": "pnpm run generate-files",
54
- "build:js": "rimraf dist && rollup -c rollup.config.ts --configPlugin @rollup/plugin-typescript --configImportAttributesKey with",
80
+ "build:js": "rimraf dist && rollup -c rollup.config.ts",
55
81
  "cz": "git-cz",
56
82
  "docs": "typedoc",
57
83
  "docs:serve": "http-serve docs/generated",
58
- "generate-files": "tsx ./scripts/generate-files.ts",
59
- "lint": "eslint && pnpm run lint:md && pnpm run lint:spelling && pnpm run lint:knip && pnpm run lint:packages",
84
+ "generate-files": "node --experimental-strip-types ./scripts/generate-files.ts",
85
+ "lint": "eslint && pnpm run lint:md && pnpm run lint:spelling && pnpm run lint:knip && pnpm run lint:package && pnpm run lint:packages",
60
86
  "lint-fix": "eslint --fix && pnpm run lint:md-fix && pnpm run lint:packages-fix",
61
87
  "lint:js": "eslint \"**/*.?([cm])[jt]s?(x)\"",
62
88
  "lint:js-fix": "eslint \"**/*.?([cm])[jt]s?(x)\" --fix",
63
- "lint:knip": "pnpm run lint:knip:development && pnpm run lint:knip:production",
64
- "lint:knip:development": "knip",
65
- "lint:knip:production": "knip --production",
89
+ "lint:knip": "knip",
66
90
  "lint:md": "markdownlint-cli2",
67
91
  "lint:md-fix": "markdownlint-cli2 --fix",
68
92
  "lint:md-full": "pnpm run lint:md && eslint \"**/*.md\"",
69
93
  "lint:md-full-fix": "pnpm run lint:md-fix && eslint \"**/*.md\" --fix",
94
+ "lint:package": "publint --strict",
70
95
  "lint:packages": "pnpm dedupe --check",
71
96
  "lint:packages-fix": "pnpm dedupe",
72
97
  "lint:spelling": "cspell lint --no-progress --show-suggestions --show-context --dot \"**\" \".github/**/*\"",
73
98
  "lint:yaml": "eslint \"**/*.y?(a)ml\"",
74
99
  "lint:yaml-fix": "eslint \"**/*.y?(a)ml\" --fix",
75
100
  "prepare": "husky && pnpm run generate-files",
76
- "release": "semantic-release",
101
+ "release": "pnpm dlx --package semantic-release --package @sebbo2002/semantic-release-jsr --package @semantic-release/changelog --package @semantic-release/commit-analyzer --package @semantic-release/git --package @semantic-release/github --package @semantic-release/npm --package @semantic-release/release-notes-generator --package semantic-release-publint semantic-release",
77
102
  "test": "pnpm run test:js-run && pnpm run test:types",
78
103
  "test:js": "vitest --coverage",
79
104
  "test:js-run": "vitest run --coverage",
80
105
  "test:types": "pnpm run test:types-pre && tsd -t './dist/index.d.mts' -f 'src/**/*.test-d.ts'",
81
106
  "test:types-pre": "pnpm run build",
82
- "typecheck": "tsc -p src/tsconfig.json --noEmit"
107
+ "typecheck": "pnpm run typecheck:root && pnpm run typecheck:src",
108
+ "typecheck:root": "tsc -p ./tsconfig.json --noEmit",
109
+ "typecheck:src": "tsc -p ./src/tsconfig.json --noEmit"
83
110
  },
84
111
  "devDependencies": {
85
- "@commitlint/cli": "19.6.0",
86
- "@commitlint/config-conventional": "19.6.0",
87
- "@cspell/dict-cryptocurrencies": "5.0.3",
88
- "@eslint/compat": "1.2.4",
89
- "@rebeccastevens/eslint-config": "3.3.4",
90
- "@rollup/plugin-typescript": "12.1.1",
91
- "@sebbo2002/semantic-release-jsr": "2.0.2",
92
- "@semantic-release/changelog": "6.0.3",
93
- "@semantic-release/commit-analyzer": "13.0.0",
94
- "@semantic-release/git": "10.0.1",
95
- "@semantic-release/github": "11.0.1",
96
- "@semantic-release/npm": "12.0.1",
97
- "@semantic-release/release-notes-generator": "14.0.1",
98
- "@stylistic/eslint-plugin": "2.12.1",
99
- "@types/node": "18.19.67",
100
- "@typescript-eslint/eslint-plugin": "8.18.0",
101
- "@typescript-eslint/parser": "8.18.0",
102
- "@vitest/coverage-v8": "2.1.8",
103
- "@vitest/eslint-plugin": "1.1.16",
112
+ "@commitlint/cli": "20.4.2",
113
+ "@commitlint/config-conventional": "20.4.2",
114
+ "@cspell/dict-cryptocurrencies": "5.0.5",
115
+ "@eslint-community/eslint-plugin-eslint-comments": "4.7.1",
116
+ "@eslint/compat": "2.0.2",
117
+ "@eslint/markdown": "7.5.1",
118
+ "@rebeccastevens/eslint-config": "3.9.6",
119
+ "@rollup/plugin-typescript": "12.3.0",
120
+ "@stylistic/eslint-plugin": "5.9.0",
121
+ "@types/node": "20.19.35",
122
+ "@typescript-eslint/eslint-plugin": "8.56.1",
123
+ "@typescript-eslint/parser": "8.56.1",
124
+ "@vitest/coverage-v8": "4.0.18",
125
+ "@vitest/eslint-plugin": "1.6.9",
104
126
  "commitizen": "4.3.1",
105
- "cspell": "8.16.1",
127
+ "cspell": "9.7.0",
106
128
  "cz-conventional-changelog": "3.3.0",
107
- "eslint": "9.17.0",
108
- "eslint-config-prettier": "9.1.0",
109
- "eslint-flat-config-utils": "0.4.0",
110
- "eslint-import-resolver-typescript": "3.7.0",
111
- "eslint-merge-processors": "0.1.0",
112
- "eslint-plugin-eslint-comments": "3.2.0",
113
- "eslint-plugin-format": "0.1.3",
114
- "eslint-plugin-functional": "7.1.0",
115
- "eslint-plugin-import-x": "4.5.0",
116
- "eslint-plugin-jsdoc": "50.6.1",
117
- "eslint-plugin-jsonc": "2.18.2",
118
- "eslint-plugin-markdown": "5.1.0",
119
- "eslint-plugin-n": "17.15.0",
129
+ "eslint": "10.0.2",
130
+ "eslint-config-prettier": "10.1.8",
131
+ "eslint-flat-config-utils": "3.0.1",
132
+ "eslint-import-resolver-typescript": "4.4.4",
133
+ "eslint-merge-processors": "2.0.0",
134
+ "eslint-plugin-format": "2.0.1",
135
+ "eslint-plugin-functional": "9.0.4",
136
+ "eslint-plugin-import-x": "4.16.1",
137
+ "eslint-plugin-jsdoc": "62.7.1",
138
+ "eslint-plugin-jsonc": "3.1.1",
139
+ "eslint-plugin-n": "17.24.0",
120
140
  "eslint-plugin-no-only-tests": "3.3.0",
121
141
  "eslint-plugin-optimize-regex": "1.2.1",
122
- "eslint-plugin-prettier": "5.2.1",
142
+ "eslint-plugin-prettier": "5.5.5",
123
143
  "eslint-plugin-promise": "7.2.1",
124
- "eslint-plugin-regexp": "2.7.0",
125
- "eslint-plugin-sonarjs": "3.0.1",
126
- "eslint-plugin-unicorn": "56.0.1",
127
- "eslint-plugin-yml": "1.16.0",
144
+ "eslint-plugin-regexp": "3.0.0",
145
+ "eslint-plugin-sonarjs": "4.0.0",
146
+ "eslint-plugin-unicorn": "63.0.0",
147
+ "eslint-plugin-yml": "3.3.0",
128
148
  "http-serve": "1.0.1",
129
149
  "husky": "9.1.7",
130
- "jsonc-eslint-parser": "2.4.0",
131
- "knip": "5.40.0",
132
- "lint-staged": "15.2.11",
133
- "markdownlint-cli2": "0.16.0",
134
- "prettier": "3.4.2",
135
- "rimraf": "6.0.1",
136
- "rollup": "4.28.1",
150
+ "jsonc-eslint-parser": "3.1.0",
151
+ "knip": "5.85.0",
152
+ "lint-staged": "16.3.1",
153
+ "markdownlint-cli2": "0.21.0",
154
+ "prettier": "3.8.1",
155
+ "publint": "0.3.18",
156
+ "rimraf": "6.1.3",
157
+ "rollup": "4.59.0",
137
158
  "rollup-plugin-deassert": "1.3.0",
138
159
  "rollup-plugin-dts-bundle-generator-2": "2.0.0",
139
- "semantic-release": "24.2.0",
140
- "tsafe": "1.8.5",
160
+ "rollup-plugin-no-emit": "1.3.0",
161
+ "rollup-plugin-tree-shakeable": "2.0.0",
162
+ "tsafe": "1.8.12",
141
163
  "tsc-files": "1.1.4",
142
- "tsd": "0.31.2",
143
- "tsx": "4.19.2",
144
- "typedoc": "0.27.4",
145
- "typedoc-plugin-coverage": "3.4.0",
146
- "typescript": "5.7.2",
147
- "vite-tsconfig-paths": "5.1.4",
148
- "vitest": "2.1.8",
149
- "yaml-eslint-parser": "1.2.3"
164
+ "tsd": "0.33.0",
165
+ "typedoc": "0.28.17",
166
+ "typedoc-plugin-coverage": "4.0.2",
167
+ "typescript": "5.9.3",
168
+ "vite-tsconfig-paths": "6.1.1",
169
+ "vitest": "4.0.18",
170
+ "yaml-eslint-parser": "2.0.0"
150
171
  },
151
- "packageManager": "pnpm@9.15.0",
172
+ "packageManager": "pnpm@10.30.3",
152
173
  "engines": {
153
174
  "node": ">=18.0.0"
154
175
  }