uom-types 2.0.0 → 3.0.1
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/README.md +33 -1
- package/dist/_angle-plane.d.cts +89 -0
- package/dist/_angle-plane.d.mts +89 -0
- package/dist/_identity.d.cts +29 -0
- package/dist/_identity.d.mts +29 -0
- package/dist/_index.d.cts +235 -0
- package/dist/_index.d.mts +235 -0
- package/dist/_time-duration.d.cts +482 -0
- package/dist/_time-duration.d.mts +482 -0
- package/dist/{functions-ho.cjs → functions-higher-order.cjs} +31 -4
- package/dist/{functions-ho.d.cts → functions-higher-order.d.cts} +37 -8
- package/dist/{functions-ho.d.mts → functions-higher-order.d.mts} +37 -8
- package/dist/{functions-ho.mjs → functions-higher-order.mjs} +31 -4
- package/dist/functions.cjs +167 -5
- package/dist/functions.d.cts +169 -26
- package/dist/functions.d.mts +169 -26
- package/dist/functions.mjs +155 -6
- package/dist/index.d.cts +1 -86
- package/dist/index.d.mts +1 -86
- package/dist/units-converters.cjs +564 -0
- package/dist/units-converters.d.cts +370 -0
- package/dist/units-converters.d.mts +370 -0
- package/dist/units-converters.mjs +483 -0
- package/dist/units.d.cts +3056 -0
- package/dist/units.d.mts +3056 -0
- package/package.json +61 -48
- package/dist/si-units-converters.cjs +0 -2
- package/dist/si-units-converters.d.cts +0 -2
- package/dist/si-units-converters.d.mts +0 -2
- package/dist/si-units-converters.mjs +0 -1
- package/dist/si-units.d.cts +0 -5
- package/dist/si-units.d.mts +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uom-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Typesafe units with no runtime overhead.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"uom",
|
|
@@ -39,25 +39,23 @@
|
|
|
39
39
|
},
|
|
40
40
|
"./functions/higher-order": {
|
|
41
41
|
"types": {
|
|
42
|
-
"import": "./dist/functions-
|
|
43
|
-
"require": "./dist/functions-
|
|
42
|
+
"import": "./dist/functions-higher-order.d.mts",
|
|
43
|
+
"require": "./dist/functions-higher-order.d.cts"
|
|
44
44
|
},
|
|
45
|
-
"import": "./dist/functions-
|
|
46
|
-
"require": "./dist/functions-
|
|
45
|
+
"import": "./dist/functions-higher-order.mjs",
|
|
46
|
+
"require": "./dist/functions-higher-order.cjs"
|
|
47
47
|
},
|
|
48
|
-
"./
|
|
48
|
+
"./units": {
|
|
49
49
|
"types": {
|
|
50
|
-
"import": "./dist/
|
|
51
|
-
"require": "./dist/
|
|
50
|
+
"import": "./dist/units.d.mts",
|
|
51
|
+
"require": "./dist/units.d.cts"
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
"./
|
|
54
|
+
"./units/converters": {
|
|
55
55
|
"types": {
|
|
56
|
-
"import": "./dist/
|
|
57
|
-
"require": "./dist/
|
|
58
|
-
}
|
|
59
|
-
"import": "./dist/si-units-converters.mjs",
|
|
60
|
-
"require": "./dist/si-units-converters.cjs"
|
|
56
|
+
"import": "./dist/units-converters.d.mts",
|
|
57
|
+
"require": "./dist/units-converters.d.cts"
|
|
58
|
+
}
|
|
61
59
|
}
|
|
62
60
|
},
|
|
63
61
|
"files": [
|
|
@@ -67,10 +65,13 @@
|
|
|
67
65
|
"README.md"
|
|
68
66
|
],
|
|
69
67
|
"scripts": {
|
|
70
|
-
"build": "pnpm run build
|
|
71
|
-
"build-
|
|
68
|
+
"build": "pnpm run build-pre && pnpm run build:node",
|
|
69
|
+
"build-pre": "pnpm run generate-files",
|
|
72
70
|
"build:node": "rimraf dist && rollup -c rollup.config.ts --configPlugin @rollup/plugin-typescript",
|
|
73
71
|
"cz": "git-cz",
|
|
72
|
+
"docs": "typedoc",
|
|
73
|
+
"docs:serve": "http-serve docs/generated",
|
|
74
|
+
"generate-files": "node --no-warnings=ExperimentalWarning --loader=ts-paths-esm-loader/transpile-only --experimental-specifier-resolution=node ./scripts/generate-files.ts",
|
|
74
75
|
"lint": "pnpm run lint:js && pnpm run lint:md && pnpm run lint:prettier && pnpm run lint:knip && pnpm run lint:spelling",
|
|
75
76
|
"lint:js": "eslint .",
|
|
76
77
|
"lint:js-fix": "eslint . --fix",
|
|
@@ -81,68 +82,80 @@
|
|
|
81
82
|
"lint:prettier": "prettier \"**/*\" --ignore-unknown --list-different",
|
|
82
83
|
"lint:prettier-fix": "prettier \"**/*\" --ignore-unknown --write",
|
|
83
84
|
"lint:spelling": "cspell \"**\" \".github/**/*\"",
|
|
84
|
-
"prepare": "husky install",
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"test": "
|
|
88
|
-
"test:js": "
|
|
85
|
+
"prepare": "husky install && pnpm run generate-files",
|
|
86
|
+
"test": "pnpm run test-pre && pnpm run test:js && pnpm run test:types && pnpm run test:types-coverage",
|
|
87
|
+
"test-pre": "pnpm run build",
|
|
88
|
+
"test:js": "vitest --coverage --run",
|
|
89
|
+
"test:js:watch": "vitest",
|
|
89
90
|
"test:types": "tsd -t './dist/index.d.mts' -f 'tests/**/*.test-d.ts'",
|
|
91
|
+
"test:types-coverage": "type-coverage --project tsconfig.build.json --at-least",
|
|
92
|
+
"test:types-coverage:report": "typescript-coverage-report --project tsconfig.build.json",
|
|
90
93
|
"type-check": "tsc --noEmit"
|
|
91
94
|
},
|
|
92
95
|
"devDependencies": {
|
|
93
|
-
"@commitlint/cli": "17.6.
|
|
94
|
-
"@commitlint/config-conventional": "17.6.
|
|
96
|
+
"@commitlint/cli": "17.6.7",
|
|
97
|
+
"@commitlint/config-conventional": "17.6.7",
|
|
95
98
|
"@cspell/dict-cryptocurrencies": "3.0.1",
|
|
96
|
-
"@rebeccastevens/eslint-config": "
|
|
99
|
+
"@rebeccastevens/eslint-config": "2.0.3",
|
|
100
|
+
"@rollup/plugin-replace": "5.0.2",
|
|
97
101
|
"@rollup/plugin-typescript": "11.1.2",
|
|
98
102
|
"@semantic-release/changelog": "6.0.3",
|
|
99
103
|
"@semantic-release/commit-analyzer": "10.0.1",
|
|
100
104
|
"@semantic-release/git": "10.0.1",
|
|
101
|
-
"@semantic-release/github": "9.0.
|
|
105
|
+
"@semantic-release/github": "9.0.4",
|
|
102
106
|
"@semantic-release/npm": "10.0.4",
|
|
103
107
|
"@semantic-release/release-notes-generator": "11.0.4",
|
|
104
|
-
"@types/node": "18.
|
|
108
|
+
"@types/node": "18.17.3",
|
|
105
109
|
"@types/rollup-plugin-auto-external": "2.0.2",
|
|
106
|
-
"@typescript-eslint/eslint-plugin": "
|
|
107
|
-
"@typescript-eslint/parser": "
|
|
108
|
-
"
|
|
109
|
-
"c8": "8.0.0",
|
|
110
|
+
"@typescript-eslint/eslint-plugin": "6.2.1",
|
|
111
|
+
"@typescript-eslint/parser": "6.2.1",
|
|
112
|
+
"@vitest/coverage-v8": "0.34.1",
|
|
110
113
|
"commitizen": "4.3.0",
|
|
111
|
-
"cspell": "6.31.
|
|
114
|
+
"cspell": "6.31.2",
|
|
112
115
|
"cz-conventional-changelog": "3.3.0",
|
|
113
|
-
"eslint": "8.
|
|
114
|
-
"eslint-config-prettier": "
|
|
116
|
+
"eslint": "8.46.0",
|
|
117
|
+
"eslint-config-prettier": "9.0.0",
|
|
115
118
|
"eslint-import-resolver-typescript": "3.5.5",
|
|
116
|
-
"eslint-plugin-ava": "14.0.0",
|
|
117
119
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
118
|
-
"eslint-plugin-functional": "
|
|
119
|
-
"eslint-plugin-import": "2.
|
|
120
|
-
"eslint-plugin-jsdoc": "46.4.
|
|
121
|
-
"eslint-plugin-markdown": "3.0.
|
|
120
|
+
"eslint-plugin-functional": "6.0.0",
|
|
121
|
+
"eslint-plugin-import": "2.28.0",
|
|
122
|
+
"eslint-plugin-jsdoc": "46.4.6",
|
|
123
|
+
"eslint-plugin-markdown": "3.0.1",
|
|
122
124
|
"eslint-plugin-n": "16.0.1",
|
|
123
125
|
"eslint-plugin-optimize-regex": "1.2.1",
|
|
124
|
-
"eslint-plugin-prettier": "5.0.0
|
|
126
|
+
"eslint-plugin-prettier": "5.0.0",
|
|
125
127
|
"eslint-plugin-promise": "6.1.1",
|
|
126
|
-
"eslint-plugin-sonarjs": "0.
|
|
127
|
-
"eslint-plugin-unicorn": "
|
|
128
|
+
"eslint-plugin-sonarjs": "0.20.0",
|
|
129
|
+
"eslint-plugin-unicorn": "48.0.1",
|
|
130
|
+
"eslint-plugin-vitest": "0.2.8",
|
|
131
|
+
"http-serve": "1.0.1",
|
|
128
132
|
"husky": "8.0.3",
|
|
129
|
-
"knip": "2.
|
|
133
|
+
"knip": "2.19.0",
|
|
130
134
|
"lint-staged": "13.2.3",
|
|
131
135
|
"markdownlint-cli": "0.35.0",
|
|
132
|
-
"prettier": "3.0.
|
|
133
|
-
"prettier-plugin-packagejson": "2.4.
|
|
136
|
+
"prettier": "3.0.1",
|
|
137
|
+
"prettier-plugin-packagejson": "2.4.5",
|
|
134
138
|
"rimraf": "5.0.1",
|
|
135
|
-
"rollup": "3.
|
|
139
|
+
"rollup": "3.27.2",
|
|
136
140
|
"rollup-plugin-auto-external": "2.0.0",
|
|
137
|
-
"rollup-plugin-dts": "5.3.
|
|
141
|
+
"rollup-plugin-dts": "5.3.1",
|
|
138
142
|
"semantic-release": "21.0.7",
|
|
139
143
|
"ts-node": "10.9.1",
|
|
140
144
|
"ts-paths-esm-loader": "1.4.3",
|
|
145
|
+
"ts-plugin-type-coverage": "2.26.0",
|
|
146
|
+
"tsafe": "1.6.4",
|
|
141
147
|
"tsconfig-paths": "4.2.0",
|
|
142
148
|
"tsd": "0.28.1",
|
|
143
|
-
"
|
|
149
|
+
"type-coverage": "2.26.0",
|
|
150
|
+
"typedoc": "0.24.8",
|
|
151
|
+
"typedoc-plugin-coverage": "2.1.0",
|
|
152
|
+
"typedoc-plugin-versions": "0.2.3",
|
|
153
|
+
"typescript": "5.1.6",
|
|
154
|
+
"typescript-coverage-report": "0.8.0",
|
|
155
|
+
"vite-tsconfig-paths": "4.2.0",
|
|
156
|
+
"vitest": "0.34.1"
|
|
144
157
|
},
|
|
145
|
-
"packageManager": "pnpm@8.6.
|
|
158
|
+
"packageManager": "pnpm@8.6.12",
|
|
146
159
|
"engines": {
|
|
147
160
|
"node": ">=16.0.0"
|
|
148
161
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/si-units.d.cts
DELETED