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/CHANGELOG.md +7 -0
- package/dist/chunks/B2m_qd8-.mjs +252 -0
- package/dist/chunks/Cm6vkgfO.cjs +289 -0
- package/dist/chunks/nRDIxMhl.mjs +483 -0
- package/dist/chunks/ph65nozB.cjs +564 -0
- package/dist/converters.cjs +87 -0
- package/dist/converters.d.cts +569 -0
- package/dist/converters.d.mts +569 -0
- package/dist/converters.mjs +2 -0
- package/dist/index.cjs +118 -844
- package/dist/index.d.cts +72 -72
- package/dist/index.d.mts +72 -72
- package/dist/index.mjs +2 -732
- package/dist/math.cjs +42 -0
- package/dist/math.d.cts +458 -0
- package/dist/math.d.mts +458 -0
- package/dist/math.mjs +1 -0
- package/dist/types.d.cts +247 -0
- package/dist/types.d.mts +247 -0
- package/dist/units.d.cts +3603 -0
- package/dist/units.d.mts +3603 -0
- package/package.json +92 -71
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uom-types",
|
|
3
|
-
"version": "5.0
|
|
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
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
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
|
-
"
|
|
42
|
-
|
|
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
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
86
|
-
"@commitlint/config-conventional": "
|
|
87
|
-
"@cspell/dict-cryptocurrencies": "5.0.
|
|
88
|
-
"@eslint/
|
|
89
|
-
"@
|
|
90
|
-
"@
|
|
91
|
-
"@
|
|
92
|
-
"@
|
|
93
|
-
"@
|
|
94
|
-
"@
|
|
95
|
-
"@
|
|
96
|
-
"@
|
|
97
|
-
"@
|
|
98
|
-
"@
|
|
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": "
|
|
127
|
+
"cspell": "9.7.0",
|
|
106
128
|
"cz-conventional-changelog": "3.3.0",
|
|
107
|
-
"eslint": "
|
|
108
|
-
"eslint-config-prettier": "
|
|
109
|
-
"eslint-flat-config-utils": "0.
|
|
110
|
-
"eslint-import-resolver-typescript": "
|
|
111
|
-
"eslint-merge-processors": "0.
|
|
112
|
-
"eslint-plugin-
|
|
113
|
-
"eslint-plugin-
|
|
114
|
-
"eslint-plugin-
|
|
115
|
-
"eslint-plugin-
|
|
116
|
-
"eslint-plugin-
|
|
117
|
-
"eslint-plugin-
|
|
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.
|
|
142
|
+
"eslint-plugin-prettier": "5.5.5",
|
|
123
143
|
"eslint-plugin-promise": "7.2.1",
|
|
124
|
-
"eslint-plugin-regexp": "
|
|
125
|
-
"eslint-plugin-sonarjs": "
|
|
126
|
-
"eslint-plugin-unicorn": "
|
|
127
|
-
"eslint-plugin-yml": "
|
|
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": "
|
|
131
|
-
"knip": "5.
|
|
132
|
-
"lint-staged": "
|
|
133
|
-
"markdownlint-cli2": "0.
|
|
134
|
-
"prettier": "3.
|
|
135
|
-
"
|
|
136
|
-
"
|
|
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
|
-
"
|
|
140
|
-
"
|
|
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.
|
|
143
|
-
"
|
|
144
|
-
"typedoc": "0.
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
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@
|
|
172
|
+
"packageManager": "pnpm@10.30.3",
|
|
152
173
|
"engines": {
|
|
153
174
|
"node": ">=18.0.0"
|
|
154
175
|
}
|